@vunk/form 2.10.1 → 2.10.4
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/api-tables-select/index.cjs +37 -36
- package/components/api-tables-select/index.d.ts +4 -0
- package/components/api-tables-select/index.mjs +37 -36
- package/components/api-tables-select/src/ctx.d.ts +374 -0
- package/components/api-tables-select/src/index.vue.d.ts +1335 -0
- package/components/api-tables-select/src/types.d.ts +19 -0
- package/components/button/index.d.ts +4 -0
- package/components/button/src/ctx.d.ts +190 -0
- package/components/button/src/index.vue.d.ts +822 -0
- package/components/button/src/types.d.ts +13 -0
- package/components/card-input-collection/index.cjs +67 -70
- package/components/card-input-collection/index.d.ts +4 -0
- package/components/card-input-collection/index.mjs +68 -71
- package/components/card-input-collection/src/ctx.d.ts +119 -0
- package/components/card-input-collection/src/index.vue.d.ts +1043 -0
- package/components/card-input-collection/src/types.d.ts +10 -0
- package/components/cascader/index.d.ts +6 -0
- package/components/cascader/src/ctx.d.ts +297 -0
- package/components/cascader/src/index.vue.d.ts +650 -0
- package/components/cascader/src/types.d.ts +19 -0
- package/components/cascader/src/use.d.ts +5 -0
- package/components/checkbox/index.cjs +2 -3
- package/components/checkbox/index.d.ts +5 -0
- package/components/checkbox/index.mjs +2 -3
- package/components/checkbox/src/ctx.d.ts +151 -0
- package/components/checkbox/src/index.vue.d.ts +1362 -0
- package/components/checkbox/src/types.d.ts +8 -0
- package/components/color-picker/index.d.ts +4 -0
- package/components/color-picker/src/ctx.d.ts +153 -0
- package/components/color-picker/src/index.vue.d.ts +341 -0
- package/components/color-picker/src/types.d.ts +7 -0
- package/components/date-picker/index.d.ts +5 -0
- package/components/date-picker/src/ctx.d.ts +325 -0
- package/components/date-picker/src/index.vue.d.ts +1422 -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 +328 -0
- package/components/date-picker-range/src/index.vue.d.ts +717 -0
- package/components/date-picker-range/src/types.d.ts +12 -0
- package/components/download-plus/index.cjs +4 -4
- package/components/download-plus/index.d.ts +4 -0
- package/components/download-plus/index.mjs +4 -4
- 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 +129 -0
- package/components/download-plus/src/index.vue.d.ts +1432 -0
- package/components/download-plus/src/types.d.ts +17 -0
- package/components/editable-text/index.cjs +9 -0
- package/components/editable-text/index.d.ts +4 -0
- package/components/editable-text/index.mjs +9 -0
- package/components/editable-text/src/ctx.d.ts +132 -0
- package/components/editable-text/src/index.vue.d.ts +3399 -0
- package/components/editable-text/src/types.d.ts +1 -0
- package/components/esri-input-geojson/index.d.ts +6 -0
- package/components/esri-input-geojson/src/append.vue.d.ts +1179 -0
- package/components/esri-input-geojson/src/const.d.ts +12 -0
- package/components/esri-input-geojson/src/ctx.d.ts +340 -0
- package/components/esri-input-geojson/src/default-view.vue.d.ts +133 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +1459 -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/fieldset/index.d.ts +4 -0
- package/components/fieldset/src/ctx.d.ts +12 -0
- package/components/fieldset/src/index.vue.d.ts +23 -0
- package/components/fieldset/src/types.d.ts +1 -0
- package/components/fieldset/src/use.d.ts +5 -0
- package/components/form/index.d.ts +5 -0
- package/components/form/src/ctx.d.ts +132 -0
- package/components/form/src/index.vue.d.ts +4007 -0
- package/components/form/src/types.d.ts +25 -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 +107 -0
- package/components/form-item/src/index.vue.d.ts +961 -0
- package/components/form-item/src/types.d.ts +9 -0
- package/components/form-item-renderer/index.d.ts +4 -0
- package/components/form-item-renderer/src/core.vue.d.ts +38 -0
- package/components/form-item-renderer/src/ctx.d.ts +16 -0
- package/components/form-item-renderer/src/index.vue.d.ts +93 -0
- package/components/form-item-renderer/src/types.d.ts +5 -0
- package/components/form-item-renderer/src/utils.d.ts +5 -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 +55 -0
- package/components/information/index.d.ts +4 -0
- package/components/information/src/ctx.d.ts +13 -0
- package/components/information/src/index.vue.d.ts +23 -0
- package/components/information/src/types.d.ts +3 -0
- package/components/information-collection/index.d.ts +4 -0
- package/components/information-collection/src/ctx.d.ts +147 -0
- package/components/information-collection/src/index.vue.d.ts +302 -0
- package/components/information-collection/src/types.d.ts +6 -0
- package/components/information-tag/index.d.ts +4 -0
- package/components/information-tag/src/ctx.d.ts +64 -0
- package/components/information-tag/src/index.vue.d.ts +134 -0
- package/components/information-tag/src/types.d.ts +1 -0
- package/components/information-templates-default/index.d.ts +4 -0
- package/components/information-templates-default/src/ctx.d.ts +2 -0
- package/components/information-templates-default/src/index.vue.d.ts +2 -0
- package/components/information-templates-default/src/types.d.ts +1 -0
- package/components/input/index.d.ts +5 -0
- package/components/input/src/ctx.d.ts +269 -0
- package/components/input/src/index.vue.d.ts +1192 -0
- package/components/input/src/types.d.ts +13 -0
- package/components/input-collection/index.cjs +105 -74
- package/components/input-collection/index.d.ts +4 -0
- package/components/input-collection/index.mjs +107 -76
- package/components/input-collection/src/ctx.d.ts +137 -0
- package/components/input-collection/src/index.vue.d.ts +1141 -0
- package/components/input-collection/src/types.d.ts +29 -0
- package/components/input-link/index.d.ts +4 -0
- package/components/input-link/src/ctx.d.ts +273 -0
- package/components/input-link/src/index.vue.d.ts +577 -0
- package/components/input-link/src/types.d.ts +7 -0
- package/components/input-number/index.d.ts +4 -0
- package/components/input-number/src/ctx.d.ts +208 -0
- package/components/input-number/src/index.vue.d.ts +816 -0
- package/components/input-number/src/types.d.ts +12 -0
- package/components/input-tag/index.d.ts +5 -0
- package/components/input-tag/src/ctx.d.ts +239 -0
- package/components/input-tag/src/index.vue.d.ts +991 -0
- package/components/input-tag/src/types.d.ts +22 -0
- package/components/monaco-editor/index.d.ts +4 -0
- package/components/monaco-editor/src/ctx.d.ts +115 -0
- package/components/monaco-editor/src/index.vue.d.ts +303 -0
- package/components/monaco-editor/src/types.d.ts +7 -0
- package/components/radio/index.cjs +2 -3
- package/components/radio/index.d.ts +4 -0
- package/components/radio/index.mjs +2 -3
- package/components/radio/src/ctx.d.ts +162 -0
- package/components/radio/src/index.vue.d.ts +1311 -0
- package/components/radio/src/types.d.ts +8 -0
- package/components/renderer-data/index.d.ts +4 -0
- package/components/renderer-data/src/ctx.d.ts +12 -0
- package/components/renderer-data/src/index.vue.d.ts +20 -0
- package/components/renderer-data/src/types.d.ts +1 -0
- package/components/select/index.d.ts +5 -0
- package/components/select/src/ctx.d.ts +225 -0
- package/components/select/src/index.vue.d.ts +1043 -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 +253 -0
- package/components/slider/src/index.vue.d.ts +588 -0
- package/components/slider/src/types.d.ts +7 -0
- package/components/switch/index.d.ts +4 -0
- package/components/switch/src/ctx.d.ts +208 -0
- package/components/switch/src/index.vue.d.ts +895 -0
- package/components/switch/src/types.d.ts +8 -0
- package/components/tables-select/index.d.ts +5 -0
- package/components/tables-select/src/ctx.d.ts +420 -0
- package/components/tables-select/src/index.vue.d.ts +5411 -0
- package/components/tables-select/src/types.d.ts +9 -0
- package/components/template-instances-provider/index.d.ts +3 -0
- package/components/template-instances-provider/src/index.vue.d.ts +6 -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 +187 -0
- package/components/templates-default/src/types.d.ts +55 -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 +301 -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 +446 -0
- package/components/templates-layout/src/types.d.ts +32 -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.cjs +2 -2
- package/components/upload/index.d.ts +5 -0
- package/components/upload/index.mjs +2 -2
- package/components/upload/src/ctx.d.ts +294 -0
- package/components/upload/src/file.vue.d.ts +492 -0
- package/components/upload/src/index.vue.d.ts +1935 -0
- package/components/upload/src/types.d.ts +13 -0
- package/components/upload-plus/index.cjs +79 -86
- package/components/upload-plus/index.d.ts +6 -0
- package/components/upload-plus/index.mjs +79 -86
- 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 +148 -0
- package/components/upload-plus/src/index.vue.d.ts +1754 -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 +284 -0
- package/components/van-cascader/src/index.vue.d.ts +2116 -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 +112 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +1482 -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 +122 -0
- package/components/vditor/src/index.vue.d.ts +418 -0
- package/components/vditor/src/types.d.ts +7 -0
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +111 -30
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NormalObject, VueComponentPropsType } from '@vunk/shared';
|
|
2
|
+
import { MaybePromise } from '@vunk/core';
|
|
3
|
+
import { __VkfTablesSelect } from '@vunk/form/components/tables-select';
|
|
4
|
+
import Core from './index.vue';
|
|
5
|
+
import { BasicSource } from '@vunk/form/shared';
|
|
6
|
+
export interface Source<P extends string = string> extends BasicSource, VueComponentPropsType<typeof Core> {
|
|
7
|
+
prop?: P | P[];
|
|
8
|
+
templateType: 'VkfApiTablesSelect';
|
|
9
|
+
}
|
|
10
|
+
export interface PaginationParams {
|
|
11
|
+
pageSize: number;
|
|
12
|
+
start: number;
|
|
13
|
+
currentPage: number;
|
|
14
|
+
}
|
|
15
|
+
export type ReadApi = (query: NormalObject, pagination?: PaginationParams) => MaybePromise<{
|
|
16
|
+
rows: NormalObject[];
|
|
17
|
+
total: number;
|
|
18
|
+
}>;
|
|
19
|
+
export type Column = __VkfTablesSelect.Column;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ButtonSlots } from './types';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
buttonSlots: {
|
|
5
|
+
type: PropType<ButtonSlots>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
buttonLabel: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
validate: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
readonly type: PropType<"" | "default" | "small" | "large">;
|
|
18
|
+
readonly required: false;
|
|
19
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
|
+
__epPropKey: true;
|
|
21
|
+
};
|
|
22
|
+
disabled: BooleanConstructor;
|
|
23
|
+
type: {
|
|
24
|
+
readonly type: PropType<"" | "default" | "text" | "success" | "primary" | "warning" | "info" | "danger">;
|
|
25
|
+
readonly required: false;
|
|
26
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
27
|
+
__epPropKey: true;
|
|
28
|
+
} & {
|
|
29
|
+
readonly default: "";
|
|
30
|
+
};
|
|
31
|
+
icon: {
|
|
32
|
+
readonly type: PropType<unknown>;
|
|
33
|
+
readonly required: false;
|
|
34
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
35
|
+
__epPropKey: true;
|
|
36
|
+
};
|
|
37
|
+
nativeType: {
|
|
38
|
+
readonly type: PropType<"button" | "reset" | "submit">;
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
|
+
__epPropKey: true;
|
|
42
|
+
} & {
|
|
43
|
+
readonly default: "button";
|
|
44
|
+
};
|
|
45
|
+
loading: BooleanConstructor;
|
|
46
|
+
loadingIcon: {
|
|
47
|
+
readonly type: PropType<unknown>;
|
|
48
|
+
readonly required: false;
|
|
49
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
|
+
__epPropKey: true;
|
|
51
|
+
} & {
|
|
52
|
+
readonly default: () => any;
|
|
53
|
+
};
|
|
54
|
+
plain: {
|
|
55
|
+
readonly type: PropType<boolean>;
|
|
56
|
+
readonly required: false;
|
|
57
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
58
|
+
__epPropKey: true;
|
|
59
|
+
} & {
|
|
60
|
+
readonly default: undefined;
|
|
61
|
+
};
|
|
62
|
+
text: BooleanConstructor;
|
|
63
|
+
link: BooleanConstructor;
|
|
64
|
+
bg: BooleanConstructor;
|
|
65
|
+
autofocus: BooleanConstructor;
|
|
66
|
+
round: {
|
|
67
|
+
readonly type: PropType<boolean>;
|
|
68
|
+
readonly required: false;
|
|
69
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
70
|
+
__epPropKey: true;
|
|
71
|
+
} & {
|
|
72
|
+
readonly default: undefined;
|
|
73
|
+
};
|
|
74
|
+
circle: BooleanConstructor;
|
|
75
|
+
color: StringConstructor;
|
|
76
|
+
dark: BooleanConstructor;
|
|
77
|
+
autoInsertSpace: {
|
|
78
|
+
readonly type: PropType<boolean>;
|
|
79
|
+
readonly required: false;
|
|
80
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
81
|
+
__epPropKey: true;
|
|
82
|
+
} & {
|
|
83
|
+
readonly default: undefined;
|
|
84
|
+
};
|
|
85
|
+
tag: {
|
|
86
|
+
readonly type: PropType<unknown>;
|
|
87
|
+
readonly required: false;
|
|
88
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
89
|
+
__epPropKey: true;
|
|
90
|
+
} & {
|
|
91
|
+
readonly default: "button";
|
|
92
|
+
};
|
|
93
|
+
required: {
|
|
94
|
+
readonly type: PropType<boolean>;
|
|
95
|
+
readonly required: false;
|
|
96
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
97
|
+
__epPropKey: true;
|
|
98
|
+
} & {
|
|
99
|
+
readonly default: undefined;
|
|
100
|
+
};
|
|
101
|
+
formItemSize: {
|
|
102
|
+
type: PropType<"default" | "small" | "large">;
|
|
103
|
+
default: "default" | "small" | "large";
|
|
104
|
+
};
|
|
105
|
+
formItemSlots: {
|
|
106
|
+
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
107
|
+
default: any;
|
|
108
|
+
};
|
|
109
|
+
elRef: {
|
|
110
|
+
type: PropType<any>;
|
|
111
|
+
required: boolean;
|
|
112
|
+
};
|
|
113
|
+
inline: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
readonly: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: any;
|
|
120
|
+
};
|
|
121
|
+
formItemTip: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: any;
|
|
124
|
+
};
|
|
125
|
+
formItemTipClass: any;
|
|
126
|
+
labelTip: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
default: any;
|
|
129
|
+
};
|
|
130
|
+
information: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
label: StringConstructor;
|
|
135
|
+
labelWidth: {
|
|
136
|
+
readonly type: PropType<string | number>;
|
|
137
|
+
readonly required: false;
|
|
138
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
139
|
+
__epPropKey: true;
|
|
140
|
+
} & {
|
|
141
|
+
readonly default: "";
|
|
142
|
+
};
|
|
143
|
+
labelPosition: {
|
|
144
|
+
readonly type: PropType<"" | "top" | "left" | "right">;
|
|
145
|
+
readonly required: false;
|
|
146
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
147
|
+
__epPropKey: true;
|
|
148
|
+
} & {
|
|
149
|
+
readonly default: "";
|
|
150
|
+
};
|
|
151
|
+
prop: {
|
|
152
|
+
readonly type: PropType<import("element-plus").FormItemProp>;
|
|
153
|
+
readonly required: false;
|
|
154
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
155
|
+
__epPropKey: true;
|
|
156
|
+
};
|
|
157
|
+
rules: {
|
|
158
|
+
readonly type: PropType<unknown>;
|
|
159
|
+
readonly required: false;
|
|
160
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
161
|
+
__epPropKey: true;
|
|
162
|
+
};
|
|
163
|
+
error: StringConstructor;
|
|
164
|
+
validateStatus: {
|
|
165
|
+
readonly type: PropType<"" | "error" | "success" | "validating">;
|
|
166
|
+
readonly required: false;
|
|
167
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
168
|
+
__epPropKey: true;
|
|
169
|
+
};
|
|
170
|
+
for: StringConstructor;
|
|
171
|
+
inlineMessage: {
|
|
172
|
+
readonly type: PropType<string | boolean>;
|
|
173
|
+
readonly required: false;
|
|
174
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
175
|
+
__epPropKey: true;
|
|
176
|
+
} & {
|
|
177
|
+
readonly default: "";
|
|
178
|
+
};
|
|
179
|
+
showMessage: {
|
|
180
|
+
readonly type: PropType<boolean>;
|
|
181
|
+
readonly required: false;
|
|
182
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
183
|
+
__epPropKey: true;
|
|
184
|
+
} & {
|
|
185
|
+
readonly default: true;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
export declare const emits: {
|
|
189
|
+
click: (evt: MouseEvent) => boolean;
|
|
190
|
+
};
|