|
@@ -180,7 +180,7 @@ export default class Edit extends React.PureComponent {
|
|
|
// console.log(_tar,value);
|
|
|
_ele[index] = {
|
|
|
..._tar ,
|
|
|
- ...value
|
|
|
+ ...value,
|
|
|
}
|
|
|
this.setState({ element: _ele })
|
|
|
}
|
|
@@ -611,7 +611,7 @@ export default class Edit extends React.PureComponent {
|
|
|
unCheckedChildren="关"
|
|
|
/>
|
|
|
</Form.Item>
|
|
|
- <Form.Item label="相对位置" style={{ flex: 1 }}>
|
|
|
+ <Form.Item label="浮动位置" style={{ flex: 1 }}>
|
|
|
<Switch
|
|
|
checked={activeObject.relative}
|
|
|
onChange={(checked) => this.updateElement(activeObjectIndex, { relative: checked })}
|
|
@@ -776,7 +776,7 @@ export default class Edit extends React.PureComponent {
|
|
|
unCheckedChildren="关"
|
|
|
/>
|
|
|
</Form.Item>
|
|
|
- <Form.Item label="相对位置" style={{ flex: 1 }}>
|
|
|
+ <Form.Item label="浮动位置" style={{ flex: 1 }}>
|
|
|
<Switch
|
|
|
checked={activeObject.relative}
|
|
|
onChange={(checked) => this.updateElement(activeObjectIndex, { relative: checked })}
|
|
@@ -784,6 +784,14 @@ export default class Edit extends React.PureComponent {
|
|
|
unCheckedChildren="关"
|
|
|
/>
|
|
|
</Form.Item>
|
|
|
+ {activeObject.type === 'pic' && <Form.Item label="使用原图" style={{ flex: 1 }}>
|
|
|
+ <Switch
|
|
|
+ checked={activeObject.original}
|
|
|
+ onChange={(checked) => this.updateElement(activeObjectIndex, { original: checked })}
|
|
|
+ checkedChildren="开"
|
|
|
+ unCheckedChildren="关"
|
|
|
+ />
|
|
|
+ </Form.Item>}
|
|
|
</div>
|
|
|
<Form.Item label="分组" style={{ flex: 1 }}>
|
|
|
<InputNumber
|