Commit c994fcf8 authored by XieZhiXiong's avatar XieZhiXiong

chore: 更改组件名称

parent c6d086a8
......@@ -15,8 +15,8 @@ const RowLayout = styled(props => <Row justify='end' {...props}/>)`
}
`
const CardBox = styled(props => <div {...props}/>)`
.card-box-title {
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']};
......@@ -106,21 +106,21 @@ registerVirtualBox('LeftRightLayout', (_props) => {
)
})
// card容器
registerVirtualBox('CardBox', (_props) => {
// 标题带右边框的容器
registerVirtualBox('FlagBox', (_props) => {
const { children, props } = _props;
const title = props['x-component-props'] ? props['x-component-props'].title : '';
const wrapProps = props['x-component-props'] ? props['x-component-props'].wrapProps : {};
return (
<CardBox
<FlagBox
{...wrapProps}
>
<div className="card-box-title">
<div className="flag-box-title">
{title}
</div>
<div>
{children}
</div>
</CardBox>
</FlagBox>
)
})
......@@ -27,7 +27,7 @@ export const schema: ISchema = {
properties: {
INVESTIGATE_INFO: {
type: 'object',
'x-component': 'CardBox',
'x-component': 'FlagBox',
'x-component-props': {
title: '入库分类信息',
},
......@@ -247,7 +247,7 @@ export const schema: ISchema = {
},
VERIFY_APPLY: {
type: 'object',
'x-component': 'CardBox',
'x-component': 'FlagBox',
'x-component-props': {
title: '单据审核',
},
......
......@@ -16,7 +16,7 @@ export const schema: ISchema = {
properties: {
INVESTIGATE_INFO: {
type: 'object',
'x-component': 'CardBox',
'x-component': 'FlagBox',
'x-component-props': {
title: '考察信息',
},
......@@ -100,7 +100,7 @@ export const schema: ISchema = {
},
VERIFY_APPLY: {
type: 'object',
'x-component': 'CardBox',
'x-component': 'FlagBox',
'x-component-props': {
title: '单据审核',
},
......
......@@ -27,7 +27,7 @@ export const schema = (groups: GroupItem[]): ISchema => {
(groups || []).forEach((item, index) => {
depositSchema.properties[`CARD_BOX_${index}`] = {
type: 'object',
'x-component': 'CardBox',
'x-component': 'FlagBox',
'x-component-props': {
title: item.groupName,
},
......
......@@ -12,7 +12,7 @@ export const schema: ISchema = {
properties: {
INVESTIGATE_INFO: {
type: 'object',
'x-component': 'CardBox',
'x-component': 'FlagBox',
'x-component-props': {
title: '渠道信息',
},
......@@ -95,7 +95,7 @@ export const schema: ISchema = {
},
VERIFY_APPLY: {
type: 'object',
'x-component': 'CardBox',
'x-component': 'FlagBox',
'x-component-props': {
title: '单据审核',
},
......
......@@ -29,7 +29,7 @@ const schema = (groups: GroupItem[], validateId?: number): ISchema => {
(groups || []).forEach((item, index) => {
depositSchema.properties[`CARD_BOX_${index}`] = {
type: 'object',
'x-component': 'CardBox',
'x-component': 'FlagBox',
'x-component-props': {
title: item.groupName,
wrapProps: {
......@@ -132,7 +132,7 @@ const schema = (groups: GroupItem[], validateId?: number): ISchema => {
properties: {
INCOMING_INFO: {
type: 'object',
'x-component': 'CardBox',
'x-component': 'FlagBox',
'x-component-props': {
title: '上传资质证明',
wrapProps: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment