form-driver 0.4.24 → 0.4.25

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "form-driver",
3
- "version": "0.4.24",
3
+ "version": "0.4.25",
4
4
  "description": "An efficient framework for creating forms.",
5
5
  "license": "MIT",
6
6
  "authors": [
@@ -63,7 +63,7 @@
63
63
  "@dnd-kit/utilities": "^3.2.2",
64
64
  "@babel/runtime": "^7.9.2",
65
65
  "ali-oss": "^6.17.1",
66
- "antd": "4.18.7",
66
+ "antd": "^4.18.7",
67
67
  "antd-mobile": "^5.37.1",
68
68
  "clsx": "^2.1.1",
69
69
  "lodash": "^4.17.20",
@@ -2,12 +2,13 @@
2
2
 
3
3
  import { Select } from "antd";
4
4
  import { Picker } from "antd-mobile";
5
+ import type { PickerColumnItem, PickerValue } from "antd-mobile/es/components/picker-view";
5
6
  import _ from "lodash";
6
7
  import React from "react";
7
8
  import { MUtil } from '../../framework/MUtil';
8
9
 
9
- interface PickerOption {
10
- label: string | React.ReactNode;
10
+ interface PickerOption extends PickerColumnItem {
11
+ label: React.ReactNode;
11
12
  value: string;
12
13
  }
13
14
 
@@ -1,6 +1,7 @@
1
+ import type { PickerColumnItem } from "antd-mobile/es/components/picker-view";
1
2
  import React from "react";
2
- interface PickerOption {
3
- label: string | React.ReactNode;
3
+ interface PickerOption extends PickerColumnItem {
4
+ label: React.ReactNode;
4
5
  value: string;
5
6
  }
6
7
  interface Prop {