Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-admin
Commits
da6ebab6
Commit
da6ebab6
authored
Feb 20, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 完善样式
parent
1bc038b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
36 deletions
+44
-36
index.tsx
src/pages/returnManage/components/ReturnDetailInfo/index.tsx
+3
-3
index.tsx
src/pages/returnManage/components/Stamp/index.tsx
+41
-33
No files found.
src/pages/returnManage/components/ReturnDetailInfo/index.tsx
View file @
da6ebab6
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 18:02:18
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-02-
02 10:11:0
8
* @LastEditTime: 2021-02-
20 15:20:1
8
* @Description: 退款明细
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -267,7 +267,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
),
expandedRowRender
:
record
=>
(
<
Row
gutter=
{
[
16
,
16
]
}
gutter=
{
16
}
className=
{
styles
.
deliver
}
>
{
record
.
detailList
.
map
(
item
=>
(
...
...
@@ -276,7 +276,7 @@ const ReturnDetailInfo: React.FC<ReturnDetailInfoProps> = ({
className=
{
styles
[
'deliver-item'
]
}
key=
{
item
.
refundId
}
>
<
Stamp
>
<
Stamp
customStyle=
{
{
margin
:
0
,
padding
:
20
}
}
>
<
Descriptions
column=
{
2
}
>
<
Descriptions
.
Item
label=
"支付次数"
>
{
item
.
payCount
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"状态"
>
...
...
src/pages/returnManage/components/Stamp/index.tsx
View file @
da6ebab6
/*
* @Author: XieZhiXiong
* @Date: 2020-11-05 15:52:21
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-11-05 16:45:11
* @Description: 邮票展示组件
*/
import
React
from
'react'
;
import
styles
from
'./index.less'
;
interface
StampProps
{
// 是否需要展示中间的印记条
imprinted
?:
boolean
;
};
const
Stamp
:
React
.
FC
<
StampProps
>
&
{
isVirtualFieldComponent
:
boolean
}
=
({
imprinted
=
false
,
children
,
})
=>
{
return
(
<
div
className=
{
styles
.
stamp
}
>
{
children
}
{
imprinted
&&
(
<
div
className=
{
styles
.
imprinted
}
/>
)
}
</
div
>
);
};
Stamp
.
isVirtualFieldComponent
=
true
;
export
default
Stamp
;
/*
* @Author: XieZhiXiong
* @Date: 2020-11-05 15:52:21
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-02-20 15:42:00
* @Description: 邮票展示组件
*/
import
React
from
'react'
;
import
classNames
from
'classnames'
;
import
styles
from
'./index.less'
;
interface
StampProps
{
/**
* 是否需要展示中间的印记条
*/
imprinted
?:
boolean
;
/**
* 自定义外部样式
*/
customStyle
?:
React
.
CSSProperties
,
};
const
Stamp
:
React
.
FC
<
StampProps
>
&
{
isVirtualFieldComponent
:
boolean
}
=
({
imprinted
=
false
,
customStyle
,
children
,
})
=>
{
return
(
<
div
className=
{
classNames
(
styles
.
stamp
)
}
style=
{
customStyle
}
>
{
children
}
{
imprinted
&&
(
<
div
className=
{
styles
.
imprinted
}
/>
)
}
</
div
>
);
};
Stamp
.
isVirtualFieldComponent
=
true
;
export
default
Stamp
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment