@pixelium/web-vue 0.0.3 → 0.0.5
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/dist/index.d.ts +162 -120
- package/dist/pixelium-vue.cjs +1 -1
- package/dist/pixelium-vue.css +1 -1
- package/dist/pixelium-vue.js +19 -21
- package/dist/pixelium-vue.umd.cjs +1 -1
- package/es/alert/index.d.ts +3 -2
- package/es/alert/type.d.ts +15 -15
- package/es/aside/index.d.ts +3 -2
- package/es/auto-complete/index.css +1 -2
- package/es/auto-complete/index.d.ts +2 -1
- package/es/avatar/index.d.ts +3 -2
- package/es/back-top/index.d.ts +21 -0
- package/es/back-top/type.d.ts +46 -0
- package/es/badge/draw.d.ts +1 -0
- package/es/badge/index.d.ts +26 -0
- package/es/badge/type.d.ts +69 -0
- package/es/breadcrumb/index.d.ts +12 -0
- package/es/breadcrumb/type.d.ts +52 -0
- package/es/breadcrumb-item/index.d.ts +27 -0
- package/es/breadcrumb-item/type.d.ts +49 -0
- package/es/button/index.css +1 -8
- package/es/button/index.d.ts +3 -2
- package/es/button-group/index.d.ts +3 -2
- package/es/checkbox/index.d.ts +3 -2
- package/es/checkbox-group/index.d.ts +3 -2
- package/es/col/index.d.ts +3 -2
- package/es/container/index.d.ts +3 -2
- package/es/dialog/dialog-wrapped.d.ts +9 -8
- package/es/dialog/dialog.d.ts +9 -8
- package/es/dialog/type.d.ts +58 -58
- package/es/divider/index.d.ts +2 -1
- package/es/drop-down/index.d.ts +36 -0
- package/es/drop-down/type.d.ts +140 -0
- package/es/drop-down-list/index.d.ts +10 -0
- package/es/drop-down-list/type.d.ts +19 -0
- package/es/empty/index.d.ts +3 -2
- package/es/footer/index.d.ts +3 -2
- package/es/form/index.d.ts +3 -2
- package/es/form-item/index.d.ts +9 -8
- package/es/grid/index.d.ts +3 -2
- package/es/grid-item/index.d.ts +3 -2
- package/es/header/index.d.ts +3 -2
- package/es/icon/index.d.ts +3 -2
- package/es/image/index.d.ts +3 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/input/index.css +1 -2
- package/es/input/index.d.ts +7 -6
- package/es/input-group/index.d.ts +3 -2
- package/es/input-group-label/index.d.ts +3 -2
- package/es/input-number/index.css +1 -2
- package/es/input-number/index.d.ts +5 -4
- package/es/input-tag/index.css +2 -2
- package/es/input-tag/index.d.ts +13 -12
- package/es/link/index.css +1 -6
- package/es/link/index.d.ts +3 -2
- package/es/main/index.d.ts +3 -2
- package/es/mask/index.d.ts +2 -1
- package/es/menu/index.d.ts +24 -0
- package/es/menu/type.d.ts +145 -0
- package/es/menu-group/index.d.ts +16 -0
- package/es/menu-group/type.d.ts +19 -0
- package/es/menu-item/index.d.ts +26 -0
- package/es/menu-item/type.d.ts +44 -0
- package/es/message/index.d.ts +2 -1
- package/es/message-box/message-box-wrapped.d.ts +2 -1
- package/es/message-box/message-box.d.ts +2 -1
- package/es/option-list/index.d.ts +2 -1
- package/es/popconfirm/index.d.ts +32 -0
- package/es/popconfirm/type.d.ts +199 -0
- package/es/popover/index.d.ts +2 -1
- package/es/popup/index.d.ts +2 -1
- package/es/popup/use-mouse-position.d.ts +1 -0
- package/es/popup/util.d.ts +6 -0
- package/es/popup-content/index.d.ts +5 -4
- package/es/popup-portal/index.d.ts +5 -4
- package/es/popup-trigger/index.d.ts +2 -1
- package/es/popup-wrapper/index.d.ts +5 -4
- package/es/popup-wrapper/use-popup-wrapper-manager.d.ts +22 -1
- package/es/progress/draw.d.ts +6 -0
- package/es/progress/index.d.ts +32 -0
- package/es/progress/type.d.ts +67 -0
- package/es/radio/index.d.ts +3 -2
- package/es/radio-group/index.d.ts +3 -2
- package/es/row/index.d.ts +3 -2
- package/es/scroll-bar/index.d.ts +40 -0
- package/es/scroll-bar/type.d.ts +85 -0
- package/es/scroll-bar/use-scroll-bar.d.ts +1 -0
- package/es/select/index.css +2 -3
- package/es/select/index.d.ts +2 -1
- package/es/share/hook/use-expand.d.ts +2 -0
- package/es/share/hook/use-hidden-measure.d.ts +1 -0
- package/es/share/hook/use-pixel-size.d.ts +1 -0
- package/es/share/util/locale.d.ts +8 -0
- package/es/share/util/scroll.d.ts +2 -0
- package/es/slider/index.d.ts +16 -15
- package/es/space/index.d.ts +2 -1
- package/es/spin/index.d.ts +6 -5
- package/es/submenu/index.d.ts +28 -0
- package/es/submenu/type.d.ts +60 -0
- package/es/switch/index.d.ts +3 -2
- package/es/table/index.d.ts +68 -0
- package/es/table/module/cell-span.d.ts +7 -0
- package/es/table/module/column.d.ts +46 -0
- package/es/table/module/draw.d.ts +11 -0
- package/es/table/module/event.d.ts +9 -0
- package/es/table/module/expandable.d.ts +20 -0
- package/es/table/module/filterable.d.ts +9 -0
- package/es/table/module/selection.d.ts +20 -0
- package/es/table/module/share.d.ts +8 -0
- package/es/table/module/sortable.d.ts +10 -0
- package/es/table/module/summary.d.ts +2 -0
- package/es/table/type.d.ts +733 -0
- package/es/tag/index.css +3 -3
- package/es/tag/index.d.ts +3 -2
- package/es/text-outline/index.d.ts +3 -2
- package/es/textarea/index.css +1 -2
- package/es/textarea/index.d.ts +5 -4
- package/es/theme/theme.d.ts +21 -0
- package/es/{share/util → theme}/theme.js +22 -22
- package/es/tooltip/index.d.ts +2 -1
- package/es/vendor.js +1 -1
- package/es/virtual-list/index.d.ts +2 -1
- package/package.json +1 -1
- package/es/share/hook/use-props-detect.d.ts +0 -2
- package/es/share/util/pixel.d.ts +0 -4
- package/es/share/util/theme.d.ts +0 -7
package/es/dialog/type.d.ts
CHANGED
|
@@ -4,302 +4,302 @@ import type { EmitEvent, RestAttrs, ValidContent, ValidVNodeContent } from '../s
|
|
|
4
4
|
export type DialogOptions = {
|
|
5
5
|
/**
|
|
6
6
|
* @property {ValidContent} content
|
|
7
|
-
* @version 0.0
|
|
7
|
+
* @version 0.1.0
|
|
8
8
|
*/
|
|
9
9
|
content: ValidContent;
|
|
10
10
|
/**
|
|
11
11
|
* @property {ValidContent} [title]
|
|
12
|
-
* @version 0.0
|
|
12
|
+
* @version 0.1.0
|
|
13
13
|
*/
|
|
14
14
|
title?: ValidContent;
|
|
15
15
|
/**
|
|
16
16
|
* @property {ValidVNodeContent} [icon]
|
|
17
|
-
* @version 0.0
|
|
17
|
+
* @version 0.1.0
|
|
18
18
|
*/
|
|
19
19
|
icon?: ValidVNodeContent;
|
|
20
20
|
/**
|
|
21
21
|
* @property {ValidVNodeContent} [footer]
|
|
22
|
-
* @version 0.0
|
|
22
|
+
* @version 0.1.0
|
|
23
23
|
*/
|
|
24
24
|
footer?: ValidVNodeContent;
|
|
25
25
|
/**
|
|
26
26
|
* @property {'info' | 'success' | 'warning' | 'error' | 'normal' | 'confirm'} [type='normal']
|
|
27
|
-
* @version 0.0
|
|
27
|
+
* @version 0.1.0
|
|
28
28
|
*/
|
|
29
29
|
type?: 'info' | 'success' | 'warning' | 'error' | 'normal' | 'confirm';
|
|
30
30
|
/**
|
|
31
31
|
* @property {boolean} [closable=true]
|
|
32
|
-
* @version 0.0
|
|
32
|
+
* @version 0.1.0
|
|
33
33
|
*/
|
|
34
34
|
closable?: boolean;
|
|
35
35
|
/**
|
|
36
36
|
* @property {boolean} [mask=true]
|
|
37
|
-
* @version 0.0
|
|
37
|
+
* @version 0.1.0
|
|
38
38
|
*/
|
|
39
39
|
mask?: boolean;
|
|
40
40
|
/**
|
|
41
41
|
* @property {boolean} [maskClosable=true]
|
|
42
|
-
* @version 0.0
|
|
42
|
+
* @version 0.1.0
|
|
43
43
|
*/
|
|
44
44
|
maskClosable?: boolean;
|
|
45
45
|
/**
|
|
46
46
|
* @property {boolean} [escToClose=true]
|
|
47
|
-
* @version 0.0
|
|
47
|
+
* @version 0.1.0
|
|
48
48
|
*/
|
|
49
49
|
escToClose?: boolean;
|
|
50
50
|
/**
|
|
51
51
|
* @property {boolean} [showCancel]
|
|
52
|
-
* @version 0.0
|
|
52
|
+
* @version 0.1.0
|
|
53
53
|
*/
|
|
54
54
|
showCancel?: boolean;
|
|
55
55
|
/**
|
|
56
56
|
* @property {string} [okText]
|
|
57
|
-
* @version 0.0
|
|
57
|
+
* @version 0.1.0
|
|
58
58
|
*/
|
|
59
59
|
okText?: string;
|
|
60
60
|
/**
|
|
61
61
|
* @property {string} [cancelText]
|
|
62
|
-
* @version 0.0
|
|
62
|
+
* @version 0.1.0
|
|
63
63
|
*/
|
|
64
64
|
cancelText?: string;
|
|
65
65
|
/**
|
|
66
66
|
* @property {boolean} [showFooter=true]
|
|
67
|
-
* @version 0.0
|
|
67
|
+
* @version 0.1.0
|
|
68
68
|
*/
|
|
69
69
|
showFooter?: boolean;
|
|
70
70
|
/**
|
|
71
71
|
* @property {number} [zIndex]
|
|
72
|
-
* @version 0.0
|
|
72
|
+
* @version 0.1.0
|
|
73
73
|
*/
|
|
74
74
|
zIndex?: number;
|
|
75
75
|
/**
|
|
76
76
|
* @property {string | HTMLElement} [root='body']
|
|
77
|
-
* @version 0.0
|
|
77
|
+
* @version 0.1.0
|
|
78
78
|
*/
|
|
79
79
|
root?: string | HTMLElement;
|
|
80
80
|
/**
|
|
81
81
|
* @property {ButtonProps & EmitEvent<ButtonEvents> & RestAttrs} [okButtonProps]
|
|
82
|
-
* @version 0.0
|
|
82
|
+
* @version 0.1.0
|
|
83
83
|
*/
|
|
84
84
|
okButtonProps?: ButtonProps & EmitEvent<ButtonEvents> & RestAttrs;
|
|
85
85
|
/**
|
|
86
86
|
* @property {ButtonProps & EmitEvent<ButtonEvents> & RestAttrs} [cancelButtonProps]
|
|
87
|
-
* @version 0.0
|
|
87
|
+
* @version 0.1.0
|
|
88
88
|
*/
|
|
89
89
|
cancelButtonProps?: ButtonProps & EmitEvent<ButtonEvents> & RestAttrs;
|
|
90
90
|
/**
|
|
91
91
|
* @property {Omit<MaskProps, 'zIndex'>} [maskProps]
|
|
92
|
-
* @version 0.0
|
|
92
|
+
* @version 0.1.0
|
|
93
93
|
*/
|
|
94
94
|
maskProps?: Omit<MaskProps, 'zIndex'>;
|
|
95
95
|
/**
|
|
96
96
|
* @property {RestAttrs} [containerProps]
|
|
97
|
-
* @version 0.0
|
|
97
|
+
* @version 0.1.0
|
|
98
98
|
*/
|
|
99
99
|
containerProps?: RestAttrs;
|
|
100
100
|
/**
|
|
101
101
|
* @property {RestAttrs} [headerProps]
|
|
102
|
-
* @version 0.0
|
|
102
|
+
* @version 0.1.0
|
|
103
103
|
*/
|
|
104
104
|
headerProps?: RestAttrs;
|
|
105
105
|
/**
|
|
106
106
|
* @property {RestAttrs} [bodyProps]
|
|
107
|
-
* @version 0.0
|
|
107
|
+
* @version 0.1.0
|
|
108
108
|
*/
|
|
109
109
|
bodyProps?: RestAttrs;
|
|
110
110
|
/**
|
|
111
111
|
* @property {RestAttrs} [footerProps]
|
|
112
|
-
* @version 0.0
|
|
112
|
+
* @version 0.1.0
|
|
113
113
|
*/
|
|
114
114
|
footerProps?: RestAttrs;
|
|
115
115
|
};
|
|
116
116
|
export type DialogProps = {
|
|
117
117
|
/**
|
|
118
118
|
* @property {boolean | null} [visible]
|
|
119
|
-
* @version 0.0
|
|
119
|
+
* @version 0.1.0
|
|
120
120
|
*/
|
|
121
121
|
visible?: boolean | null;
|
|
122
122
|
/**
|
|
123
123
|
* @property {boolean | null} [visible]
|
|
124
|
-
* @version 0.0
|
|
124
|
+
* @version 0.1.0
|
|
125
125
|
*/
|
|
126
126
|
defaultVisible?: boolean | null;
|
|
127
127
|
/**
|
|
128
128
|
* @property {string} [title='']
|
|
129
|
-
* @version 0.0
|
|
129
|
+
* @version 0.1.0
|
|
130
130
|
*/
|
|
131
131
|
title?: string;
|
|
132
132
|
/**
|
|
133
133
|
* @property {boolean} [closable=true]
|
|
134
|
-
* @version 0.0
|
|
134
|
+
* @version 0.1.0
|
|
135
135
|
*/
|
|
136
136
|
closable?: boolean;
|
|
137
137
|
/**
|
|
138
138
|
* @property {boolean} [mask=true]
|
|
139
|
-
* @version 0.0
|
|
139
|
+
* @version 0.1.0
|
|
140
140
|
*/
|
|
141
141
|
mask?: boolean;
|
|
142
142
|
/**
|
|
143
143
|
* @property {boolean} [maskClosable=true]
|
|
144
|
-
* @version 0.0
|
|
144
|
+
* @version 0.1.0
|
|
145
145
|
*/
|
|
146
146
|
maskClosable?: boolean;
|
|
147
147
|
/**
|
|
148
148
|
* @property {boolean} [escToClose=true]
|
|
149
|
-
* @version 0.0
|
|
149
|
+
* @version 0.1.0
|
|
150
150
|
*/
|
|
151
151
|
escToClose?: boolean;
|
|
152
152
|
/**
|
|
153
153
|
* @property {boolean} [showCancel=true]
|
|
154
|
-
* @version 0.0
|
|
154
|
+
* @version 0.1.0
|
|
155
155
|
*/
|
|
156
156
|
showCancel?: boolean;
|
|
157
157
|
/**
|
|
158
158
|
* @property {string} [okText]
|
|
159
|
-
* @version 0.0
|
|
159
|
+
* @version 0.1.0
|
|
160
160
|
*/
|
|
161
161
|
okText?: string;
|
|
162
162
|
/**
|
|
163
163
|
* @property {string} [cancelText]
|
|
164
|
-
* @version 0.0
|
|
164
|
+
* @version 0.1.0
|
|
165
165
|
*/
|
|
166
166
|
cancelText?: string;
|
|
167
167
|
/**
|
|
168
168
|
* @property {boolean} [boolean=false]
|
|
169
|
-
* @version 0.0
|
|
169
|
+
* @version 0.1.0
|
|
170
170
|
*/
|
|
171
171
|
loading?: boolean;
|
|
172
172
|
/**
|
|
173
173
|
* @property {boolean} [showFooter=true]
|
|
174
|
-
* @version 0.0
|
|
174
|
+
* @version 0.1.0
|
|
175
175
|
*/
|
|
176
176
|
showFooter?: boolean;
|
|
177
177
|
/**
|
|
178
178
|
* @property {string | HTMLElement} [root='body']
|
|
179
|
-
* @version 0.0
|
|
179
|
+
* @version 0.1.0
|
|
180
180
|
*/
|
|
181
181
|
root?: string | HTMLElement;
|
|
182
182
|
/**
|
|
183
183
|
* @property {number} [zIndex]
|
|
184
|
-
* @version 0.0
|
|
184
|
+
* @version 0.1.0
|
|
185
185
|
*/
|
|
186
186
|
zIndex?: number;
|
|
187
187
|
/**
|
|
188
188
|
* @property {boolean} [destroyOnHide=false]
|
|
189
|
-
* @version 0.0
|
|
189
|
+
* @version 0.1.0
|
|
190
190
|
*/
|
|
191
191
|
destroyOnHide?: boolean;
|
|
192
192
|
/**
|
|
193
193
|
* @property {ButtonProps & EmitEvent<ButtonEvents> & RestAttrs} [okButtonProps]
|
|
194
|
-
* @version 0.0
|
|
194
|
+
* @version 0.1.0
|
|
195
195
|
*/
|
|
196
196
|
okButtonProps?: ButtonProps & EmitEvent<ButtonEvents> & RestAttrs;
|
|
197
197
|
/**
|
|
198
198
|
* @property {ButtonProps & EmitEvent<ButtonEvents> & RestAttrs} [cancelButtonProps]
|
|
199
|
-
* @version 0.0
|
|
199
|
+
* @version 0.1.0
|
|
200
200
|
*/
|
|
201
201
|
cancelButtonProps?: ButtonProps & EmitEvent<ButtonEvents> & RestAttrs;
|
|
202
202
|
/**
|
|
203
203
|
* @property {Omit<MaskProps, 'zIndex'>} [maskProps]
|
|
204
|
-
* @version 0.0
|
|
204
|
+
* @version 0.1.0
|
|
205
205
|
*/
|
|
206
206
|
maskProps?: Omit<MaskProps, 'zIndex'>;
|
|
207
207
|
/**
|
|
208
208
|
* @property {RestAttrs} [containerProps]
|
|
209
|
-
* @version 0.0
|
|
209
|
+
* @version 0.1.0
|
|
210
210
|
*/
|
|
211
211
|
containerProps?: RestAttrs;
|
|
212
212
|
/**
|
|
213
213
|
* @property {RestAttrs} [headerProps]
|
|
214
|
-
* @version 0.0
|
|
214
|
+
* @version 0.1.0
|
|
215
215
|
*/
|
|
216
216
|
headerProps?: RestAttrs;
|
|
217
217
|
/**
|
|
218
218
|
* @property {RestAttrs} [bodyProps]
|
|
219
|
-
* @version 0.0
|
|
219
|
+
* @version 0.1.0
|
|
220
220
|
*/
|
|
221
221
|
bodyProps?: RestAttrs;
|
|
222
222
|
/**
|
|
223
223
|
* @property {RestAttrs} [footerProps]
|
|
224
|
-
* @version 0.0
|
|
224
|
+
* @version 0.1.0
|
|
225
225
|
*/
|
|
226
226
|
footerProps?: RestAttrs;
|
|
227
227
|
};
|
|
228
228
|
export type DialogSlots = {
|
|
229
229
|
/**
|
|
230
230
|
* @slot default
|
|
231
|
-
* @version 0.0
|
|
231
|
+
* @version 0.1.0
|
|
232
232
|
*/
|
|
233
233
|
default: {};
|
|
234
234
|
/**
|
|
235
235
|
* @slot title
|
|
236
|
-
* @version 0.0
|
|
236
|
+
* @version 0.1.0
|
|
237
237
|
*/
|
|
238
238
|
title: {};
|
|
239
239
|
/**
|
|
240
240
|
* @slot icon
|
|
241
|
-
* @version 0.0
|
|
241
|
+
* @version 0.1.0
|
|
242
242
|
*/
|
|
243
243
|
icon: {};
|
|
244
244
|
/**
|
|
245
245
|
* @slot footer
|
|
246
|
-
* @version 0.0
|
|
246
|
+
* @version 0.1.0
|
|
247
247
|
*/
|
|
248
248
|
footer: {};
|
|
249
249
|
};
|
|
250
250
|
export type DialogEvents = {
|
|
251
251
|
/**
|
|
252
252
|
* @event update:visible
|
|
253
|
-
* @version 0.0
|
|
253
|
+
* @version 0.1.0
|
|
254
254
|
*/
|
|
255
255
|
'update:visible': [visible: boolean];
|
|
256
256
|
/**
|
|
257
257
|
* @event beforeOk
|
|
258
|
-
* @version 0.0
|
|
258
|
+
* @version 0.1.0
|
|
259
259
|
*/
|
|
260
260
|
beforeOk: [];
|
|
261
261
|
/**
|
|
262
262
|
* @event ok
|
|
263
263
|
* @param {MouseEvent} event
|
|
264
|
-
* @version 0.0
|
|
264
|
+
* @version 0.1.0
|
|
265
265
|
*/
|
|
266
266
|
ok: [event: MouseEvent];
|
|
267
267
|
/**
|
|
268
268
|
* @event cancel
|
|
269
269
|
* @param {MouseEvent | KeyboardEvent} event
|
|
270
|
-
* @version 0.0
|
|
270
|
+
* @version 0.1.0
|
|
271
271
|
*/
|
|
272
272
|
cancel: [event: MouseEvent | KeyboardEvent];
|
|
273
273
|
/**
|
|
274
274
|
* @event open
|
|
275
|
-
* @version 0.0
|
|
275
|
+
* @version 0.1.0
|
|
276
276
|
*/
|
|
277
277
|
open: [];
|
|
278
278
|
/**
|
|
279
279
|
* @event afterOpen
|
|
280
|
-
* @version 0.0
|
|
280
|
+
* @version 0.1.0
|
|
281
281
|
*/
|
|
282
282
|
afterOpen: [];
|
|
283
283
|
/**
|
|
284
284
|
* @event close
|
|
285
|
-
* @version 0.0
|
|
285
|
+
* @version 0.1.0
|
|
286
286
|
*/
|
|
287
287
|
close: [];
|
|
288
288
|
/**
|
|
289
289
|
* @event afterClose
|
|
290
|
-
* @version 0.0
|
|
290
|
+
* @version 0.1.0
|
|
291
291
|
*/
|
|
292
292
|
afterClose: [];
|
|
293
293
|
};
|
|
294
294
|
export type DialogExpose = {
|
|
295
295
|
/**
|
|
296
296
|
* @property {() => void} close
|
|
297
|
-
* @version 0.0
|
|
297
|
+
* @version 0.1.0
|
|
298
298
|
*/
|
|
299
299
|
close: () => void;
|
|
300
300
|
/**
|
|
301
301
|
* @property {() => void} open
|
|
302
|
-
* @version 0.0
|
|
302
|
+
* @version 0.1.0
|
|
303
303
|
*/
|
|
304
304
|
open: () => void;
|
|
305
305
|
};
|
package/es/divider/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DividerProps } from './type';
|
|
2
|
-
declare const
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<DividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
3
3
|
variant: "solid" | "dashed" | "dotted" | "double" | "ridge" | "groove";
|
|
4
4
|
direction: "horizontal" | "vertical";
|
|
5
5
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
6
7
|
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { DropDownExpose, DropDownProps } from './type';
|
|
2
|
+
import type { DropDownOption } from '../drop-down-list/type';
|
|
3
|
+
declare var __VLS_11: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_11) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<DropDownProps, DropDownExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
close: (event: MouseEvent | TouchEvent) => any;
|
|
9
|
+
select: (index: string | number | symbol, option: string | DropDownOption, event: MouseEvent) => any;
|
|
10
|
+
open: (event: MouseEvent) => any;
|
|
11
|
+
"update:visible": (value: boolean) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<DropDownProps> & Readonly<{
|
|
13
|
+
onClose?: ((event: MouseEvent | TouchEvent) => any) | undefined;
|
|
14
|
+
onSelect?: ((index: string | number | symbol, option: string | DropDownOption, event: MouseEvent) => any) | undefined;
|
|
15
|
+
onOpen?: ((event: MouseEvent) => any) | undefined;
|
|
16
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
variant: "dark" | "light";
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
placement: "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
21
|
+
root: string | HTMLElement;
|
|
22
|
+
offset: number;
|
|
23
|
+
visible: boolean | null;
|
|
24
|
+
defaultVisible: boolean | null;
|
|
25
|
+
trigger: "click" | "hover";
|
|
26
|
+
arrow: boolean;
|
|
27
|
+
destroyOnHide: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import type { DropDownOption, DropDownGroupOption } from '../drop-down-list/type';
|
|
2
|
+
import type { PopoverEvents, PopoverProps } from '../popover/type';
|
|
3
|
+
import type { EmitEvent, RestAttrs } from '../share/type';
|
|
4
|
+
export type DropDownProps = {
|
|
5
|
+
/**
|
|
6
|
+
* @property {DropDownOption | DropDownGroupOption} [options]
|
|
7
|
+
* @version 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
options?: (string | DropDownOption | DropDownGroupOption)[];
|
|
10
|
+
/**
|
|
11
|
+
* @property {boolean | null} [visible]
|
|
12
|
+
* @version 0.1.0
|
|
13
|
+
*/
|
|
14
|
+
visible?: boolean | null;
|
|
15
|
+
/**
|
|
16
|
+
* @property {boolean | null} [defaultVisible]
|
|
17
|
+
* @version 0.1.0
|
|
18
|
+
*/
|
|
19
|
+
defaultVisible?: boolean | null;
|
|
20
|
+
/**
|
|
21
|
+
* @property {'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end'} [placement='top']
|
|
22
|
+
* @version 0.1.0
|
|
23
|
+
*/
|
|
24
|
+
placement?: PopoverProps['placement'];
|
|
25
|
+
/**
|
|
26
|
+
* @property {'hover' | 'click'} [trigger='hover']
|
|
27
|
+
* @version 0.1.0
|
|
28
|
+
*/
|
|
29
|
+
trigger?: PopoverProps['trigger'];
|
|
30
|
+
/**
|
|
31
|
+
* @property {boolean} [disabled=boolean]
|
|
32
|
+
* @version 0.1.0
|
|
33
|
+
*/
|
|
34
|
+
disabled?: PopoverProps['disabled'];
|
|
35
|
+
/**
|
|
36
|
+
* @property {number} [offset=8]
|
|
37
|
+
* @version 0.1.0
|
|
38
|
+
*/
|
|
39
|
+
offset?: number;
|
|
40
|
+
/**
|
|
41
|
+
* @property {'dark' | 'light'} [variant='light']
|
|
42
|
+
* @version 0.1.0
|
|
43
|
+
*/
|
|
44
|
+
variant?: 'dark' | 'light';
|
|
45
|
+
/**
|
|
46
|
+
* @property {boolean} [arrow=true]
|
|
47
|
+
* @version 0.1.0
|
|
48
|
+
*/
|
|
49
|
+
arrow?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @property { HTMLElement | string} [root='body']
|
|
52
|
+
* @version 0.1.0
|
|
53
|
+
*/
|
|
54
|
+
root?: PopoverProps['root'];
|
|
55
|
+
/**
|
|
56
|
+
* @property {number} [zIndex]
|
|
57
|
+
* @version 0.1.0
|
|
58
|
+
*/
|
|
59
|
+
zIndex?: PopoverProps['zIndex'];
|
|
60
|
+
/**
|
|
61
|
+
* @property {boolean} [destroyOnHide=false]
|
|
62
|
+
* @version 0.1.0
|
|
63
|
+
*/
|
|
64
|
+
destroyOnHide?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* @property {Omit<PopoverProps, 'visible' | 'content' | 'defaultVisible'> & EmitEvent<PopoverEvents>} [popoverProps]
|
|
67
|
+
* @version 0.1.0
|
|
68
|
+
*/
|
|
69
|
+
popoverProps?: Omit<PopoverProps, 'visible' | 'defaultVisible' | 'content'> & EmitEvent<PopoverEvents>;
|
|
70
|
+
/**
|
|
71
|
+
* @property {RestAttrs} [dividerProps]
|
|
72
|
+
* @version 0.1.0
|
|
73
|
+
*/
|
|
74
|
+
dividerProps?: RestAttrs;
|
|
75
|
+
};
|
|
76
|
+
export type DropDownEvents = {
|
|
77
|
+
/**
|
|
78
|
+
* @event update:visible
|
|
79
|
+
* @param {boolean} value
|
|
80
|
+
* @version 0.1.0
|
|
81
|
+
*/
|
|
82
|
+
'update:visible': [value: boolean];
|
|
83
|
+
/**
|
|
84
|
+
* @event close
|
|
85
|
+
* @param {MouseEvent} event
|
|
86
|
+
* @version 0.1.0
|
|
87
|
+
*/
|
|
88
|
+
close: [event: MouseEvent | TouchEvent];
|
|
89
|
+
/**
|
|
90
|
+
* @event open
|
|
91
|
+
* @param {MouseEvent} event
|
|
92
|
+
* @version 0.1.0
|
|
93
|
+
*/
|
|
94
|
+
open: [event: MouseEvent];
|
|
95
|
+
/**
|
|
96
|
+
* @event select
|
|
97
|
+
* @param {string | number | symbol} index
|
|
98
|
+
* @param {DropDownOption | string} option
|
|
99
|
+
* @param {MouseEvent} event
|
|
100
|
+
* @version 0.1.0
|
|
101
|
+
*/
|
|
102
|
+
select: [index: string | number | symbol, option: DropDownOption | string, event: MouseEvent];
|
|
103
|
+
};
|
|
104
|
+
export type DropDownSlots = {
|
|
105
|
+
/**
|
|
106
|
+
* @slot default
|
|
107
|
+
* @version 0.1.0
|
|
108
|
+
*/
|
|
109
|
+
default: {};
|
|
110
|
+
/**
|
|
111
|
+
* @slot option
|
|
112
|
+
* @version 0.1.0
|
|
113
|
+
*/
|
|
114
|
+
option: {};
|
|
115
|
+
/**
|
|
116
|
+
* @slot group-label
|
|
117
|
+
* @version 0.1.0
|
|
118
|
+
*/
|
|
119
|
+
'group-label': {};
|
|
120
|
+
};
|
|
121
|
+
export type DropDownExpose = {
|
|
122
|
+
/**
|
|
123
|
+
* @property {() => void} open
|
|
124
|
+
* @version 0.1.0
|
|
125
|
+
*/
|
|
126
|
+
open: () => void;
|
|
127
|
+
/**
|
|
128
|
+
* @property {() => void} close
|
|
129
|
+
* @version 0.1.0
|
|
130
|
+
*/
|
|
131
|
+
close: () => void;
|
|
132
|
+
/**
|
|
133
|
+
* @ignore
|
|
134
|
+
*/
|
|
135
|
+
updateRenderState: () => void;
|
|
136
|
+
/**
|
|
137
|
+
* @ignore
|
|
138
|
+
*/
|
|
139
|
+
triggerContent: any;
|
|
140
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DropDownGroupOption, DropDownOption, DropDownListProps } from './type';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<DropDownListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
select: (index: string | number | symbol, option: string | DropDownOption, e: MouseEvent) => any;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<DropDownListProps> & Readonly<{
|
|
5
|
+
onSelect?: ((index: string | number | symbol, option: string | DropDownOption, e: MouseEvent) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
options: (string | DropDownOption | DropDownGroupOption)[];
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GROUP_OPTION_TYPE } from '../share/const';
|
|
2
|
+
import type { NavigationOption } from '../share/type';
|
|
3
|
+
export interface DropDownOption extends NavigationOption {
|
|
4
|
+
divider?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
href?: string;
|
|
7
|
+
route?: string | object;
|
|
8
|
+
target?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface DropDownGroupOption extends NavigationOption {
|
|
11
|
+
children: (DropDownOption | string)[];
|
|
12
|
+
type: typeof GROUP_OPTION_TYPE;
|
|
13
|
+
}
|
|
14
|
+
export type DropDownListProps = {
|
|
15
|
+
options?: (string | DropDownOption | DropDownGroupOption)[];
|
|
16
|
+
};
|
|
17
|
+
export type DropDownListEvent = {
|
|
18
|
+
select: [index: string | number | symbol, option: DropDownOption | string, e: MouseEvent];
|
|
19
|
+
};
|
package/es/empty/index.d.ts
CHANGED
|
@@ -5,10 +5,11 @@ type __VLS_Slots = {} & {
|
|
|
5
5
|
} & {
|
|
6
6
|
description?: (props: typeof __VLS_8) => any;
|
|
7
7
|
};
|
|
8
|
-
declare const
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<EmptyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<EmptyProps> & Readonly<{}>, {
|
|
9
9
|
description: string;
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
14
15
|
new (): {
|
package/es/footer/index.d.ts
CHANGED
|
@@ -3,10 +3,11 @@ declare var __VLS_1: {};
|
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<FooterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FooterProps> & Readonly<{}>, {
|
|
7
7
|
dark: boolean;
|
|
8
8
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
10
11
|
export default _default;
|
|
11
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
12
13
|
new (): {
|
package/es/form/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare var __VLS_1: {};
|
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<FormProps, FormExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
submit: (form: Record<string | number, any>, event: Event) => any;
|
|
8
8
|
reset: (form: Record<string | number, any>, event: Event) => any;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<FormProps> & Readonly<{
|
|
@@ -18,7 +18,8 @@ declare const __VLS_component: import("vue").DefineComponent<FormProps, FormExpo
|
|
|
18
18
|
asteriskPlacement: "left" | "right" | "end";
|
|
19
19
|
labelAutoWidth: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
-
declare const
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
22
23
|
export default _default;
|
|
23
24
|
type __VLS_WithSlots<T, S> = T & {
|
|
24
25
|
new (): {
|
package/es/form-item/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { RuleLevel, RuleTrigger } from '../form/type';
|
|
2
2
|
import type { FormItemProps } from './type';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_14: {}, __VLS_22: {}, __VLS_24: {
|
|
4
4
|
message: string;
|
|
5
5
|
level: RuleLevel;
|
|
6
|
-
},
|
|
6
|
+
}, __VLS_26: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
|
-
label?: (props: typeof
|
|
8
|
+
label?: (props: typeof __VLS_14) => any;
|
|
9
9
|
} & {
|
|
10
|
-
default?: (props: typeof
|
|
10
|
+
default?: (props: typeof __VLS_22) => any;
|
|
11
11
|
} & {
|
|
12
|
-
tip?: (props: typeof
|
|
12
|
+
tip?: (props: typeof __VLS_24) => any;
|
|
13
13
|
} & {
|
|
14
|
-
extra?: (props: typeof
|
|
14
|
+
extra?: (props: typeof __VLS_26) => any;
|
|
15
15
|
};
|
|
16
|
-
declare const
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<FormItemProps, {
|
|
17
17
|
validate: (trigger?: RuleTrigger) => Promise<{
|
|
18
18
|
message: string;
|
|
19
19
|
level: RuleLevel;
|
|
@@ -28,7 +28,8 @@ declare const __VLS_component: import("vue").DefineComponent<FormItemProps, {
|
|
|
28
28
|
labelProps: import("../col/type.ts").ColProps;
|
|
29
29
|
contentProps: import("../col/type.ts").ColProps;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
-
declare const
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
32
33
|
export default _default;
|
|
33
34
|
type __VLS_WithSlots<T, S> = T & {
|
|
34
35
|
new (): {
|