zy-react-library 1.0.25 → 1.0.26

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.
@@ -11,9 +11,9 @@ export interface CustomRenderProps {
11
11
  /** 表单当前值 */
12
12
  formValues: FormValues;
13
13
  /** 字段值 */
14
- value: any;
14
+ value?: any;
15
15
  /** 值变化回调 */
16
- onChange: (value: any) => void;
16
+ onChange?: (value: any) => void;
17
17
  /** 其他属性 */
18
18
  [key: string]: any;
19
19
  }
@@ -75,7 +75,7 @@ const ImportFile = (props) => {
75
75
  >
76
76
  {children && typeof children === "function" ? children({ form }) : children}
77
77
  <Form.Item label="附件" name="file" rules={[{ required: true, message: "附件不能为空" }]}>
78
- <Upload accept=".xls,.xlsx" />
78
+ <Upload accept=".xls,.xlsx" listType="text" />
79
79
  </Form.Item>
80
80
  </Form>
81
81
  </Modal>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.25",
4
+ "version": "1.0.26",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",