Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
前端-吴智勇
jinfa-platform
Commits
f3a3fc57
Commit
f3a3fc57
authored
May 18, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 合并样式
parent
be4eb0f5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
26 deletions
+10
-26
index.less
src/components/CustomizeColumn/index.less
+4
-24
index.tsx
src/components/CustomizeColumn/index.tsx
+6
-2
No files found.
src/components/CustomizeColumn/index.less
View file @
f3a3fc57
.container {
display: flex;
flex: row;
.row {
display: flex;
flex-direction: row;
margin-bottom: @margin-md;
.customize-column {
:global {
.ant-descriptions-item-content {
white-space: break-spaces;
}
.col {
flex: 1;
.title {
color: #909399;
font-size: 12;
width: 104px;
display: inline-block;
}
}
.lastRow {
margin-bottom: 0;
}
}
\ No newline at end of file
src/components/CustomizeColumn/index.tsx
View file @
f3a3fc57
...
...
@@ -2,11 +2,12 @@
* @Author: XieZhiXiong
* @Date: 2021-05-11 10:46:57
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-1
1 15:46:2
4
* @LastEditTime: 2021-05-1
8 15:55:1
4
* @Description: 申请单基础信息
*/
import
React
,
{
CSSProperties
}
from
'react'
;
import
{
Descriptions
}
from
'antd'
;
import
classNames
from
'classnames'
;
import
MellowCard
,
{
MellowCardProps
}
from
'@/components/MellowCard'
;
import
styles
from
'./index.less'
;
...
...
@@ -50,13 +51,16 @@ const defaultColumnProps: ColumnProps = {
const
CustomizeColumn
:
React
.
FC
<
IProps
>
=
(
props
:
IProps
)
=>
{
const
{
data
,
column
,
...
rest
}
=
props
;
const
{
className
}
=
rest
;
const
mergeCls
=
classNames
(
styles
[
'customize-column'
],
className
);
return
(
<
MellowCard
bodyStyle=
{
{
paddingBottom
:
0
,
}
}
// className={styles.basicInfo}
{
...
rest
}
className=
{
mergeCls
}
>
<
Descriptions
column=
{
column
}
>
{
data
.
map
((
item
,
index
)
=>
(
...
...
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