@vunk/form 2.2.1 → 2.3.0
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 +468 -0
- package/components/api-tables-select/index.d.ts +4 -0
- package/components/api-tables-select/index.mjs +462 -0
- package/components/api-tables-select/src/ctx.d.ts +340 -0
- package/components/api-tables-select/src/index.vue.d.ts +844 -0
- package/components/api-tables-select/src/types.d.ts +13 -0
- package/components/button/src/index.vue.d.ts +16 -16
- package/components/card-input-collection/index.cjs +1 -0
- package/components/card-input-collection/index.mjs +1 -0
- package/components/card-input-collection/src/index.vue.d.ts +3 -3
- package/components/card-input-collection/src/types.d.ts +1 -1
- package/components/cascader/src/ctx.d.ts +2 -2
- package/components/cascader/src/index.vue.d.ts +22 -22
- package/components/checkbox/src/ctx.d.ts +1 -1
- package/components/checkbox/src/index.vue.d.ts +8 -8
- package/components/cloneDeep.cjs +25 -180
- package/components/cloneDeep.mjs +1 -156
- package/components/color-picker/src/index.vue.d.ts +4 -4
- package/components/date-picker/src/ctx.d.ts +2 -2
- package/components/date-picker/src/index.vue.d.ts +18 -18
- package/components/date-picker-range/src/ctx.d.ts +21 -21
- package/components/date-picker-range/src/index.vue.d.ts +50 -50
- package/components/download-plus/src/index.vue.d.ts +1 -1
- package/components/esri-input-geojson/src/append.vue.d.ts +1 -1
- package/components/esri-input-geojson/src/ctx.d.ts +2 -2
- package/components/esri-input-geojson/src/index.vue.d.ts +18 -18
- package/components/form/index.cjs +3 -3
- package/components/form/index.mjs +3 -3
- package/components/form/src/ctx.d.ts +2 -2
- package/components/form/src/index.vue.d.ts +11 -11
- package/components/form-item/src/index.vue.d.ts +2 -2
- package/components/input/src/ctx.d.ts +2 -2
- package/components/input/src/index.vue.d.ts +13 -13
- package/components/input-collection/index.cjs +1 -0
- package/components/input-collection/index.mjs +1 -0
- package/components/input-collection/src/index.vue.d.ts +4 -4
- package/components/input-link/src/index.vue.d.ts +6 -6
- package/components/input-number/src/ctx.d.ts +2 -2
- package/components/input-number/src/index.vue.d.ts +9 -9
- package/components/isObject.cjs +165 -0
- package/components/isObject.mjs +158 -0
- package/components/monaco-editor/src/index.vue.d.ts +2 -2
- package/components/radio/src/index.vue.d.ts +7 -7
- package/components/select/src/ctx.d.ts +3 -3
- package/components/select/src/index.vue.d.ts +24 -24
- package/components/slider/src/index.vue.d.ts +11 -11
- package/components/switch/src/index.vue.d.ts +10 -10
- package/components/tables-select/index.cjs +37 -7
- package/components/tables-select/index.d.ts +1 -0
- package/components/tables-select/index.mjs +38 -9
- package/components/tables-select/src/ctx.d.ts +18 -5
- package/components/tables-select/src/index.vue.d.ts +124 -112
- package/components/tables-select/src/types.d.ts +2 -1
- package/components/upload/src/ctx.d.ts +1 -1
- package/components/upload/src/index.vue.d.ts +4 -4
- package/components/upload-plus/src/index.vue.d.ts +1 -1
- package/components/van-cascader/src/index.vue.d.ts +14 -14
- package/components/var-datetime-picker/src/index.vue.d.ts +2 -2
- package/components/vditor/src/index.vue.d.ts +2 -2
- package/package.json +6 -1
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ReadApi } from './types';
|
|
3
|
+
import { NormalObject } from '@vunk/shared';
|
|
4
|
+
export declare const props: {
|
|
5
|
+
/**
|
|
6
|
+
* @description 读取数据的api
|
|
7
|
+
*/
|
|
8
|
+
readApi: {
|
|
9
|
+
type: PropType<ReadApi>;
|
|
10
|
+
default: () => {
|
|
11
|
+
rows: any[];
|
|
12
|
+
total: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @description 获取完整数据
|
|
17
|
+
* @default props.rApi({ ids: ids.join(',') })
|
|
18
|
+
*/
|
|
19
|
+
getRows: {
|
|
20
|
+
type: PropType<(ids: any[]) => Promise<NormalObject[]>>;
|
|
21
|
+
default: any;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* query表单配置
|
|
25
|
+
*/
|
|
26
|
+
queryItems: {
|
|
27
|
+
type: PropType<any[]>;
|
|
28
|
+
default: () => any[];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* query表单是否继承父级模板
|
|
32
|
+
*/
|
|
33
|
+
inheritTemplates: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
size: {
|
|
38
|
+
readonly type: PropType<import("element-plus").ButtonType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly validator: (val: unknown) => boolean;
|
|
41
|
+
__epPropKey: true;
|
|
42
|
+
};
|
|
43
|
+
type: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
48
|
+
small: BooleanConstructor;
|
|
49
|
+
formItemSize: {
|
|
50
|
+
type: PropType<"default" | "small" | "large">;
|
|
51
|
+
default: "default" | "small" | "large";
|
|
52
|
+
};
|
|
53
|
+
formItemSlots: {
|
|
54
|
+
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
55
|
+
default: any;
|
|
56
|
+
};
|
|
57
|
+
elRef: {
|
|
58
|
+
type: PropType<import("@vunk/core").AnyFunc>;
|
|
59
|
+
default: any;
|
|
60
|
+
};
|
|
61
|
+
inline: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
readonly: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: any;
|
|
68
|
+
};
|
|
69
|
+
formItemTip: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: any;
|
|
72
|
+
};
|
|
73
|
+
formItemTipClass: any;
|
|
74
|
+
labelTip: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: any;
|
|
77
|
+
};
|
|
78
|
+
label: StringConstructor;
|
|
79
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
80
|
+
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
81
|
+
prop: StringConstructor;
|
|
82
|
+
rules: {
|
|
83
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
84
|
+
readonly required: false;
|
|
85
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
86
|
+
__epPropKey: true;
|
|
87
|
+
};
|
|
88
|
+
error: StringConstructor;
|
|
89
|
+
validateStatus: {
|
|
90
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
91
|
+
readonly required: false;
|
|
92
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
93
|
+
__epPropKey: true;
|
|
94
|
+
};
|
|
95
|
+
for: StringConstructor;
|
|
96
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
97
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
98
|
+
disabled: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: any;
|
|
101
|
+
};
|
|
102
|
+
teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
103
|
+
className: StringConstructor;
|
|
104
|
+
popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
105
|
+
fixed: (BooleanConstructor | StringConstructor)[];
|
|
106
|
+
filters: PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters>;
|
|
107
|
+
modelValue: {
|
|
108
|
+
type: PropType<NormalObject[] | string>;
|
|
109
|
+
default: () => any[];
|
|
110
|
+
};
|
|
111
|
+
labelField: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
clearable: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
multiple: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
updateWhenCompleted: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
stringify: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
placeholder: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
dialogClass: any;
|
|
136
|
+
checkTrigger: {
|
|
137
|
+
type: PropType<"check" | "rowClick">;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
oidField: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
selectionHidden: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
148
|
+
paginationDisabled: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
default: boolean;
|
|
151
|
+
};
|
|
152
|
+
border: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
tableClass: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
tableStyle: {
|
|
161
|
+
type: PropType<import("vue").CSSProperties>;
|
|
162
|
+
default: any;
|
|
163
|
+
};
|
|
164
|
+
layout: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
default: any;
|
|
167
|
+
};
|
|
168
|
+
columns: {
|
|
169
|
+
type: PropType<import("@vunk/plus/components/tables-v1/src/types").Column[]>;
|
|
170
|
+
default: () => any[];
|
|
171
|
+
};
|
|
172
|
+
modules: {
|
|
173
|
+
type: PropType<"pagination"[]>;
|
|
174
|
+
default: () => string[];
|
|
175
|
+
};
|
|
176
|
+
align: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: string;
|
|
179
|
+
};
|
|
180
|
+
headerAlign: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
default: string;
|
|
183
|
+
};
|
|
184
|
+
load: PropType<(row: any, treeNode: import("element-plus").TreeNode, resolve: (data: any[]) => void) => void>;
|
|
185
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
186
|
+
showOverflowTooltip: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "showArrow" | "appendTo" | "transition" | "effect" | "enterable" | "popperClass" | "offset" | "placement" | "popperOptions" | "showAfter" | "hideAfter">>>;
|
|
187
|
+
rowKey: PropType<string | ((row: any) => string)>;
|
|
188
|
+
summaryMethod: PropType<import("element-plus").SummaryMethod<any>>;
|
|
189
|
+
rowClassName: PropType<import("element-plus").ColumnCls<any>>;
|
|
190
|
+
rowStyle: PropType<import("element-plus").ColumnStyle<any>>;
|
|
191
|
+
cellClassName: PropType<import("element-plus").CellCls<any>>;
|
|
192
|
+
cellStyle: PropType<import("element-plus").CellStyle<any>>;
|
|
193
|
+
headerRowClassName: PropType<import("element-plus").ColumnCls<any>>;
|
|
194
|
+
headerRowStyle: PropType<import("element-plus").ColumnStyle<any>>;
|
|
195
|
+
headerCellClassName: PropType<import("element-plus").CellCls<any>>;
|
|
196
|
+
headerCellStyle: PropType<import("element-plus").CellStyle<any>>;
|
|
197
|
+
expandRowKeys: PropType<any[]>;
|
|
198
|
+
defaultSort: PropType<import("element-plus").Sort>;
|
|
199
|
+
tooltipOptions: PropType<Partial<Pick<import("element-plus").ElTooltipProps, "showArrow" | "appendTo" | "transition" | "effect" | "enterable" | "popperClass" | "offset" | "placement" | "popperOptions" | "showAfter" | "hideAfter">>>;
|
|
200
|
+
spanMethod: PropType<(data: {
|
|
201
|
+
row: any;
|
|
202
|
+
rowIndex: number;
|
|
203
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
204
|
+
columnIndex: number;
|
|
205
|
+
}) => number[] | {
|
|
206
|
+
rowspan: number;
|
|
207
|
+
colspan: number;
|
|
208
|
+
}>;
|
|
209
|
+
treeProps: {
|
|
210
|
+
type: PropType<{
|
|
211
|
+
hasChildren?: string;
|
|
212
|
+
children?: string;
|
|
213
|
+
}>;
|
|
214
|
+
default: () => {
|
|
215
|
+
hasChildren: string;
|
|
216
|
+
children: string;
|
|
217
|
+
checkStrictly: boolean;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
221
|
+
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
222
|
+
fit: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: boolean;
|
|
225
|
+
};
|
|
226
|
+
stripe: BooleanConstructor;
|
|
227
|
+
showHeader: {
|
|
228
|
+
type: BooleanConstructor;
|
|
229
|
+
default: boolean;
|
|
230
|
+
};
|
|
231
|
+
showSummary: BooleanConstructor;
|
|
232
|
+
sumText: StringConstructor;
|
|
233
|
+
highlightCurrentRow: BooleanConstructor;
|
|
234
|
+
currentRowKey: (StringConstructor | NumberConstructor)[];
|
|
235
|
+
emptyText: StringConstructor;
|
|
236
|
+
defaultExpandAll: BooleanConstructor;
|
|
237
|
+
tooltipEffect: StringConstructor;
|
|
238
|
+
selectOnIndeterminate: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
default: boolean;
|
|
241
|
+
};
|
|
242
|
+
indent: {
|
|
243
|
+
type: NumberConstructor;
|
|
244
|
+
default: number;
|
|
245
|
+
};
|
|
246
|
+
lazy: BooleanConstructor;
|
|
247
|
+
tableLayout: {
|
|
248
|
+
type: PropType<"fixed" | "auto">;
|
|
249
|
+
default: string;
|
|
250
|
+
};
|
|
251
|
+
scrollbarAlwaysOn: BooleanConstructor;
|
|
252
|
+
flexible: BooleanConstructor;
|
|
253
|
+
appendFilterPanelTo: StringConstructor;
|
|
254
|
+
scrollbarTabindex: {
|
|
255
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
256
|
+
default: any;
|
|
257
|
+
};
|
|
258
|
+
defaultPageSize: NumberConstructor;
|
|
259
|
+
pageCount: NumberConstructor;
|
|
260
|
+
pagerCount: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
|
|
261
|
+
defaultCurrentPage: NumberConstructor;
|
|
262
|
+
pageSizes: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | ((new (...args: any[]) => number[]) | (() => number[]))[], unknown, unknown, () => [10, 20, 30, 40, 50, 100], boolean>;
|
|
263
|
+
prevText: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
264
|
+
prevIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown, () => any, boolean>;
|
|
265
|
+
nextText: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
266
|
+
nextIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown, () => any, boolean>;
|
|
267
|
+
background: BooleanConstructor;
|
|
268
|
+
hideOnSinglePage: BooleanConstructor;
|
|
269
|
+
labelClassName: StringConstructor;
|
|
270
|
+
property: StringConstructor;
|
|
271
|
+
minWidth: {
|
|
272
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
273
|
+
default: string;
|
|
274
|
+
};
|
|
275
|
+
renderHeader: PropType<(data: {
|
|
276
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
277
|
+
$index: number;
|
|
278
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
279
|
+
[key: string]: any;
|
|
280
|
+
}>>;
|
|
281
|
+
sortable: {
|
|
282
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
283
|
+
default: boolean;
|
|
284
|
+
};
|
|
285
|
+
sortMethod: PropType<(a: any, b: any) => number>;
|
|
286
|
+
sortBy: PropType<string | string[] | ((row: any, index: number) => string)>;
|
|
287
|
+
resizable: {
|
|
288
|
+
type: BooleanConstructor;
|
|
289
|
+
default: boolean;
|
|
290
|
+
};
|
|
291
|
+
columnKey: StringConstructor;
|
|
292
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
293
|
+
formatter: PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
294
|
+
[key: string]: any;
|
|
295
|
+
}>>;
|
|
296
|
+
selectable: PropType<(row: any, index: number) => boolean>;
|
|
297
|
+
reserveSelection: BooleanConstructor;
|
|
298
|
+
filterMethod: PropType<import("element-plus/es/components/table/src/table-column/defaults").FilterMethods<any>>;
|
|
299
|
+
filteredValue: PropType<string[]>;
|
|
300
|
+
filterPlacement: StringConstructor;
|
|
301
|
+
filterMultiple: {
|
|
302
|
+
type: BooleanConstructor;
|
|
303
|
+
default: boolean;
|
|
304
|
+
};
|
|
305
|
+
index: PropType<number | ((index: number) => number)>;
|
|
306
|
+
sortOrders: {
|
|
307
|
+
type: PropType<("ascending" | "descending")[]>;
|
|
308
|
+
default: () => string[];
|
|
309
|
+
validator: (val: ("ascending" | "descending")[]) => boolean;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
export declare const emits: {
|
|
313
|
+
'update:modelValue': any;
|
|
314
|
+
'update:start': (val: number) => boolean;
|
|
315
|
+
select: any;
|
|
316
|
+
'select-all': any;
|
|
317
|
+
'selection-change': any;
|
|
318
|
+
'cell-mouse-enter': any;
|
|
319
|
+
'cell-mouse-leave': any;
|
|
320
|
+
'cell-contextmenu': any;
|
|
321
|
+
'cell-click': any;
|
|
322
|
+
'cell-dblclick': any;
|
|
323
|
+
'row-click': any;
|
|
324
|
+
'row-contextmenu': any;
|
|
325
|
+
'row-dblclick': any;
|
|
326
|
+
'header-click': any;
|
|
327
|
+
'header-contextmenu': any;
|
|
328
|
+
'sort-change': any;
|
|
329
|
+
'filter-change': any;
|
|
330
|
+
'current-change': any;
|
|
331
|
+
'header-dragend': any;
|
|
332
|
+
'expand-change': any;
|
|
333
|
+
scroll: any;
|
|
334
|
+
'update:current-page': (val: number) => boolean;
|
|
335
|
+
'update:page-size': (val: number) => boolean;
|
|
336
|
+
'size-change': (val: number) => boolean;
|
|
337
|
+
change: (currentPage: number, pageSize: number) => boolean;
|
|
338
|
+
'prev-click': (val: number) => boolean;
|
|
339
|
+
'next-click': (val: number) => boolean;
|
|
340
|
+
};
|