@antdv-next1/pro-field 1.0.0 → 1.0.2
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/ProPureField.js +1 -4
- package/dist/components/Cascader/index.d.ts +1 -1
- package/dist/components/Checkbox/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/Progress/index.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Segmented/index.d.ts +1 -1
- package/dist/components/Segmented/index.js +1 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/index.js +1 -1
- package/dist/components/TreeSelect/index.d.ts +1 -1
- package/dist/pro-field.esm.js +7588 -8599
- package/dist/pro-field.js +42 -42
- package/package.json +14 -13
- package/LICENSE +0 -21
package/dist/ProPureField.js
CHANGED
|
@@ -146,10 +146,7 @@ const ProPureField = /* @__PURE__ */ defineComponent((props, { attrs, expose })
|
|
|
146
146
|
type: Function,
|
|
147
147
|
required: false
|
|
148
148
|
},
|
|
149
|
-
fieldProps: {
|
|
150
|
-
type: Object,
|
|
151
|
-
required: false
|
|
152
|
-
},
|
|
149
|
+
fieldProps: { required: false },
|
|
153
150
|
light: {
|
|
154
151
|
type: Boolean,
|
|
155
152
|
required: false,
|
|
@@ -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, "text" | "fieldProps" | "light" | "label" | "id" | "variant" | "labelTrigger" | "lightLabel" | "plain"> & {}, _$vue.PublicProps>;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { FieldCascaderProps, FieldCascaderRef, FieldCascader as default };
|
|
@@ -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, "fieldProps" | "light" | "label" | "id" | "variant" | "labelTrigger" | "lightLabel" | "plain"> & {}, _$vue.PublicProps>;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { FieldCheckBoxProps, FieldCheckboxRef, FieldCheckbox 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, "placeholder" | "value" | "onChange" | "defaultValue"> & {
|
|
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, "placeholder" | "value" | "onChange" | "defaultValue"> & {
|
|
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<InputProps | ImageProps> & _$_antdv_next1_pro_provider0.ProRenderFieldPropsType<InputProps | ImageProps> & {
|
|
16
16
|
text: string;
|
|
17
17
|
width?: number;
|
|
18
18
|
placeholder?: string;
|
|
@@ -12,7 +12,7 @@ type FieldProgressProps = ProFieldFC<{
|
|
|
12
12
|
}, ProgressProps | InputNumberProps>;
|
|
13
13
|
declare const FieldProgress: _$vue.DefineSetupFnComponent<FieldProgressProps, {}, CustomSlotsType<{
|
|
14
14
|
default?: () => VueNode;
|
|
15
|
-
}>, _$_antdv_next1_pro_provider0.BaseProFieldFC<
|
|
15
|
+
}>, _$_antdv_next1_pro_provider0.BaseProFieldFC<ProgressProps | InputNumberProps> & _$_antdv_next1_pro_provider0.ProRenderFieldPropsType<ProgressProps | InputNumberProps> & {
|
|
16
16
|
text: number | string;
|
|
17
17
|
placeholder?: string;
|
|
18
18
|
} & {
|
|
@@ -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, "fieldProps" | "light" | "label" | "id" | "variant" | "labelTrigger" | "lightLabel" | "plain"> & {}, _$vue.PublicProps>;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { FieldRadioProps, FieldRadio as default };
|
|
@@ -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, "fieldProps" | "light" | "label" | "id" | "variant" | "labelTrigger" | "lightLabel" | "plain"> & {}, _$vue.PublicProps>;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { FieldSegmentedProps, FieldSegmented as default };
|
|
@@ -9,6 +9,7 @@ const FieldSegmented = /* @__PURE__ */ defineComponent((props, { expose }) => {
|
|
|
9
9
|
expose({ fetchData: (keyWord) => fetchData(keyWord) });
|
|
10
10
|
return () => {
|
|
11
11
|
const { mode, render, formItemRender, options: propsOptions, fieldProps, emptyText = "-", ...rest } = props;
|
|
12
|
+
console.log("FieldSegmented:props", props, options);
|
|
12
13
|
if (loading.value) return createVNode(Spin, { "size": "small" }, null);
|
|
13
14
|
if (mode === "read") {
|
|
14
15
|
const optionsValueEnum = options.value?.length ? options.value?.reduce((pre, cur) => {
|
|
@@ -31,6 +31,8 @@ declare function useFieldFetchData(props: Omit<FieldSelectProps, 'fieldProps'> &
|
|
|
31
31
|
proFieldKey?: Key;
|
|
32
32
|
defaultKeyWords?: string;
|
|
33
33
|
fieldProps?: any;
|
|
34
|
+
options?: any;
|
|
35
|
+
treeData?: any;
|
|
34
36
|
}): [Ref<boolean>, Ref<SelectOptionType | undefined>, (keyWord?: string) => void, () => void];
|
|
35
37
|
declare const FieldSelect: _$vue.DefineSetupFnComponent<{
|
|
36
38
|
text?: VueNode; /** 值的枚举,如果存在枚举,Search 中会生成 select */
|
|
@@ -69,7 +69,7 @@ function useFieldFetchData(props) {
|
|
|
69
69
|
return [];
|
|
70
70
|
}, { value: computed(() => {
|
|
71
71
|
if (!fieldProps) return void 0;
|
|
72
|
-
const data = fieldProps?.options || fieldProps?.treeData;
|
|
72
|
+
const data = props.options || props.treeData || fieldProps?.options || fieldProps?.treeData;
|
|
73
73
|
if (!data) return void 0;
|
|
74
74
|
const { children, label, value } = fieldProps?.fieldNames || {};
|
|
75
75
|
const traverseFieldKey = (_options, type) => {
|
|
@@ -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, "fieldProps" | "light" | "label" | "id" | "variant" | "labelTrigger" | "lightLabel" | "plain"> & {}, _$vue.PublicProps>;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { FieldTreeSelectProps, FieldTreeSelect as default };
|