Compare commits
2 Commits
55090af1c6
...
f13fb9ec86
| Author | SHA1 | Date |
|---|---|---|
|
|
f13fb9ec86 | |
|
|
51787a3559 |
|
|
@ -9,7 +9,7 @@ import type { FORM_ITEM_RENDER_ENUM } from "../../enum/formItemRender";
|
||||||
*/
|
*/
|
||||||
export type FormItemRenderType
|
export type FormItemRenderType
|
||||||
= | (typeof FORM_ITEM_RENDER_ENUM)[keyof typeof FORM_ITEM_RENDER_ENUM]
|
= | (typeof FORM_ITEM_RENDER_ENUM)[keyof typeof FORM_ITEM_RENDER_ENUM]
|
||||||
| ((props: { formValues: FormValues; [key: string]: any }) => ReactNode);
|
| ((props: { formValues: FormValues; value: any; onChange: (value: any) => void; [key: string]: any }) => ReactNode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 选项项数据类型
|
* 选项项数据类型
|
||||||
|
|
|
||||||
|
|
@ -33,14 +33,16 @@ const Map = (props) => {
|
||||||
<>
|
<>
|
||||||
<Row gutter={24}>
|
<Row gutter={24}>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Form.Item label="经度" name={longitudeProps} style={{ flex: 1 }} rules={[{ required, message: "请选择经度" }]}>
|
<Form.Item label="经度" name={longitudeProps} rules={[{ required, message: "请选择经度" }]}>
|
||||||
<Input disabled />
|
<Input disabled />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Form.Item label="纬度" name={latitudeProps} style={{ flex: 1 }} rules={[{ required, message: "请选择纬度" }]}>
|
<Form.Item label="纬度" required={required} rules={[{ required, message: "请选择纬度" }]}>
|
||||||
<div style={{ display: "flex", gap: 10 }}>
|
<div style={{ display: "flex", gap: 10 }}>
|
||||||
|
<Form.Item name={latitudeProps} noStyle rules={[{ required, message: "请选择纬度" }]}>
|
||||||
<Input disabled />
|
<Input disabled />
|
||||||
|
</Form.Item>
|
||||||
<Button type="primary" onClick={() => setMapVisible(true)}>
|
<Button type="primary" onClick={() => setMapVisible(true)}>
|
||||||
点击定位
|
点击定位
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "zy-react-library",
|
"name": "zy-react-library",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.0.22",
|
"version": "1.0.23",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "",
|
"description": "",
|
||||||
"author": "LiuJiaNan",
|
"author": "LiuJiaNan",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue