@antdv-next1/pro-field 1.0.6 → 1.0.7
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/dist/ProField.js +17 -2
- package/dist/ProPureField.js +21 -3
- package/dist/components/Cascader/index.d.ts +1 -1
- package/dist/components/Cascader/index.js +4 -1
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Checkbox/index.js +4 -1
- package/dist/components/Code/index.js +1 -1
- package/dist/components/ColorPicker/index.d.ts +1 -1
- package/dist/components/DigitRange/index.d.ts +2 -2
- package/dist/components/Image/index.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.js +4 -1
- package/dist/components/Segmented/index.d.ts +1 -1
- package/dist/components/Segmented/index.js +4 -1
- package/dist/components/Select/index.js +16 -4
- package/dist/components/TreeSelect/index.d.ts +1 -1
- package/dist/components/TreeSelect/index.js +4 -1
- package/dist/pro-field.esm.js +976 -984
- package/dist/pro-field.js +3 -3
- package/package.json +9 -4
package/dist/ProField.js
CHANGED
|
@@ -301,7 +301,19 @@ const ProField = /* @__PURE__ */ defineComponent((props, { expose }) => {
|
|
|
301
301
|
}, {
|
|
302
302
|
props: {
|
|
303
303
|
valueType: { required: false },
|
|
304
|
-
text: {
|
|
304
|
+
text: {
|
|
305
|
+
type: [
|
|
306
|
+
Object,
|
|
307
|
+
Function,
|
|
308
|
+
String,
|
|
309
|
+
Number,
|
|
310
|
+
null,
|
|
311
|
+
Boolean,
|
|
312
|
+
Array
|
|
313
|
+
],
|
|
314
|
+
required: false,
|
|
315
|
+
default: void 0
|
|
316
|
+
},
|
|
305
317
|
placeholder: {
|
|
306
318
|
type: [String, Array],
|
|
307
319
|
required: false
|
|
@@ -367,7 +379,10 @@ const ProField = /* @__PURE__ */ defineComponent((props, { expose }) => {
|
|
|
367
379
|
type: String,
|
|
368
380
|
required: false
|
|
369
381
|
},
|
|
370
|
-
request: {
|
|
382
|
+
request: {
|
|
383
|
+
type: Function,
|
|
384
|
+
required: false
|
|
385
|
+
},
|
|
371
386
|
emptyText: {
|
|
372
387
|
type: [
|
|
373
388
|
Object,
|
package/dist/ProPureField.js
CHANGED
|
@@ -107,7 +107,19 @@ const ProPureField = /* @__PURE__ */ defineComponent((props, { attrs, expose })
|
|
|
107
107
|
}, {
|
|
108
108
|
props: {
|
|
109
109
|
valueType: { required: false },
|
|
110
|
-
text: {
|
|
110
|
+
text: {
|
|
111
|
+
type: [
|
|
112
|
+
Object,
|
|
113
|
+
Function,
|
|
114
|
+
String,
|
|
115
|
+
Number,
|
|
116
|
+
null,
|
|
117
|
+
Boolean,
|
|
118
|
+
Array
|
|
119
|
+
],
|
|
120
|
+
required: false,
|
|
121
|
+
default: void 0
|
|
122
|
+
},
|
|
111
123
|
placeholder: {
|
|
112
124
|
type: [String, Array],
|
|
113
125
|
required: false
|
|
@@ -134,7 +146,10 @@ const ProPureField = /* @__PURE__ */ defineComponent((props, { attrs, expose })
|
|
|
134
146
|
type: Function,
|
|
135
147
|
required: false
|
|
136
148
|
},
|
|
137
|
-
fieldProps: {
|
|
149
|
+
fieldProps: {
|
|
150
|
+
type: Object,
|
|
151
|
+
required: false
|
|
152
|
+
},
|
|
138
153
|
light: {
|
|
139
154
|
type: Boolean,
|
|
140
155
|
required: false,
|
|
@@ -173,7 +188,10 @@ const ProPureField = /* @__PURE__ */ defineComponent((props, { attrs, expose })
|
|
|
173
188
|
type: String,
|
|
174
189
|
required: false
|
|
175
190
|
},
|
|
176
|
-
request: {
|
|
191
|
+
request: {
|
|
192
|
+
type: Function,
|
|
193
|
+
required: false
|
|
194
|
+
},
|
|
177
195
|
emptyText: {
|
|
178
196
|
type: [
|
|
179
197
|
Object,
|
|
@@ -35,6 +35,6 @@ declare const FieldCascader: _$vue.DefineSetupFnComponent<FieldCascaderProps, {}
|
|
|
35
35
|
variant?: "outlined" | "borderless" | "filled";
|
|
36
36
|
} & {
|
|
37
37
|
id?: string;
|
|
38
|
-
} & Omit<FieldSelectProps, "
|
|
38
|
+
} & Omit<FieldSelectProps, "id" | "variant" | "text" | "fieldProps" | "light" | "label" | "lightLabel" | "labelTrigger" | "plain"> & {}, _$vue.PublicProps>;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { FieldCascaderProps, FieldCascaderRef, FieldCascader as default };
|
|
@@ -184,7 +184,10 @@ const FieldCascader = /* @__PURE__ */ defineComponent((props, { expose }) => {
|
|
|
184
184
|
type: Number,
|
|
185
185
|
required: false
|
|
186
186
|
},
|
|
187
|
-
request: {
|
|
187
|
+
request: {
|
|
188
|
+
type: Function,
|
|
189
|
+
required: false
|
|
190
|
+
},
|
|
188
191
|
params: { required: false },
|
|
189
192
|
defaultKeyWords: {
|
|
190
193
|
type: String,
|
|
@@ -32,6 +32,6 @@ declare const FieldCheckbox: _$vue.DefineSetupFnComponent<FieldCheckBoxProps, {}
|
|
|
32
32
|
options?: CheckboxGroupProps["options"];
|
|
33
33
|
} & {
|
|
34
34
|
id?: string;
|
|
35
|
-
} & Omit<FieldSelectProps, "
|
|
35
|
+
} & Omit<FieldSelectProps, "id" | "variant" | "fieldProps" | "light" | "label" | "lightLabel" | "labelTrigger" | "plain"> & {}, _$vue.PublicProps>;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { FieldCheckBoxProps, FieldCheckboxRef, FieldCheckbox as default };
|
|
@@ -131,7 +131,10 @@ const FieldCheckbox = /* @__PURE__ */ defineComponent((props, { expose, attrs })
|
|
|
131
131
|
type: Number,
|
|
132
132
|
required: false
|
|
133
133
|
},
|
|
134
|
-
request: {
|
|
134
|
+
request: {
|
|
135
|
+
type: Function,
|
|
136
|
+
required: false
|
|
137
|
+
},
|
|
135
138
|
params: { required: false },
|
|
136
139
|
defaultKeyWords: {
|
|
137
140
|
type: String,
|
|
@@ -37,7 +37,7 @@ const FieldCode = /* @__PURE__ */ defineComponent((props) => {
|
|
|
37
37
|
}
|
|
38
38
|
if (mode === "edit" || mode === "update") {
|
|
39
39
|
fieldProps.value = code;
|
|
40
|
-
|
|
40
|
+
const dom = createVNode(TextArea, mergeProps({ "rows": 5 }, fieldProps), null);
|
|
41
41
|
if (formItemRender) return createVNode(Fragment, null, [formItemRender(code, {
|
|
42
42
|
mode,
|
|
43
43
|
fieldProps,
|
|
@@ -17,6 +17,6 @@ declare const FieldColorPicker: _$vue.DefineSetupFnComponent<FieldColorPickerPro
|
|
|
17
17
|
mode?: "read" | "edit" | "update";
|
|
18
18
|
} & {
|
|
19
19
|
id?: string;
|
|
20
|
-
} & Partial<Omit<_$antdv_next_dist_color_picker_ColorPicker0.InternalColorPickerProps, "
|
|
20
|
+
} & Partial<Omit<_$antdv_next_dist_color_picker_ColorPicker0.InternalColorPickerProps, "value" | "mode">> & {}, _$vue.PublicProps>;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FieldColorPickerProps, FieldColorPicker as default };
|
|
@@ -22,14 +22,14 @@ type FieldDigitRangeProps = ProFieldFC<{
|
|
|
22
22
|
}>;
|
|
23
23
|
declare const FieldDigitRange: _$vue.DefineSetupFnComponent<FieldDigitRangeProps, {}, CustomSlotsType<{
|
|
24
24
|
default?: () => VueNode;
|
|
25
|
-
}>, _$_antdv_next1_pro_provider0.BaseProFieldFC<Omit<InputNumberProps, "
|
|
25
|
+
}>, _$_antdv_next1_pro_provider0.BaseProFieldFC<Omit<InputNumberProps, "defaultValue" | "value" | "onChange" | "placeholder"> & {
|
|
26
26
|
id?: string;
|
|
27
27
|
placeholder?: string[];
|
|
28
28
|
value?: ValuePair;
|
|
29
29
|
onChange?: (value?: ValuePair) => void;
|
|
30
30
|
defaultValue?: ValuePair;
|
|
31
31
|
intlProps?: Intl.NumberFormatOptions;
|
|
32
|
-
}> & _$_antdv_next1_pro_provider0.ProRenderFieldPropsType<Omit<InputNumberProps, "
|
|
32
|
+
}> & _$_antdv_next1_pro_provider0.ProRenderFieldPropsType<Omit<InputNumberProps, "defaultValue" | "value" | "onChange" | "placeholder"> & {
|
|
33
33
|
id?: string;
|
|
34
34
|
placeholder?: string[];
|
|
35
35
|
value?: ValuePair;
|
|
@@ -12,7 +12,7 @@ type FieldImageProps = ProFieldFC<{
|
|
|
12
12
|
}, ImageProps | InputProps>;
|
|
13
13
|
declare const FieldImage: _$vue.DefineSetupFnComponent<FieldImageProps, {}, CustomSlotsType<{
|
|
14
14
|
default?: () => VueNode;
|
|
15
|
-
}>, _$_antdv_next1_pro_provider0.BaseProFieldFC<
|
|
15
|
+
}>, _$_antdv_next1_pro_provider0.BaseProFieldFC<ImageProps | InputProps> & _$_antdv_next1_pro_provider0.ProRenderFieldPropsType<ImageProps | InputProps> & {
|
|
16
16
|
text: string;
|
|
17
17
|
width?: number;
|
|
18
18
|
placeholder?: string;
|
|
@@ -31,6 +31,6 @@ declare const FieldRadio: _$vue.DefineSetupFnComponent<FieldRadioProps, {}, Cust
|
|
|
31
31
|
radioType?: RadioGroupProps["optionType"];
|
|
32
32
|
} & {
|
|
33
33
|
id?: string;
|
|
34
|
-
} & Omit<FieldSelectProps, "
|
|
34
|
+
} & Omit<FieldSelectProps, "id" | "variant" | "fieldProps" | "light" | "label" | "lightLabel" | "labelTrigger" | "plain"> & {}, _$vue.PublicProps>;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { FieldRadioProps, FieldRadio as default };
|
|
@@ -121,7 +121,10 @@ const FieldRadio = /* @__PURE__ */ defineComponent((props, { expose, attrs }) =>
|
|
|
121
121
|
type: Number,
|
|
122
122
|
required: false
|
|
123
123
|
},
|
|
124
|
-
request: {
|
|
124
|
+
request: {
|
|
125
|
+
type: Function,
|
|
126
|
+
required: false
|
|
127
|
+
},
|
|
125
128
|
params: { required: false },
|
|
126
129
|
defaultKeyWords: {
|
|
127
130
|
type: String,
|
|
@@ -31,6 +31,6 @@ declare const FieldSegmented: _$vue.DefineSetupFnComponent<FieldSegmentedProps,
|
|
|
31
31
|
emptyText?: VueNode$1;
|
|
32
32
|
} & {
|
|
33
33
|
id?: string;
|
|
34
|
-
} & Omit<FieldSelectProps, "
|
|
34
|
+
} & Omit<FieldSelectProps, "id" | "variant" | "fieldProps" | "light" | "label" | "lightLabel" | "labelTrigger" | "plain"> & {}, _$vue.PublicProps>;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { FieldSegmentedProps, FieldSegmented as default };
|
|
@@ -121,7 +121,10 @@ const FieldSegmented = /* @__PURE__ */ defineComponent((props, { expose }) => {
|
|
|
121
121
|
type: Number,
|
|
122
122
|
required: false
|
|
123
123
|
},
|
|
124
|
-
request: {
|
|
124
|
+
request: {
|
|
125
|
+
type: Function,
|
|
126
|
+
required: false
|
|
127
|
+
},
|
|
125
128
|
params: { required: false },
|
|
126
129
|
defaultKeyWords: {
|
|
127
130
|
type: String,
|
|
@@ -265,18 +265,30 @@ const FieldSelect = /* @__PURE__ */ defineComponent((props, { attrs, expose }) =
|
|
|
265
265
|
}, {
|
|
266
266
|
props: {
|
|
267
267
|
text: {
|
|
268
|
-
type:
|
|
269
|
-
|
|
268
|
+
type: [
|
|
269
|
+
Object,
|
|
270
|
+
Function,
|
|
271
|
+
String,
|
|
272
|
+
Number,
|
|
273
|
+
null,
|
|
274
|
+
Boolean,
|
|
275
|
+
Array
|
|
276
|
+
],
|
|
277
|
+
required: false,
|
|
278
|
+
default: void 0
|
|
270
279
|
},
|
|
271
280
|
valueEnum: {
|
|
272
|
-
type:
|
|
281
|
+
type: [Map, Object],
|
|
273
282
|
required: false
|
|
274
283
|
},
|
|
275
284
|
debounceTime: {
|
|
276
285
|
type: Number,
|
|
277
286
|
required: false
|
|
278
287
|
},
|
|
279
|
-
request: {
|
|
288
|
+
request: {
|
|
289
|
+
type: Function,
|
|
290
|
+
required: false
|
|
291
|
+
},
|
|
280
292
|
params: { required: false },
|
|
281
293
|
fieldProps: {
|
|
282
294
|
type: Object,
|
|
@@ -40,6 +40,6 @@ declare const FieldTreeSelect: _$vue.DefineSetupFnComponent<FieldTreeSelectProps
|
|
|
40
40
|
fetchDataOnSearch?: boolean;
|
|
41
41
|
} & {
|
|
42
42
|
id?: string;
|
|
43
|
-
} & TreeSelectProps<any, _$_v_c_tree_select0.DataNode> & Omit<FieldSelectProps, "
|
|
43
|
+
} & TreeSelectProps<any, _$_v_c_tree_select0.DataNode> & Omit<FieldSelectProps, "id" | "variant" | "fieldProps" | "light" | "label" | "lightLabel" | "labelTrigger" | "plain"> & {}, _$vue.PublicProps>;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { FieldTreeSelectProps, FieldTreeSelect as default };
|
|
@@ -745,7 +745,10 @@ const FieldTreeSelect = /* @__PURE__ */ defineComponent((props, { expose, attrs
|
|
|
745
745
|
type: Number,
|
|
746
746
|
required: false
|
|
747
747
|
},
|
|
748
|
-
request: {
|
|
748
|
+
request: {
|
|
749
|
+
type: Function,
|
|
750
|
+
required: false
|
|
751
|
+
},
|
|
749
752
|
params: { required: false },
|
|
750
753
|
defaultKeyWords: {
|
|
751
754
|
type: String,
|