Commit c994fcf8 authored by XieZhiXiong's avatar XieZhiXiong

chore: 更改组件名称

parent c6d086a8
...@@ -15,8 +15,8 @@ const RowLayout = styled(props => <Row justify='end' {...props}/>)` ...@@ -15,8 +15,8 @@ const RowLayout = styled(props => <Row justify='end' {...props}/>)`
} }
` `
const CardBox = styled(props => <div {...props}/>)` const FlagBox = styled(props => <div {...props}/>)`
.card-box-title { .flag-box-title {
padding-left: ${themeConfig['@padding-xs']}; padding-left: ${themeConfig['@padding-xs']};
margin-bottom: ${themeConfig['@margin-lg']}; margin-bottom: ${themeConfig['@margin-lg']};
line-height: ${themeConfig['@font-size-lg']}; line-height: ${themeConfig['@font-size-lg']};
...@@ -106,21 +106,21 @@ registerVirtualBox('LeftRightLayout', (_props) => { ...@@ -106,21 +106,21 @@ registerVirtualBox('LeftRightLayout', (_props) => {
) )
}) })
// card容器 // 标题带右边框的容器
registerVirtualBox('CardBox', (_props) => { registerVirtualBox('FlagBox', (_props) => {
const { children, props } = _props; const { children, props } = _props;
const title = props['x-component-props'] ? props['x-component-props'].title : ''; const title = props['x-component-props'] ? props['x-component-props'].title : '';
const wrapProps = props['x-component-props'] ? props['x-component-props'].wrapProps : {}; const wrapProps = props['x-component-props'] ? props['x-component-props'].wrapProps : {};
return ( return (
<CardBox <FlagBox
{...wrapProps} {...wrapProps}
> >
<div className="card-box-title"> <div className="flag-box-title">
{title} {title}
</div> </div>
<div> <div>
{children} {children}
</div> </div>
</CardBox> </FlagBox>
) )
}) })
...@@ -27,7 +27,7 @@ export const schema: ISchema = { ...@@ -27,7 +27,7 @@ export const schema: ISchema = {
properties: { properties: {
INVESTIGATE_INFO: { INVESTIGATE_INFO: {
type: 'object', type: 'object',
'x-component': 'CardBox', 'x-component': 'FlagBox',
'x-component-props': { 'x-component-props': {
title: '入库分类信息', title: '入库分类信息',
}, },
...@@ -247,7 +247,7 @@ export const schema: ISchema = { ...@@ -247,7 +247,7 @@ export const schema: ISchema = {
}, },
VERIFY_APPLY: { VERIFY_APPLY: {
type: 'object', type: 'object',
'x-component': 'CardBox', 'x-component': 'FlagBox',
'x-component-props': { 'x-component-props': {
title: '单据审核', title: '单据审核',
}, },
......
...@@ -16,7 +16,7 @@ export const schema: ISchema = { ...@@ -16,7 +16,7 @@ export const schema: ISchema = {
properties: { properties: {
INVESTIGATE_INFO: { INVESTIGATE_INFO: {
type: 'object', type: 'object',
'x-component': 'CardBox', 'x-component': 'FlagBox',
'x-component-props': { 'x-component-props': {
title: '考察信息', title: '考察信息',
}, },
...@@ -100,7 +100,7 @@ export const schema: ISchema = { ...@@ -100,7 +100,7 @@ export const schema: ISchema = {
}, },
VERIFY_APPLY: { VERIFY_APPLY: {
type: 'object', type: 'object',
'x-component': 'CardBox', 'x-component': 'FlagBox',
'x-component-props': { 'x-component-props': {
title: '单据审核', title: '单据审核',
}, },
......
...@@ -27,7 +27,7 @@ export const schema = (groups: GroupItem[]): ISchema => { ...@@ -27,7 +27,7 @@ export const schema = (groups: GroupItem[]): ISchema => {
(groups || []).forEach((item, index) => { (groups || []).forEach((item, index) => {
depositSchema.properties[`CARD_BOX_${index}`] = { depositSchema.properties[`CARD_BOX_${index}`] = {
type: 'object', type: 'object',
'x-component': 'CardBox', 'x-component': 'FlagBox',
'x-component-props': { 'x-component-props': {
title: item.groupName, title: item.groupName,
}, },
......
...@@ -12,7 +12,7 @@ export const schema: ISchema = { ...@@ -12,7 +12,7 @@ export const schema: ISchema = {
properties: { properties: {
INVESTIGATE_INFO: { INVESTIGATE_INFO: {
type: 'object', type: 'object',
'x-component': 'CardBox', 'x-component': 'FlagBox',
'x-component-props': { 'x-component-props': {
title: '渠道信息', title: '渠道信息',
}, },
...@@ -95,7 +95,7 @@ export const schema: ISchema = { ...@@ -95,7 +95,7 @@ export const schema: ISchema = {
}, },
VERIFY_APPLY: { VERIFY_APPLY: {
type: 'object', type: 'object',
'x-component': 'CardBox', 'x-component': 'FlagBox',
'x-component-props': { 'x-component-props': {
title: '单据审核', title: '单据审核',
}, },
......
...@@ -29,7 +29,7 @@ const schema = (groups: GroupItem[], validateId?: number): ISchema => { ...@@ -29,7 +29,7 @@ const schema = (groups: GroupItem[], validateId?: number): ISchema => {
(groups || []).forEach((item, index) => { (groups || []).forEach((item, index) => {
depositSchema.properties[`CARD_BOX_${index}`] = { depositSchema.properties[`CARD_BOX_${index}`] = {
type: 'object', type: 'object',
'x-component': 'CardBox', 'x-component': 'FlagBox',
'x-component-props': { 'x-component-props': {
title: item.groupName, title: item.groupName,
wrapProps: { wrapProps: {
...@@ -132,7 +132,7 @@ const schema = (groups: GroupItem[], validateId?: number): ISchema => { ...@@ -132,7 +132,7 @@ const schema = (groups: GroupItem[], validateId?: number): ISchema => {
properties: { properties: {
INCOMING_INFO: { INCOMING_INFO: {
type: 'object', type: 'object',
'x-component': 'CardBox', 'x-component': 'FlagBox',
'x-component-props': { 'x-component-props': {
title: '上传资质证明', title: '上传资质证明',
wrapProps: { 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