Commit 3dc41d19 by zhaochengxiang

模型基本信息样式

parent ed90134d
...@@ -133,7 +133,6 @@ const AttributesSelect = ({ value = [], modelerData, onChange, mode = 'multiple' ...@@ -133,7 +133,6 @@ const AttributesSelect = ({ value = [], modelerData, onChange, mode = 'multiple'
onChange={(value) => { onAttributeChange && onAttributeChange(value) }} onChange={(value) => { onAttributeChange && onAttributeChange(value) }}
value={attributeIds} value={attributeIds}
placeholder='请选择字段名称' placeholder='请选择字段名称'
style={{ width: 300 }}
mode={mode} mode={mode}
allowClear={true} allowClear={true}
> >
...@@ -184,12 +183,12 @@ const PartitionSelect = ({ value = {}, modelerData, partitionTypes = [], onChang ...@@ -184,12 +183,12 @@ const PartitionSelect = ({ value = {}, modelerData, partitionTypes = [], onChang
}) })
return ( return (
<span> <Row gutter={10}>
<Col span={8}>
<Select <Select
onChange={onPartitionTypeChange} onChange={onPartitionTypeChange}
value={value?.partitionType?.name || ''} value={value?.partitionType?.name || ''}
placeholder='请选择分区类型' placeholder='请选择分区类型'
style={{ width: 95 }}
allowClear={true} allowClear={true}
> >
{ {
...@@ -200,23 +199,25 @@ const PartitionSelect = ({ value = {}, modelerData, partitionTypes = [], onChang ...@@ -200,23 +199,25 @@ const PartitionSelect = ({ value = {}, modelerData, partitionTypes = [], onChang
}) })
} }
</Select> </Select>
<Select </Col>
onChange={(value) => { onAttributeChange && onAttributeChange(value) }} <Col span={16}>
value={attributeIds} <Select
placeholder='请选择字段名称' onChange={(value) => { onAttributeChange && onAttributeChange(value) }}
style={{ width: 200, marginLeft: 5 }} value={attributeIds}
mode='multiple' placeholder='请选择字段名称'
allowClear={true} mode='multiple'
> allowClear={true}
{ >
(modelerData?.easyDataModelerDataModelAttributes||[]).map((attribute, index) => { {
return ( (modelerData?.easyDataModelerDataModelAttributes||[]).map((attribute, index) => {
<Option key={index} value={attribute.iid||''}>{attribute.name||''}</Option> return (
); <Option key={index} value={attribute.iid||''}>{attribute.name||''}</Option>
}) );
} })
</Select> }
</span> </Select>
</Col>
</Row>
); );
} }
...@@ -245,7 +246,6 @@ const LoadSelect = ({ value = '', onChange, ...restProps }) => { ...@@ -245,7 +246,6 @@ const LoadSelect = ({ value = '', onChange, ...restProps }) => {
return ( return (
<Select <Select
mode="tags" mode="tags"
style={{ width: 300 }}
tokenSeparators={['/', ' ']} tokenSeparators={['/', ' ']}
onChange={(value) => { onLoadChange && onLoadChange(value) }} onChange={(value) => { onLoadChange && onLoadChange(value) }}
value={loadNames} value={loadNames}
...@@ -287,7 +287,6 @@ const UpdateSelect = ({ value = '', onChange, ...restProps }) => { ...@@ -287,7 +287,6 @@ const UpdateSelect = ({ value = '', onChange, ...restProps }) => {
return ( return (
<Select <Select
mode="tags" mode="tags"
style={{ width: 300 }}
tokenSeparators={['/', ' ']} tokenSeparators={['/', ' ']}
onChange={(value) => { onUpdateChange && onUpdateChange(value) }} onChange={(value) => { onUpdateChange && onUpdateChange(value) }}
value={updateNames} value={updateNames}
...@@ -531,7 +530,6 @@ const ImportActionHeader = (props) => { ...@@ -531,7 +530,6 @@ const ImportActionHeader = (props) => {
<ConstraintSelect <ConstraintSelect
constraints={constraints} constraints={constraints}
onChange={onConstraintChange} onChange={onConstraintChange}
style={{ width: 200 }}
/> />
</Form.Item> </Form.Item>
</Col> </Col>
...@@ -556,7 +554,6 @@ const ImportActionHeader = (props) => { ...@@ -556,7 +554,6 @@ const ImportActionHeader = (props) => {
<TemplateSelect <TemplateSelect
templates={templates} templates={templates}
onChange={onTemplateChange} onChange={onTemplateChange}
style={{ width: 200 }}
/> />
</Form.Item> </Form.Item>
</Col> </Col>
......
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