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
shenshaokai
jinfa-platform
Commits
5ee2bd8c
Commit
5ee2bd8c
authored
Aug 05, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加 border 属性
parent
ef00c8c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
index.tsx
src/components/NiceForm/public/index.tsx
+8
-2
No files found.
src/components/NiceForm/public/index.tsx
View file @
5ee2bd8c
...
...
@@ -18,11 +18,13 @@ const RowLayout = styled(props => <Row justify='end' {...props}/>)`
const
FlagBox
=
styled
(
props
=>
<
div
{
...
props
}
/>)
`
.flag-box-title {
padding-left:
${
themeConfig
[
'@padding-xs'
]}
;
margin-bottom:
${
themeConfig
[
'@margin-lg'
]}
;
line-height:
${
themeConfig
[
'@font-size-lg'
]}
;
font-size:
${
themeConfig
[
'@font-size-lg'
]}
;
font-weight: 500;
}
.flag-box-title.border {
padding-left:
${
themeConfig
[
'@padding-xs'
]}
;
border-left: 2px solid
${
themeConfig
[
'@primary-color'
]}
;
}
`
...
...
@@ -111,12 +113,16 @@ registerVirtualBox('LeftRightLayout', (_props) => {
registerVirtualBox
(
'FlagBox'
,
(
_props
)
=>
{
const
{
children
,
props
}
=
_props
;
const
title
=
props
[
'x-component-props'
]
?
props
[
'x-component-props'
].
title
:
''
;
const
border
=
props
[
'x-component-props'
]
?
props
[
'x-component-props'
].
border
||
true
:
true
;
const
wrapProps
=
props
[
'x-component-props'
]
?
props
[
'x-component-props'
].
wrapProps
:
{};
const
titleCls
=
cx
(
'flag-box-title'
,
{
'border'
:
border
});
return
(
<
FlagBox
{
...
wrapProps
}
>
<
div
className=
"flag-box-title"
>
<
div
className=
{
titleCls
}
>
{
title
}
</
div
>
<
div
>
...
...
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