zy-react-library 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -263,8 +263,8 @@ const FormItemsRenderer = ({
|
|
|
263
263
|
{options.map((option, index) => {
|
|
264
264
|
// 列数
|
|
265
265
|
const itemSpan = option.render === FORM_ITEM_RENDER_ENUM.DIVIDER ? 24 : option.span ?? span;
|
|
266
|
-
const itemLabelCol = option.labelCol
|
|
267
|
-
const itemWrapperCol = option.wrapperCol
|
|
266
|
+
const itemLabelCol = option.labelCol ?? (itemSpan === 24 ? { span: labelCol.span / 2 } : labelCol);
|
|
267
|
+
const itemWrapperCol = option.wrapperCol ?? { span: 24 - itemLabelCol.span };
|
|
268
268
|
|
|
269
269
|
// 使用 style 控制显示/隐藏
|
|
270
270
|
const style = collapse && index >= 3 ? { display: "none" } : undefined;
|
package/components/Map/index.js
CHANGED
|
@@ -35,16 +35,14 @@ const Map = (props) => {
|
|
|
35
35
|
</Form.Item>
|
|
36
36
|
</Col>
|
|
37
37
|
<Col span={12}>
|
|
38
|
-
<
|
|
39
|
-
<
|
|
38
|
+
<Form.Item label="纬度" name={latitudeProps} style={{ flex: 1 }} rules={[{ required, message: "请选择纬度" }]}>
|
|
39
|
+
<div style={{ display: "flex", gap: 10 }}>
|
|
40
40
|
<Input disabled />
|
|
41
|
-
</Form.Item>
|
|
42
|
-
<Form.Item label=" " colon={false}>
|
|
43
41
|
<Button type="primary" onClick={() => setMapVisible(true)}>
|
|
44
42
|
点击定位
|
|
45
43
|
</Button>
|
|
46
|
-
</
|
|
47
|
-
</
|
|
44
|
+
</div>
|
|
45
|
+
</Form.Item>
|
|
48
46
|
</Col>
|
|
49
47
|
</Row>
|
|
50
48
|
<MapSelector
|