@vunk/form 1.4.5 → 1.4.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/components/button/index.d.ts +4 -0
- package/components/button/src/ctx.d.ts +96 -0
- package/components/button/src/index.vue.d.ts +462 -0
- package/components/button/src/types.d.ts +13 -0
- package/components/cascader/index.d.ts +6 -0
- package/components/cascader/src/ctx.d.ts +131 -0
- package/components/cascader/src/index.vue.d.ts +334 -0
- package/components/cascader/src/types.d.ts +7 -0
- package/components/cascader/src/use.d.ts +5 -0
- package/components/checkbox/index.cjs +4 -4
- package/components/checkbox/index.d.ts +5 -0
- package/components/checkbox/index.mjs +4 -4
- package/components/checkbox/src/ctx.d.ts +89 -0
- package/components/checkbox/src/index.vue.d.ts +1114 -0
- package/components/checkbox/src/types.d.ts +8 -0
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.d.ts +4 -0
- package/components/color-picker/index.mjs +1 -1
- package/components/color-picker/src/ctx.d.ts +80 -0
- package/components/color-picker/src/index.vue.d.ts +191 -0
- package/components/color-picker/src/types.d.ts +7 -0
- package/components/date-picker/index.cjs +1 -2
- package/components/date-picker/index.d.ts +5 -0
- package/components/date-picker/index.mjs +1 -2
- package/components/date-picker/src/ctx.d.ts +166 -0
- package/components/date-picker/src/index.vue.d.ts +626 -0
- package/components/date-picker/src/types.d.ts +20 -0
- package/components/date-picker-range/index.d.ts +4 -0
- package/components/date-picker-range/src/ctx.d.ts +185 -0
- package/components/date-picker-range/src/index.vue.d.ts +428 -0
- package/components/date-picker-range/src/types.d.ts +12 -0
- package/components/download-plus/index.d.ts +4 -0
- package/components/download-plus/src/api.d.ts +13 -0
- package/components/download-plus/src/const.d.ts +9 -0
- package/components/download-plus/src/ctx.d.ts +84 -0
- package/components/download-plus/src/index.vue.d.ts +955 -0
- package/components/download-plus/src/types.d.ts +17 -0
- package/components/esri-input-geojson/index.d.ts +6 -0
- package/components/esri-input-geojson/src/append.vue.d.ts +828 -0
- package/components/esri-input-geojson/src/const.d.ts +12 -0
- package/components/esri-input-geojson/src/ctx.d.ts +229 -0
- package/components/esri-input-geojson/src/default-view.vue.d.ts +133 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +1261 -0
- package/components/esri-input-geojson/src/types.d.ts +22 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +427 -0
- package/components/form/index.d.ts +5 -0
- package/components/form/src/ctx.d.ts +84 -0
- package/components/form/src/index.vue.d.ts +726 -0
- package/components/form/src/types.d.ts +12 -0
- package/components/form/src/utils.d.ts +15 -0
- package/components/form-item/index.d.ts +5 -0
- package/components/form-item/src/ctx.d.ts +62 -0
- package/components/form-item/src/index.vue.d.ts +303 -0
- package/components/form-item/src/types.d.ts +6 -0
- package/components/form-item-renderer/index.d.ts +5 -0
- package/components/form-item-renderer/src/ctx.d.ts +16 -0
- package/components/form-item-renderer/src/index.vue.d.ts +38 -0
- package/components/form-item-renderer/src/symbols.d.ts +3 -0
- package/components/form-item-renderer/src/types.d.ts +8 -0
- package/components/form-item-renderer-template/index.d.ts +4 -0
- package/components/form-item-renderer-template/src/ctx.d.ts +7 -0
- package/components/form-item-renderer-template/src/index.vue.d.ts +16 -0
- package/components/form-item-renderer-template/src/types.d.ts +1 -0
- package/components/geoinput/index.d.ts +4 -0
- package/components/geoinput/src/ctx.d.ts +234 -0
- package/components/geoinput/src/index.vue.d.ts +531 -0
- package/components/geoinput/src/types.d.ts +12 -0
- package/components/geoinput-read/index.d.ts +5 -0
- package/components/geoinput-read/src/append.vue.d.ts +341 -0
- package/components/geoinput-read/src/core.vue.d.ts +649 -0
- package/components/geoinput-read/src/ctx.d.ts +205 -0
- package/components/geoinput-read/src/index.vue.d.ts +1186 -0
- package/components/geoinput-read/src/types.d.ts +3 -0
- package/components/geoinput-update/index.d.ts +5 -0
- package/components/geoinput-update/src/append.vue.d.ts +815 -0
- package/components/geoinput-update/src/ctx.d.ts +213 -0
- package/components/geoinput-update/src/index.vue.d.ts +1125 -0
- package/components/geoinput-update/src/types.d.ts +6 -0
- package/components/input/index.cjs +3 -3
- package/components/input/index.d.ts +5 -0
- package/components/input/index.mjs +3 -3
- package/components/input/src/ctx.d.ts +154 -0
- package/components/input/src/index.vue.d.ts +792 -0
- package/components/input/src/types.d.ts +13 -0
- package/components/input-collection/index.d.ts +4 -0
- package/components/input-collection/src/ctx.d.ts +72 -0
- package/components/input-collection/src/index.vue.d.ts +1093 -0
- package/components/input-collection/src/types.d.ts +19 -0
- package/components/input-link/index.d.ts +4 -0
- package/components/input-link/src/ctx.d.ts +185 -0
- package/components/input-link/src/index.vue.d.ts +397 -0
- package/components/input-link/src/types.d.ts +7 -0
- package/components/input-number/index.cjs +4 -4
- package/components/input-number/index.d.ts +4 -0
- package/components/input-number/index.mjs +4 -4
- package/components/input-number/src/ctx.d.ts +90 -0
- package/components/input-number/src/index.vue.d.ts +407 -0
- package/components/input-number/src/types.d.ts +8 -0
- package/components/monaco-editor/index.d.ts +4 -0
- package/components/monaco-editor/src/ctx.d.ts +70 -0
- package/components/monaco-editor/src/index.vue.d.ts +209 -0
- package/components/monaco-editor/src/types.d.ts +7 -0
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.d.ts +4 -0
- package/components/radio/index.mjs +1 -1
- package/components/radio/src/ctx.d.ts +82 -0
- package/components/radio/src/index.vue.d.ts +643 -0
- package/components/radio/src/types.d.ts +8 -0
- package/components/select/index.d.ts +4 -0
- package/components/select/src/ctx.d.ts +156 -0
- package/components/select/src/index.vue.d.ts +561 -0
- package/components/select/src/types.d.ts +11 -0
- package/components/slider/index.d.ts +4 -0
- package/components/slider/src/ctx.d.ts +127 -0
- package/components/slider/src/index.vue.d.ts +339 -0
- package/components/slider/src/types.d.ts +7 -0
- package/components/switch/index.cjs +6 -7
- package/components/switch/index.d.ts +4 -0
- package/components/switch/index.mjs +6 -7
- package/components/switch/src/ctx.d.ts +114 -0
- package/components/switch/src/index.vue.d.ts +535 -0
- package/components/switch/src/types.d.ts +8 -0
- package/components/template-instances-provider/index.d.ts +3 -0
- package/components/template-instances-provider/src/index.vue.d.ts +4 -0
- package/components/templates-default/index.d.ts +4 -0
- package/components/templates-default/src/ctx.d.ts +19 -0
- package/components/templates-default/src/index.vue.d.ts +178 -0
- package/components/templates-default/src/types.d.ts +53 -0
- package/components/templates-element-plus/index.d.ts +4 -0
- package/components/templates-element-plus/src/ctx.d.ts +9 -0
- package/components/templates-element-plus/src/index.vue.d.ts +154 -0
- package/components/templates-element-plus/src/types.d.ts +13 -0
- package/components/templates-esri/index.d.ts +4 -0
- package/components/templates-esri/src/ctx.d.ts +11 -0
- package/components/templates-esri/src/index.vue.d.ts +43 -0
- package/components/templates-esri/src/types.d.ts +2 -0
- package/components/templates-layout/index.d.ts +4 -0
- package/components/templates-layout/src/ctx.d.ts +9 -0
- package/components/templates-layout/src/index.vue.d.ts +173 -0
- package/components/templates-layout/src/types.d.ts +32 -0
- package/components/templates-mapbox/index.d.ts +4 -0
- package/components/templates-mapbox/src/ctx.d.ts +11 -0
- package/components/templates-mapbox/src/index.vue.d.ts +43 -0
- package/components/templates-mapbox/src/types.d.ts +3 -0
- package/components/templates-variant/index.d.ts +4 -0
- package/components/templates-variant/src/ctx.d.ts +11 -0
- package/components/templates-variant/src/index.vue.d.ts +43 -0
- package/components/templates-variant/src/types.d.ts +2 -0
- package/components/upload/index.d.ts +5 -0
- package/components/upload/src/ctx.d.ts +180 -0
- package/components/upload/src/file.vue.d.ts +306 -0
- package/components/upload/src/index.vue.d.ts +1282 -0
- package/components/upload/src/types.d.ts +12 -0
- package/components/upload-plus/index.d.ts +6 -0
- package/components/upload-plus/src/api.d.ts +38 -0
- package/components/upload-plus/src/const.d.ts +9 -0
- package/components/upload-plus/src/ctx.d.ts +103 -0
- package/components/upload-plus/src/index.vue.d.ts +1005 -0
- package/components/upload-plus/src/types.d.ts +32 -0
- package/components/van-cascader/index.d.ts +4 -0
- package/components/van-cascader/src/ctx.d.ts +129 -0
- package/components/van-cascader/src/index.vue.d.ts +3324 -0
- package/components/van-cascader/src/types.d.ts +1 -0
- package/components/var-datetime-picker/index.d.ts +4 -0
- package/components/var-datetime-picker/src/const.d.ts +10 -0
- package/components/var-datetime-picker/src/ctx.d.ts +67 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +716 -0
- package/components/var-datetime-picker/src/types.d.ts +22 -0
- package/components/vditor/index.d.ts +4 -0
- package/components/vditor/src/ctx.d.ts +77 -0
- package/components/vditor/src/index.vue.d.ts +324 -0
- package/components/vditor/src/types.d.ts +7 -0
- package/package.json +1 -1
- package/shared/const/index.d.ts +4 -0
- package/shared/element-plus/ctx.d.ts +26 -0
- package/shared/element-plus/index.d.ts +3 -0
- package/shared/element-plus/instances.d.ts +202 -0
- package/shared/element-plus/version.d.ts +1 -0
- package/shared/form/index.d.ts +18 -0
- package/shared/helper/index.d.ts +4 -0
- package/shared/index.d.ts +2 -0
- package/shared/infer-prop/index.d.ts +17 -0
- package/shared/progress-it/index.d.ts +16 -0
- package/shared/rules/index.d.ts +35 -0
- package/shared/types/form/checkbox.d.ts +13 -0
- package/shared/types/form/index.d.ts +2 -0
- package/shared/types/form/radio.d.ts +8 -0
- package/shared/types/index.d.ts +2 -0
- package/shared/types/source/index.d.ts +21 -0
- package/shared/types/source-manager/index.d.ts +6 -0
- package/shared/upload/index.d.ts +7 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { ComponentSize, DatePickType } from 'element-plus';
|
|
2
|
+
import { PropType, Component } from 'vue';
|
|
3
|
+
export declare const datePickerProps: {
|
|
4
|
+
type: {
|
|
5
|
+
type: PropType<DatePickType>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
showNow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
9
|
+
ariaLabel: StringConstructor;
|
|
10
|
+
emptyValues: ArrayConstructor;
|
|
11
|
+
valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
|
|
12
|
+
disabledDate: {
|
|
13
|
+
readonly type: import("vue").PropType<Function>;
|
|
14
|
+
readonly required: false;
|
|
15
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
16
|
+
__epPropKey: true;
|
|
17
|
+
};
|
|
18
|
+
cellClassName: {
|
|
19
|
+
readonly type: import("vue").PropType<Function>;
|
|
20
|
+
readonly required: false;
|
|
21
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
|
+
__epPropKey: true;
|
|
23
|
+
};
|
|
24
|
+
shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
25
|
+
arrowControl: BooleanConstructor;
|
|
26
|
+
tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
27
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
28
|
+
unlinkPanels: BooleanConstructor;
|
|
29
|
+
placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement))[], import("element-plus").Placement, unknown, "bottom", boolean>;
|
|
30
|
+
fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | ((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]))[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
|
31
|
+
disabledHours: {
|
|
32
|
+
readonly type: import("vue").PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledHours>;
|
|
33
|
+
readonly required: false;
|
|
34
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
35
|
+
__epPropKey: true;
|
|
36
|
+
};
|
|
37
|
+
disabledMinutes: {
|
|
38
|
+
readonly type: import("vue").PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledMinutes>;
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
|
+
__epPropKey: true;
|
|
42
|
+
};
|
|
43
|
+
disabledSeconds: {
|
|
44
|
+
readonly type: import("vue").PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledSeconds>;
|
|
45
|
+
readonly required: false;
|
|
46
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
|
+
__epPropKey: true;
|
|
48
|
+
};
|
|
49
|
+
id: {
|
|
50
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
|
|
51
|
+
readonly required: false;
|
|
52
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
53
|
+
__epPropKey: true;
|
|
54
|
+
};
|
|
55
|
+
name: {
|
|
56
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
|
|
57
|
+
readonly required: false;
|
|
58
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
59
|
+
__epPropKey: true;
|
|
60
|
+
};
|
|
61
|
+
popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
62
|
+
format: StringConstructor;
|
|
63
|
+
valueFormat: StringConstructor;
|
|
64
|
+
dateFormat: StringConstructor;
|
|
65
|
+
timeFormat: StringConstructor;
|
|
66
|
+
clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
67
|
+
clearIcon: {
|
|
68
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
|
|
69
|
+
readonly required: false;
|
|
70
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
71
|
+
__epPropKey: true;
|
|
72
|
+
};
|
|
73
|
+
editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
74
|
+
prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, "", boolean>;
|
|
75
|
+
size: {
|
|
76
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
77
|
+
readonly required: false;
|
|
78
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
|
+
__epPropKey: true;
|
|
80
|
+
};
|
|
81
|
+
readonly: BooleanConstructor;
|
|
82
|
+
disabled: BooleanConstructor;
|
|
83
|
+
placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
84
|
+
popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
85
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
86
|
+
rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
87
|
+
startPlaceholder: StringConstructor;
|
|
88
|
+
endPlaceholder: StringConstructor;
|
|
89
|
+
defaultValue: {
|
|
90
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
91
|
+
readonly required: false;
|
|
92
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
93
|
+
__epPropKey: true;
|
|
94
|
+
};
|
|
95
|
+
defaultTime: {
|
|
96
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
97
|
+
readonly required: false;
|
|
98
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
99
|
+
__epPropKey: true;
|
|
100
|
+
};
|
|
101
|
+
isRange: BooleanConstructor;
|
|
102
|
+
};
|
|
103
|
+
export declare const datePickerEmits: {
|
|
104
|
+
'update:modelValue': any;
|
|
105
|
+
change: any;
|
|
106
|
+
focus: any;
|
|
107
|
+
blur: any;
|
|
108
|
+
'calendar-change': any;
|
|
109
|
+
'panel-change': any;
|
|
110
|
+
'visible-change': any;
|
|
111
|
+
keydown: any;
|
|
112
|
+
};
|
|
113
|
+
export declare const selectProps: {
|
|
114
|
+
name: StringConstructor;
|
|
115
|
+
id: StringConstructor;
|
|
116
|
+
modelValue: {
|
|
117
|
+
type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
|
118
|
+
default: any;
|
|
119
|
+
};
|
|
120
|
+
autocomplete: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
automaticDropdown: BooleanConstructor;
|
|
125
|
+
size: {
|
|
126
|
+
type: PropType<ComponentSize>;
|
|
127
|
+
};
|
|
128
|
+
effect: {
|
|
129
|
+
type: PropType<"light" | "dark" | string>;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
disabled: BooleanConstructor;
|
|
133
|
+
clearable: BooleanConstructor;
|
|
134
|
+
filterable: BooleanConstructor;
|
|
135
|
+
allowCreate: BooleanConstructor;
|
|
136
|
+
loading: BooleanConstructor;
|
|
137
|
+
popperClass: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
remote: BooleanConstructor;
|
|
142
|
+
loadingText: StringConstructor;
|
|
143
|
+
noMatchText: StringConstructor;
|
|
144
|
+
noDataText: StringConstructor;
|
|
145
|
+
remoteMethod: FunctionConstructor;
|
|
146
|
+
filterMethod: FunctionConstructor;
|
|
147
|
+
multiple: BooleanConstructor;
|
|
148
|
+
multipleLimit: {
|
|
149
|
+
type: NumberConstructor;
|
|
150
|
+
default: number;
|
|
151
|
+
};
|
|
152
|
+
placeholder: {
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
};
|
|
155
|
+
defaultFirstOption: BooleanConstructor;
|
|
156
|
+
reserveKeyword: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
default: boolean;
|
|
159
|
+
};
|
|
160
|
+
valueKey: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
collapseTags: BooleanConstructor;
|
|
165
|
+
collapseTagsTooltip: {
|
|
166
|
+
type: BooleanConstructor;
|
|
167
|
+
default: boolean;
|
|
168
|
+
};
|
|
169
|
+
teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
170
|
+
persistent: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
174
|
+
clearIcon: {
|
|
175
|
+
type: PropType<string | Component>;
|
|
176
|
+
default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
177
|
+
};
|
|
178
|
+
fitInputWidth: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: boolean;
|
|
181
|
+
};
|
|
182
|
+
suffixIcon: {
|
|
183
|
+
type: PropType<string | Component>;
|
|
184
|
+
default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
185
|
+
};
|
|
186
|
+
tagType: {
|
|
187
|
+
default: string;
|
|
188
|
+
type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown>>;
|
|
189
|
+
required: false;
|
|
190
|
+
validator: ((val: unknown) => boolean) | undefined;
|
|
191
|
+
__epPropKey: true;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
export declare const selectEmits: {
|
|
195
|
+
'update:modelValue': any;
|
|
196
|
+
change: any;
|
|
197
|
+
'remove-tag': any;
|
|
198
|
+
clear: any;
|
|
199
|
+
'visible-change': any;
|
|
200
|
+
focus: any;
|
|
201
|
+
blur: any;
|
|
202
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isGte2_6_0: boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Func, NormalObject } from '@vunk/core';
|
|
2
|
+
/**
|
|
3
|
+
* 表单验证失败, 处理方式
|
|
4
|
+
* 消息提示
|
|
5
|
+
* @param err Record<string, {message: string}[]>
|
|
6
|
+
*/
|
|
7
|
+
export declare const validateCatch: (err: any, init?: {
|
|
8
|
+
prefix?: string;
|
|
9
|
+
suffix?: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
/**
|
|
12
|
+
* 根据 templateIf 生成 显隐函数
|
|
13
|
+
* @param templateIfRaw
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare const genTemplateIfFunc: Func<[
|
|
17
|
+
any
|
|
18
|
+
], (e?: NormalObject) => boolean>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __VkfTemplatesDefault } from '@vunk/form/components/templates-default';
|
|
2
|
+
export interface PropInfo {
|
|
3
|
+
prop?: string | string[];
|
|
4
|
+
type: string;
|
|
5
|
+
precision?: number;
|
|
6
|
+
}
|
|
7
|
+
export type InferPropInfo = (item: __VkfTemplatesDefault.CoreSource) => Partial<PropInfo>;
|
|
8
|
+
export declare const propInfoAction: {
|
|
9
|
+
VkfSelect: InferPropInfo;
|
|
10
|
+
VkfRadio: InferPropInfo;
|
|
11
|
+
VkfCheckbox: InferPropInfo;
|
|
12
|
+
VkfColorPicker: InferPropInfo;
|
|
13
|
+
VkfInputNumber: InferPropInfo;
|
|
14
|
+
VkfSwitch: InferPropInfo;
|
|
15
|
+
VkfUpload: InferPropInfo;
|
|
16
|
+
VkfDatePicker: InferPropInfo;
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ref: https://github1s.com/Envov/progress-it/blob/master/src/index.ts#L1-L61
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export type Effect = (percent: number, state: boolean | 'fail') => void;
|
|
6
|
+
export type Setter = (newState: boolean | 'fail') => Setter;
|
|
7
|
+
type progress = (effect: Effect, option?: Partial<IProgressPotions>) => (initState: boolean) => (newState: boolean | 'fail') => Setter;
|
|
8
|
+
type IProgressPotions = {
|
|
9
|
+
percent: number;
|
|
10
|
+
interval: number;
|
|
11
|
+
speed: number;
|
|
12
|
+
timeLine: number;
|
|
13
|
+
timer: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
declare const progress: progress;
|
|
16
|
+
export default progress;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const PATTERN: {
|
|
2
|
+
/**
|
|
3
|
+
* 由数字、26个英文字母或者下划线以及中文组成的字符串
|
|
4
|
+
*/
|
|
5
|
+
normal: RegExp;
|
|
6
|
+
/**
|
|
7
|
+
* 只能由 中文 和 英文 组成
|
|
8
|
+
*/
|
|
9
|
+
normalName: RegExp;
|
|
10
|
+
/**
|
|
11
|
+
* 只能由数字、字母、下划线组成, 且不能以下划线和数字开头
|
|
12
|
+
*/
|
|
13
|
+
code: RegExp;
|
|
14
|
+
/**
|
|
15
|
+
* 只能由数字或字母组成, 且不能以数字开头
|
|
16
|
+
*/
|
|
17
|
+
strictCode: RegExp;
|
|
18
|
+
/**
|
|
19
|
+
* 只能由字母、数字或特殊字符组成,且长度在8到16之间
|
|
20
|
+
*/
|
|
21
|
+
password: RegExp;
|
|
22
|
+
/**
|
|
23
|
+
* 要求密码必须同时包含至少一个小写字母、大写字母和数字,且长度在8到16之间。
|
|
24
|
+
*/
|
|
25
|
+
strictPassword: RegExp;
|
|
26
|
+
/**
|
|
27
|
+
* 正确的手机号码
|
|
28
|
+
*/
|
|
29
|
+
phone: RegExp;
|
|
30
|
+
};
|
|
31
|
+
export declare const PATTERN_OPTIONS: {
|
|
32
|
+
label: string;
|
|
33
|
+
value: RegExp;
|
|
34
|
+
title: string;
|
|
35
|
+
}[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CheckboxProps {
|
|
2
|
+
value?: string | number | boolean;
|
|
3
|
+
label?: string;
|
|
4
|
+
'trueLabel'?: string | number;
|
|
5
|
+
'falseLabel'?: string | number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
border?: boolean;
|
|
8
|
+
size?: '' | 'default' | 'small' | 'large';
|
|
9
|
+
name?: string;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
indeterminate?: boolean;
|
|
12
|
+
validateEvent?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __VkfTemplatesDefault } from '@vunk/form/components/templates-default';
|
|
2
|
+
import { __VkfTemplatesLayout } from '@vunk/form/components/templates-layout';
|
|
3
|
+
import { __VkfTemplatesElementPlus } from '@vunk/form/components/templates-element-plus';
|
|
4
|
+
import { __VkfTemplatesMapbox } from '@vunk/form/components/templates-mapbox';
|
|
5
|
+
import { __VkfTemplatesEsri } from '@vunk/form/components/templates-esri';
|
|
6
|
+
import { NormalObject } from '@vunk/core';
|
|
7
|
+
import { __VkfTemplatesVariant } from '@vunk/form/components/templates-variant';
|
|
8
|
+
export interface BasicSource {
|
|
9
|
+
templateIf?: ((data?: NormalObject) => boolean) | string | boolean;
|
|
10
|
+
templateType?: string;
|
|
11
|
+
class?: any;
|
|
12
|
+
prop?: any;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated use __VkfTemplatesDefault.Source<P>
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { __VkfTemplatesDefault } from '@vunk/form/components/templates-default'
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export type FormItemRendererSource<P extends string = string> = __VkfTemplatesDefault.Source<P>;
|
|
21
|
+
export type AllTemplatesSource<P extends string = string> = __VkfTemplatesDefault.Source<P> | __VkfTemplatesMapbox.Source<P> | __VkfTemplatesEsri.Source<P> | __VkfTemplatesLayout.ElRowSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.ElColSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.VkfFlexSource<AllTemplatesSource<P>> | __VkfTemplatesElementPlus.Source | __VkfTemplatesVariant.Source<P>;
|