yc-pro-components 0.0.12 → 0.0.13
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/es/components/dialog-form/index.d.ts +14 -2
- package/es/components/dialog-form/src/index.vue.d.ts +14 -2
- package/es/components/display-item/index.d.ts +42 -6
- package/es/components/display-item/src/index.vue.d.ts +42 -6
- package/es/components/drawer-form/index.d.ts +14 -2
- package/es/components/drawer-form/src/index.vue.d.ts +14 -2
- package/es/components/form/index.d.ts +28 -4
- package/es/components/form/src/form-content.vue.d.ts +42 -6
- package/es/components/form/src/index.vue.d.ts +28 -4
- package/es/components/form-item/index.d.ts +88 -16
- package/es/components/form-item/src/index.vue.d.ts +35 -4
- package/es/components/form-item/src/index.vue2.mjs +1 -0
- package/es/components/page/index.d.ts +224 -32
- package/es/components/page/src/index.vue.d.ts +84 -12
- package/es/components/page/src/index.vue2.mjs +1 -1
- package/es/components/render/index.d.ts +3 -3
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +98 -14
- package/es/components/search/src/index.vue.d.ts +42 -6
- package/es/components/table/src/table-action-bar.vue2.mjs +1 -1
- package/es/components/table/src/table-column.vue.d.ts +42 -6
- package/es/components/yc-plus-page/src/index.vue.d.ts +154 -22
- package/es/constants/dict.d.ts +78 -0
- package/es/constants/dict.mjs +3 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +1 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useDictInjection.d.ts +38 -0
- package/es/hooks/useDictInjection.mjs +18 -0
- package/es/hooks/useGetOptions.mjs +118 -30
- package/es/hooks/usePlusFormReset.d.ts +84 -12
- package/es/index.d.ts +1 -1
- package/es/index.mjs +2 -0
- package/es/types/plus.d.ts +74 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/index.d.ts +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.js +165 -59
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +165 -61
- package/lib/components/dialog-form/index.d.ts +14 -2
- package/lib/components/dialog-form/src/index.vue.d.ts +14 -2
- package/lib/components/display-item/index.d.ts +42 -6
- package/lib/components/display-item/src/index.vue.d.ts +42 -6
- package/lib/components/drawer-form/index.d.ts +14 -2
- package/lib/components/drawer-form/src/index.vue.d.ts +14 -2
- package/lib/components/form/index.d.ts +28 -4
- package/lib/components/form/src/form-content.vue.d.ts +42 -6
- package/lib/components/form/src/index.vue.d.ts +28 -4
- package/lib/components/form-item/index.d.ts +88 -16
- package/lib/components/form-item/src/index.vue.d.ts +35 -4
- package/lib/components/form-item/src/index.vue2.js +1 -0
- package/lib/components/page/index.d.ts +224 -32
- package/lib/components/page/src/index.vue.d.ts +84 -12
- package/lib/components/page/src/index.vue2.js +1 -1
- package/lib/components/render/index.d.ts +3 -3
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +98 -14
- package/lib/components/search/src/index.vue.d.ts +42 -6
- package/lib/components/table/src/table-action-bar.vue2.js +1 -1
- package/lib/components/table/src/table-column.vue.d.ts +42 -6
- package/lib/components/yc-plus-page/src/index.vue.d.ts +154 -22
- package/lib/constants/dict.d.ts +78 -0
- package/lib/constants/dict.js +5 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +2 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/useDictInjection.d.ts +38 -0
- package/lib/hooks/useDictInjection.js +20 -0
- package/lib/hooks/useGetOptions.js +117 -29
- package/lib/hooks/usePlusFormReset.d.ts +84 -12
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4 -0
- package/lib/types/plus.d.ts +74 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/index.d.ts +1 -1
- package/lib/yc-components/version.d.ts +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
|
@@ -1680,7 +1680,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1680
1680
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
1681
1681
|
columns?: PlusColumn[] | undefined;
|
|
1682
1682
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
1683
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
1683
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
1684
1684
|
readonly label: string | ComputedRef<string>;
|
|
1685
1685
|
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1686
1686
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -1709,7 +1709,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1709
1709
|
};
|
|
1710
1710
|
rows: number;
|
|
1711
1711
|
autocomplete: string;
|
|
1712
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
1712
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1713
1713
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1714
1714
|
step: string | number;
|
|
1715
1715
|
format: string | ProgressFn | undefined;
|
|
@@ -1736,6 +1736,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1736
1736
|
label?: string | undefined;
|
|
1737
1737
|
value?: string | undefined;
|
|
1738
1738
|
} | undefined;
|
|
1739
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1740
|
+
store?: any;
|
|
1741
|
+
method?: string | undefined;
|
|
1742
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1743
|
+
dictCode?: string | undefined;
|
|
1744
|
+
} | undefined;
|
|
1739
1745
|
readonly clearable: boolean;
|
|
1740
1746
|
readonly index: number;
|
|
1741
1747
|
} & {
|
|
@@ -1773,10 +1779,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1773
1779
|
label?: string | undefined;
|
|
1774
1780
|
value?: string | undefined;
|
|
1775
1781
|
} | undefined;
|
|
1782
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1783
|
+
store?: any;
|
|
1784
|
+
method?: string | undefined;
|
|
1785
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1786
|
+
dictCode?: string | undefined;
|
|
1787
|
+
} | undefined;
|
|
1776
1788
|
clearable: boolean;
|
|
1777
1789
|
index: number;
|
|
1778
1790
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
1779
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
1791
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
1780
1792
|
readonly label: string | ComputedRef<string>;
|
|
1781
1793
|
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
1782
1794
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -1805,7 +1817,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1805
1817
|
};
|
|
1806
1818
|
rows: number;
|
|
1807
1819
|
autocomplete: string;
|
|
1808
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
1820
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
1809
1821
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
1810
1822
|
step: string | number;
|
|
1811
1823
|
format: string | ProgressFn | undefined;
|
|
@@ -1832,6 +1844,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1832
1844
|
label?: string | undefined;
|
|
1833
1845
|
value?: string | undefined;
|
|
1834
1846
|
} | undefined;
|
|
1847
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1848
|
+
store?: any;
|
|
1849
|
+
method?: string | undefined;
|
|
1850
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1851
|
+
dictCode?: string | undefined;
|
|
1852
|
+
} | undefined;
|
|
1835
1853
|
readonly clearable: boolean;
|
|
1836
1854
|
readonly index: number;
|
|
1837
1855
|
} & {
|
|
@@ -1869,6 +1887,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1869
1887
|
label?: string | undefined;
|
|
1870
1888
|
value?: string | undefined;
|
|
1871
1889
|
} | undefined;
|
|
1890
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
1891
|
+
store?: any;
|
|
1892
|
+
method?: string | undefined;
|
|
1893
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
1894
|
+
dictCode?: string | undefined;
|
|
1895
|
+
} | undefined;
|
|
1872
1896
|
clearable: boolean;
|
|
1873
1897
|
index: number;
|
|
1874
1898
|
}) => any>> & {
|
|
@@ -3102,7 +3126,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3102
3126
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
3103
3127
|
columns?: PlusColumn[] | undefined;
|
|
3104
3128
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
3105
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
3129
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
3106
3130
|
readonly label: string | ComputedRef<string>;
|
|
3107
3131
|
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
3108
3132
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -3131,7 +3155,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3131
3155
|
};
|
|
3132
3156
|
rows: number;
|
|
3133
3157
|
autocomplete: string;
|
|
3134
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
3158
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
3135
3159
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
3136
3160
|
step: string | number;
|
|
3137
3161
|
format: string | ProgressFn | undefined;
|
|
@@ -3158,6 +3182,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3158
3182
|
label?: string | undefined;
|
|
3159
3183
|
value?: string | undefined;
|
|
3160
3184
|
} | undefined;
|
|
3185
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
3186
|
+
store?: any;
|
|
3187
|
+
method?: string | undefined;
|
|
3188
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
3189
|
+
dictCode?: string | undefined;
|
|
3190
|
+
} | undefined;
|
|
3161
3191
|
readonly clearable: boolean;
|
|
3162
3192
|
readonly index: number;
|
|
3163
3193
|
} & {
|
|
@@ -3195,10 +3225,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3195
3225
|
label?: string | undefined;
|
|
3196
3226
|
value?: string | undefined;
|
|
3197
3227
|
} | undefined;
|
|
3228
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
3229
|
+
store?: any;
|
|
3230
|
+
method?: string | undefined;
|
|
3231
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
3232
|
+
dictCode?: string | undefined;
|
|
3233
|
+
} | undefined;
|
|
3198
3234
|
clearable: boolean;
|
|
3199
3235
|
index: number;
|
|
3200
3236
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
3201
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
3237
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
3202
3238
|
readonly label: string | ComputedRef<string>;
|
|
3203
3239
|
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
3204
3240
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -3227,7 +3263,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3227
3263
|
};
|
|
3228
3264
|
rows: number;
|
|
3229
3265
|
autocomplete: string;
|
|
3230
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
3266
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
3231
3267
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
3232
3268
|
step: string | number;
|
|
3233
3269
|
format: string | ProgressFn | undefined;
|
|
@@ -3254,6 +3290,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3254
3290
|
label?: string | undefined;
|
|
3255
3291
|
value?: string | undefined;
|
|
3256
3292
|
} | undefined;
|
|
3293
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
3294
|
+
store?: any;
|
|
3295
|
+
method?: string | undefined;
|
|
3296
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
3297
|
+
dictCode?: string | undefined;
|
|
3298
|
+
} | undefined;
|
|
3257
3299
|
readonly clearable: boolean;
|
|
3258
3300
|
readonly index: number;
|
|
3259
3301
|
} & {
|
|
@@ -3291,6 +3333,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3291
3333
|
label?: string | undefined;
|
|
3292
3334
|
value?: string | undefined;
|
|
3293
3335
|
} | undefined;
|
|
3336
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
3337
|
+
store?: any;
|
|
3338
|
+
method?: string | undefined;
|
|
3339
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
3340
|
+
dictCode?: string | undefined;
|
|
3341
|
+
} | undefined;
|
|
3294
3342
|
clearable: boolean;
|
|
3295
3343
|
index: number;
|
|
3296
3344
|
}) => any>> & {
|
|
@@ -3312,7 +3360,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3312
3360
|
handleUnfold: (e: MouseEvent) => void;
|
|
3313
3361
|
}> & {} & ComponentCustomProperties & {} & {
|
|
3314
3362
|
$slots: Partial<Record<NonNullable<string | number>, (_: {
|
|
3315
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
3363
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
3316
3364
|
readonly label: string | ComputedRef<string>;
|
|
3317
3365
|
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
3318
3366
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -3341,7 +3389,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3341
3389
|
};
|
|
3342
3390
|
rows: number;
|
|
3343
3391
|
autocomplete: string;
|
|
3344
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
3392
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
3345
3393
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
3346
3394
|
step: string | number;
|
|
3347
3395
|
format: string | ProgressFn | undefined;
|
|
@@ -3368,6 +3416,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3368
3416
|
label?: string | undefined;
|
|
3369
3417
|
value?: string | undefined;
|
|
3370
3418
|
} | undefined;
|
|
3419
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
3420
|
+
store?: any;
|
|
3421
|
+
method?: string | undefined;
|
|
3422
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
3423
|
+
dictCode?: string | undefined;
|
|
3424
|
+
} | undefined;
|
|
3371
3425
|
readonly clearable: boolean;
|
|
3372
3426
|
readonly index: number;
|
|
3373
3427
|
} & {
|
|
@@ -3405,6 +3459,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3405
3459
|
label?: string | undefined;
|
|
3406
3460
|
value?: string | undefined;
|
|
3407
3461
|
} | undefined;
|
|
3462
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
3463
|
+
store?: any;
|
|
3464
|
+
method?: string | undefined;
|
|
3465
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
3466
|
+
dictCode?: string | undefined;
|
|
3467
|
+
} | undefined;
|
|
3408
3468
|
clearable: boolean;
|
|
3409
3469
|
index: number;
|
|
3410
3470
|
}) => any>> & {
|
|
@@ -6684,7 +6744,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6684
6744
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
6685
6745
|
columns?: PlusColumn[] | undefined;
|
|
6686
6746
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
6687
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
6747
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
6688
6748
|
readonly label: string | ComputedRef<string>;
|
|
6689
6749
|
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
6690
6750
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -6713,7 +6773,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6713
6773
|
};
|
|
6714
6774
|
rows: number;
|
|
6715
6775
|
autocomplete: string;
|
|
6716
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
6776
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
6717
6777
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
6718
6778
|
step: string | number;
|
|
6719
6779
|
format: string | ProgressFn | undefined;
|
|
@@ -6740,6 +6800,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6740
6800
|
label?: string | undefined;
|
|
6741
6801
|
value?: string | undefined;
|
|
6742
6802
|
} | undefined;
|
|
6803
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
6804
|
+
store?: any;
|
|
6805
|
+
method?: string | undefined;
|
|
6806
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
6807
|
+
dictCode?: string | undefined;
|
|
6808
|
+
} | undefined;
|
|
6743
6809
|
readonly clearable: boolean;
|
|
6744
6810
|
readonly index: number;
|
|
6745
6811
|
} & {
|
|
@@ -6777,10 +6843,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6777
6843
|
label?: string | undefined;
|
|
6778
6844
|
value?: string | undefined;
|
|
6779
6845
|
} | undefined;
|
|
6846
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
6847
|
+
store?: any;
|
|
6848
|
+
method?: string | undefined;
|
|
6849
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
6850
|
+
dictCode?: string | undefined;
|
|
6851
|
+
} | undefined;
|
|
6780
6852
|
clearable: boolean;
|
|
6781
6853
|
index: number;
|
|
6782
6854
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
6783
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
6855
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
6784
6856
|
readonly label: string | ComputedRef<string>;
|
|
6785
6857
|
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
6786
6858
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -6809,7 +6881,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6809
6881
|
};
|
|
6810
6882
|
rows: number;
|
|
6811
6883
|
autocomplete: string;
|
|
6812
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
6884
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
6813
6885
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
6814
6886
|
step: string | number;
|
|
6815
6887
|
format: string | ProgressFn | undefined;
|
|
@@ -6836,6 +6908,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6836
6908
|
label?: string | undefined;
|
|
6837
6909
|
value?: string | undefined;
|
|
6838
6910
|
} | undefined;
|
|
6911
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
6912
|
+
store?: any;
|
|
6913
|
+
method?: string | undefined;
|
|
6914
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
6915
|
+
dictCode?: string | undefined;
|
|
6916
|
+
} | undefined;
|
|
6839
6917
|
readonly clearable: boolean;
|
|
6840
6918
|
readonly index: number;
|
|
6841
6919
|
} & {
|
|
@@ -6873,6 +6951,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6873
6951
|
label?: string | undefined;
|
|
6874
6952
|
value?: string | undefined;
|
|
6875
6953
|
} | undefined;
|
|
6954
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
6955
|
+
store?: any;
|
|
6956
|
+
method?: string | undefined;
|
|
6957
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
6958
|
+
dictCode?: string | undefined;
|
|
6959
|
+
} | undefined;
|
|
6876
6960
|
clearable: boolean;
|
|
6877
6961
|
index: number;
|
|
6878
6962
|
}) => any>> & {
|
|
@@ -8106,7 +8190,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8106
8190
|
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
8107
8191
|
columns?: PlusColumn[] | undefined;
|
|
8108
8192
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
8109
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
8193
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
8110
8194
|
readonly label: string | ComputedRef<string>;
|
|
8111
8195
|
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
8112
8196
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -8135,7 +8219,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8135
8219
|
};
|
|
8136
8220
|
rows: number;
|
|
8137
8221
|
autocomplete: string;
|
|
8138
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
8222
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
8139
8223
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
8140
8224
|
step: string | number;
|
|
8141
8225
|
format: string | ProgressFn | undefined;
|
|
@@ -8162,6 +8246,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8162
8246
|
label?: string | undefined;
|
|
8163
8247
|
value?: string | undefined;
|
|
8164
8248
|
} | undefined;
|
|
8249
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
8250
|
+
store?: any;
|
|
8251
|
+
method?: string | undefined;
|
|
8252
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
8253
|
+
dictCode?: string | undefined;
|
|
8254
|
+
} | undefined;
|
|
8165
8255
|
readonly clearable: boolean;
|
|
8166
8256
|
readonly index: number;
|
|
8167
8257
|
} & {
|
|
@@ -8199,10 +8289,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8199
8289
|
label?: string | undefined;
|
|
8200
8290
|
value?: string | undefined;
|
|
8201
8291
|
} | undefined;
|
|
8292
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
8293
|
+
store?: any;
|
|
8294
|
+
method?: string | undefined;
|
|
8295
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
8296
|
+
dictCode?: string | undefined;
|
|
8297
|
+
} | undefined;
|
|
8202
8298
|
clearable: boolean;
|
|
8203
8299
|
index: number;
|
|
8204
8300
|
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
8205
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
8301
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
8206
8302
|
readonly label: string | ComputedRef<string>;
|
|
8207
8303
|
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
8208
8304
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -8231,7 +8327,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8231
8327
|
};
|
|
8232
8328
|
rows: number;
|
|
8233
8329
|
autocomplete: string;
|
|
8234
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
8330
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
8235
8331
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
8236
8332
|
step: string | number;
|
|
8237
8333
|
format: string | ProgressFn | undefined;
|
|
@@ -8258,6 +8354,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8258
8354
|
label?: string | undefined;
|
|
8259
8355
|
value?: string | undefined;
|
|
8260
8356
|
} | undefined;
|
|
8357
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
8358
|
+
store?: any;
|
|
8359
|
+
method?: string | undefined;
|
|
8360
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
8361
|
+
dictCode?: string | undefined;
|
|
8362
|
+
} | undefined;
|
|
8261
8363
|
readonly clearable: boolean;
|
|
8262
8364
|
readonly index: number;
|
|
8263
8365
|
} & {
|
|
@@ -8295,6 +8397,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8295
8397
|
label?: string | undefined;
|
|
8296
8398
|
value?: string | undefined;
|
|
8297
8399
|
} | undefined;
|
|
8400
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
8401
|
+
store?: any;
|
|
8402
|
+
method?: string | undefined;
|
|
8403
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
8404
|
+
dictCode?: string | undefined;
|
|
8405
|
+
} | undefined;
|
|
8298
8406
|
clearable: boolean;
|
|
8299
8407
|
index: number;
|
|
8300
8408
|
}) => any>> & {
|
|
@@ -8316,7 +8424,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8316
8424
|
handleUnfold: (e: MouseEvent) => void;
|
|
8317
8425
|
}> & {} & ComponentCustomProperties & {} & {
|
|
8318
8426
|
$slots: Partial<Record<NonNullable<string | number>, (_: {
|
|
8319
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
8427
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
8320
8428
|
readonly label: string | ComputedRef<string>;
|
|
8321
8429
|
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
8322
8430
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -8345,7 +8453,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8345
8453
|
};
|
|
8346
8454
|
rows: number;
|
|
8347
8455
|
autocomplete: string;
|
|
8348
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
8456
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
8349
8457
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
8350
8458
|
step: string | number;
|
|
8351
8459
|
format: string | ProgressFn | undefined;
|
|
@@ -8372,6 +8480,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8372
8480
|
label?: string | undefined;
|
|
8373
8481
|
value?: string | undefined;
|
|
8374
8482
|
} | undefined;
|
|
8483
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
8484
|
+
store?: any;
|
|
8485
|
+
method?: string | undefined;
|
|
8486
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
8487
|
+
dictCode?: string | undefined;
|
|
8488
|
+
} | undefined;
|
|
8375
8489
|
readonly clearable: boolean;
|
|
8376
8490
|
readonly index: number;
|
|
8377
8491
|
} & {
|
|
@@ -8409,6 +8523,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8409
8523
|
label?: string | undefined;
|
|
8410
8524
|
value?: string | undefined;
|
|
8411
8525
|
} | undefined;
|
|
8526
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
8527
|
+
store?: any;
|
|
8528
|
+
method?: string | undefined;
|
|
8529
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
8530
|
+
dictCode?: string | undefined;
|
|
8531
|
+
} | undefined;
|
|
8412
8532
|
clearable: boolean;
|
|
8413
8533
|
index: number;
|
|
8414
8534
|
}) => any>> & {
|
|
@@ -10193,7 +10313,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
10193
10313
|
setTableData: (data?: RecordType[] | undefined, _total?: number | undefined) => void;
|
|
10194
10314
|
}> & {} & ComponentCustomProperties & {} & {
|
|
10195
10315
|
$slots: Partial<Record<never, (_: {
|
|
10196
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
10316
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
10197
10317
|
readonly label: string | ComputedRef<string>;
|
|
10198
10318
|
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
10199
10319
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
@@ -10222,7 +10342,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
10222
10342
|
};
|
|
10223
10343
|
rows: number;
|
|
10224
10344
|
autocomplete: string;
|
|
10225
|
-
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "
|
|
10345
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
10226
10346
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
10227
10347
|
step: string | number;
|
|
10228
10348
|
format: string | ProgressFn | undefined;
|
|
@@ -10249,6 +10369,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
10249
10369
|
label?: string | undefined;
|
|
10250
10370
|
value?: string | undefined;
|
|
10251
10371
|
} | undefined;
|
|
10372
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
10373
|
+
store?: any;
|
|
10374
|
+
method?: string | undefined;
|
|
10375
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
10376
|
+
dictCode?: string | undefined;
|
|
10377
|
+
} | undefined;
|
|
10252
10378
|
readonly clearable: boolean;
|
|
10253
10379
|
readonly index: number;
|
|
10254
10380
|
} & {
|
|
@@ -10286,6 +10412,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
10286
10412
|
label?: string | undefined;
|
|
10287
10413
|
value?: string | undefined;
|
|
10288
10414
|
} | undefined;
|
|
10415
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
10416
|
+
store?: any;
|
|
10417
|
+
method?: string | undefined;
|
|
10418
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
10419
|
+
dictCode?: string | undefined;
|
|
10420
|
+
} | undefined;
|
|
10289
10421
|
clearable: boolean;
|
|
10290
10422
|
index: number;
|
|
10291
10423
|
}) => any>> & Partial<Record<never, (_: {
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { OptionsRow } from 'yc-pro-components/es/types';
|
|
2
|
+
import { InjectionKey } from 'vue';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 字典 Store 标准接口
|
|
6
|
+
* @description 所有项目的字典 Store 必须实现此接口才能使用自动字典注入功能
|
|
7
|
+
* @version v0.2.0
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* import type { DictStoreInterface } from 'yc-components'
|
|
11
|
+
*
|
|
12
|
+
* export const useDictStore = defineStore('dict', () => {
|
|
13
|
+
* const getDictData = (field: string): OptionsRow[] => {
|
|
14
|
+
* // 返回字典数据
|
|
15
|
+
* return dictData.value[field] || []
|
|
16
|
+
* }
|
|
17
|
+
*
|
|
18
|
+
* const hasDict = (field: string): boolean => {
|
|
19
|
+
* return !!dictData.value[field]
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* const getDictLabel = (field: string, value: string | number): string => {
|
|
23
|
+
* const items = dictData.value[field] || []
|
|
24
|
+
* const item = items.find(item => item.value === value)
|
|
25
|
+
* return item?.label || String(value)
|
|
26
|
+
* }
|
|
27
|
+
*
|
|
28
|
+
* return { getDictData, hasDict, getDictLabel }
|
|
29
|
+
* })
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export interface DictStoreInterface {
|
|
33
|
+
/**
|
|
34
|
+
* 根据字段名或字典 code 获取字典数据
|
|
35
|
+
* @param field 字段名(如 "status")或字典 code(如 "ORDER_STATUS")
|
|
36
|
+
* @returns 字典选项数组
|
|
37
|
+
* @description 此方法是核心方法,必须实现
|
|
38
|
+
*/
|
|
39
|
+
getDictData: (field: string) => OptionsRow[];
|
|
40
|
+
/**
|
|
41
|
+
* 检查字段是否有字典映射
|
|
42
|
+
* @param field 字段名或字典 code
|
|
43
|
+
* @returns 是否存在字典数据
|
|
44
|
+
* @description 可选方法,用于优化性能
|
|
45
|
+
*/
|
|
46
|
+
hasDict?: (field: string) => boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 获取字典标签
|
|
49
|
+
* @param field 字段名或字典 code
|
|
50
|
+
* @param value 字典值
|
|
51
|
+
* @returns 字典标签
|
|
52
|
+
* @description 可选方法,用于显示字典标签
|
|
53
|
+
*/
|
|
54
|
+
getDictLabel?: (field: string, value: string | number) => string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 字典 Store 注入 Key
|
|
58
|
+
* @description 用于 provide/inject 传递字典 Store 实例
|
|
59
|
+
* @version v0.2.0
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* // 提供字典 Store
|
|
63
|
+
* import { provide } from 'vue'
|
|
64
|
+
* import { DictStoreInjectionKey } from 'yc-components'
|
|
65
|
+
*
|
|
66
|
+
* const dictStore = useDictStore()
|
|
67
|
+
* provide(DictStoreInjectionKey, dictStore)
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* ```ts
|
|
71
|
+
* // 注入字典 Store
|
|
72
|
+
* import { inject } from 'vue'
|
|
73
|
+
* import { DictStoreInjectionKey } from 'yc-components'
|
|
74
|
+
*
|
|
75
|
+
* const dictStore = inject(DictStoreInjectionKey)
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
export declare const DictStoreInjectionKey: InjectionKey<DictStoreInterface>;
|
package/es/constants/index.d.ts
CHANGED
package/es/constants/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { DefaultPageInfo, DefaultPageSizeList } from './page.mjs';
|
|
2
2
|
export { DatePickerValueIsArrayList, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList } from './form.mjs';
|
|
3
3
|
export { selectValueTypeList } from './display-item.mjs';
|
|
4
|
+
export { DictStoreInjectionKey } from './dict.mjs';
|
package/es/hooks/index.d.ts
CHANGED
package/es/hooks/index.mjs
CHANGED
|
@@ -6,3 +6,4 @@ export { providePlusProConfig, useDialogFormConfig, useDrawerFormConfig, usePlus
|
|
|
6
6
|
export { useSortableDrag } from './useSortableDrag.mjs';
|
|
7
7
|
export { usePlusFormClearValidate, usePlusFormFullReset, usePlusFormReset } from './usePlusFormReset.mjs';
|
|
8
8
|
export { useSelectWithPagination } from './useSelectWithPagination.mjs';
|
|
9
|
+
export { useDictInjection } from './useDictInjection.mjs';
|