lew-ui 2.7.1 → 2.7.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/LICENSE +21 -21
- package/README.md +1 -3
- package/dist/components/action-box/src/LewActionBox.vue.d.ts +2 -2
- package/dist/components/action-box/src/props.d.ts +1 -2
- package/dist/components/alert/src/LewAlert.vue.d.ts +11 -5
- package/dist/components/alert/src/props.d.ts +1 -2
- package/dist/components/avatar/src/LewAvatar.vue.d.ts +1 -1
- package/dist/components/avatar/src/props.d.ts +1 -2
- package/dist/components/back-top/src/LewBackTop.vue.d.ts +9 -3
- package/dist/components/back-top/src/props.d.ts +0 -1
- package/dist/components/badge/src/LewBadge.vue.d.ts +10 -4
- package/dist/components/badge/src/props.d.ts +0 -1
- package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +1 -1
- package/dist/components/breadcrumb/src/props.d.ts +0 -1
- package/dist/components/button/src/LewButton.vue.d.ts +17 -6
- package/dist/components/button/src/props.d.ts +1 -2
- package/dist/components/cascader/src/LewCascader.vue.d.ts +440 -12
- package/dist/components/cascader/src/props.d.ts +13 -4
- package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +11 -5
- package/dist/components/checkbox/src/LewCheckboxGroup.vue.d.ts +13 -12
- package/dist/components/checkbox/src/props.d.ts +3 -4
- package/dist/components/collapse/src/LewCollapse.vue.d.ts +21 -7
- package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +28 -14
- package/dist/components/collapse/src/props.d.ts +0 -1
- package/dist/components/color-picker/src/LewColorPicker.vue.d.ts +13 -5
- package/dist/components/color-picker/src/props.d.ts +0 -1
- package/dist/components/date-picker/src/LewDate.vue.d.ts +11 -4
- package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +254 -7
- package/dist/components/date-picker/src/date.d.ts +3 -3
- package/dist/components/date-picker/src/props.d.ts +3 -4
- package/dist/components/date-range-picker/src/LewDateRange.vue.d.ts +19 -8
- package/dist/components/date-range-picker/src/LewDateRangePicker.vue.d.ts +296 -8
- package/dist/components/date-range-picker/src/props.d.ts +1 -2
- package/dist/components/desc/src/LewDesc.vue.d.ts +48 -3
- package/dist/components/desc/src/LewDescItem.vue.d.ts +5 -4
- package/dist/components/desc/src/props.d.ts +3 -4
- package/dist/components/drawer/src/LewDrawer.vue.d.ts +25 -9
- package/dist/components/drawer/src/props.d.ts +0 -1
- package/dist/components/dropdown/src/LewDropdown.vue.d.ts +407 -7
- package/dist/components/dropdown/src/props.d.ts +1 -2
- package/dist/components/empty/src/LewEmpty.vue.d.ts +8 -8
- package/dist/components/empty/src/props.d.ts +0 -1
- package/dist/components/expand/src/LewExpand.vue.d.ts +13 -3
- package/dist/components/expand/src/props.d.ts +0 -1
- package/dist/components/flex/src/LewFlex.vue.d.ts +10 -4
- package/dist/components/flex/src/props.d.ts +0 -1
- package/dist/components/form/src/LewForm.vue.d.ts +60 -11
- package/dist/components/form/src/LewFormItem.vue.d.ts +20 -9
- package/dist/components/form/src/LewGetLabelWidth.vue.d.ts +5 -3
- package/dist/components/form/src/RequiredIcon.vue.d.ts +1 -1
- package/dist/components/form/src/props.d.ts +2 -3
- package/dist/components/image/src/LewImage.vue.d.ts +10 -4
- package/dist/components/image/src/props.d.ts +0 -1
- package/dist/components/index.d.ts +35 -35
- package/dist/components/input/src/LewInput.vue.d.ts +33 -16
- package/dist/components/input/src/props.d.ts +1 -2
- package/dist/components/input-number/src/LewInputNumber.vue.d.ts +18 -12
- package/dist/components/input-number/src/props.d.ts +1 -2
- package/dist/components/input-table/src/FormModal.vue.d.ts +220 -5
- package/dist/components/input-table/src/LewInputTable.vue.d.ts +563 -12
- package/dist/components/input-table/src/props.d.ts +3 -4
- package/dist/components/input-tag/src/LewInputTag.vue.d.ts +359 -5
- package/dist/components/input-tag/src/props.d.ts +0 -1
- package/dist/components/input-tree/src/LewInputTree.vue.d.ts +38 -0
- package/dist/components/mark/src/LewMark.vue.d.ts +19 -13
- package/dist/components/mark/src/props.d.ts +0 -1
- package/dist/components/menu/src/LewMenu.vue.d.ts +9 -4
- package/dist/components/menu/src/props.d.ts +3 -4
- package/dist/components/menu-tree/src/LewMenuTree.vue.d.ts +26 -9
- package/dist/components/menu-tree/src/LewMenuTreeItem.vue.d.ts +28 -22
- package/dist/components/menu-tree/src/props.d.ts +3 -4
- package/dist/components/modal/src/LewModal.vue.d.ts +27 -11
- package/dist/components/modal/src/props.d.ts +0 -1
- package/dist/components/pagination/src/LewPagination.vue.d.ts +30 -10
- package/dist/components/pagination/src/props.d.ts +1 -2
- package/dist/components/popok/src/LewPopok.vue.d.ts +853 -6
- package/dist/components/popok/src/props.d.ts +0 -1
- package/dist/components/popover/src/LewPopover.vue.d.ts +29 -14
- package/dist/components/popover/src/props.d.ts +0 -1
- package/dist/components/radio/src/LewRadio.vue.d.ts +3 -3
- package/dist/components/radio/src/LewRadioGroup.vue.d.ts +11 -6
- package/dist/components/radio/src/props.d.ts +1 -2
- package/dist/components/rate/src/LewRate.vue.d.ts +12 -4
- package/dist/components/rate/src/props.d.ts +1 -2
- package/dist/components/select/src/LewSelect.vue.d.ts +1038 -17
- package/dist/components/select/src/props.d.ts +21 -6
- package/dist/components/select/src/util.d.ts +3 -4
- package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +1428 -19
- package/dist/components/select-multiple/src/props.d.ts +22 -8
- package/dist/components/slider/src/LewSlider.vue.d.ts +15 -6
- package/dist/components/slider/src/props.d.ts +3 -4
- package/dist/components/slider-range/src/LewSliderRange.vue.d.ts +20 -6
- package/dist/components/slider-range/src/props.d.ts +3 -4
- package/dist/components/steps/src/LewSteps.vue.d.ts +14 -6
- package/dist/components/steps/src/props.d.ts +2 -3
- package/dist/components/switch/src/LewSwitch.vue.d.ts +9 -3
- package/dist/components/switch/src/props.d.ts +1 -2
- package/dist/components/table/src/LewTable.vue.d.ts +53 -25
- package/dist/components/table/src/props.d.ts +1 -2
- package/dist/components/tabs/src/LewTabs.vue.d.ts +15 -12
- package/dist/components/tabs/src/props.d.ts +2 -3
- package/dist/components/tag/src/LewTag.vue.d.ts +11 -5
- package/dist/components/tag/src/props.d.ts +1 -2
- package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +18 -5
- package/dist/components/text-trim/src/props.d.ts +0 -1
- package/dist/components/text-trim/src/text-trim.d.ts +3 -3
- package/dist/components/textarea/src/LewTextarea.vue.d.ts +19 -9
- package/dist/components/textarea/src/props.d.ts +1 -2
- package/dist/components/title/src/LewTitle.vue.d.ts +9 -3
- package/dist/components/title/src/props.d.ts +0 -1
- package/dist/components/tree/src/LewTree.vue.d.ts +36 -17
- package/dist/components/tree/src/LewTreeItem.vue.d.ts +21 -15
- package/dist/components/tree/src/props.d.ts +3 -4
- package/dist/components/tree/src/transformTree.d.ts +7 -18
- package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +1055 -26
- package/dist/components/tree-select/src/props.d.ts +18 -8
- package/dist/components/upload/src/LewUpload.vue.d.ts +169 -8
- package/dist/components/upload/src/LewUploadByCard.vue.d.ts +9 -4
- package/dist/components/upload/src/LewUploadByList.vue.d.ts +9 -4
- package/dist/components/upload/src/props.d.ts +4 -5
- package/dist/constants/index.d.ts +0 -1
- package/dist/directives/backtop/src/index.d.ts +0 -1
- package/dist/directives/context-menu/index.d.ts +1 -1
- package/dist/directives/context-menu/src/LewContextMenu.vue.d.ts +2 -3
- package/dist/directives/context-menu/src/index.d.ts +28 -29
- package/dist/directives/hover-menu/src/index.d.ts +15 -2
- package/dist/directives/index.d.ts +2 -2
- package/dist/directives/loading/src/index.d.ts +0 -1
- package/dist/directives/tooltip/src/index.d.ts +0 -1
- package/dist/index.css +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/{index.mjs → index.js} +23901 -23191
- package/dist/index.umd.cjs +40 -0
- package/dist/locals/de.d.ts +3 -0
- package/dist/locals/en.d.ts +3 -0
- package/dist/locals/es.d.ts +3 -0
- package/dist/locals/fr.d.ts +3 -0
- package/dist/locals/index.d.ts +9 -10
- package/dist/locals/it.d.ts +3 -0
- package/dist/locals/ja.d.ts +3 -0
- package/dist/locals/ko.d.ts +3 -0
- package/dist/locals/pt.d.ts +3 -0
- package/dist/locals/zh.d.ts +3 -0
- package/dist/methods/dialog/src/LewDialog.vue.d.ts +464 -6
- package/dist/methods/dialog/src/index.d.ts +4 -4
- package/dist/methods/dialog/src/props.d.ts +0 -1
- package/dist/methods/index.d.ts +1 -1
- package/dist/methods/message/src/index.d.ts +0 -1
- package/dist/methods/notification/src/components/NotificationContainer.vue.d.ts +5 -3
- package/dist/methods/notification/src/components/NotificationItem.vue.d.ts +6 -21
- package/dist/methods/notification/src/index.d.ts +9 -9
- package/dist/utils/index.d.ts +27 -115
- package/package.json +47 -69
- package/README.zh-CN.md +0 -48
- package/dist/index.umd.js +0 -46
- package/dist/style.css +0 -1
|
@@ -1,13 +1,285 @@
|
|
|
1
1
|
import { InputTableColumn } from './props';
|
|
2
|
-
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
'table-header'?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
formModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
9
|
+
options: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
};
|
|
12
|
+
size: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
checkUniqueFieldFn: {
|
|
17
|
+
type: FunctionConstructor;
|
|
18
|
+
default: () => boolean;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{
|
|
21
|
+
onAddSuccess?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
onEditSuccess?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
open: ({ row, index }: {
|
|
25
|
+
row: any;
|
|
26
|
+
index: number;
|
|
27
|
+
}) => void;
|
|
28
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
addSuccess: (...args: any[]) => void;
|
|
30
|
+
editSuccess: (...args: any[]) => void;
|
|
31
|
+
}, import('vue').PublicProps, {
|
|
32
|
+
size: string;
|
|
33
|
+
checkUniqueFieldFn: Function;
|
|
34
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
35
|
+
formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
36
|
+
options: {
|
|
37
|
+
type: PropType<Array<Record<string, any>>>;
|
|
38
|
+
required: boolean;
|
|
39
|
+
default: () => never[];
|
|
40
|
+
description: string;
|
|
41
|
+
validator(value: Array<Record<string, any>>): boolean;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
type: PropType<import('../../..').LewSize>;
|
|
45
|
+
default: string;
|
|
46
|
+
description: string;
|
|
47
|
+
validator(value: import('../../..').LewSize): boolean;
|
|
48
|
+
};
|
|
49
|
+
width: {
|
|
50
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
51
|
+
default: string;
|
|
52
|
+
description: string;
|
|
53
|
+
validator(value: number | string): boolean;
|
|
54
|
+
};
|
|
55
|
+
columns: {
|
|
56
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
57
|
+
default: number;
|
|
58
|
+
description: string;
|
|
59
|
+
validator(value: number | string): boolean;
|
|
60
|
+
};
|
|
61
|
+
labelWidth: {
|
|
62
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
63
|
+
default: string;
|
|
64
|
+
description: string;
|
|
65
|
+
validator(value: number | string): boolean;
|
|
66
|
+
};
|
|
67
|
+
disabled: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
readonly: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
direction: {
|
|
78
|
+
type: PropType<import('../../..').FormDirection>;
|
|
79
|
+
default: string;
|
|
80
|
+
description: string;
|
|
81
|
+
validator(value: import('../../..').FormDirection): boolean;
|
|
82
|
+
};
|
|
83
|
+
id: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
description: string;
|
|
87
|
+
hidden: boolean;
|
|
88
|
+
};
|
|
89
|
+
formMethods: {
|
|
90
|
+
type: PropType<Record<string, (...args: any[]) => any>>;
|
|
91
|
+
default: () => {};
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
}>> & Readonly<{
|
|
95
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
96
|
+
onMounted?: ((...args: any[]) => any) | undefined;
|
|
97
|
+
}>, {
|
|
98
|
+
getForm: () => Record<string, any>;
|
|
99
|
+
setForm: (value?: any) => void;
|
|
100
|
+
resetError: () => void;
|
|
101
|
+
validate: () => Promise<boolean>;
|
|
102
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
103
|
+
change: (...args: any[]) => void;
|
|
104
|
+
mounted: (...args: any[]) => void;
|
|
105
|
+
}, import('vue').PublicProps, {
|
|
106
|
+
size: import('../../..').LewSize;
|
|
107
|
+
direction: import('../../..').FormDirection;
|
|
108
|
+
options: Record<string, any>[];
|
|
109
|
+
disabled: boolean;
|
|
110
|
+
width: string | number;
|
|
111
|
+
readonly: boolean;
|
|
112
|
+
formMethods: Record<string, (...args: any[]) => any>;
|
|
113
|
+
columns: string | number;
|
|
114
|
+
labelWidth: string | number;
|
|
115
|
+
id: string;
|
|
116
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
117
|
+
formLabelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
118
|
+
size: {
|
|
119
|
+
type: PropType<import('../../..').LewSize>;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
padding: {
|
|
123
|
+
type: NumberConstructor;
|
|
124
|
+
default: number;
|
|
125
|
+
};
|
|
126
|
+
options: {
|
|
127
|
+
type: PropType<any>;
|
|
128
|
+
};
|
|
129
|
+
}>> & Readonly<{}>, {
|
|
130
|
+
getWidth: () => number | undefined;
|
|
131
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
132
|
+
size: import('../../..').LewSize;
|
|
133
|
+
padding: number;
|
|
134
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
135
|
+
formLabelRef: HTMLDivElement;
|
|
136
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
137
|
+
P: {};
|
|
138
|
+
B: {};
|
|
139
|
+
D: {};
|
|
140
|
+
C: {};
|
|
141
|
+
M: {};
|
|
142
|
+
Defaults: {};
|
|
143
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
144
|
+
size: {
|
|
145
|
+
type: PropType<import('../../..').LewSize>;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
padding: {
|
|
149
|
+
type: NumberConstructor;
|
|
150
|
+
default: number;
|
|
151
|
+
};
|
|
152
|
+
options: {
|
|
153
|
+
type: PropType<any>;
|
|
154
|
+
};
|
|
155
|
+
}>> & Readonly<{}>, {
|
|
156
|
+
getWidth: () => number | undefined;
|
|
157
|
+
}, {}, {}, {}, {
|
|
158
|
+
size: import('../../..').LewSize;
|
|
159
|
+
padding: number;
|
|
160
|
+
}> | null;
|
|
161
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
162
|
+
P: {};
|
|
163
|
+
B: {};
|
|
164
|
+
D: {};
|
|
165
|
+
C: {};
|
|
166
|
+
M: {};
|
|
167
|
+
Defaults: {};
|
|
168
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
169
|
+
options: {
|
|
170
|
+
type: PropType<Array<Record<string, any>>>;
|
|
171
|
+
required: boolean;
|
|
172
|
+
default: () => never[];
|
|
173
|
+
description: string;
|
|
174
|
+
validator(value: Array<Record<string, any>>): boolean;
|
|
175
|
+
};
|
|
176
|
+
size: {
|
|
177
|
+
type: PropType<import('../../..').LewSize>;
|
|
178
|
+
default: string;
|
|
179
|
+
description: string;
|
|
180
|
+
validator(value: import('../../..').LewSize): boolean;
|
|
181
|
+
};
|
|
182
|
+
width: {
|
|
183
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
184
|
+
default: string;
|
|
185
|
+
description: string;
|
|
186
|
+
validator(value: number | string): boolean;
|
|
187
|
+
};
|
|
188
|
+
columns: {
|
|
189
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
190
|
+
default: number;
|
|
191
|
+
description: string;
|
|
192
|
+
validator(value: number | string): boolean;
|
|
193
|
+
};
|
|
194
|
+
labelWidth: {
|
|
195
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
196
|
+
default: string;
|
|
197
|
+
description: string;
|
|
198
|
+
validator(value: number | string): boolean;
|
|
199
|
+
};
|
|
200
|
+
disabled: {
|
|
201
|
+
type: BooleanConstructor;
|
|
202
|
+
default: boolean;
|
|
203
|
+
description: string;
|
|
204
|
+
};
|
|
205
|
+
readonly: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: boolean;
|
|
208
|
+
description: string;
|
|
209
|
+
};
|
|
210
|
+
direction: {
|
|
211
|
+
type: PropType<import('../../..').FormDirection>;
|
|
212
|
+
default: string;
|
|
213
|
+
description: string;
|
|
214
|
+
validator(value: import('../../..').FormDirection): boolean;
|
|
215
|
+
};
|
|
216
|
+
id: {
|
|
217
|
+
type: StringConstructor;
|
|
218
|
+
default: string;
|
|
219
|
+
description: string;
|
|
220
|
+
hidden: boolean;
|
|
221
|
+
};
|
|
222
|
+
formMethods: {
|
|
223
|
+
type: PropType<Record<string, (...args: any[]) => any>>;
|
|
224
|
+
default: () => {};
|
|
225
|
+
description: string;
|
|
226
|
+
};
|
|
227
|
+
}>> & Readonly<{
|
|
228
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
229
|
+
onMounted?: ((...args: any[]) => any) | undefined;
|
|
230
|
+
}>, {
|
|
231
|
+
getForm: () => Record<string, any>;
|
|
232
|
+
setForm: (value?: any) => void;
|
|
233
|
+
resetError: () => void;
|
|
234
|
+
validate: () => Promise<boolean>;
|
|
235
|
+
}, {}, {}, {}, {
|
|
236
|
+
size: import('../../..').LewSize;
|
|
237
|
+
direction: import('../../..').FormDirection;
|
|
238
|
+
options: Record<string, any>[];
|
|
239
|
+
disabled: boolean;
|
|
240
|
+
width: string | number;
|
|
241
|
+
readonly: boolean;
|
|
242
|
+
formMethods: Record<string, (...args: any[]) => any>;
|
|
243
|
+
columns: string | number;
|
|
244
|
+
labelWidth: string | number;
|
|
245
|
+
id: string;
|
|
246
|
+
}> | null;
|
|
247
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
248
|
+
P: {};
|
|
249
|
+
B: {};
|
|
250
|
+
D: {};
|
|
251
|
+
C: {};
|
|
252
|
+
M: {};
|
|
253
|
+
Defaults: {};
|
|
254
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
255
|
+
options: {
|
|
256
|
+
type: ObjectConstructor;
|
|
257
|
+
};
|
|
258
|
+
size: {
|
|
259
|
+
type: StringConstructor;
|
|
260
|
+
default: string;
|
|
261
|
+
};
|
|
262
|
+
checkUniqueFieldFn: {
|
|
263
|
+
type: FunctionConstructor;
|
|
264
|
+
default: () => boolean;
|
|
265
|
+
};
|
|
266
|
+
}>> & Readonly<{
|
|
267
|
+
onAddSuccess?: ((...args: any[]) => any) | undefined;
|
|
268
|
+
onEditSuccess?: ((...args: any[]) => any) | undefined;
|
|
269
|
+
}>, {
|
|
270
|
+
open: ({ row, index }: {
|
|
271
|
+
row: any;
|
|
272
|
+
index: number;
|
|
273
|
+
}) => void;
|
|
274
|
+
}, {}, {}, {}, {
|
|
275
|
+
size: string;
|
|
276
|
+
checkUniqueFieldFn: Function;
|
|
277
|
+
}> | null;
|
|
278
|
+
};
|
|
279
|
+
rootEl: HTMLDivElement;
|
|
5
280
|
};
|
|
281
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
6
282
|
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
7
|
-
modelValue: {
|
|
8
|
-
required: true;
|
|
9
|
-
type: import('vue').PropType<any>;
|
|
10
|
-
};
|
|
11
283
|
columns: {
|
|
12
284
|
type: PropType<InputTableColumn[]>;
|
|
13
285
|
default: () => {
|
|
@@ -89,11 +361,13 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
89
361
|
default: string;
|
|
90
362
|
description: string;
|
|
91
363
|
};
|
|
92
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
93
364
|
modelValue: {
|
|
365
|
+
type: globalThis.PropType<any>;
|
|
94
366
|
required: true;
|
|
95
|
-
type: import('vue').PropType<any>;
|
|
96
367
|
};
|
|
368
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
369
|
+
"update:modelValue": (value: any) => any;
|
|
370
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
97
371
|
columns: {
|
|
98
372
|
type: PropType<InputTableColumn[]>;
|
|
99
373
|
default: () => {
|
|
@@ -175,11 +449,17 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
175
449
|
default: string;
|
|
176
450
|
description: string;
|
|
177
451
|
};
|
|
178
|
-
|
|
452
|
+
modelValue: {
|
|
453
|
+
type: globalThis.PropType<any>;
|
|
454
|
+
required: true;
|
|
455
|
+
};
|
|
456
|
+
}>> & Readonly<{
|
|
457
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
458
|
+
}>, {
|
|
179
459
|
size: import('../../..').LewSize;
|
|
180
460
|
width: string | number;
|
|
181
|
-
columns: InputTableColumn[];
|
|
182
461
|
clearable: boolean;
|
|
462
|
+
columns: InputTableColumn[];
|
|
183
463
|
rowKey: string;
|
|
184
464
|
addable: boolean;
|
|
185
465
|
defaultForm: Record<string, any>;
|
|
@@ -190,8 +470,279 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
190
470
|
sortTooltipCustomRender: (row: Record<string, any>) => string;
|
|
191
471
|
autoUniqueId: boolean;
|
|
192
472
|
uniqueField: string;
|
|
193
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
194
|
-
|
|
473
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
474
|
+
formModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
475
|
+
options: {
|
|
476
|
+
type: ObjectConstructor;
|
|
477
|
+
};
|
|
478
|
+
size: {
|
|
479
|
+
type: StringConstructor;
|
|
480
|
+
default: string;
|
|
481
|
+
};
|
|
482
|
+
checkUniqueFieldFn: {
|
|
483
|
+
type: FunctionConstructor;
|
|
484
|
+
default: () => boolean;
|
|
485
|
+
};
|
|
486
|
+
}>> & Readonly<{
|
|
487
|
+
onAddSuccess?: ((...args: any[]) => any) | undefined;
|
|
488
|
+
onEditSuccess?: ((...args: any[]) => any) | undefined;
|
|
489
|
+
}>, {
|
|
490
|
+
open: ({ row, index }: {
|
|
491
|
+
row: any;
|
|
492
|
+
index: number;
|
|
493
|
+
}) => void;
|
|
494
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
495
|
+
addSuccess: (...args: any[]) => void;
|
|
496
|
+
editSuccess: (...args: any[]) => void;
|
|
497
|
+
}, import('vue').PublicProps, {
|
|
498
|
+
size: string;
|
|
499
|
+
checkUniqueFieldFn: Function;
|
|
500
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
501
|
+
formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
502
|
+
options: {
|
|
503
|
+
type: PropType<Array<Record<string, any>>>;
|
|
504
|
+
required: boolean;
|
|
505
|
+
default: () => never[];
|
|
506
|
+
description: string;
|
|
507
|
+
validator(value: Array<Record<string, any>>): boolean;
|
|
508
|
+
};
|
|
509
|
+
size: {
|
|
510
|
+
type: PropType<import('../../..').LewSize>;
|
|
511
|
+
default: string;
|
|
512
|
+
description: string;
|
|
513
|
+
validator(value: import('../../..').LewSize): boolean;
|
|
514
|
+
};
|
|
515
|
+
width: {
|
|
516
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
517
|
+
default: string;
|
|
518
|
+
description: string;
|
|
519
|
+
validator(value: number | string): boolean;
|
|
520
|
+
};
|
|
521
|
+
columns: {
|
|
522
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
523
|
+
default: number;
|
|
524
|
+
description: string;
|
|
525
|
+
validator(value: number | string): boolean;
|
|
526
|
+
};
|
|
527
|
+
labelWidth: {
|
|
528
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
529
|
+
default: string;
|
|
530
|
+
description: string;
|
|
531
|
+
validator(value: number | string): boolean;
|
|
532
|
+
};
|
|
533
|
+
disabled: {
|
|
534
|
+
type: BooleanConstructor;
|
|
535
|
+
default: boolean;
|
|
536
|
+
description: string;
|
|
537
|
+
};
|
|
538
|
+
readonly: {
|
|
539
|
+
type: BooleanConstructor;
|
|
540
|
+
default: boolean;
|
|
541
|
+
description: string;
|
|
542
|
+
};
|
|
543
|
+
direction: {
|
|
544
|
+
type: PropType<import('../../..').FormDirection>;
|
|
545
|
+
default: string;
|
|
546
|
+
description: string;
|
|
547
|
+
validator(value: import('../../..').FormDirection): boolean;
|
|
548
|
+
};
|
|
549
|
+
id: {
|
|
550
|
+
type: StringConstructor;
|
|
551
|
+
default: string;
|
|
552
|
+
description: string;
|
|
553
|
+
hidden: boolean;
|
|
554
|
+
};
|
|
555
|
+
formMethods: {
|
|
556
|
+
type: PropType<Record<string, (...args: any[]) => any>>;
|
|
557
|
+
default: () => {};
|
|
558
|
+
description: string;
|
|
559
|
+
};
|
|
560
|
+
}>> & Readonly<{
|
|
561
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
562
|
+
onMounted?: ((...args: any[]) => any) | undefined;
|
|
563
|
+
}>, {
|
|
564
|
+
getForm: () => Record<string, any>;
|
|
565
|
+
setForm: (value?: any) => void;
|
|
566
|
+
resetError: () => void;
|
|
567
|
+
validate: () => Promise<boolean>;
|
|
568
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
569
|
+
change: (...args: any[]) => void;
|
|
570
|
+
mounted: (...args: any[]) => void;
|
|
571
|
+
}, import('vue').PublicProps, {
|
|
572
|
+
size: import('../../..').LewSize;
|
|
573
|
+
direction: import('../../..').FormDirection;
|
|
574
|
+
options: Record<string, any>[];
|
|
575
|
+
disabled: boolean;
|
|
576
|
+
width: string | number;
|
|
577
|
+
readonly: boolean;
|
|
578
|
+
formMethods: Record<string, (...args: any[]) => any>;
|
|
579
|
+
columns: string | number;
|
|
580
|
+
labelWidth: string | number;
|
|
581
|
+
id: string;
|
|
582
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
583
|
+
formLabelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
584
|
+
size: {
|
|
585
|
+
type: PropType<import('../../..').LewSize>;
|
|
586
|
+
default: string;
|
|
587
|
+
};
|
|
588
|
+
padding: {
|
|
589
|
+
type: NumberConstructor;
|
|
590
|
+
default: number;
|
|
591
|
+
};
|
|
592
|
+
options: {
|
|
593
|
+
type: PropType<any>;
|
|
594
|
+
};
|
|
595
|
+
}>> & Readonly<{}>, {
|
|
596
|
+
getWidth: () => number | undefined;
|
|
597
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
598
|
+
size: import('../../..').LewSize;
|
|
599
|
+
padding: number;
|
|
600
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
601
|
+
formLabelRef: HTMLDivElement;
|
|
602
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
603
|
+
P: {};
|
|
604
|
+
B: {};
|
|
605
|
+
D: {};
|
|
606
|
+
C: {};
|
|
607
|
+
M: {};
|
|
608
|
+
Defaults: {};
|
|
609
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
610
|
+
size: {
|
|
611
|
+
type: PropType<import('../../..').LewSize>;
|
|
612
|
+
default: string;
|
|
613
|
+
};
|
|
614
|
+
padding: {
|
|
615
|
+
type: NumberConstructor;
|
|
616
|
+
default: number;
|
|
617
|
+
};
|
|
618
|
+
options: {
|
|
619
|
+
type: PropType<any>;
|
|
620
|
+
};
|
|
621
|
+
}>> & Readonly<{}>, {
|
|
622
|
+
getWidth: () => number | undefined;
|
|
623
|
+
}, {}, {}, {}, {
|
|
624
|
+
size: import('../../..').LewSize;
|
|
625
|
+
padding: number;
|
|
626
|
+
}> | null;
|
|
627
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
628
|
+
P: {};
|
|
629
|
+
B: {};
|
|
630
|
+
D: {};
|
|
631
|
+
C: {};
|
|
632
|
+
M: {};
|
|
633
|
+
Defaults: {};
|
|
634
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
635
|
+
options: {
|
|
636
|
+
type: PropType<Array<Record<string, any>>>;
|
|
637
|
+
required: boolean;
|
|
638
|
+
default: () => never[];
|
|
639
|
+
description: string;
|
|
640
|
+
validator(value: Array<Record<string, any>>): boolean;
|
|
641
|
+
};
|
|
642
|
+
size: {
|
|
643
|
+
type: PropType<import('../../..').LewSize>;
|
|
644
|
+
default: string;
|
|
645
|
+
description: string;
|
|
646
|
+
validator(value: import('../../..').LewSize): boolean;
|
|
647
|
+
};
|
|
648
|
+
width: {
|
|
649
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
650
|
+
default: string;
|
|
651
|
+
description: string;
|
|
652
|
+
validator(value: number | string): boolean;
|
|
653
|
+
};
|
|
654
|
+
columns: {
|
|
655
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
656
|
+
default: number;
|
|
657
|
+
description: string;
|
|
658
|
+
validator(value: number | string): boolean;
|
|
659
|
+
};
|
|
660
|
+
labelWidth: {
|
|
661
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
662
|
+
default: string;
|
|
663
|
+
description: string;
|
|
664
|
+
validator(value: number | string): boolean;
|
|
665
|
+
};
|
|
666
|
+
disabled: {
|
|
667
|
+
type: BooleanConstructor;
|
|
668
|
+
default: boolean;
|
|
669
|
+
description: string;
|
|
670
|
+
};
|
|
671
|
+
readonly: {
|
|
672
|
+
type: BooleanConstructor;
|
|
673
|
+
default: boolean;
|
|
674
|
+
description: string;
|
|
675
|
+
};
|
|
676
|
+
direction: {
|
|
677
|
+
type: PropType<import('../../..').FormDirection>;
|
|
678
|
+
default: string;
|
|
679
|
+
description: string;
|
|
680
|
+
validator(value: import('../../..').FormDirection): boolean;
|
|
681
|
+
};
|
|
682
|
+
id: {
|
|
683
|
+
type: StringConstructor;
|
|
684
|
+
default: string;
|
|
685
|
+
description: string;
|
|
686
|
+
hidden: boolean;
|
|
687
|
+
};
|
|
688
|
+
formMethods: {
|
|
689
|
+
type: PropType<Record<string, (...args: any[]) => any>>;
|
|
690
|
+
default: () => {};
|
|
691
|
+
description: string;
|
|
692
|
+
};
|
|
693
|
+
}>> & Readonly<{
|
|
694
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
695
|
+
onMounted?: ((...args: any[]) => any) | undefined;
|
|
696
|
+
}>, {
|
|
697
|
+
getForm: () => Record<string, any>;
|
|
698
|
+
setForm: (value?: any) => void;
|
|
699
|
+
resetError: () => void;
|
|
700
|
+
validate: () => Promise<boolean>;
|
|
701
|
+
}, {}, {}, {}, {
|
|
702
|
+
size: import('../../..').LewSize;
|
|
703
|
+
direction: import('../../..').FormDirection;
|
|
704
|
+
options: Record<string, any>[];
|
|
705
|
+
disabled: boolean;
|
|
706
|
+
width: string | number;
|
|
707
|
+
readonly: boolean;
|
|
708
|
+
formMethods: Record<string, (...args: any[]) => any>;
|
|
709
|
+
columns: string | number;
|
|
710
|
+
labelWidth: string | number;
|
|
711
|
+
id: string;
|
|
712
|
+
}> | null;
|
|
713
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
714
|
+
P: {};
|
|
715
|
+
B: {};
|
|
716
|
+
D: {};
|
|
717
|
+
C: {};
|
|
718
|
+
M: {};
|
|
719
|
+
Defaults: {};
|
|
720
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
721
|
+
options: {
|
|
722
|
+
type: ObjectConstructor;
|
|
723
|
+
};
|
|
724
|
+
size: {
|
|
725
|
+
type: StringConstructor;
|
|
726
|
+
default: string;
|
|
727
|
+
};
|
|
728
|
+
checkUniqueFieldFn: {
|
|
729
|
+
type: FunctionConstructor;
|
|
730
|
+
default: () => boolean;
|
|
731
|
+
};
|
|
732
|
+
}>> & Readonly<{
|
|
733
|
+
onAddSuccess?: ((...args: any[]) => any) | undefined;
|
|
734
|
+
onEditSuccess?: ((...args: any[]) => any) | undefined;
|
|
735
|
+
}>, {
|
|
736
|
+
open: ({ row, index }: {
|
|
737
|
+
row: any;
|
|
738
|
+
index: number;
|
|
739
|
+
}) => void;
|
|
740
|
+
}, {}, {}, {}, {
|
|
741
|
+
size: string;
|
|
742
|
+
checkUniqueFieldFn: Function;
|
|
743
|
+
}> | null;
|
|
744
|
+
}, HTMLDivElement>;
|
|
745
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
195
746
|
export default _default;
|
|
196
747
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
197
748
|
new (): {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
1
|
import { LewSize } from '../../..';
|
|
3
|
-
|
|
4
|
-
export
|
|
2
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
export interface InputTableColumn {
|
|
5
4
|
title: string;
|
|
6
5
|
width?: number;
|
|
7
6
|
field: string;
|
|
8
7
|
as: string;
|
|
9
|
-
}
|
|
8
|
+
}
|
|
10
9
|
export declare const inputTableModel: {
|
|
11
10
|
modelValue: {
|
|
12
11
|
type: PropType<any[]>;
|