@tu-design/vue 0.2.1 → 0.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/dist/index.d.mts +3620 -674
- package/dist/index.mjs +7442 -799
- package/dist/registry/vue/alert.json +22 -0
- package/dist/registry/vue/avatar-group.json +21 -0
- package/dist/registry/vue/avatar.json +3 -3
- package/dist/registry/vue/calendar.json +34 -0
- package/dist/registry/vue/card.json +3 -33
- package/dist/registry/vue/cascader.json +34 -0
- package/dist/registry/vue/checkbox.json +1 -1
- package/dist/registry/vue/currency-input.json +27 -0
- package/dist/registry/vue/date-picker.json +22 -0
- package/dist/registry/vue/date-range-picker.json +22 -0
- package/dist/registry/vue/date-shared.json +26 -0
- package/dist/registry/vue/dialog.json +3 -45
- package/dist/registry/vue/dropdown-menu.json +11 -35
- package/dist/registry/vue/empty.json +21 -0
- package/dist/registry/vue/form-render.json +115 -0
- package/dist/registry/vue/form.json +70 -0
- package/dist/registry/vue/input.json +2 -2
- package/dist/registry/vue/month-picker.json +22 -0
- package/dist/registry/vue/number-input.json +28 -0
- package/dist/registry/vue/password-input.json +21 -0
- package/dist/registry/vue/pin-input.json +22 -0
- package/dist/registry/vue/popover.json +22 -0
- package/dist/registry/vue/progress.json +22 -0
- package/dist/registry/vue/radio-group.json +2 -8
- package/dist/registry/vue/registry.json +156 -6
- package/dist/registry/vue/select.json +3 -27
- package/dist/registry/vue/slider.json +1 -1
- package/dist/registry/vue/spin.json +22 -0
- package/dist/registry/vue/table-render.json +62 -0
- package/dist/registry/vue/tabs.json +2 -20
- package/dist/registry/vue/textarea.json +21 -0
- package/dist/registry/vue/toast.json +28 -0
- package/dist/registry/vue/tokens.json +1 -1
- package/dist/registry/vue/tooltip.json +2 -14
- package/dist/registry/vue/tree-select.json +34 -0
- package/dist/registry/vue/tree-shared.json +92 -0
- package/dist/registry/vue/week-picker.json +22 -0
- package/dist/registry/vue/year-picker.json +22 -0
- package/package.json +6 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { ClassValue } from "clsx";
|
|
2
|
-
import { PropType, VNode } from "vue";
|
|
2
|
+
import { ImgHTMLAttributes, InjectionKey, MaybeRefOrGetter, PropType, Ref, VNode, VNodeChild } from "vue";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import { DateValue } from "@ark-ui/vue/date-picker";
|
|
5
|
+
import { AnyFieldApi, FormApi, VueFormApi } from "@tanstack/vue-form";
|
|
6
|
+
import { Avatar } from "@ark-ui/vue/avatar";
|
|
7
|
+
import { Table } from "@tanstack/vue-table";
|
|
8
|
+
import { Toast, ToastOptions as ToastOptions$1, ToastPlacement as ToastPlacement$1, ToastPromiseOptions as ToastPromiseOptions$1 } from "@ark-ui/vue/toast";
|
|
4
9
|
//#region src/lib/utils.d.ts
|
|
5
10
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
6
11
|
//#endregion
|
|
@@ -13,7 +18,7 @@ export declare function cn(...inputs: ClassValue[]): string;
|
|
|
13
18
|
* (Transition/Teleport 等 T 开头名称会被 slice(1) 解析成错误导入)。
|
|
14
19
|
* 白名单与 index.ts 的组件导出保持同步(resolver.test.ts 强制校验)。
|
|
15
20
|
*/
|
|
16
|
-
export declare const COMPONENT_NAMES: readonly ["
|
|
21
|
+
export declare const COMPONENT_NAMES: readonly ["Alert", "Avatar", "AvatarGroup", "Badge", "Button", "Calendar", "Card", "Cascader", "Checkbox", "CurrencyInput", "DatePicker", "DateRangePicker", "Dialog", "DropdownMenu", "Empty", "Form", "FormControl", "FormDescription", "FormField", "FormItem", "FormLabel", "FormMessage", "FormRender", "FormSubscribe", "Input", "Label", "MonthPicker", "NumberInput", "PasswordInput", "PinInput", "Popover", "Progress", "RadioGroup", "Select", "Separator", "Skeleton", "Slider", "Slot", "Spin", "Switch", "TableRender", "Tabs", "Textarea", "ToastProvider", "TreeSelect", "Tooltip", "WeekPicker", "YearPicker"];
|
|
17
22
|
/** 结构兼容 unplugin-vue-components 的 ComponentResolveResult,无需依赖其类型 */
|
|
18
23
|
export interface ComponentResolveResult {
|
|
19
24
|
name: string;
|
|
@@ -22,38 +27,2243 @@ export interface ComponentResolveResult {
|
|
|
22
27
|
export type ComponentResolver = (name: string) => ComponentResolveResult | undefined;
|
|
23
28
|
export declare function TuDesignResolver(): ComponentResolver;
|
|
24
29
|
//#endregion
|
|
30
|
+
//#region src/components/checkbox/Checkbox.vue.d.ts
|
|
31
|
+
declare var __VLS_33: {};
|
|
32
|
+
type __VLS_Slots$27 = {} & {
|
|
33
|
+
default?: (props: typeof __VLS_33) => any;
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_base$27: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
36
|
+
checked: {
|
|
37
|
+
type: PropType<boolean | "indeterminate" | undefined>;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
defaultChecked: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
/** 原生表单提交的字段名(透传 HiddenInput,与 RadioGroup 对齐) */
|
|
49
|
+
name: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: any;
|
|
52
|
+
};
|
|
53
|
+
/** 关联的 form id */
|
|
54
|
+
form: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: any;
|
|
57
|
+
};
|
|
58
|
+
class: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: any;
|
|
61
|
+
};
|
|
62
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
|
+
"update:checked": (checked: boolean) => any;
|
|
64
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
+
checked: {
|
|
66
|
+
type: PropType<boolean | "indeterminate" | undefined>;
|
|
67
|
+
default: any;
|
|
68
|
+
};
|
|
69
|
+
defaultChecked: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
disabled: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
/** 原生表单提交的字段名(透传 HiddenInput,与 RadioGroup 对齐) */
|
|
78
|
+
name: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: any;
|
|
81
|
+
};
|
|
82
|
+
/** 关联的 form id */
|
|
83
|
+
form: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: any;
|
|
86
|
+
};
|
|
87
|
+
class: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: any;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{
|
|
92
|
+
"onUpdate:checked"?: (checked: boolean) => any;
|
|
93
|
+
}>, {
|
|
94
|
+
name: string;
|
|
95
|
+
disabled: boolean;
|
|
96
|
+
form: string;
|
|
97
|
+
class: string;
|
|
98
|
+
checked: boolean | "indeterminate";
|
|
99
|
+
defaultChecked: boolean;
|
|
100
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
101
|
+
declare const __VLS_export$46: __VLS_WithSlots$27<typeof __VLS_base$27, __VLS_Slots$27>;
|
|
102
|
+
declare const _default$8: typeof __VLS_export$46;
|
|
103
|
+
type __VLS_WithSlots$27<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/currency-input/utils.d.ts
|
|
110
|
+
/** 货币单位:万/元/角/分(组件枚举固定,换算基准为整数分) */
|
|
111
|
+
type CurrencyUnit = "万" | "元" | "角" | "分";
|
|
112
|
+
/**
|
|
113
|
+
* 解析输入文本为 valueUnit 单位的数值(number|null)。
|
|
114
|
+
* 全程十进制字符串移位(BigInt),仅在超出整数分精度时一次四舍五入;
|
|
115
|
+
* 白名单 ^\d*(\.\d*)?$,负号/非法字符/无数字一律 null。
|
|
116
|
+
*/
|
|
117
|
+
export declare function parseCurrency(raw: string, labelUnit: CurrencyUnit, valueUnit: CurrencyUnit): number | null;
|
|
118
|
+
/**
|
|
119
|
+
* 受控值(valueUnit 单位)反算为 labelUnit 单位的回显文本。
|
|
120
|
+
* 值先取整到整数分(吸收浮点噪声),再做十进制移位并去尾零。
|
|
121
|
+
*/
|
|
122
|
+
export declare function formatCurrency(value: number, valueUnit: CurrencyUnit, labelUnit: CurrencyUnit): string;
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/components/currency-input/CurrencyInput.vue.d.ts
|
|
125
|
+
declare const __VLS_export$45: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
126
|
+
/** 受控值(valueUnit 单位);undefined 走内部非受控,null 表示空 */
|
|
127
|
+
modelValue: {
|
|
128
|
+
type: PropType<number | null | undefined>;
|
|
129
|
+
default: any;
|
|
130
|
+
};
|
|
131
|
+
/** 界面输入单位 */
|
|
132
|
+
labelUnit: {
|
|
133
|
+
type: PropType<CurrencyUnit>;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
136
|
+
/** 存储单位(v-model 值的单位) */
|
|
137
|
+
valueUnit: {
|
|
138
|
+
type: PropType<CurrencyUnit>;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
placeholder: {
|
|
142
|
+
type: StringConstructor;
|
|
143
|
+
default: any;
|
|
144
|
+
};
|
|
145
|
+
disabled: {
|
|
146
|
+
type: PropType<boolean | undefined>;
|
|
147
|
+
default: any;
|
|
148
|
+
};
|
|
149
|
+
invalid: {
|
|
150
|
+
type: PropType<boolean | undefined>;
|
|
151
|
+
default: any;
|
|
152
|
+
};
|
|
153
|
+
class: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
default: any;
|
|
156
|
+
};
|
|
157
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
158
|
+
"update:modelValue": (value: number) => any;
|
|
159
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
160
|
+
/** 受控值(valueUnit 单位);undefined 走内部非受控,null 表示空 */
|
|
161
|
+
modelValue: {
|
|
162
|
+
type: PropType<number | null | undefined>;
|
|
163
|
+
default: any;
|
|
164
|
+
};
|
|
165
|
+
/** 界面输入单位 */
|
|
166
|
+
labelUnit: {
|
|
167
|
+
type: PropType<CurrencyUnit>;
|
|
168
|
+
default: string;
|
|
169
|
+
};
|
|
170
|
+
/** 存储单位(v-model 值的单位) */
|
|
171
|
+
valueUnit: {
|
|
172
|
+
type: PropType<CurrencyUnit>;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
placeholder: {
|
|
176
|
+
type: StringConstructor;
|
|
177
|
+
default: any;
|
|
178
|
+
};
|
|
179
|
+
disabled: {
|
|
180
|
+
type: PropType<boolean | undefined>;
|
|
181
|
+
default: any;
|
|
182
|
+
};
|
|
183
|
+
invalid: {
|
|
184
|
+
type: PropType<boolean | undefined>;
|
|
185
|
+
default: any;
|
|
186
|
+
};
|
|
187
|
+
class: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
default: any;
|
|
190
|
+
};
|
|
191
|
+
}>> & Readonly<{
|
|
192
|
+
"onUpdate:modelValue"?: (value: number) => any;
|
|
193
|
+
}>, {
|
|
194
|
+
disabled: boolean;
|
|
195
|
+
invalid: boolean;
|
|
196
|
+
class: string;
|
|
197
|
+
modelValue: number;
|
|
198
|
+
placeholder: string;
|
|
199
|
+
labelUnit: CurrencyUnit;
|
|
200
|
+
valueUnit: CurrencyUnit;
|
|
201
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
202
|
+
declare const _default$9: typeof __VLS_export$45;
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region src/components/date-picker/DatePicker.vue.d.ts
|
|
205
|
+
declare const __VLS_export$44: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
206
|
+
/** 受控值("yyyy-MM-dd");undefined 走内部非受控,null 表示空 */
|
|
207
|
+
modelValue: {
|
|
208
|
+
type: PropType<string | null | undefined>;
|
|
209
|
+
default: any;
|
|
210
|
+
};
|
|
211
|
+
defaultValue: {
|
|
212
|
+
type: StringConstructor;
|
|
213
|
+
default: any;
|
|
214
|
+
};
|
|
215
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
216
|
+
open: {
|
|
217
|
+
type: PropType<boolean | undefined>;
|
|
218
|
+
default: any;
|
|
219
|
+
};
|
|
220
|
+
defaultOpen: {
|
|
221
|
+
type: BooleanConstructor;
|
|
222
|
+
default: boolean;
|
|
223
|
+
};
|
|
224
|
+
placeholder: {
|
|
225
|
+
type: StringConstructor;
|
|
226
|
+
default: string;
|
|
227
|
+
};
|
|
228
|
+
disabled: {
|
|
229
|
+
type: PropType<boolean | undefined>;
|
|
230
|
+
default: any;
|
|
231
|
+
};
|
|
232
|
+
invalid: {
|
|
233
|
+
type: PropType<boolean | undefined>;
|
|
234
|
+
default: any;
|
|
235
|
+
};
|
|
236
|
+
readOnly: {
|
|
237
|
+
type: PropType<boolean | undefined>;
|
|
238
|
+
default: any;
|
|
239
|
+
};
|
|
240
|
+
/** 可选下界("yyyy-MM-dd",含当日) */
|
|
241
|
+
min: {
|
|
242
|
+
type: StringConstructor;
|
|
243
|
+
default: any;
|
|
244
|
+
};
|
|
245
|
+
/** 可选上界("yyyy-MM-dd",含当日) */
|
|
246
|
+
max: {
|
|
247
|
+
type: StringConstructor;
|
|
248
|
+
default: any;
|
|
249
|
+
};
|
|
250
|
+
/** 不可选日期谓词(参数为 ark 的 DateValue,见 date-picker.md 类型说明) */
|
|
251
|
+
isDateUnavailable: {
|
|
252
|
+
type: PropType<(date: DateValue) => boolean>;
|
|
253
|
+
default: any;
|
|
254
|
+
};
|
|
255
|
+
/** 选中后是否自动关弹层 */
|
|
256
|
+
closeOnSelect: {
|
|
257
|
+
type: BooleanConstructor;
|
|
258
|
+
default: boolean;
|
|
259
|
+
};
|
|
260
|
+
/** 文案与周起点跟随 locale(zh-CN 默认周一起始) */
|
|
261
|
+
locale: {
|
|
262
|
+
type: StringConstructor;
|
|
263
|
+
default: string;
|
|
264
|
+
};
|
|
265
|
+
class: {
|
|
266
|
+
type: StringConstructor;
|
|
267
|
+
default: any;
|
|
268
|
+
};
|
|
269
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
270
|
+
"update:modelValue": (value: string) => any;
|
|
271
|
+
"update:open": (open: boolean) => any;
|
|
272
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
273
|
+
/** 受控值("yyyy-MM-dd");undefined 走内部非受控,null 表示空 */
|
|
274
|
+
modelValue: {
|
|
275
|
+
type: PropType<string | null | undefined>;
|
|
276
|
+
default: any;
|
|
277
|
+
};
|
|
278
|
+
defaultValue: {
|
|
279
|
+
type: StringConstructor;
|
|
280
|
+
default: any;
|
|
281
|
+
};
|
|
282
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
283
|
+
open: {
|
|
284
|
+
type: PropType<boolean | undefined>;
|
|
285
|
+
default: any;
|
|
286
|
+
};
|
|
287
|
+
defaultOpen: {
|
|
288
|
+
type: BooleanConstructor;
|
|
289
|
+
default: boolean;
|
|
290
|
+
};
|
|
291
|
+
placeholder: {
|
|
292
|
+
type: StringConstructor;
|
|
293
|
+
default: string;
|
|
294
|
+
};
|
|
295
|
+
disabled: {
|
|
296
|
+
type: PropType<boolean | undefined>;
|
|
297
|
+
default: any;
|
|
298
|
+
};
|
|
299
|
+
invalid: {
|
|
300
|
+
type: PropType<boolean | undefined>;
|
|
301
|
+
default: any;
|
|
302
|
+
};
|
|
303
|
+
readOnly: {
|
|
304
|
+
type: PropType<boolean | undefined>;
|
|
305
|
+
default: any;
|
|
306
|
+
};
|
|
307
|
+
/** 可选下界("yyyy-MM-dd",含当日) */
|
|
308
|
+
min: {
|
|
309
|
+
type: StringConstructor;
|
|
310
|
+
default: any;
|
|
311
|
+
};
|
|
312
|
+
/** 可选上界("yyyy-MM-dd",含当日) */
|
|
313
|
+
max: {
|
|
314
|
+
type: StringConstructor;
|
|
315
|
+
default: any;
|
|
316
|
+
};
|
|
317
|
+
/** 不可选日期谓词(参数为 ark 的 DateValue,见 date-picker.md 类型说明) */
|
|
318
|
+
isDateUnavailable: {
|
|
319
|
+
type: PropType<(date: DateValue) => boolean>;
|
|
320
|
+
default: any;
|
|
321
|
+
};
|
|
322
|
+
/** 选中后是否自动关弹层 */
|
|
323
|
+
closeOnSelect: {
|
|
324
|
+
type: BooleanConstructor;
|
|
325
|
+
default: boolean;
|
|
326
|
+
};
|
|
327
|
+
/** 文案与周起点跟随 locale(zh-CN 默认周一起始) */
|
|
328
|
+
locale: {
|
|
329
|
+
type: StringConstructor;
|
|
330
|
+
default: string;
|
|
331
|
+
};
|
|
332
|
+
class: {
|
|
333
|
+
type: StringConstructor;
|
|
334
|
+
default: any;
|
|
335
|
+
};
|
|
336
|
+
}>> & Readonly<{
|
|
337
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
338
|
+
"onUpdate:open"?: (open: boolean) => any;
|
|
339
|
+
}>, {
|
|
340
|
+
defaultValue: string;
|
|
341
|
+
disabled: boolean;
|
|
342
|
+
readOnly: boolean;
|
|
343
|
+
invalid: boolean;
|
|
344
|
+
class: string;
|
|
345
|
+
modelValue: string;
|
|
346
|
+
min: string;
|
|
347
|
+
max: string;
|
|
348
|
+
isDateUnavailable: (date: DateValue) => boolean;
|
|
349
|
+
locale: string;
|
|
350
|
+
open: boolean;
|
|
351
|
+
defaultOpen: boolean;
|
|
352
|
+
placeholder: string;
|
|
353
|
+
closeOnSelect: boolean;
|
|
354
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
355
|
+
declare const _default$10: typeof __VLS_export$44;
|
|
356
|
+
//#endregion
|
|
357
|
+
//#region src/components/date-range-picker/DateRangePicker.vue.d.ts
|
|
358
|
+
declare const __VLS_export$43: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
359
|
+
/** 受控值 [start, end]("yyyy-MM-dd",start ≤ end);undefined 走内部非受控,null 表示空 */
|
|
360
|
+
modelValue: {
|
|
361
|
+
type: PropType<[string, string] | null | undefined>;
|
|
362
|
+
default: any;
|
|
363
|
+
};
|
|
364
|
+
defaultValue: {
|
|
365
|
+
type: PropType<[string, string] | undefined>;
|
|
366
|
+
default: any;
|
|
367
|
+
};
|
|
368
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
369
|
+
open: {
|
|
370
|
+
type: PropType<boolean | undefined>;
|
|
371
|
+
default: any;
|
|
372
|
+
};
|
|
373
|
+
defaultOpen: {
|
|
374
|
+
type: BooleanConstructor;
|
|
375
|
+
default: boolean;
|
|
376
|
+
};
|
|
377
|
+
placeholder: {
|
|
378
|
+
type: StringConstructor;
|
|
379
|
+
default: string;
|
|
380
|
+
};
|
|
381
|
+
disabled: {
|
|
382
|
+
type: PropType<boolean | undefined>;
|
|
383
|
+
default: any;
|
|
384
|
+
};
|
|
385
|
+
invalid: {
|
|
386
|
+
type: PropType<boolean | undefined>;
|
|
387
|
+
default: any;
|
|
388
|
+
};
|
|
389
|
+
readOnly: {
|
|
390
|
+
type: PropType<boolean | undefined>;
|
|
391
|
+
default: any;
|
|
392
|
+
};
|
|
393
|
+
/** 可选下界("yyyy-MM-dd",含当日) */
|
|
394
|
+
min: {
|
|
395
|
+
type: StringConstructor;
|
|
396
|
+
default: any;
|
|
397
|
+
};
|
|
398
|
+
/** 可选上界("yyyy-MM-dd",含当日) */
|
|
399
|
+
max: {
|
|
400
|
+
type: StringConstructor;
|
|
401
|
+
default: any;
|
|
402
|
+
};
|
|
403
|
+
/** 不可选日期谓词(参数为 ark 的 DateValue) */
|
|
404
|
+
isDateUnavailable: {
|
|
405
|
+
type: PropType<(date: DateValue) => boolean>;
|
|
406
|
+
default: any;
|
|
407
|
+
};
|
|
408
|
+
/** 选完终点后是否自动关弹层 */
|
|
409
|
+
closeOnSelect: {
|
|
410
|
+
type: BooleanConstructor;
|
|
411
|
+
default: boolean;
|
|
412
|
+
};
|
|
413
|
+
/** 日视图并排月数 */
|
|
414
|
+
numOfMonths: {
|
|
415
|
+
type: NumberConstructor;
|
|
416
|
+
default: number;
|
|
417
|
+
};
|
|
418
|
+
/** 文案与周起点跟随 locale(zh-CN 默认周一起始) */
|
|
419
|
+
locale: {
|
|
420
|
+
type: StringConstructor;
|
|
421
|
+
default: string;
|
|
422
|
+
};
|
|
423
|
+
class: {
|
|
424
|
+
type: StringConstructor;
|
|
425
|
+
default: any;
|
|
426
|
+
};
|
|
427
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
428
|
+
"update:modelValue": (value: [string, string]) => any;
|
|
429
|
+
"update:open": (open: boolean) => any;
|
|
430
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
431
|
+
/** 受控值 [start, end]("yyyy-MM-dd",start ≤ end);undefined 走内部非受控,null 表示空 */
|
|
432
|
+
modelValue: {
|
|
433
|
+
type: PropType<[string, string] | null | undefined>;
|
|
434
|
+
default: any;
|
|
435
|
+
};
|
|
436
|
+
defaultValue: {
|
|
437
|
+
type: PropType<[string, string] | undefined>;
|
|
438
|
+
default: any;
|
|
439
|
+
};
|
|
440
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
441
|
+
open: {
|
|
442
|
+
type: PropType<boolean | undefined>;
|
|
443
|
+
default: any;
|
|
444
|
+
};
|
|
445
|
+
defaultOpen: {
|
|
446
|
+
type: BooleanConstructor;
|
|
447
|
+
default: boolean;
|
|
448
|
+
};
|
|
449
|
+
placeholder: {
|
|
450
|
+
type: StringConstructor;
|
|
451
|
+
default: string;
|
|
452
|
+
};
|
|
453
|
+
disabled: {
|
|
454
|
+
type: PropType<boolean | undefined>;
|
|
455
|
+
default: any;
|
|
456
|
+
};
|
|
457
|
+
invalid: {
|
|
458
|
+
type: PropType<boolean | undefined>;
|
|
459
|
+
default: any;
|
|
460
|
+
};
|
|
461
|
+
readOnly: {
|
|
462
|
+
type: PropType<boolean | undefined>;
|
|
463
|
+
default: any;
|
|
464
|
+
};
|
|
465
|
+
/** 可选下界("yyyy-MM-dd",含当日) */
|
|
466
|
+
min: {
|
|
467
|
+
type: StringConstructor;
|
|
468
|
+
default: any;
|
|
469
|
+
};
|
|
470
|
+
/** 可选上界("yyyy-MM-dd",含当日) */
|
|
471
|
+
max: {
|
|
472
|
+
type: StringConstructor;
|
|
473
|
+
default: any;
|
|
474
|
+
};
|
|
475
|
+
/** 不可选日期谓词(参数为 ark 的 DateValue) */
|
|
476
|
+
isDateUnavailable: {
|
|
477
|
+
type: PropType<(date: DateValue) => boolean>;
|
|
478
|
+
default: any;
|
|
479
|
+
};
|
|
480
|
+
/** 选完终点后是否自动关弹层 */
|
|
481
|
+
closeOnSelect: {
|
|
482
|
+
type: BooleanConstructor;
|
|
483
|
+
default: boolean;
|
|
484
|
+
};
|
|
485
|
+
/** 日视图并排月数 */
|
|
486
|
+
numOfMonths: {
|
|
487
|
+
type: NumberConstructor;
|
|
488
|
+
default: number;
|
|
489
|
+
};
|
|
490
|
+
/** 文案与周起点跟随 locale(zh-CN 默认周一起始) */
|
|
491
|
+
locale: {
|
|
492
|
+
type: StringConstructor;
|
|
493
|
+
default: string;
|
|
494
|
+
};
|
|
495
|
+
class: {
|
|
496
|
+
type: StringConstructor;
|
|
497
|
+
default: any;
|
|
498
|
+
};
|
|
499
|
+
}>> & Readonly<{
|
|
500
|
+
"onUpdate:modelValue"?: (value: [string, string]) => any;
|
|
501
|
+
"onUpdate:open"?: (open: boolean) => any;
|
|
502
|
+
}>, {
|
|
503
|
+
defaultValue: [string, string];
|
|
504
|
+
disabled: boolean;
|
|
505
|
+
readOnly: boolean;
|
|
506
|
+
invalid: boolean;
|
|
507
|
+
class: string;
|
|
508
|
+
numOfMonths: number;
|
|
509
|
+
modelValue: [string, string];
|
|
510
|
+
min: string;
|
|
511
|
+
max: string;
|
|
512
|
+
isDateUnavailable: (date: DateValue) => boolean;
|
|
513
|
+
locale: string;
|
|
514
|
+
open: boolean;
|
|
515
|
+
defaultOpen: boolean;
|
|
516
|
+
placeholder: string;
|
|
517
|
+
closeOnSelect: boolean;
|
|
518
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
519
|
+
declare const _default$11: typeof __VLS_export$43;
|
|
520
|
+
//#endregion
|
|
521
|
+
//#region src/components/input/Input.vue.d.ts
|
|
522
|
+
type __VLS_Props$12 = {
|
|
523
|
+
class?: string;
|
|
524
|
+
invalid?: boolean;
|
|
525
|
+
};
|
|
526
|
+
type __VLS_ModelProps$2 = {
|
|
527
|
+
modelValue?: string | number;
|
|
528
|
+
};
|
|
529
|
+
type __VLS_PublicProps$2 = __VLS_Props$12 & __VLS_ModelProps$2;
|
|
530
|
+
declare const __VLS_export$42: import("vue").DefineComponent<__VLS_PublicProps$2, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
531
|
+
"update:modelValue": (value: string | number) => any;
|
|
532
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps$2> & Readonly<{
|
|
533
|
+
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
534
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
535
|
+
declare const _default$24: typeof __VLS_export$42;
|
|
536
|
+
//#endregion
|
|
537
|
+
//#region src/components/month-picker/MonthPicker.vue.d.ts
|
|
538
|
+
declare const __VLS_export$41: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
539
|
+
/** 受控月份("yyyy-MM");undefined 走内部非受控,null 表示空 */
|
|
540
|
+
modelValue: {
|
|
541
|
+
type: PropType<string | null | undefined>;
|
|
542
|
+
default: any;
|
|
543
|
+
};
|
|
544
|
+
/** 非受控初值("yyyy-MM") */
|
|
545
|
+
defaultValue: {
|
|
546
|
+
type: StringConstructor;
|
|
547
|
+
default: any;
|
|
548
|
+
};
|
|
549
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
550
|
+
open: {
|
|
551
|
+
type: PropType<boolean | undefined>;
|
|
552
|
+
default: any;
|
|
553
|
+
};
|
|
554
|
+
defaultOpen: {
|
|
555
|
+
type: BooleanConstructor;
|
|
556
|
+
default: boolean;
|
|
557
|
+
};
|
|
558
|
+
placeholder: {
|
|
559
|
+
type: StringConstructor;
|
|
560
|
+
default: string;
|
|
561
|
+
};
|
|
562
|
+
disabled: {
|
|
563
|
+
type: PropType<boolean | undefined>;
|
|
564
|
+
default: any;
|
|
565
|
+
};
|
|
566
|
+
invalid: {
|
|
567
|
+
type: PropType<boolean | undefined>;
|
|
568
|
+
default: any;
|
|
569
|
+
};
|
|
570
|
+
readOnly: {
|
|
571
|
+
type: PropType<boolean | undefined>;
|
|
572
|
+
default: any;
|
|
573
|
+
};
|
|
574
|
+
/** 可选下界("yyyy-MM",含当月) */
|
|
575
|
+
min: {
|
|
576
|
+
type: StringConstructor;
|
|
577
|
+
default: any;
|
|
578
|
+
};
|
|
579
|
+
/** 可选上界("yyyy-MM",含当月) */
|
|
580
|
+
max: {
|
|
581
|
+
type: StringConstructor;
|
|
582
|
+
default: any;
|
|
583
|
+
};
|
|
584
|
+
/** 选中后是否自动关弹层 */
|
|
585
|
+
closeOnSelect: {
|
|
586
|
+
type: BooleanConstructor;
|
|
587
|
+
default: boolean;
|
|
588
|
+
};
|
|
589
|
+
/** 文案与周起点跟随 locale */
|
|
590
|
+
locale: {
|
|
591
|
+
type: StringConstructor;
|
|
592
|
+
default: string;
|
|
593
|
+
};
|
|
594
|
+
class: {
|
|
595
|
+
type: StringConstructor;
|
|
596
|
+
default: any;
|
|
597
|
+
};
|
|
598
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
599
|
+
"update:modelValue": (value: string) => any;
|
|
600
|
+
"update:open": (open: boolean) => any;
|
|
601
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
602
|
+
/** 受控月份("yyyy-MM");undefined 走内部非受控,null 表示空 */
|
|
603
|
+
modelValue: {
|
|
604
|
+
type: PropType<string | null | undefined>;
|
|
605
|
+
default: any;
|
|
606
|
+
};
|
|
607
|
+
/** 非受控初值("yyyy-MM") */
|
|
608
|
+
defaultValue: {
|
|
609
|
+
type: StringConstructor;
|
|
610
|
+
default: any;
|
|
611
|
+
};
|
|
612
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
613
|
+
open: {
|
|
614
|
+
type: PropType<boolean | undefined>;
|
|
615
|
+
default: any;
|
|
616
|
+
};
|
|
617
|
+
defaultOpen: {
|
|
618
|
+
type: BooleanConstructor;
|
|
619
|
+
default: boolean;
|
|
620
|
+
};
|
|
621
|
+
placeholder: {
|
|
622
|
+
type: StringConstructor;
|
|
623
|
+
default: string;
|
|
624
|
+
};
|
|
625
|
+
disabled: {
|
|
626
|
+
type: PropType<boolean | undefined>;
|
|
627
|
+
default: any;
|
|
628
|
+
};
|
|
629
|
+
invalid: {
|
|
630
|
+
type: PropType<boolean | undefined>;
|
|
631
|
+
default: any;
|
|
632
|
+
};
|
|
633
|
+
readOnly: {
|
|
634
|
+
type: PropType<boolean | undefined>;
|
|
635
|
+
default: any;
|
|
636
|
+
};
|
|
637
|
+
/** 可选下界("yyyy-MM",含当月) */
|
|
638
|
+
min: {
|
|
639
|
+
type: StringConstructor;
|
|
640
|
+
default: any;
|
|
641
|
+
};
|
|
642
|
+
/** 可选上界("yyyy-MM",含当月) */
|
|
643
|
+
max: {
|
|
644
|
+
type: StringConstructor;
|
|
645
|
+
default: any;
|
|
646
|
+
};
|
|
647
|
+
/** 选中后是否自动关弹层 */
|
|
648
|
+
closeOnSelect: {
|
|
649
|
+
type: BooleanConstructor;
|
|
650
|
+
default: boolean;
|
|
651
|
+
};
|
|
652
|
+
/** 文案与周起点跟随 locale */
|
|
653
|
+
locale: {
|
|
654
|
+
type: StringConstructor;
|
|
655
|
+
default: string;
|
|
656
|
+
};
|
|
657
|
+
class: {
|
|
658
|
+
type: StringConstructor;
|
|
659
|
+
default: any;
|
|
660
|
+
};
|
|
661
|
+
}>> & Readonly<{
|
|
662
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
663
|
+
"onUpdate:open"?: (open: boolean) => any;
|
|
664
|
+
}>, {
|
|
665
|
+
defaultValue: string;
|
|
666
|
+
disabled: boolean;
|
|
667
|
+
readOnly: boolean;
|
|
668
|
+
invalid: boolean;
|
|
669
|
+
class: string;
|
|
670
|
+
modelValue: string;
|
|
671
|
+
min: string;
|
|
672
|
+
max: string;
|
|
673
|
+
locale: string;
|
|
674
|
+
open: boolean;
|
|
675
|
+
defaultOpen: boolean;
|
|
676
|
+
placeholder: string;
|
|
677
|
+
closeOnSelect: boolean;
|
|
678
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
679
|
+
declare const _default$26: typeof __VLS_export$41;
|
|
680
|
+
//#endregion
|
|
681
|
+
//#region src/components/week-picker/WeekPicker.vue.d.ts
|
|
682
|
+
declare const __VLS_export$40: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
683
|
+
/** 受控值("yyyy-MM-dd",语义=所在周起始日);undefined 走内部非受控,null 表示空 */
|
|
684
|
+
modelValue: {
|
|
685
|
+
type: PropType<string | null | undefined>;
|
|
686
|
+
default: any;
|
|
687
|
+
};
|
|
688
|
+
/** 非受控初值("yyyy-MM-dd",内部归一到所在周起始日) */
|
|
689
|
+
defaultValue: {
|
|
690
|
+
type: StringConstructor;
|
|
691
|
+
default: any;
|
|
692
|
+
};
|
|
693
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
694
|
+
open: {
|
|
695
|
+
type: PropType<boolean | undefined>;
|
|
696
|
+
default: any;
|
|
697
|
+
};
|
|
698
|
+
defaultOpen: {
|
|
699
|
+
type: BooleanConstructor;
|
|
700
|
+
default: boolean;
|
|
701
|
+
};
|
|
702
|
+
placeholder: {
|
|
703
|
+
type: StringConstructor;
|
|
704
|
+
default: string;
|
|
705
|
+
};
|
|
706
|
+
disabled: {
|
|
707
|
+
type: PropType<boolean | undefined>;
|
|
708
|
+
default: any;
|
|
709
|
+
};
|
|
710
|
+
invalid: {
|
|
711
|
+
type: PropType<boolean | undefined>;
|
|
712
|
+
default: any;
|
|
713
|
+
};
|
|
714
|
+
readOnly: {
|
|
715
|
+
type: PropType<boolean | undefined>;
|
|
716
|
+
default: any;
|
|
717
|
+
};
|
|
718
|
+
/** 可选下界("yyyy-MM-dd",含当日;日粒度,周条带可能视觉越界但不影响点选禁用) */
|
|
719
|
+
min: {
|
|
720
|
+
type: StringConstructor;
|
|
721
|
+
default: any;
|
|
722
|
+
};
|
|
723
|
+
/** 可选上界("yyyy-MM-dd",含当日) */
|
|
724
|
+
max: {
|
|
725
|
+
type: StringConstructor;
|
|
726
|
+
default: any;
|
|
727
|
+
};
|
|
728
|
+
/** 不可选日期谓词(参数为 ark 的 DateValue;命中格不可点,同周其余日仍可选) */
|
|
729
|
+
isDateUnavailable: {
|
|
730
|
+
type: PropType<(date: DateValue) => boolean>;
|
|
731
|
+
default: any;
|
|
732
|
+
};
|
|
733
|
+
/** 选中后是否自动关弹层 */
|
|
734
|
+
closeOnSelect: {
|
|
735
|
+
type: BooleanConstructor;
|
|
736
|
+
default: boolean;
|
|
737
|
+
};
|
|
738
|
+
/** 文案与周起点跟随 locale(zh-CN 默认周一起始) */
|
|
739
|
+
locale: {
|
|
740
|
+
type: StringConstructor;
|
|
741
|
+
default: string;
|
|
742
|
+
};
|
|
743
|
+
class: {
|
|
744
|
+
type: StringConstructor;
|
|
745
|
+
default: any;
|
|
746
|
+
};
|
|
747
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
748
|
+
"update:modelValue": (value: string) => any;
|
|
749
|
+
"update:open": (open: boolean) => any;
|
|
750
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
751
|
+
/** 受控值("yyyy-MM-dd",语义=所在周起始日);undefined 走内部非受控,null 表示空 */
|
|
752
|
+
modelValue: {
|
|
753
|
+
type: PropType<string | null | undefined>;
|
|
754
|
+
default: any;
|
|
755
|
+
};
|
|
756
|
+
/** 非受控初值("yyyy-MM-dd",内部归一到所在周起始日) */
|
|
757
|
+
defaultValue: {
|
|
758
|
+
type: StringConstructor;
|
|
759
|
+
default: any;
|
|
760
|
+
};
|
|
761
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
762
|
+
open: {
|
|
763
|
+
type: PropType<boolean | undefined>;
|
|
764
|
+
default: any;
|
|
765
|
+
};
|
|
766
|
+
defaultOpen: {
|
|
767
|
+
type: BooleanConstructor;
|
|
768
|
+
default: boolean;
|
|
769
|
+
};
|
|
770
|
+
placeholder: {
|
|
771
|
+
type: StringConstructor;
|
|
772
|
+
default: string;
|
|
773
|
+
};
|
|
774
|
+
disabled: {
|
|
775
|
+
type: PropType<boolean | undefined>;
|
|
776
|
+
default: any;
|
|
777
|
+
};
|
|
778
|
+
invalid: {
|
|
779
|
+
type: PropType<boolean | undefined>;
|
|
780
|
+
default: any;
|
|
781
|
+
};
|
|
782
|
+
readOnly: {
|
|
783
|
+
type: PropType<boolean | undefined>;
|
|
784
|
+
default: any;
|
|
785
|
+
};
|
|
786
|
+
/** 可选下界("yyyy-MM-dd",含当日;日粒度,周条带可能视觉越界但不影响点选禁用) */
|
|
787
|
+
min: {
|
|
788
|
+
type: StringConstructor;
|
|
789
|
+
default: any;
|
|
790
|
+
};
|
|
791
|
+
/** 可选上界("yyyy-MM-dd",含当日) */
|
|
792
|
+
max: {
|
|
793
|
+
type: StringConstructor;
|
|
794
|
+
default: any;
|
|
795
|
+
};
|
|
796
|
+
/** 不可选日期谓词(参数为 ark 的 DateValue;命中格不可点,同周其余日仍可选) */
|
|
797
|
+
isDateUnavailable: {
|
|
798
|
+
type: PropType<(date: DateValue) => boolean>;
|
|
799
|
+
default: any;
|
|
800
|
+
};
|
|
801
|
+
/** 选中后是否自动关弹层 */
|
|
802
|
+
closeOnSelect: {
|
|
803
|
+
type: BooleanConstructor;
|
|
804
|
+
default: boolean;
|
|
805
|
+
};
|
|
806
|
+
/** 文案与周起点跟随 locale(zh-CN 默认周一起始) */
|
|
807
|
+
locale: {
|
|
808
|
+
type: StringConstructor;
|
|
809
|
+
default: string;
|
|
810
|
+
};
|
|
811
|
+
class: {
|
|
812
|
+
type: StringConstructor;
|
|
813
|
+
default: any;
|
|
814
|
+
};
|
|
815
|
+
}>> & Readonly<{
|
|
816
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
817
|
+
"onUpdate:open"?: (open: boolean) => any;
|
|
818
|
+
}>, {
|
|
819
|
+
defaultValue: string;
|
|
820
|
+
disabled: boolean;
|
|
821
|
+
readOnly: boolean;
|
|
822
|
+
invalid: boolean;
|
|
823
|
+
class: string;
|
|
824
|
+
modelValue: string;
|
|
825
|
+
min: string;
|
|
826
|
+
max: string;
|
|
827
|
+
isDateUnavailable: (date: DateValue) => boolean;
|
|
828
|
+
locale: string;
|
|
829
|
+
open: boolean;
|
|
830
|
+
defaultOpen: boolean;
|
|
831
|
+
placeholder: string;
|
|
832
|
+
closeOnSelect: boolean;
|
|
833
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
834
|
+
declare const _default$45: typeof __VLS_export$40;
|
|
835
|
+
//#endregion
|
|
836
|
+
//#region src/components/number-input/NumberInput.vue.d.ts
|
|
837
|
+
declare var __VLS_16$4: {}, __VLS_29: {};
|
|
838
|
+
type __VLS_Slots$26 = {} & {
|
|
839
|
+
decrement?: (props: typeof __VLS_16$4) => any;
|
|
840
|
+
} & {
|
|
841
|
+
increment?: (props: typeof __VLS_29) => any;
|
|
842
|
+
};
|
|
843
|
+
declare const __VLS_base$26: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
844
|
+
/** 受控值:number 或 null(空);undefined 走内部非受控 */
|
|
845
|
+
modelValue: {
|
|
846
|
+
type: PropType<number | null | undefined>;
|
|
847
|
+
default: any;
|
|
848
|
+
};
|
|
849
|
+
min: {
|
|
850
|
+
type: NumberConstructor;
|
|
851
|
+
default: any;
|
|
852
|
+
};
|
|
853
|
+
max: {
|
|
854
|
+
type: NumberConstructor;
|
|
855
|
+
default: any;
|
|
856
|
+
};
|
|
857
|
+
step: {
|
|
858
|
+
type: NumberConstructor;
|
|
859
|
+
default: any;
|
|
860
|
+
};
|
|
861
|
+
formatOptions: {
|
|
862
|
+
type: PropType<Intl.NumberFormatOptions>;
|
|
863
|
+
default: any;
|
|
864
|
+
};
|
|
865
|
+
disabled: {
|
|
866
|
+
type: PropType<boolean | undefined>;
|
|
867
|
+
default: any;
|
|
868
|
+
};
|
|
869
|
+
invalid: {
|
|
870
|
+
type: PropType<boolean | undefined>;
|
|
871
|
+
default: any;
|
|
872
|
+
};
|
|
873
|
+
class: {
|
|
874
|
+
type: StringConstructor;
|
|
875
|
+
default: any;
|
|
876
|
+
};
|
|
877
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
878
|
+
"update:modelValue": (value: number) => any;
|
|
879
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
880
|
+
/** 受控值:number 或 null(空);undefined 走内部非受控 */
|
|
881
|
+
modelValue: {
|
|
882
|
+
type: PropType<number | null | undefined>;
|
|
883
|
+
default: any;
|
|
884
|
+
};
|
|
885
|
+
min: {
|
|
886
|
+
type: NumberConstructor;
|
|
887
|
+
default: any;
|
|
888
|
+
};
|
|
889
|
+
max: {
|
|
890
|
+
type: NumberConstructor;
|
|
891
|
+
default: any;
|
|
892
|
+
};
|
|
893
|
+
step: {
|
|
894
|
+
type: NumberConstructor;
|
|
895
|
+
default: any;
|
|
896
|
+
};
|
|
897
|
+
formatOptions: {
|
|
898
|
+
type: PropType<Intl.NumberFormatOptions>;
|
|
899
|
+
default: any;
|
|
900
|
+
};
|
|
901
|
+
disabled: {
|
|
902
|
+
type: PropType<boolean | undefined>;
|
|
903
|
+
default: any;
|
|
904
|
+
};
|
|
905
|
+
invalid: {
|
|
906
|
+
type: PropType<boolean | undefined>;
|
|
907
|
+
default: any;
|
|
908
|
+
};
|
|
909
|
+
class: {
|
|
910
|
+
type: StringConstructor;
|
|
911
|
+
default: any;
|
|
912
|
+
};
|
|
913
|
+
}>> & Readonly<{
|
|
914
|
+
"onUpdate:modelValue"?: (value: number) => any;
|
|
915
|
+
}>, {
|
|
916
|
+
disabled: boolean;
|
|
917
|
+
invalid: boolean;
|
|
918
|
+
class: string;
|
|
919
|
+
modelValue: number;
|
|
920
|
+
min: number;
|
|
921
|
+
max: number;
|
|
922
|
+
step: number;
|
|
923
|
+
formatOptions: Intl.NumberFormatOptions;
|
|
924
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
925
|
+
declare const __VLS_export$39: __VLS_WithSlots$26<typeof __VLS_base$26, __VLS_Slots$26>;
|
|
926
|
+
declare const _default$27: typeof __VLS_export$39;
|
|
927
|
+
type __VLS_WithSlots$26<T, S> = T & {
|
|
928
|
+
new (): {
|
|
929
|
+
$slots: S;
|
|
930
|
+
};
|
|
931
|
+
};
|
|
932
|
+
//#endregion
|
|
933
|
+
//#region src/components/number-input/utils.d.ts
|
|
934
|
+
/** Ark ValueChangeDetails → number|null(空串/NaN 归一 null,numberOrNull 为可单测的纯函数) */
|
|
935
|
+
export declare function numberOrNull(details: {
|
|
936
|
+
value: string;
|
|
937
|
+
valueAsNumber: number;
|
|
938
|
+
}): number | null;
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region src/components/password-input/PasswordInput.vue.d.ts
|
|
941
|
+
declare var __VLS_1$10: {
|
|
942
|
+
visible: boolean;
|
|
943
|
+
};
|
|
944
|
+
type __VLS_Slots$25 = {} & {
|
|
945
|
+
'visibility-icon'?: (props: typeof __VLS_1$10) => any;
|
|
946
|
+
};
|
|
947
|
+
declare const __VLS_base$25: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
948
|
+
/** 受控值;undefined 走内部非受控 */
|
|
949
|
+
modelValue: {
|
|
950
|
+
type: PropType<string | undefined>;
|
|
951
|
+
default: any;
|
|
952
|
+
};
|
|
953
|
+
/** 明文显示;undefined 走内部非受控(默认隐藏) */
|
|
954
|
+
visible: {
|
|
955
|
+
type: PropType<boolean | undefined>;
|
|
956
|
+
default: any;
|
|
957
|
+
};
|
|
958
|
+
autoComplete: {
|
|
959
|
+
type: PropType<"current-password" | "new-password">;
|
|
960
|
+
default: string;
|
|
961
|
+
};
|
|
962
|
+
placeholder: {
|
|
963
|
+
type: StringConstructor;
|
|
964
|
+
default: any;
|
|
965
|
+
};
|
|
966
|
+
disabled: {
|
|
967
|
+
type: PropType<boolean | undefined>;
|
|
968
|
+
default: any;
|
|
969
|
+
};
|
|
970
|
+
invalid: {
|
|
971
|
+
type: PropType<boolean | undefined>;
|
|
972
|
+
default: any;
|
|
973
|
+
};
|
|
974
|
+
class: {
|
|
975
|
+
type: StringConstructor;
|
|
976
|
+
default: any;
|
|
977
|
+
};
|
|
978
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
979
|
+
"update:modelValue": (value: string) => any;
|
|
980
|
+
"update:visible": (visible: boolean) => any;
|
|
981
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
982
|
+
/** 受控值;undefined 走内部非受控 */
|
|
983
|
+
modelValue: {
|
|
984
|
+
type: PropType<string | undefined>;
|
|
985
|
+
default: any;
|
|
986
|
+
};
|
|
987
|
+
/** 明文显示;undefined 走内部非受控(默认隐藏) */
|
|
988
|
+
visible: {
|
|
989
|
+
type: PropType<boolean | undefined>;
|
|
990
|
+
default: any;
|
|
991
|
+
};
|
|
992
|
+
autoComplete: {
|
|
993
|
+
type: PropType<"current-password" | "new-password">;
|
|
994
|
+
default: string;
|
|
995
|
+
};
|
|
996
|
+
placeholder: {
|
|
997
|
+
type: StringConstructor;
|
|
998
|
+
default: any;
|
|
999
|
+
};
|
|
1000
|
+
disabled: {
|
|
1001
|
+
type: PropType<boolean | undefined>;
|
|
1002
|
+
default: any;
|
|
1003
|
+
};
|
|
1004
|
+
invalid: {
|
|
1005
|
+
type: PropType<boolean | undefined>;
|
|
1006
|
+
default: any;
|
|
1007
|
+
};
|
|
1008
|
+
class: {
|
|
1009
|
+
type: StringConstructor;
|
|
1010
|
+
default: any;
|
|
1011
|
+
};
|
|
1012
|
+
}>> & Readonly<{
|
|
1013
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
1014
|
+
"onUpdate:visible"?: (visible: boolean) => any;
|
|
1015
|
+
}>, {
|
|
1016
|
+
disabled: boolean;
|
|
1017
|
+
invalid: boolean;
|
|
1018
|
+
class: string;
|
|
1019
|
+
modelValue: string;
|
|
1020
|
+
placeholder: string;
|
|
1021
|
+
visible: boolean;
|
|
1022
|
+
autoComplete: "current-password" | "new-password";
|
|
1023
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1024
|
+
declare const __VLS_export$38: __VLS_WithSlots$25<typeof __VLS_base$25, __VLS_Slots$25>;
|
|
1025
|
+
declare const _default$28: typeof __VLS_export$38;
|
|
1026
|
+
type __VLS_WithSlots$25<T, S> = T & {
|
|
1027
|
+
new (): {
|
|
1028
|
+
$slots: S;
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
//#endregion
|
|
1032
|
+
//#region src/components/radio-group/RadioGroup.vue.d.ts
|
|
1033
|
+
/** 单个选项配置项 */
|
|
1034
|
+
interface RadioGroupOption {
|
|
1035
|
+
/** 选中后写入组值的唯一标识 */
|
|
1036
|
+
value: string;
|
|
1037
|
+
/** 选项文案 */
|
|
1038
|
+
label: string;
|
|
1039
|
+
/** 是否禁用该项(禁用项不响应点击且不参与键盘导航) */
|
|
1040
|
+
disabled?: boolean;
|
|
1041
|
+
/** 追加到选项根元素的样式类 */
|
|
1042
|
+
class?: string;
|
|
1043
|
+
}
|
|
1044
|
+
interface Props$8 {
|
|
1045
|
+
/** 选项列表(必填) */
|
|
1046
|
+
items: RadioGroupOption[];
|
|
1047
|
+
/** 当前值(配合 v-model:value);不传时为非受控(内部 ref 维护) */
|
|
1048
|
+
value?: string;
|
|
1049
|
+
defaultValue?: string;
|
|
1050
|
+
disabled?: boolean;
|
|
1051
|
+
/** 原生表单提交字段名 */
|
|
1052
|
+
name?: string;
|
|
1053
|
+
/** 关联的 form id */
|
|
1054
|
+
form?: string;
|
|
1055
|
+
required?: boolean;
|
|
1056
|
+
readOnly?: boolean;
|
|
1057
|
+
/** 校验无效态;zag 会级联 data-invalid 到 root/item/item-control */
|
|
1058
|
+
invalid?: boolean;
|
|
1059
|
+
orientation?: "horizontal" | "vertical";
|
|
1060
|
+
class?: string;
|
|
1061
|
+
}
|
|
1062
|
+
declare var __VLS_21$1: {
|
|
1063
|
+
item: RadioGroupOption;
|
|
1064
|
+
checked: boolean;
|
|
1065
|
+
};
|
|
1066
|
+
type __VLS_Slots$24 = {} & {
|
|
1067
|
+
item?: (props: typeof __VLS_21$1) => any;
|
|
1068
|
+
};
|
|
1069
|
+
declare const __VLS_base$24: import("vue").DefineComponent<Props$8, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1070
|
+
"update:value": (value: string) => any;
|
|
1071
|
+
}, string, import("vue").PublicProps, Readonly<Props$8> & Readonly<{
|
|
1072
|
+
"onUpdate:value"?: (value: string) => any;
|
|
1073
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1074
|
+
declare const __VLS_export$37: __VLS_WithSlots$24<typeof __VLS_base$24, __VLS_Slots$24>;
|
|
1075
|
+
declare const _default$32: typeof __VLS_export$37;
|
|
1076
|
+
type __VLS_WithSlots$24<T, S> = T & {
|
|
1077
|
+
new (): {
|
|
1078
|
+
$slots: S;
|
|
1079
|
+
};
|
|
1080
|
+
};
|
|
1081
|
+
//#endregion
|
|
1082
|
+
//#region src/components/tree-shared/interface.d.ts
|
|
1083
|
+
/*!
|
|
1084
|
+
* 移植自 treemate v0.3.11 —— https://github.com/07akioni/treemate
|
|
1085
|
+
* MIT License · Copyright (c) 07akioni
|
|
1086
|
+
* 本地改动:无实质改动(仅类型导入顺序与注释格式)。
|
|
1087
|
+
*/
|
|
1088
|
+
type Key = string | number;
|
|
1089
|
+
type CheckStrategy = "all" | "child" | "parent";
|
|
1090
|
+
//#endregion
|
|
1091
|
+
//#region src/components/tree-shared/types.d.ts
|
|
1092
|
+
/** 组件公开的选项类型:key/label/children 常用字段显式化,其余字段透传(对齐 naive-ui TreeOption) */
|
|
1093
|
+
interface TreeOption {
|
|
1094
|
+
key: Key;
|
|
1095
|
+
label?: string;
|
|
1096
|
+
children?: TreeOption[];
|
|
1097
|
+
disabled?: boolean;
|
|
1098
|
+
isLeaf?: boolean;
|
|
1099
|
+
[key: string]: unknown;
|
|
1100
|
+
}
|
|
1101
|
+
//#endregion
|
|
1102
|
+
//#region src/components/cascader/Cascader.vue.d.ts
|
|
1103
|
+
declare const __VLS_export$36: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1104
|
+
/** 树形选项(key 必填,label 展示名,children 子级) */
|
|
1105
|
+
options: {
|
|
1106
|
+
type: PropType<TreeOption[]>;
|
|
1107
|
+
required: true;
|
|
1108
|
+
};
|
|
1109
|
+
/** 受控值:单选为叶子 key,multiple/checkable 为 key 数组;undefined 走内部非受控 */
|
|
1110
|
+
modelValue: {
|
|
1111
|
+
type: PropType<Key | Key[] | undefined>;
|
|
1112
|
+
default: any;
|
|
1113
|
+
};
|
|
1114
|
+
defaultValue: {
|
|
1115
|
+
type: PropType<Key | Key[] | undefined>;
|
|
1116
|
+
default: any;
|
|
1117
|
+
};
|
|
1118
|
+
/** 多选(值恒为数组) */
|
|
1119
|
+
multiple: {
|
|
1120
|
+
type: BooleanConstructor;
|
|
1121
|
+
default: boolean;
|
|
1122
|
+
};
|
|
1123
|
+
/** 勾选模式(隐含 multiple,值恒为数组) */
|
|
1124
|
+
checkable: {
|
|
1125
|
+
type: BooleanConstructor;
|
|
1126
|
+
default: boolean;
|
|
1127
|
+
};
|
|
1128
|
+
/** 级联勾选:父子联动(默认 false,对齐 naive-ui) */
|
|
1129
|
+
cascade: {
|
|
1130
|
+
type: BooleanConstructor;
|
|
1131
|
+
default: boolean;
|
|
1132
|
+
};
|
|
1133
|
+
/** 勾选策略:all=全选节点 child=仅叶子 parent=仅父级 */
|
|
1134
|
+
checkStrategy: {
|
|
1135
|
+
type: PropType<CheckStrategy>;
|
|
1136
|
+
default: string;
|
|
1137
|
+
};
|
|
1138
|
+
/** 下级展开触发方式 */
|
|
1139
|
+
expandTrigger: {
|
|
1140
|
+
type: PropType<"click" | "hover">;
|
|
1141
|
+
default: string;
|
|
1142
|
+
};
|
|
1143
|
+
/** 回显是否拼接完整路径 */
|
|
1144
|
+
showPath: {
|
|
1145
|
+
type: BooleanConstructor;
|
|
1146
|
+
default: boolean;
|
|
1147
|
+
};
|
|
1148
|
+
/** 路径拼接分隔符 */
|
|
1149
|
+
separator: {
|
|
1150
|
+
type: StringConstructor;
|
|
1151
|
+
default: string;
|
|
1152
|
+
};
|
|
1153
|
+
/** 展示清空按钮 */
|
|
1154
|
+
clearable: {
|
|
1155
|
+
type: BooleanConstructor;
|
|
1156
|
+
default: boolean;
|
|
1157
|
+
};
|
|
1158
|
+
disabled: {
|
|
1159
|
+
type: PropType<boolean | undefined>;
|
|
1160
|
+
default: any;
|
|
1161
|
+
};
|
|
1162
|
+
placeholder: {
|
|
1163
|
+
type: StringConstructor;
|
|
1164
|
+
default: string;
|
|
1165
|
+
};
|
|
1166
|
+
/** 多选时最多展示的标签数,超出折叠为 +N */
|
|
1167
|
+
maxTagCount: {
|
|
1168
|
+
type: NumberConstructor;
|
|
1169
|
+
default: any;
|
|
1170
|
+
};
|
|
1171
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
1172
|
+
open: {
|
|
1173
|
+
type: PropType<boolean | undefined>;
|
|
1174
|
+
default: any;
|
|
1175
|
+
};
|
|
1176
|
+
defaultOpen: {
|
|
1177
|
+
type: BooleanConstructor;
|
|
1178
|
+
default: boolean;
|
|
1179
|
+
};
|
|
1180
|
+
class: {
|
|
1181
|
+
type: StringConstructor;
|
|
1182
|
+
default: any;
|
|
1183
|
+
};
|
|
1184
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1185
|
+
"update:modelValue": (value: Key | Key[]) => any;
|
|
1186
|
+
"update:show": (open: boolean) => any;
|
|
1187
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1188
|
+
/** 树形选项(key 必填,label 展示名,children 子级) */
|
|
1189
|
+
options: {
|
|
1190
|
+
type: PropType<TreeOption[]>;
|
|
1191
|
+
required: true;
|
|
1192
|
+
};
|
|
1193
|
+
/** 受控值:单选为叶子 key,multiple/checkable 为 key 数组;undefined 走内部非受控 */
|
|
1194
|
+
modelValue: {
|
|
1195
|
+
type: PropType<Key | Key[] | undefined>;
|
|
1196
|
+
default: any;
|
|
1197
|
+
};
|
|
1198
|
+
defaultValue: {
|
|
1199
|
+
type: PropType<Key | Key[] | undefined>;
|
|
1200
|
+
default: any;
|
|
1201
|
+
};
|
|
1202
|
+
/** 多选(值恒为数组) */
|
|
1203
|
+
multiple: {
|
|
1204
|
+
type: BooleanConstructor;
|
|
1205
|
+
default: boolean;
|
|
1206
|
+
};
|
|
1207
|
+
/** 勾选模式(隐含 multiple,值恒为数组) */
|
|
1208
|
+
checkable: {
|
|
1209
|
+
type: BooleanConstructor;
|
|
1210
|
+
default: boolean;
|
|
1211
|
+
};
|
|
1212
|
+
/** 级联勾选:父子联动(默认 false,对齐 naive-ui) */
|
|
1213
|
+
cascade: {
|
|
1214
|
+
type: BooleanConstructor;
|
|
1215
|
+
default: boolean;
|
|
1216
|
+
};
|
|
1217
|
+
/** 勾选策略:all=全选节点 child=仅叶子 parent=仅父级 */
|
|
1218
|
+
checkStrategy: {
|
|
1219
|
+
type: PropType<CheckStrategy>;
|
|
1220
|
+
default: string;
|
|
1221
|
+
};
|
|
1222
|
+
/** 下级展开触发方式 */
|
|
1223
|
+
expandTrigger: {
|
|
1224
|
+
type: PropType<"click" | "hover">;
|
|
1225
|
+
default: string;
|
|
1226
|
+
};
|
|
1227
|
+
/** 回显是否拼接完整路径 */
|
|
1228
|
+
showPath: {
|
|
1229
|
+
type: BooleanConstructor;
|
|
1230
|
+
default: boolean;
|
|
1231
|
+
};
|
|
1232
|
+
/** 路径拼接分隔符 */
|
|
1233
|
+
separator: {
|
|
1234
|
+
type: StringConstructor;
|
|
1235
|
+
default: string;
|
|
1236
|
+
};
|
|
1237
|
+
/** 展示清空按钮 */
|
|
1238
|
+
clearable: {
|
|
1239
|
+
type: BooleanConstructor;
|
|
1240
|
+
default: boolean;
|
|
1241
|
+
};
|
|
1242
|
+
disabled: {
|
|
1243
|
+
type: PropType<boolean | undefined>;
|
|
1244
|
+
default: any;
|
|
1245
|
+
};
|
|
1246
|
+
placeholder: {
|
|
1247
|
+
type: StringConstructor;
|
|
1248
|
+
default: string;
|
|
1249
|
+
};
|
|
1250
|
+
/** 多选时最多展示的标签数,超出折叠为 +N */
|
|
1251
|
+
maxTagCount: {
|
|
1252
|
+
type: NumberConstructor;
|
|
1253
|
+
default: any;
|
|
1254
|
+
};
|
|
1255
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
1256
|
+
open: {
|
|
1257
|
+
type: PropType<boolean | undefined>;
|
|
1258
|
+
default: any;
|
|
1259
|
+
};
|
|
1260
|
+
defaultOpen: {
|
|
1261
|
+
type: BooleanConstructor;
|
|
1262
|
+
default: boolean;
|
|
1263
|
+
};
|
|
1264
|
+
class: {
|
|
1265
|
+
type: StringConstructor;
|
|
1266
|
+
default: any;
|
|
1267
|
+
};
|
|
1268
|
+
}>> & Readonly<{
|
|
1269
|
+
"onUpdate:modelValue"?: (value: Key | Key[]) => any;
|
|
1270
|
+
"onUpdate:show"?: (open: boolean) => any;
|
|
1271
|
+
}>, {
|
|
1272
|
+
defaultValue: Key | Key[];
|
|
1273
|
+
disabled: boolean;
|
|
1274
|
+
class: string;
|
|
1275
|
+
modelValue: Key | Key[];
|
|
1276
|
+
open: boolean;
|
|
1277
|
+
defaultOpen: boolean;
|
|
1278
|
+
placeholder: string;
|
|
1279
|
+
multiple: boolean;
|
|
1280
|
+
checkable: boolean;
|
|
1281
|
+
cascade: boolean;
|
|
1282
|
+
checkStrategy: CheckStrategy;
|
|
1283
|
+
maxTagCount: number;
|
|
1284
|
+
clearable: boolean;
|
|
1285
|
+
expandTrigger: "click" | "hover";
|
|
1286
|
+
showPath: boolean;
|
|
1287
|
+
separator: string;
|
|
1288
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1289
|
+
declare const _default$7: typeof __VLS_export$36;
|
|
1290
|
+
//#endregion
|
|
1291
|
+
//#region src/components/tree-select/TreeSelect.vue.d.ts
|
|
1292
|
+
declare const __VLS_export$35: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1293
|
+
/** 树选项(key/label/children/disabled) */
|
|
1294
|
+
options: {
|
|
1295
|
+
type: PropType<TreeOption[]>;
|
|
1296
|
+
required: true;
|
|
1297
|
+
};
|
|
1298
|
+
/** 当前值:单选为 key,multiple 为 key 数组;不传走内部非受控 */
|
|
1299
|
+
modelValue: {
|
|
1300
|
+
type: PropType<Key | Key[] | undefined>;
|
|
1301
|
+
default: any;
|
|
1302
|
+
};
|
|
1303
|
+
defaultValue: {
|
|
1304
|
+
type: PropType<Key | Key[] | undefined>;
|
|
1305
|
+
default: any;
|
|
1306
|
+
};
|
|
1307
|
+
/** 多选:值恒为数组,点击节点切换选中 */
|
|
1308
|
+
multiple: {
|
|
1309
|
+
type: BooleanConstructor;
|
|
1310
|
+
default: boolean;
|
|
1311
|
+
};
|
|
1312
|
+
/** 勾选模式:行首渲染 checkbox,值恒为数组(隐含多选语义) */
|
|
1313
|
+
checkable: {
|
|
1314
|
+
type: BooleanConstructor;
|
|
1315
|
+
default: boolean;
|
|
1316
|
+
};
|
|
1317
|
+
/** 勾选级联:勾选父级联动全部子级(默认 false,对齐 naive-ui) */
|
|
1318
|
+
cascade: {
|
|
1319
|
+
type: BooleanConstructor;
|
|
1320
|
+
default: boolean;
|
|
1321
|
+
};
|
|
1322
|
+
/** 勾选策略:all 值含全选节点 / parent 仅父 / child 仅叶(默认 all) */
|
|
1323
|
+
checkStrategy: {
|
|
1324
|
+
type: PropType<"all" | "parent" | "child">;
|
|
1325
|
+
default: string;
|
|
1326
|
+
};
|
|
1327
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
1328
|
+
open: {
|
|
1329
|
+
type: PropType<boolean | undefined>;
|
|
1330
|
+
default: any;
|
|
1331
|
+
};
|
|
1332
|
+
defaultOpen: {
|
|
1333
|
+
type: BooleanConstructor;
|
|
1334
|
+
default: boolean;
|
|
1335
|
+
};
|
|
1336
|
+
disabled: {
|
|
1337
|
+
type: PropType<boolean | undefined>;
|
|
1338
|
+
default: any;
|
|
1339
|
+
};
|
|
1340
|
+
placeholder: {
|
|
1341
|
+
type: StringConstructor;
|
|
1342
|
+
default: string;
|
|
1343
|
+
};
|
|
1344
|
+
/** 多选最多展示标签数,超出折叠为 +N */
|
|
1345
|
+
maxTagCount: {
|
|
1346
|
+
type: NumberConstructor;
|
|
1347
|
+
default: any;
|
|
1348
|
+
};
|
|
1349
|
+
/** 展示清空按钮 */
|
|
1350
|
+
clearable: {
|
|
1351
|
+
type: BooleanConstructor;
|
|
1352
|
+
default: boolean;
|
|
1353
|
+
};
|
|
1354
|
+
/** 可搜索:触发器内嵌输入框,按 label 过滤(展示命中节点及其祖先路径) */
|
|
1355
|
+
filterable: {
|
|
1356
|
+
type: BooleanConstructor;
|
|
1357
|
+
default: boolean;
|
|
1358
|
+
};
|
|
1359
|
+
/** 受控展开键集合;undefined 走内部非受控 */
|
|
1360
|
+
expandedKeys: {
|
|
1361
|
+
type: PropType<Key[] | undefined>;
|
|
1362
|
+
default: any;
|
|
1363
|
+
};
|
|
1364
|
+
defaultExpandedKeys: {
|
|
1365
|
+
type: PropType<Key[]>;
|
|
1366
|
+
default: () => any[];
|
|
1367
|
+
};
|
|
1368
|
+
/** 初始展开全部分支 */
|
|
1369
|
+
defaultExpandAll: {
|
|
1370
|
+
type: BooleanConstructor;
|
|
1371
|
+
default: boolean;
|
|
1372
|
+
};
|
|
1373
|
+
class: {
|
|
1374
|
+
type: StringConstructor;
|
|
1375
|
+
default: any;
|
|
1376
|
+
};
|
|
1377
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1378
|
+
"update:modelValue": (value: Key | Key[]) => any;
|
|
1379
|
+
"update:show": (open: boolean) => any;
|
|
1380
|
+
"update:expandedKeys": (keys: Key[]) => any;
|
|
1381
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1382
|
+
/** 树选项(key/label/children/disabled) */
|
|
1383
|
+
options: {
|
|
1384
|
+
type: PropType<TreeOption[]>;
|
|
1385
|
+
required: true;
|
|
1386
|
+
};
|
|
1387
|
+
/** 当前值:单选为 key,multiple 为 key 数组;不传走内部非受控 */
|
|
1388
|
+
modelValue: {
|
|
1389
|
+
type: PropType<Key | Key[] | undefined>;
|
|
1390
|
+
default: any;
|
|
1391
|
+
};
|
|
1392
|
+
defaultValue: {
|
|
1393
|
+
type: PropType<Key | Key[] | undefined>;
|
|
1394
|
+
default: any;
|
|
1395
|
+
};
|
|
1396
|
+
/** 多选:值恒为数组,点击节点切换选中 */
|
|
1397
|
+
multiple: {
|
|
1398
|
+
type: BooleanConstructor;
|
|
1399
|
+
default: boolean;
|
|
1400
|
+
};
|
|
1401
|
+
/** 勾选模式:行首渲染 checkbox,值恒为数组(隐含多选语义) */
|
|
1402
|
+
checkable: {
|
|
1403
|
+
type: BooleanConstructor;
|
|
1404
|
+
default: boolean;
|
|
1405
|
+
};
|
|
1406
|
+
/** 勾选级联:勾选父级联动全部子级(默认 false,对齐 naive-ui) */
|
|
1407
|
+
cascade: {
|
|
1408
|
+
type: BooleanConstructor;
|
|
1409
|
+
default: boolean;
|
|
1410
|
+
};
|
|
1411
|
+
/** 勾选策略:all 值含全选节点 / parent 仅父 / child 仅叶(默认 all) */
|
|
1412
|
+
checkStrategy: {
|
|
1413
|
+
type: PropType<"all" | "parent" | "child">;
|
|
1414
|
+
default: string;
|
|
1415
|
+
};
|
|
1416
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
1417
|
+
open: {
|
|
1418
|
+
type: PropType<boolean | undefined>;
|
|
1419
|
+
default: any;
|
|
1420
|
+
};
|
|
1421
|
+
defaultOpen: {
|
|
1422
|
+
type: BooleanConstructor;
|
|
1423
|
+
default: boolean;
|
|
1424
|
+
};
|
|
1425
|
+
disabled: {
|
|
1426
|
+
type: PropType<boolean | undefined>;
|
|
1427
|
+
default: any;
|
|
1428
|
+
};
|
|
1429
|
+
placeholder: {
|
|
1430
|
+
type: StringConstructor;
|
|
1431
|
+
default: string;
|
|
1432
|
+
};
|
|
1433
|
+
/** 多选最多展示标签数,超出折叠为 +N */
|
|
1434
|
+
maxTagCount: {
|
|
1435
|
+
type: NumberConstructor;
|
|
1436
|
+
default: any;
|
|
1437
|
+
};
|
|
1438
|
+
/** 展示清空按钮 */
|
|
1439
|
+
clearable: {
|
|
1440
|
+
type: BooleanConstructor;
|
|
1441
|
+
default: boolean;
|
|
1442
|
+
};
|
|
1443
|
+
/** 可搜索:触发器内嵌输入框,按 label 过滤(展示命中节点及其祖先路径) */
|
|
1444
|
+
filterable: {
|
|
1445
|
+
type: BooleanConstructor;
|
|
1446
|
+
default: boolean;
|
|
1447
|
+
};
|
|
1448
|
+
/** 受控展开键集合;undefined 走内部非受控 */
|
|
1449
|
+
expandedKeys: {
|
|
1450
|
+
type: PropType<Key[] | undefined>;
|
|
1451
|
+
default: any;
|
|
1452
|
+
};
|
|
1453
|
+
defaultExpandedKeys: {
|
|
1454
|
+
type: PropType<Key[]>;
|
|
1455
|
+
default: () => any[];
|
|
1456
|
+
};
|
|
1457
|
+
/** 初始展开全部分支 */
|
|
1458
|
+
defaultExpandAll: {
|
|
1459
|
+
type: BooleanConstructor;
|
|
1460
|
+
default: boolean;
|
|
1461
|
+
};
|
|
1462
|
+
class: {
|
|
1463
|
+
type: StringConstructor;
|
|
1464
|
+
default: any;
|
|
1465
|
+
};
|
|
1466
|
+
}>> & Readonly<{
|
|
1467
|
+
"onUpdate:modelValue"?: (value: Key | Key[]) => any;
|
|
1468
|
+
"onUpdate:show"?: (open: boolean) => any;
|
|
1469
|
+
"onUpdate:expandedKeys"?: (keys: Key[]) => any;
|
|
1470
|
+
}>, {
|
|
1471
|
+
defaultValue: Key | Key[];
|
|
1472
|
+
disabled: boolean;
|
|
1473
|
+
class: string;
|
|
1474
|
+
modelValue: Key | Key[];
|
|
1475
|
+
open: boolean;
|
|
1476
|
+
defaultOpen: boolean;
|
|
1477
|
+
placeholder: string;
|
|
1478
|
+
multiple: boolean;
|
|
1479
|
+
checkable: boolean;
|
|
1480
|
+
cascade: boolean;
|
|
1481
|
+
checkStrategy: "all" | "parent" | "child";
|
|
1482
|
+
maxTagCount: number;
|
|
1483
|
+
clearable: boolean;
|
|
1484
|
+
filterable: boolean;
|
|
1485
|
+
expandedKeys: Key[];
|
|
1486
|
+
defaultExpandedKeys: Key[];
|
|
1487
|
+
defaultExpandAll: boolean;
|
|
1488
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1489
|
+
declare const _default$44: typeof __VLS_export$35;
|
|
1490
|
+
//#endregion
|
|
1491
|
+
//#region src/components/select/types.d.ts
|
|
1492
|
+
interface SelectItemOption {
|
|
1493
|
+
label: string;
|
|
1494
|
+
value: string;
|
|
1495
|
+
disabled?: boolean;
|
|
1496
|
+
}
|
|
1497
|
+
//#endregion
|
|
1498
|
+
//#region src/components/select/Select.vue.d.ts
|
|
1499
|
+
declare var __VLS_46: {
|
|
1500
|
+
item: string | SelectItemOption;
|
|
1501
|
+
label: string;
|
|
1502
|
+
selected: boolean;
|
|
1503
|
+
};
|
|
1504
|
+
type __VLS_Slots$23 = {} & {
|
|
1505
|
+
item?: (props: typeof __VLS_46) => any;
|
|
1506
|
+
};
|
|
1507
|
+
declare const __VLS_base$23: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1508
|
+
/** 选项列表:字符串(label = value)或 { label, value, disabled? } */
|
|
1509
|
+
items: {
|
|
1510
|
+
type: PropType<(string | SelectItemOption)[]>;
|
|
1511
|
+
required: true;
|
|
1512
|
+
};
|
|
1513
|
+
/** 当前值(配合 v-model);不传时为非受控 */
|
|
1514
|
+
modelValue: {
|
|
1515
|
+
type: PropType<string | undefined>;
|
|
1516
|
+
default: any;
|
|
1517
|
+
};
|
|
1518
|
+
defaultValue: {
|
|
1519
|
+
type: StringConstructor;
|
|
1520
|
+
default: any;
|
|
1521
|
+
};
|
|
1522
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
1523
|
+
open: {
|
|
1524
|
+
type: PropType<boolean | undefined>;
|
|
1525
|
+
default: any;
|
|
1526
|
+
};
|
|
1527
|
+
defaultOpen: {
|
|
1528
|
+
type: BooleanConstructor;
|
|
1529
|
+
default: boolean;
|
|
1530
|
+
};
|
|
1531
|
+
/** 未选中时触发器显示的占位文案 */
|
|
1532
|
+
placeholder: {
|
|
1533
|
+
type: StringConstructor;
|
|
1534
|
+
default: string;
|
|
1535
|
+
};
|
|
1536
|
+
/** 透传合并到触发器(Trigger)的 class */
|
|
1537
|
+
triggerClass: {
|
|
1538
|
+
type: StringConstructor;
|
|
1539
|
+
default: any;
|
|
1540
|
+
};
|
|
1541
|
+
/** 透传合并到弹层(Content)的 class */
|
|
1542
|
+
contentClass: {
|
|
1543
|
+
type: StringConstructor;
|
|
1544
|
+
default: any;
|
|
1545
|
+
};
|
|
1546
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1547
|
+
"update:modelValue": (value: string) => any;
|
|
1548
|
+
"update:open": (open: boolean) => any;
|
|
1549
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1550
|
+
/** 选项列表:字符串(label = value)或 { label, value, disabled? } */
|
|
1551
|
+
items: {
|
|
1552
|
+
type: PropType<(string | SelectItemOption)[]>;
|
|
1553
|
+
required: true;
|
|
1554
|
+
};
|
|
1555
|
+
/** 当前值(配合 v-model);不传时为非受控 */
|
|
1556
|
+
modelValue: {
|
|
1557
|
+
type: PropType<string | undefined>;
|
|
1558
|
+
default: any;
|
|
1559
|
+
};
|
|
1560
|
+
defaultValue: {
|
|
1561
|
+
type: StringConstructor;
|
|
1562
|
+
default: any;
|
|
1563
|
+
};
|
|
1564
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
1565
|
+
open: {
|
|
1566
|
+
type: PropType<boolean | undefined>;
|
|
1567
|
+
default: any;
|
|
1568
|
+
};
|
|
1569
|
+
defaultOpen: {
|
|
1570
|
+
type: BooleanConstructor;
|
|
1571
|
+
default: boolean;
|
|
1572
|
+
};
|
|
1573
|
+
/** 未选中时触发器显示的占位文案 */
|
|
1574
|
+
placeholder: {
|
|
1575
|
+
type: StringConstructor;
|
|
1576
|
+
default: string;
|
|
1577
|
+
};
|
|
1578
|
+
/** 透传合并到触发器(Trigger)的 class */
|
|
1579
|
+
triggerClass: {
|
|
1580
|
+
type: StringConstructor;
|
|
1581
|
+
default: any;
|
|
1582
|
+
};
|
|
1583
|
+
/** 透传合并到弹层(Content)的 class */
|
|
1584
|
+
contentClass: {
|
|
1585
|
+
type: StringConstructor;
|
|
1586
|
+
default: any;
|
|
1587
|
+
};
|
|
1588
|
+
}>> & Readonly<{
|
|
1589
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
1590
|
+
"onUpdate:open"?: (open: boolean) => any;
|
|
1591
|
+
}>, {
|
|
1592
|
+
defaultValue: string;
|
|
1593
|
+
modelValue: string;
|
|
1594
|
+
open: boolean;
|
|
1595
|
+
defaultOpen: boolean;
|
|
1596
|
+
placeholder: string;
|
|
1597
|
+
contentClass: string;
|
|
1598
|
+
triggerClass: string;
|
|
1599
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1600
|
+
declare const __VLS_export$34: __VLS_WithSlots$23<typeof __VLS_base$23, __VLS_Slots$23>;
|
|
1601
|
+
declare const _default$33: typeof __VLS_export$34;
|
|
1602
|
+
type __VLS_WithSlots$23<T, S> = T & {
|
|
1603
|
+
new (): {
|
|
1604
|
+
$slots: S;
|
|
1605
|
+
};
|
|
1606
|
+
};
|
|
1607
|
+
//#endregion
|
|
1608
|
+
//#region src/components/slider/Slider.vue.d.ts
|
|
1609
|
+
type __VLS_Props$11 = {
|
|
1610
|
+
/** 当前值(配合 v-model);单值或区间数组,不传时为非受控。出参恒为 number[] */
|
|
1611
|
+
modelValue?: number | number[];
|
|
1612
|
+
/** 同 modelValue(兼容别名,v-model 场景请直接用 modelValue) */
|
|
1613
|
+
value?: number | number[];
|
|
1614
|
+
defaultValue?: number | number[];
|
|
1615
|
+
min?: number;
|
|
1616
|
+
max?: number;
|
|
1617
|
+
step?: number;
|
|
1618
|
+
disabled?: boolean;
|
|
1619
|
+
class?: string;
|
|
1620
|
+
};
|
|
1621
|
+
declare const __VLS_export$33: import("vue").DefineComponent<__VLS_Props$11, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1622
|
+
"update:modelValue": (value: number[]) => any;
|
|
1623
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props$11> & Readonly<{
|
|
1624
|
+
"onUpdate:modelValue"?: (value: number[]) => any;
|
|
1625
|
+
}>, {
|
|
1626
|
+
min: number;
|
|
1627
|
+
max: number;
|
|
1628
|
+
step: number;
|
|
1629
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1630
|
+
declare const _default$36: typeof __VLS_export$33;
|
|
1631
|
+
//#endregion
|
|
1632
|
+
//#region src/components/switch/Switch.vue.d.ts
|
|
1633
|
+
declare var __VLS_32: {};
|
|
1634
|
+
type __VLS_Slots$22 = {} & {
|
|
1635
|
+
default?: (props: typeof __VLS_32) => any;
|
|
1636
|
+
};
|
|
1637
|
+
declare const __VLS_base$22: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1638
|
+
checked: {
|
|
1639
|
+
type: PropType<boolean | undefined>;
|
|
1640
|
+
default: any;
|
|
1641
|
+
};
|
|
1642
|
+
defaultChecked: {
|
|
1643
|
+
type: BooleanConstructor;
|
|
1644
|
+
default: boolean;
|
|
1645
|
+
};
|
|
1646
|
+
disabled: {
|
|
1647
|
+
type: BooleanConstructor;
|
|
1648
|
+
default: boolean;
|
|
1649
|
+
};
|
|
1650
|
+
class: {
|
|
1651
|
+
type: StringConstructor;
|
|
1652
|
+
default: any;
|
|
1653
|
+
};
|
|
1654
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1655
|
+
"update:checked": (checked: boolean) => any;
|
|
1656
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1657
|
+
checked: {
|
|
1658
|
+
type: PropType<boolean | undefined>;
|
|
1659
|
+
default: any;
|
|
1660
|
+
};
|
|
1661
|
+
defaultChecked: {
|
|
1662
|
+
type: BooleanConstructor;
|
|
1663
|
+
default: boolean;
|
|
1664
|
+
};
|
|
1665
|
+
disabled: {
|
|
1666
|
+
type: BooleanConstructor;
|
|
1667
|
+
default: boolean;
|
|
1668
|
+
};
|
|
1669
|
+
class: {
|
|
1670
|
+
type: StringConstructor;
|
|
1671
|
+
default: any;
|
|
1672
|
+
};
|
|
1673
|
+
}>> & Readonly<{
|
|
1674
|
+
"onUpdate:checked"?: (checked: boolean) => any;
|
|
1675
|
+
}>, {
|
|
1676
|
+
disabled: boolean;
|
|
1677
|
+
class: string;
|
|
1678
|
+
checked: boolean;
|
|
1679
|
+
defaultChecked: boolean;
|
|
1680
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1681
|
+
declare const __VLS_export$32: __VLS_WithSlots$22<typeof __VLS_base$22, __VLS_Slots$22>;
|
|
1682
|
+
declare const _default$38: typeof __VLS_export$32;
|
|
1683
|
+
type __VLS_WithSlots$22<T, S> = T & {
|
|
1684
|
+
new (): {
|
|
1685
|
+
$slots: S;
|
|
1686
|
+
};
|
|
1687
|
+
};
|
|
1688
|
+
//#endregion
|
|
1689
|
+
//#region src/components/textarea/Textarea.vue.d.ts
|
|
1690
|
+
type __VLS_Props$10 = {
|
|
1691
|
+
class?: string;
|
|
1692
|
+
invalid?: boolean;
|
|
1693
|
+
};
|
|
1694
|
+
type __VLS_ModelProps$1 = {
|
|
1695
|
+
modelValue?: string | number;
|
|
1696
|
+
};
|
|
1697
|
+
type __VLS_PublicProps$1 = __VLS_Props$10 & __VLS_ModelProps$1;
|
|
1698
|
+
declare const __VLS_export$31: import("vue").DefineComponent<__VLS_PublicProps$1, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1699
|
+
"update:modelValue": (value: string | number) => any;
|
|
1700
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps$1> & Readonly<{
|
|
1701
|
+
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
1702
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1703
|
+
declare const _default$41: typeof __VLS_export$31;
|
|
1704
|
+
//#endregion
|
|
1705
|
+
//#region src/components/year-picker/YearPicker.vue.d.ts
|
|
1706
|
+
declare const __VLS_export$30: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1707
|
+
/** 受控年份("yyyy");undefined 走内部非受控,null 表示空 */
|
|
1708
|
+
modelValue: {
|
|
1709
|
+
type: PropType<string | null | undefined>;
|
|
1710
|
+
default: any;
|
|
1711
|
+
};
|
|
1712
|
+
/** 非受控初值("yyyy") */
|
|
1713
|
+
defaultValue: {
|
|
1714
|
+
type: StringConstructor;
|
|
1715
|
+
default: any;
|
|
1716
|
+
};
|
|
1717
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
1718
|
+
open: {
|
|
1719
|
+
type: PropType<boolean | undefined>;
|
|
1720
|
+
default: any;
|
|
1721
|
+
};
|
|
1722
|
+
defaultOpen: {
|
|
1723
|
+
type: BooleanConstructor;
|
|
1724
|
+
default: boolean;
|
|
1725
|
+
};
|
|
1726
|
+
placeholder: {
|
|
1727
|
+
type: StringConstructor;
|
|
1728
|
+
default: string;
|
|
1729
|
+
};
|
|
1730
|
+
disabled: {
|
|
1731
|
+
type: PropType<boolean | undefined>;
|
|
1732
|
+
default: any;
|
|
1733
|
+
};
|
|
1734
|
+
invalid: {
|
|
1735
|
+
type: PropType<boolean | undefined>;
|
|
1736
|
+
default: any;
|
|
1737
|
+
};
|
|
1738
|
+
readOnly: {
|
|
1739
|
+
type: PropType<boolean | undefined>;
|
|
1740
|
+
default: any;
|
|
1741
|
+
};
|
|
1742
|
+
/** 可选下界("yyyy",含当年) */
|
|
1743
|
+
min: {
|
|
1744
|
+
type: StringConstructor;
|
|
1745
|
+
default: any;
|
|
1746
|
+
};
|
|
1747
|
+
/** 可选上界("yyyy",含当年) */
|
|
1748
|
+
max: {
|
|
1749
|
+
type: StringConstructor;
|
|
1750
|
+
default: any;
|
|
1751
|
+
};
|
|
1752
|
+
/** 选中后是否自动关弹层 */
|
|
1753
|
+
closeOnSelect: {
|
|
1754
|
+
type: BooleanConstructor;
|
|
1755
|
+
default: boolean;
|
|
1756
|
+
};
|
|
1757
|
+
/** 文案与周起点跟随 locale */
|
|
1758
|
+
locale: {
|
|
1759
|
+
type: StringConstructor;
|
|
1760
|
+
default: string;
|
|
1761
|
+
};
|
|
1762
|
+
class: {
|
|
1763
|
+
type: StringConstructor;
|
|
1764
|
+
default: any;
|
|
1765
|
+
};
|
|
1766
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1767
|
+
"update:modelValue": (value: string) => any;
|
|
1768
|
+
"update:open": (open: boolean) => any;
|
|
1769
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1770
|
+
/** 受控年份("yyyy");undefined 走内部非受控,null 表示空 */
|
|
1771
|
+
modelValue: {
|
|
1772
|
+
type: PropType<string | null | undefined>;
|
|
1773
|
+
default: any;
|
|
1774
|
+
};
|
|
1775
|
+
/** 非受控初值("yyyy") */
|
|
1776
|
+
defaultValue: {
|
|
1777
|
+
type: StringConstructor;
|
|
1778
|
+
default: any;
|
|
1779
|
+
};
|
|
1780
|
+
/** 弹层开合受控;undefined 走内部非受控(default: undefined 禁用 Boolean casting) */
|
|
1781
|
+
open: {
|
|
1782
|
+
type: PropType<boolean | undefined>;
|
|
1783
|
+
default: any;
|
|
1784
|
+
};
|
|
1785
|
+
defaultOpen: {
|
|
1786
|
+
type: BooleanConstructor;
|
|
1787
|
+
default: boolean;
|
|
1788
|
+
};
|
|
1789
|
+
placeholder: {
|
|
1790
|
+
type: StringConstructor;
|
|
1791
|
+
default: string;
|
|
1792
|
+
};
|
|
1793
|
+
disabled: {
|
|
1794
|
+
type: PropType<boolean | undefined>;
|
|
1795
|
+
default: any;
|
|
1796
|
+
};
|
|
1797
|
+
invalid: {
|
|
1798
|
+
type: PropType<boolean | undefined>;
|
|
1799
|
+
default: any;
|
|
1800
|
+
};
|
|
1801
|
+
readOnly: {
|
|
1802
|
+
type: PropType<boolean | undefined>;
|
|
1803
|
+
default: any;
|
|
1804
|
+
};
|
|
1805
|
+
/** 可选下界("yyyy",含当年) */
|
|
1806
|
+
min: {
|
|
1807
|
+
type: StringConstructor;
|
|
1808
|
+
default: any;
|
|
1809
|
+
};
|
|
1810
|
+
/** 可选上界("yyyy",含当年) */
|
|
1811
|
+
max: {
|
|
1812
|
+
type: StringConstructor;
|
|
1813
|
+
default: any;
|
|
1814
|
+
};
|
|
1815
|
+
/** 选中后是否自动关弹层 */
|
|
1816
|
+
closeOnSelect: {
|
|
1817
|
+
type: BooleanConstructor;
|
|
1818
|
+
default: boolean;
|
|
1819
|
+
};
|
|
1820
|
+
/** 文案与周起点跟随 locale */
|
|
1821
|
+
locale: {
|
|
1822
|
+
type: StringConstructor;
|
|
1823
|
+
default: string;
|
|
1824
|
+
};
|
|
1825
|
+
class: {
|
|
1826
|
+
type: StringConstructor;
|
|
1827
|
+
default: any;
|
|
1828
|
+
};
|
|
1829
|
+
}>> & Readonly<{
|
|
1830
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
1831
|
+
"onUpdate:open"?: (open: boolean) => any;
|
|
1832
|
+
}>, {
|
|
1833
|
+
defaultValue: string;
|
|
1834
|
+
disabled: boolean;
|
|
1835
|
+
readOnly: boolean;
|
|
1836
|
+
invalid: boolean;
|
|
1837
|
+
class: string;
|
|
1838
|
+
modelValue: string;
|
|
1839
|
+
min: string;
|
|
1840
|
+
max: string;
|
|
1841
|
+
locale: string;
|
|
1842
|
+
open: boolean;
|
|
1843
|
+
defaultOpen: boolean;
|
|
1844
|
+
placeholder: string;
|
|
1845
|
+
closeOnSelect: boolean;
|
|
1846
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1847
|
+
declare const _default$46: typeof __VLS_export$30;
|
|
1848
|
+
//#endregion
|
|
1849
|
+
//#region src/components/form-render/types.d.ts
|
|
1850
|
+
/**
|
|
1851
|
+
* useForm() 返回实例的宽松形态(与 form/context.ts 的 FormInstance 同款契约:
|
|
1852
|
+
* provide/inject 与跨组件边界会擦除泛型,any 化是项目既定约定)。
|
|
1853
|
+
*/
|
|
1854
|
+
type FormRenderFormApi = FormApi<any, any, any, any, any, any, any, any, any, any, any, any> & VueFormApi<any, any, any, any, any, any, any, any, any, any, any, any>;
|
|
1855
|
+
/** 字段渲染上下文(widget 柯里化第二段的唯一参数) */
|
|
1856
|
+
interface WidgetContext<T extends object> {
|
|
1857
|
+
field: AnyFieldApi;
|
|
1858
|
+
item: FormRenderItem<T>;
|
|
1859
|
+
/** 当前全量表单值(响应式,来自 form.useSelector(s => s.values);联动用) */
|
|
1860
|
+
values: T;
|
|
1861
|
+
}
|
|
1862
|
+
type WidgetRenderReturn<T extends object> = (ctx: WidgetContext<T>) => VNode;
|
|
1863
|
+
/** select/radioGroup 等选项的通用形态(字符串简写或 { label, value }) */
|
|
1864
|
+
type WidgetItemOption = string | SelectItemOption;
|
|
1865
|
+
/**
|
|
1866
|
+
* SFC props 类型派生(方案 C):widget 参数 = 原组件全部 props(命名穿透,
|
|
1867
|
+
* prop 变更时类型自动同步)。受控字段由 bindField/FormControl/items.default
|
|
1868
|
+
* 接管,用户不可传;Omit 不存在的键是 no-op,统一集合即可。
|
|
1869
|
+
*/
|
|
1870
|
+
type ControlledKey = "modelValue" | "onUpdate:modelValue" | "checked" | "onUpdate:checked" | "value" | "onUpdate:value" | "onBlur" | "invalid" | "class" | "id" | "defaultValue" | "defaultChecked";
|
|
1871
|
+
type SfcOptions<T extends abstract new (...args: any) => any> = Partial<Omit<InstanceType<T>["$props"], ControlledKey>>;
|
|
1872
|
+
type NumberWidgetOptions = SfcOptions<typeof _default$27>;
|
|
1873
|
+
type CurrencyWidgetOptions = SfcOptions<typeof _default$9>;
|
|
1874
|
+
/** autoComplete 为 PasswordInput 真实 prop(探针实证),直接派生获得 */
|
|
1875
|
+
type PasswordWidgetOptions = SfcOptions<typeof _default$28>;
|
|
1876
|
+
/** Input 自身无 placeholder/type prop(原生 attr 透传),交叉手写 */
|
|
1877
|
+
type InputWidgetOptions = SfcOptions<typeof _default$24> & {
|
|
1878
|
+
placeholder?: string;
|
|
1879
|
+
type?: string;
|
|
1880
|
+
};
|
|
1881
|
+
/** Textarea 自身无 placeholder/rows prop(原生 attr 透传),交叉手写 */
|
|
1882
|
+
type TextareaWidgetOptions = SfcOptions<typeof _default$41> & {
|
|
1883
|
+
placeholder?: string;
|
|
1884
|
+
rows?: number;
|
|
1885
|
+
};
|
|
1886
|
+
/**
|
|
1887
|
+
* v3 命名穿透:选项字段即组件 prop 名 `items`——显式必填(Partial 化会退化为可选,
|
|
1888
|
+
* 缺失时 Select.vue collection 计算在首渲染崩溃);placeholder 已是 Select 单组件
|
|
1889
|
+
* 的正式 prop,不再 Omit,渲染时做 item 级缺省回退(I1)。
|
|
1890
|
+
*/
|
|
1891
|
+
type SelectWidgetOptions = Omit<SfcOptions<typeof _default$33>, "items"> & {
|
|
1892
|
+
items: WidgetItemOption[];
|
|
1893
|
+
};
|
|
1894
|
+
type CheckboxWidgetOptions = SfcOptions<typeof _default$8>;
|
|
1895
|
+
type SwitchWidgetOptions = SfcOptions<typeof _default$38>;
|
|
1896
|
+
/**
|
|
1897
|
+
* radioGroup widget:单选组(值 prop 为 value)。items 为组件 required prop,
|
|
1898
|
+
* 显式必填(Partial 化会退化为可选);选项字段与组件 prop 同名(命名穿透)。
|
|
1899
|
+
* 注意:RadioGroup 不支持 Select 的字符串简写(无 normalize 回退,直传即崩),
|
|
1900
|
+
* 此处收窄为 SelectItemOption[] 而非 WidgetItemOption[]。
|
|
1901
|
+
*/
|
|
1902
|
+
type RadioGroupWidgetOptions = Omit<SfcOptions<typeof _default$32>, "items"> & {
|
|
1903
|
+
items: SelectItemOption[];
|
|
1904
|
+
};
|
|
1905
|
+
/** TreeSelect / Cascader:选项 prop 原名 options,受控走 modelValue(ControlledKey 自动剔除) */
|
|
1906
|
+
type TreeSelectWidgetOptions = SfcOptions<typeof _default$44>;
|
|
1907
|
+
type CascaderWidgetOptions = SfcOptions<typeof _default$7>;
|
|
1908
|
+
type SliderWidgetOptions = SfcOptions<typeof _default$36>;
|
|
1909
|
+
/** picker 三组件 props 面不同(DatePicker 有 isDateUnavailable/max/min,Month/Year 有 locale),各自派生 */
|
|
1910
|
+
type DatePickerWidgetOptions = SfcOptions<typeof _default$10>;
|
|
1911
|
+
type MonthPickerWidgetOptions = SfcOptions<typeof _default$26>;
|
|
1912
|
+
type YearPickerWidgetOptions = SfcOptions<typeof _default$46>;
|
|
1913
|
+
type DateRangeWidgetOptions = SfcOptions<typeof _default$11>;
|
|
1914
|
+
type WeekPickerWidgetOptions = SfcOptions<typeof _default$45>;
|
|
1915
|
+
/**
|
|
1916
|
+
* widget 注册表类型契约:实现对象在 widgets/index.ts。
|
|
1917
|
+
* 类型集中于此避免循环依赖(type-only import 无运行时环)。
|
|
1918
|
+
*/
|
|
1919
|
+
interface WidgetRenders<T extends object> {
|
|
1920
|
+
input(o?: InputWidgetOptions): WidgetRenderReturn<T>;
|
|
1921
|
+
password(o?: PasswordWidgetOptions): WidgetRenderReturn<T>;
|
|
1922
|
+
number(o?: NumberWidgetOptions): WidgetRenderReturn<T>;
|
|
1923
|
+
currency(o?: CurrencyWidgetOptions): WidgetRenderReturn<T>;
|
|
1924
|
+
textarea(o?: TextareaWidgetOptions): WidgetRenderReturn<T>;
|
|
1925
|
+
select(o: SelectWidgetOptions): WidgetRenderReturn<T>;
|
|
1926
|
+
checkbox(o?: CheckboxWidgetOptions): WidgetRenderReturn<T>;
|
|
1927
|
+
switch(o?: SwitchWidgetOptions): WidgetRenderReturn<T>;
|
|
1928
|
+
radioGroup(o: RadioGroupWidgetOptions): WidgetRenderReturn<T>;
|
|
1929
|
+
treeSelect(o: TreeSelectWidgetOptions): WidgetRenderReturn<T>;
|
|
1930
|
+
cascader(o: CascaderWidgetOptions): WidgetRenderReturn<T>;
|
|
1931
|
+
slider(o?: SliderWidgetOptions): WidgetRenderReturn<T>;
|
|
1932
|
+
datePicker(o?: DatePickerWidgetOptions): WidgetRenderReturn<T>;
|
|
1933
|
+
monthPicker(o?: MonthPickerWidgetOptions): WidgetRenderReturn<T>;
|
|
1934
|
+
yearPicker(o?: YearPickerWidgetOptions): WidgetRenderReturn<T>;
|
|
1935
|
+
dateRangePicker(o?: DateRangeWidgetOptions): WidgetRenderReturn<T>;
|
|
1936
|
+
weekPicker(o?: WeekPickerWidgetOptions): WidgetRenderReturn<T>;
|
|
1937
|
+
/** 逃逸口:完全自定义渲染 */
|
|
1938
|
+
render(fn: (ctx: WidgetContext<T>) => VNode): WidgetRenderReturn<T>;
|
|
1939
|
+
}
|
|
1940
|
+
interface FormRenderItem<T extends object> {
|
|
1941
|
+
/**
|
|
1942
|
+
* 字段名:严格 keyof T —— 自动补全 + 拼错编译报错。
|
|
1943
|
+
* 额外字段请在 T 中显式声明;运行时以 String(key) 归一为 FormField 的 name。
|
|
1944
|
+
*/
|
|
1945
|
+
key: keyof T;
|
|
1946
|
+
title: string;
|
|
1947
|
+
description?: string;
|
|
1948
|
+
placeholder?: string;
|
|
1949
|
+
/**
|
|
1950
|
+
* 默认值(值或同步工厂);defineForm 据此派生 defaultValues。
|
|
1951
|
+
* 类型为 T 值域联合 T[keyof T](无 per-item 精确联动,强于 x-render 的 any)。
|
|
1952
|
+
*/
|
|
1953
|
+
default?: T[keyof T] | (() => T[keyof T]);
|
|
1954
|
+
/** 栅格跨度:数字 = 占 n 列(须 ≤ 实际列数);"full" = 整行 */
|
|
1955
|
+
span?: number | "full";
|
|
1956
|
+
/** 联动显隐;消费 FormRender 经 useSelector 建立的响应式 values */
|
|
1957
|
+
visible?: boolean | ((values: T) => boolean);
|
|
1958
|
+
hideLabel?: boolean;
|
|
1959
|
+
class?: string;
|
|
1960
|
+
/** TanStack 字段级校验器透传(如 onChangeAsync) */
|
|
1961
|
+
validators?: Record<string, unknown>;
|
|
1962
|
+
/** widget 描述;缺省 = r.input() */
|
|
1963
|
+
render?: (r: WidgetRenders<T>) => WidgetRenderReturn<T>;
|
|
1964
|
+
/** 逃逸口:原样合并到控件 vnode 的 props */
|
|
1965
|
+
componentProps?: Record<string, unknown>;
|
|
1966
|
+
}
|
|
1967
|
+
interface FormRenderDefinition<T extends object> {
|
|
1968
|
+
items: FormRenderItem<T>[];
|
|
1969
|
+
form: FormRenderFormApi;
|
|
1970
|
+
/** 重置到 items.default(搜索表单"重置"语义) */
|
|
1971
|
+
resetToDefaults: () => void;
|
|
1972
|
+
}
|
|
1973
|
+
//#endregion
|
|
1974
|
+
//#region src/components/form-render/FormRender.vue.d.ts
|
|
1975
|
+
declare var __VLS_6: {};
|
|
1976
|
+
type __VLS_Slots$21 = {} & {
|
|
1977
|
+
actions?: (props: typeof __VLS_6) => any;
|
|
1978
|
+
};
|
|
1979
|
+
declare const __VLS_base$21: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1980
|
+
/** 聚合式(推荐):defineForm 返回的定义对象 */
|
|
1981
|
+
definition: {
|
|
1982
|
+
type: PropType<FormRenderDefinition<any>>;
|
|
1983
|
+
};
|
|
1984
|
+
/** 拆分式:与 <Form :form> 模式兼容(与 definition 二选一,definition 优先) */
|
|
1985
|
+
form: {
|
|
1986
|
+
type: PropType<FormRenderFormApi>;
|
|
1987
|
+
};
|
|
1988
|
+
items: {
|
|
1989
|
+
type: PropType<FormRenderItem<any>[]>;
|
|
1990
|
+
};
|
|
1991
|
+
searchable: {
|
|
1992
|
+
type: PropType<boolean | undefined>;
|
|
1993
|
+
default: any;
|
|
1994
|
+
};
|
|
1995
|
+
submitable: {
|
|
1996
|
+
type: PropType<boolean | undefined>;
|
|
1997
|
+
default: any;
|
|
1998
|
+
};
|
|
1999
|
+
/** 缺省跟随 searchable */
|
|
2000
|
+
resetable: {
|
|
2001
|
+
type: PropType<boolean | undefined>;
|
|
2002
|
+
default: any;
|
|
2003
|
+
};
|
|
2004
|
+
/** 缺省跟随 submitable */
|
|
2005
|
+
cancelable: {
|
|
2006
|
+
type: PropType<boolean | undefined>;
|
|
2007
|
+
default: any;
|
|
2008
|
+
};
|
|
2009
|
+
searchText: {
|
|
2010
|
+
type: StringConstructor;
|
|
2011
|
+
};
|
|
2012
|
+
submitText: {
|
|
2013
|
+
type: StringConstructor;
|
|
2014
|
+
};
|
|
2015
|
+
resetText: {
|
|
2016
|
+
type: StringConstructor;
|
|
2017
|
+
};
|
|
2018
|
+
/** 栅格最小列宽 px(auto-fill 自适应列数) */
|
|
2019
|
+
minWidth: {
|
|
2020
|
+
type: NumberConstructor;
|
|
2021
|
+
};
|
|
2022
|
+
}>, {
|
|
2023
|
+
form: FormRenderFormApi;
|
|
2024
|
+
items: import("vue").ComputedRef<FormRenderItem<any>[]>;
|
|
2025
|
+
resetToDefaults: () => void;
|
|
2026
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2027
|
+
search: () => any;
|
|
2028
|
+
cancel: () => any;
|
|
2029
|
+
reset: () => any;
|
|
2030
|
+
submit: () => any;
|
|
2031
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2032
|
+
/** 聚合式(推荐):defineForm 返回的定义对象 */
|
|
2033
|
+
definition: {
|
|
2034
|
+
type: PropType<FormRenderDefinition<any>>;
|
|
2035
|
+
};
|
|
2036
|
+
/** 拆分式:与 <Form :form> 模式兼容(与 definition 二选一,definition 优先) */
|
|
2037
|
+
form: {
|
|
2038
|
+
type: PropType<FormRenderFormApi>;
|
|
2039
|
+
};
|
|
2040
|
+
items: {
|
|
2041
|
+
type: PropType<FormRenderItem<any>[]>;
|
|
2042
|
+
};
|
|
2043
|
+
searchable: {
|
|
2044
|
+
type: PropType<boolean | undefined>;
|
|
2045
|
+
default: any;
|
|
2046
|
+
};
|
|
2047
|
+
submitable: {
|
|
2048
|
+
type: PropType<boolean | undefined>;
|
|
2049
|
+
default: any;
|
|
2050
|
+
};
|
|
2051
|
+
/** 缺省跟随 searchable */
|
|
2052
|
+
resetable: {
|
|
2053
|
+
type: PropType<boolean | undefined>;
|
|
2054
|
+
default: any;
|
|
2055
|
+
};
|
|
2056
|
+
/** 缺省跟随 submitable */
|
|
2057
|
+
cancelable: {
|
|
2058
|
+
type: PropType<boolean | undefined>;
|
|
2059
|
+
default: any;
|
|
2060
|
+
};
|
|
2061
|
+
searchText: {
|
|
2062
|
+
type: StringConstructor;
|
|
2063
|
+
};
|
|
2064
|
+
submitText: {
|
|
2065
|
+
type: StringConstructor;
|
|
2066
|
+
};
|
|
2067
|
+
resetText: {
|
|
2068
|
+
type: StringConstructor;
|
|
2069
|
+
};
|
|
2070
|
+
/** 栅格最小列宽 px(auto-fill 自适应列数) */
|
|
2071
|
+
minWidth: {
|
|
2072
|
+
type: NumberConstructor;
|
|
2073
|
+
};
|
|
2074
|
+
}>> & Readonly<{
|
|
2075
|
+
onSearch?: () => any;
|
|
2076
|
+
onCancel?: () => any;
|
|
2077
|
+
onReset?: () => any;
|
|
2078
|
+
onSubmit?: () => any;
|
|
2079
|
+
}>, {
|
|
2080
|
+
searchable: boolean;
|
|
2081
|
+
submitable: boolean;
|
|
2082
|
+
resetable: boolean;
|
|
2083
|
+
cancelable: boolean;
|
|
2084
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2085
|
+
declare const __VLS_export$29: __VLS_WithSlots$21<typeof __VLS_base$21, __VLS_Slots$21>;
|
|
2086
|
+
declare const _default$22: typeof __VLS_export$29;
|
|
2087
|
+
type __VLS_WithSlots$21<T, S> = T & {
|
|
2088
|
+
new (): {
|
|
2089
|
+
$slots: S;
|
|
2090
|
+
};
|
|
2091
|
+
};
|
|
2092
|
+
//#endregion
|
|
2093
|
+
//#region src/components/form-render/define-form.d.ts
|
|
2094
|
+
interface DefineFormOptions<T extends object> {
|
|
2095
|
+
items: FormRenderItem<T>[];
|
|
2096
|
+
/** Standard Schema(valibot v.object 输出直接兼容),映射到 TanStack validators.onSubmit */
|
|
2097
|
+
schema?: unknown;
|
|
2098
|
+
onSubmit?: (ctx: {
|
|
2099
|
+
value: T;
|
|
2100
|
+
}) => void | Promise<void>;
|
|
2101
|
+
/** 其余 TanStack useForm 选项透传(如 onSubmitInvalid) */
|
|
2102
|
+
formOptions?: Record<string, unknown>;
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* 聚合入口:单次调用完成「字段定义 + 类型约束 + 表单实例」。
|
|
2106
|
+
*
|
|
2107
|
+
* 返回 `{ items, form, resetToDefaults }`:
|
|
2108
|
+
* - `items` / `form` 传给 `<FormRender>`(支持 `:definition` 单 prop 或 `:form` + `:items` 拆分);
|
|
2109
|
+
* - `form` 可直接 `reset()` / `validate()` / `handleSubmit()`;
|
|
2110
|
+
* - `resetToDefaults()` 重置到 `items.default`(搜索表单"重置"语义)。
|
|
2111
|
+
*
|
|
2112
|
+
* 须在组件 setup 中调用(TanStack useForm 约束)。
|
|
2113
|
+
*/
|
|
2114
|
+
export declare function defineForm<T extends object>(config: DefineFormOptions<T>): FormRenderDefinition<T>;
|
|
2115
|
+
//#endregion
|
|
2116
|
+
//#region src/components/form-render/useFormRender.d.ts
|
|
2117
|
+
interface UseFormRenderOptions<T extends object> {
|
|
2118
|
+
items: FormRenderItem<T>[];
|
|
2119
|
+
/** Standard Schema(valibot v.object 输出直接兼容),映射到 TanStack validators.onSubmit */
|
|
2120
|
+
schema?: unknown;
|
|
2121
|
+
onSubmit?: (ctx: {
|
|
2122
|
+
value: T;
|
|
2123
|
+
}) => void | Promise<void>;
|
|
2124
|
+
/** 其余 TanStack useForm 选项透传(如 onSubmitInvalid) */
|
|
2125
|
+
formOptions?: Record<string, unknown>;
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* 底层原语:包装 TanStack useForm(聚合入口 defineForm 内部也走这里)。
|
|
2129
|
+
*
|
|
2130
|
+
* - `defaultValues` 从 `items[].default` 派生(值或同步工厂,缺省 null)——单一真相源;
|
|
2131
|
+
* - 显式泛型 `useForm<T>`,保住 onSubmit `{ value: T }` 全链路推断;
|
|
2132
|
+
* - 须在组件 setup 中调用(TanStack useForm 内部 `onMounted(formApi.mount)`)。
|
|
2133
|
+
*/
|
|
2134
|
+
export declare function useFormRender<T extends object>(options: UseFormRenderOptions<T>): FormRenderDefinition<T>;
|
|
2135
|
+
//#endregion
|
|
2136
|
+
//#region src/components/form-render/widgets/index.d.ts
|
|
2137
|
+
/**
|
|
2138
|
+
* widget 注册表:`r.input({...})` 等柯里化工厂的运行时对象。
|
|
2139
|
+
* 文件按绑定形态聚合:input / model-value(modelValue 系)/ boolean(checked 系)/
|
|
2140
|
+
* value(radioGroup/slider)/ select(多子组件组装)。
|
|
2141
|
+
*/
|
|
2142
|
+
export declare function widgetRenders<T extends object>(): WidgetRenders<T>;
|
|
2143
|
+
//#endregion
|
|
2144
|
+
//#region src/components/form-render/widgets/bind.d.ts
|
|
2145
|
+
/**
|
|
2146
|
+
* 值绑定形态描述:
|
|
2147
|
+
* - modelValue:大多数组件(Input/Password/Number/Currency/Textarea/picker 系/Select)
|
|
2148
|
+
* - checked:Checkbox/Switch
|
|
2149
|
+
* - value:RadioGroup
|
|
2150
|
+
* - SLIDER:Slider 特例 —— 值 prop 为 `value`,事件却是 `update:modelValue`,且数组语义(number ↔ [number])
|
|
2151
|
+
*/
|
|
2152
|
+
interface BindingSpec {
|
|
2153
|
+
prop: string;
|
|
2154
|
+
event: string;
|
|
2155
|
+
/** field 值 → 控件 prop 的转换(slider: number → [number]) */
|
|
2156
|
+
toProp?: (value: unknown) => unknown;
|
|
2157
|
+
/** 控件事件 → field 值的转换(slider: [number] → number) */
|
|
2158
|
+
fromEvent?: (value: unknown) => unknown;
|
|
2159
|
+
}
|
|
2160
|
+
export declare const MODEL_VALUE: BindingSpec;
|
|
2161
|
+
export declare const CHECKED: BindingSpec;
|
|
2162
|
+
export declare const VALUE: BindingSpec;
|
|
2163
|
+
export declare const SLIDER: BindingSpec;
|
|
2164
|
+
/**
|
|
2165
|
+
* TanStack field → 控件 props 的统一绑定:
|
|
2166
|
+
* 值回显(field.state.value)+ 写回(handleChange)+ 失焦(handleBlur)。
|
|
2167
|
+
*/
|
|
2168
|
+
export declare function bindField(field: AnyFieldApi, spec: BindingSpec): {
|
|
2169
|
+
[x: string]: any;
|
|
2170
|
+
onBlur: () => void;
|
|
2171
|
+
};
|
|
2172
|
+
//#endregion
|
|
25
2173
|
//#region src/components/avatar/Avatar.vue.d.ts
|
|
26
|
-
interface Props$
|
|
2174
|
+
interface Props$7 {
|
|
27
2175
|
src?: string;
|
|
28
2176
|
alt?: string;
|
|
2177
|
+
/** 图片加载失败时的备用图片地址(自动切换;备用图也失败时回落 Fallback 并再次触发 error) */
|
|
2178
|
+
fallback?: string;
|
|
2179
|
+
/** 预设尺寸或自定义像素值(number) */
|
|
2180
|
+
size?: AvatarVariants["size"] | number;
|
|
2181
|
+
shape?: AvatarVariants["shape"];
|
|
2182
|
+
/** Fallback 背景色覆盖(默认主题 bg-muted) */
|
|
2183
|
+
color?: string;
|
|
2184
|
+
/** 图片在容器内的适应方式 */
|
|
2185
|
+
objectFit?: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
2186
|
+
/** 透传到底层 img 的原生属性(组件显式属性优先级更高) */
|
|
2187
|
+
imgProps?: ImgHTMLAttributes;
|
|
2188
|
+
class?: string;
|
|
2189
|
+
}
|
|
2190
|
+
declare var __VLS_21: {}, __VLS_23: {};
|
|
2191
|
+
type __VLS_Slots$20 = {} & {
|
|
2192
|
+
placeholder?: (props: typeof __VLS_21) => any;
|
|
2193
|
+
} & {
|
|
2194
|
+
default?: (props: typeof __VLS_23) => any;
|
|
2195
|
+
};
|
|
2196
|
+
declare const __VLS_base$20: import("vue").DefineComponent<Props$7, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2197
|
+
error: (details: Avatar.StatusChangeDetails) => any;
|
|
2198
|
+
load: (details: Avatar.StatusChangeDetails) => any;
|
|
2199
|
+
}, string, import("vue").PublicProps, Readonly<Props$7> & Readonly<{
|
|
2200
|
+
onError?: (details: Avatar.StatusChangeDetails) => any;
|
|
2201
|
+
onLoad?: (details: Avatar.StatusChangeDetails) => any;
|
|
2202
|
+
}>, {
|
|
2203
|
+
shape: AvatarVariants["shape"];
|
|
2204
|
+
objectFit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
2205
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2206
|
+
declare const __VLS_export$28: __VLS_WithSlots$20<typeof __VLS_base$20, __VLS_Slots$20>;
|
|
2207
|
+
declare const _default$1: typeof __VLS_export$28;
|
|
2208
|
+
type __VLS_WithSlots$20<T, S> = T & {
|
|
2209
|
+
new (): {
|
|
2210
|
+
$slots: S;
|
|
2211
|
+
};
|
|
2212
|
+
};
|
|
2213
|
+
//#endregion
|
|
2214
|
+
//#region src/components/avatar/index.d.ts
|
|
2215
|
+
export declare const avatarVariants: (props?: {
|
|
2216
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
2217
|
+
shape?: "circle" | "square";
|
|
2218
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
2219
|
+
export type AvatarVariants = VariantProps<typeof avatarVariants>;
|
|
2220
|
+
/** 头像组上下文:size 经 provide/inject 下发给子 Avatar(子级显式 size 优先) */
|
|
2221
|
+
export interface AvatarGroupContext {
|
|
2222
|
+
size: Ref<AvatarVariants["size"] | number | undefined>;
|
|
2223
|
+
}
|
|
2224
|
+
export declare const avatarGroupKey: InjectionKey<AvatarGroupContext>;
|
|
2225
|
+
//#endregion
|
|
2226
|
+
//#region src/components/avatar-group/AvatarGroup.vue.d.ts
|
|
2227
|
+
interface Props$6 {
|
|
2228
|
+
/** 最多展示的子头像数,超出折叠为 +N 尾巴(按 default 插槽内子 Avatar 计数) */
|
|
2229
|
+
max?: number;
|
|
2230
|
+
vertical?: boolean;
|
|
2231
|
+
/** 下发给子 Avatar 的尺寸(子级显式 size 优先) */
|
|
2232
|
+
size?: AvatarVariants["size"] | number;
|
|
2233
|
+
/** 悬停展开全部头像(仅在设置了 max 时生效) */
|
|
2234
|
+
expandOnHover?: boolean;
|
|
2235
|
+
/** 子头像加描边(Group 内部分隔) */
|
|
2236
|
+
bordered?: boolean;
|
|
29
2237
|
class?: string;
|
|
30
2238
|
}
|
|
31
|
-
declare var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
declare const
|
|
38
|
-
|
|
2239
|
+
declare var __VLS_12: {
|
|
2240
|
+
rest: number;
|
|
2241
|
+
};
|
|
2242
|
+
type __VLS_Slots$19 = {} & {
|
|
2243
|
+
rest?: (props: typeof __VLS_12) => any;
|
|
2244
|
+
};
|
|
2245
|
+
declare const __VLS_base$19: import("vue").DefineComponent<Props$6, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$6> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2246
|
+
declare const __VLS_export$27: __VLS_WithSlots$19<typeof __VLS_base$19, __VLS_Slots$19>;
|
|
2247
|
+
declare const _default$2: typeof __VLS_export$27;
|
|
2248
|
+
type __VLS_WithSlots$19<T, S> = T & {
|
|
39
2249
|
new (): {
|
|
40
2250
|
$slots: S;
|
|
41
2251
|
};
|
|
42
2252
|
};
|
|
43
2253
|
//#endregion
|
|
44
2254
|
//#region src/components/badge/Badge.vue.d.ts
|
|
45
|
-
interface Props$
|
|
2255
|
+
interface Props$5 {
|
|
46
2256
|
variant?: BadgeVariants["variant"];
|
|
47
2257
|
class?: string;
|
|
48
2258
|
}
|
|
49
|
-
declare var __VLS_1$
|
|
50
|
-
type __VLS_Slots$
|
|
51
|
-
default?: (props: typeof __VLS_1$
|
|
52
|
-
};
|
|
53
|
-
declare const __VLS_base$
|
|
54
|
-
declare const __VLS_export$
|
|
55
|
-
declare const _default$
|
|
56
|
-
type __VLS_WithSlots$
|
|
2259
|
+
declare var __VLS_1$9: {};
|
|
2260
|
+
type __VLS_Slots$18 = {} & {
|
|
2261
|
+
default?: (props: typeof __VLS_1$9) => any;
|
|
2262
|
+
};
|
|
2263
|
+
declare const __VLS_base$18: import("vue").DefineComponent<Props$5, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$5> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2264
|
+
declare const __VLS_export$26: __VLS_WithSlots$18<typeof __VLS_base$18, __VLS_Slots$18>;
|
|
2265
|
+
declare const _default$3: typeof __VLS_export$26;
|
|
2266
|
+
type __VLS_WithSlots$18<T, S> = T & {
|
|
57
2267
|
new (): {
|
|
58
2268
|
$slots: S;
|
|
59
2269
|
};
|
|
@@ -66,27 +2276,27 @@ export declare const badgeVariants: (props?: {
|
|
|
66
2276
|
export type BadgeVariants = VariantProps<typeof badgeVariants>;
|
|
67
2277
|
//#endregion
|
|
68
2278
|
//#region src/components/button/Button.vue.d.ts
|
|
69
|
-
interface Props$
|
|
2279
|
+
interface Props$4 {
|
|
70
2280
|
variant?: ButtonVariants["variant"];
|
|
71
2281
|
size?: ButtonVariants["size"];
|
|
72
2282
|
as?: string;
|
|
73
2283
|
asChild?: boolean;
|
|
74
2284
|
class?: string;
|
|
75
2285
|
}
|
|
76
|
-
declare var __VLS_8
|
|
77
|
-
type __VLS_Slots$
|
|
78
|
-
default?: (props: typeof __VLS_8
|
|
2286
|
+
declare var __VLS_8: {}, __VLS_17$1: {}, __VLS_19: {};
|
|
2287
|
+
type __VLS_Slots$17 = {} & {
|
|
2288
|
+
default?: (props: typeof __VLS_8) => any;
|
|
79
2289
|
} & {
|
|
80
|
-
icon?: (props: typeof __VLS_17) => any;
|
|
2290
|
+
icon?: (props: typeof __VLS_17$1) => any;
|
|
81
2291
|
} & {
|
|
82
2292
|
default?: (props: typeof __VLS_19) => any;
|
|
83
2293
|
};
|
|
84
|
-
declare const __VLS_base$
|
|
2294
|
+
declare const __VLS_base$17: import("vue").DefineComponent<Props$4, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$4> & Readonly<{}>, {
|
|
85
2295
|
as: string;
|
|
86
2296
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
87
|
-
declare const __VLS_export$
|
|
88
|
-
declare const _default$
|
|
89
|
-
type __VLS_WithSlots$
|
|
2297
|
+
declare const __VLS_export$25: __VLS_WithSlots$17<typeof __VLS_base$17, __VLS_Slots$17>;
|
|
2298
|
+
declare const _default$4: typeof __VLS_export$25;
|
|
2299
|
+
type __VLS_WithSlots$17<T, S> = T & {
|
|
90
2300
|
new (): {
|
|
91
2301
|
$slots: S;
|
|
92
2302
|
};
|
|
@@ -95,357 +2305,348 @@ type __VLS_WithSlots$35<T, S> = T & {
|
|
|
95
2305
|
//#region src/components/button/index.d.ts
|
|
96
2306
|
export declare const buttonVariants: (props?: {
|
|
97
2307
|
variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link";
|
|
98
|
-
size?: "
|
|
2308
|
+
size?: "sm" | "lg" | "default" | "icon";
|
|
99
2309
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
100
2310
|
export type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
101
2311
|
//#endregion
|
|
102
|
-
//#region src/components/
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
default?: (props: typeof __VLS_1$9) => any;
|
|
109
|
-
};
|
|
110
|
-
declare const __VLS_base$34: import("vue").DefineComponent<__VLS_Props$9, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$9> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
111
|
-
declare const __VLS_export$41: __VLS_WithSlots$34<typeof __VLS_base$34, __VLS_Slots$34>;
|
|
112
|
-
declare const _default$3: typeof __VLS_export$41;
|
|
113
|
-
type __VLS_WithSlots$34<T, S> = T & {
|
|
114
|
-
new (): {
|
|
115
|
-
$slots: S;
|
|
2312
|
+
//#region src/components/calendar/Calendar.vue.d.ts
|
|
2313
|
+
declare const __VLS_export$24: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2314
|
+
/** 视图形态:day=日网格(可切月/年);standalone 时 month/year 同时派生视图锁定 */
|
|
2315
|
+
mode: {
|
|
2316
|
+
type: PropType<"day" | "month" | "year">;
|
|
2317
|
+
default: string;
|
|
116
2318
|
};
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
class?: string;
|
|
122
|
-
};
|
|
123
|
-
declare var __VLS_1$8: {};
|
|
124
|
-
type __VLS_Slots$33 = {} & {
|
|
125
|
-
default?: (props: typeof __VLS_1$8) => any;
|
|
126
|
-
};
|
|
127
|
-
declare const __VLS_base$33: import("vue").DefineComponent<__VLS_Props$8, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$8> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
128
|
-
declare const __VLS_export$40: __VLS_WithSlots$33<typeof __VLS_base$33, __VLS_Slots$33>;
|
|
129
|
-
declare const _default$4: typeof __VLS_export$40;
|
|
130
|
-
type __VLS_WithSlots$33<T, S> = T & {
|
|
131
|
-
new (): {
|
|
132
|
-
$slots: S;
|
|
2319
|
+
/** 日视图并排月数 */
|
|
2320
|
+
numOfMonths: {
|
|
2321
|
+
type: NumberConstructor;
|
|
2322
|
+
default: number;
|
|
133
2323
|
};
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
class?: string;
|
|
139
|
-
};
|
|
140
|
-
declare var __VLS_1$7: {};
|
|
141
|
-
type __VLS_Slots$32 = {} & {
|
|
142
|
-
default?: (props: typeof __VLS_1$7) => any;
|
|
143
|
-
};
|
|
144
|
-
declare const __VLS_base$32: import("vue").DefineComponent<__VLS_Props$7, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$7> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
145
|
-
declare const __VLS_export$39: __VLS_WithSlots$32<typeof __VLS_base$32, __VLS_Slots$32>;
|
|
146
|
-
declare const _default$5: typeof __VLS_export$39;
|
|
147
|
-
type __VLS_WithSlots$32<T, S> = T & {
|
|
148
|
-
new (): {
|
|
149
|
-
$slots: S;
|
|
2324
|
+
/** 受控值("yyyy-MM-dd");仅 standalone 独立形态生效,embedded 值归宿主 Picker */
|
|
2325
|
+
modelValue: {
|
|
2326
|
+
type: PropType<string | null | undefined>;
|
|
2327
|
+
default: any;
|
|
150
2328
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
class?: string;
|
|
156
|
-
};
|
|
157
|
-
declare var __VLS_1$6: {};
|
|
158
|
-
type __VLS_Slots$31 = {} & {
|
|
159
|
-
default?: (props: typeof __VLS_1$6) => any;
|
|
160
|
-
};
|
|
161
|
-
declare const __VLS_base$31: import("vue").DefineComponent<__VLS_Props$6, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$6> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
162
|
-
declare const __VLS_export$38: __VLS_WithSlots$31<typeof __VLS_base$31, __VLS_Slots$31>;
|
|
163
|
-
declare const _default$6: typeof __VLS_export$38;
|
|
164
|
-
type __VLS_WithSlots$31<T, S> = T & {
|
|
165
|
-
new (): {
|
|
166
|
-
$slots: S;
|
|
2329
|
+
/** 非受控初值(仅 standalone) */
|
|
2330
|
+
defaultValue: {
|
|
2331
|
+
type: StringConstructor;
|
|
2332
|
+
default: any;
|
|
167
2333
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
class?: string;
|
|
173
|
-
};
|
|
174
|
-
declare var __VLS_1$5: {};
|
|
175
|
-
type __VLS_Slots$30 = {} & {
|
|
176
|
-
default?: (props: typeof __VLS_1$5) => any;
|
|
177
|
-
};
|
|
178
|
-
declare const __VLS_base$30: import("vue").DefineComponent<__VLS_Props$5, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$5> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
179
|
-
declare const __VLS_export$37: __VLS_WithSlots$30<typeof __VLS_base$30, __VLS_Slots$30>;
|
|
180
|
-
declare const _default$7: typeof __VLS_export$37;
|
|
181
|
-
type __VLS_WithSlots$30<T, S> = T & {
|
|
182
|
-
new (): {
|
|
183
|
-
$slots: S;
|
|
2334
|
+
/** 可选下界("yyyy-MM-dd",含当日;仅 standalone) */
|
|
2335
|
+
min: {
|
|
2336
|
+
type: StringConstructor;
|
|
2337
|
+
default: any;
|
|
184
2338
|
};
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
class?: string;
|
|
190
|
-
};
|
|
191
|
-
declare var __VLS_1$4: {};
|
|
192
|
-
type __VLS_Slots$29 = {} & {
|
|
193
|
-
default?: (props: typeof __VLS_1$4) => any;
|
|
194
|
-
};
|
|
195
|
-
declare const __VLS_base$29: import("vue").DefineComponent<__VLS_Props$4, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$4> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
196
|
-
declare const __VLS_export$36: __VLS_WithSlots$29<typeof __VLS_base$29, __VLS_Slots$29>;
|
|
197
|
-
declare const _default$8: typeof __VLS_export$36;
|
|
198
|
-
type __VLS_WithSlots$29<T, S> = T & {
|
|
199
|
-
new (): {
|
|
200
|
-
$slots: S;
|
|
2339
|
+
/** 可选上界("yyyy-MM-dd",含当日;仅 standalone) */
|
|
2340
|
+
max: {
|
|
2341
|
+
type: StringConstructor;
|
|
2342
|
+
default: any;
|
|
201
2343
|
};
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
declare var __VLS_33: {};
|
|
206
|
-
type __VLS_Slots$28 = {} & {
|
|
207
|
-
default?: (props: typeof __VLS_33) => any;
|
|
208
|
-
};
|
|
209
|
-
declare const __VLS_base$28: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
210
|
-
checked: {
|
|
211
|
-
type: PropType<boolean | undefined>;
|
|
2344
|
+
/** 不可选日期谓词(参数为 ark 的 DateValue;仅 standalone) */
|
|
2345
|
+
isDateUnavailable: {
|
|
2346
|
+
type: PropType<(date: DateValue) => boolean>;
|
|
212
2347
|
default: any;
|
|
213
2348
|
};
|
|
214
|
-
|
|
2349
|
+
/** 文案与周起点跟随 locale(仅 standalone;embedded 随宿主 Picker) */
|
|
2350
|
+
locale: {
|
|
2351
|
+
type: StringConstructor;
|
|
2352
|
+
default: string;
|
|
2353
|
+
};
|
|
2354
|
+
/** 周选择形态:日视图下整周高亮(与 TWeekPicker 配套) */
|
|
2355
|
+
week: {
|
|
215
2356
|
type: BooleanConstructor;
|
|
216
2357
|
default: boolean;
|
|
217
2358
|
};
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
2359
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2360
|
+
"update:modelValue": (value: string) => any;
|
|
2361
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2362
|
+
/** 视图形态:day=日网格(可切月/年);standalone 时 month/year 同时派生视图锁定 */
|
|
2363
|
+
mode: {
|
|
2364
|
+
type: PropType<"day" | "month" | "year">;
|
|
2365
|
+
default: string;
|
|
2366
|
+
};
|
|
2367
|
+
/** 日视图并排月数 */
|
|
2368
|
+
numOfMonths: {
|
|
2369
|
+
type: NumberConstructor;
|
|
2370
|
+
default: number;
|
|
2371
|
+
};
|
|
2372
|
+
/** 受控值("yyyy-MM-dd");仅 standalone 独立形态生效,embedded 值归宿主 Picker */
|
|
2373
|
+
modelValue: {
|
|
2374
|
+
type: PropType<string | null | undefined>;
|
|
2375
|
+
default: any;
|
|
2376
|
+
};
|
|
2377
|
+
/** 非受控初值(仅 standalone) */
|
|
2378
|
+
defaultValue: {
|
|
2379
|
+
type: StringConstructor;
|
|
2380
|
+
default: any;
|
|
2381
|
+
};
|
|
2382
|
+
/** 可选下界("yyyy-MM-dd",含当日;仅 standalone) */
|
|
2383
|
+
min: {
|
|
2384
|
+
type: StringConstructor;
|
|
2385
|
+
default: any;
|
|
221
2386
|
};
|
|
222
|
-
|
|
2387
|
+
/** 可选上界("yyyy-MM-dd",含当日;仅 standalone) */
|
|
2388
|
+
max: {
|
|
223
2389
|
type: StringConstructor;
|
|
224
2390
|
default: any;
|
|
225
2391
|
};
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
checked: {
|
|
230
|
-
type: PropType<boolean | undefined>;
|
|
2392
|
+
/** 不可选日期谓词(参数为 ark 的 DateValue;仅 standalone) */
|
|
2393
|
+
isDateUnavailable: {
|
|
2394
|
+
type: PropType<(date: DateValue) => boolean>;
|
|
231
2395
|
default: any;
|
|
232
2396
|
};
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
2397
|
+
/** 文案与周起点跟随 locale(仅 standalone;embedded 随宿主 Picker) */
|
|
2398
|
+
locale: {
|
|
2399
|
+
type: StringConstructor;
|
|
2400
|
+
default: string;
|
|
236
2401
|
};
|
|
237
|
-
|
|
2402
|
+
/** 周选择形态:日视图下整周高亮(与 TWeekPicker 配套) */
|
|
2403
|
+
week: {
|
|
238
2404
|
type: BooleanConstructor;
|
|
239
2405
|
default: boolean;
|
|
240
2406
|
};
|
|
241
|
-
class: {
|
|
242
|
-
type: StringConstructor;
|
|
243
|
-
default: any;
|
|
244
|
-
};
|
|
245
2407
|
}>> & Readonly<{
|
|
246
|
-
"onUpdate:
|
|
2408
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
247
2409
|
}>, {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
2410
|
+
defaultValue: string;
|
|
2411
|
+
mode: "day" | "month" | "year";
|
|
2412
|
+
numOfMonths: number;
|
|
2413
|
+
modelValue: string;
|
|
2414
|
+
min: string;
|
|
2415
|
+
max: string;
|
|
2416
|
+
isDateUnavailable: (date: DateValue) => boolean;
|
|
2417
|
+
locale: string;
|
|
2418
|
+
week: boolean;
|
|
2419
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2420
|
+
declare const _default$5: typeof __VLS_export$24;
|
|
2421
|
+
//#endregion
|
|
2422
|
+
//#region src/components/card/Card.vue.d.ts
|
|
2423
|
+
interface Props$3 {
|
|
2424
|
+
/** 标题文案,渲染进头部(#title / #header 插槽可覆盖) */
|
|
2425
|
+
title?: string;
|
|
2426
|
+
/** 描述文案,渲染进头部(#description / #header 插槽可覆盖) */
|
|
2427
|
+
description?: string;
|
|
2428
|
+
/** 卡片尺寸,联动圆角、字级与分区 padding */
|
|
2429
|
+
size?: CardVariants["size"];
|
|
2430
|
+
/** 是否显示边框(关闭时同时去掉阴影基底) */
|
|
2431
|
+
bordered?: boolean;
|
|
2432
|
+
/** 悬浮时提升阴影 */
|
|
2433
|
+
hoverable?: boolean;
|
|
2434
|
+
/** 可点击卡片:hover 提升 + cursor-pointer */
|
|
2435
|
+
interactive?: boolean;
|
|
2436
|
+
/** 嵌入式背景(bg-muted/30) */
|
|
2437
|
+
embedded?: boolean;
|
|
2438
|
+
/** 分区之间显示分隔线(不含 Cover) */
|
|
2439
|
+
segmented?: boolean;
|
|
2440
|
+
/** 显示关闭按钮,点击触发 close 事件 */
|
|
2441
|
+
closable?: boolean;
|
|
2442
|
+
class?: string;
|
|
2443
|
+
}
|
|
2444
|
+
declare var __VLS_1$8: {}, __VLS_3$2: {}, __VLS_5$1: {}, __VLS_7$1: {}, __VLS_9$1: {}, __VLS_11: {}, __VLS_13: {};
|
|
2445
|
+
type __VLS_Slots$16 = {} & {
|
|
2446
|
+
cover?: (props: typeof __VLS_1$8) => any;
|
|
2447
|
+
} & {
|
|
2448
|
+
header?: (props: typeof __VLS_3$2) => any;
|
|
2449
|
+
} & {
|
|
2450
|
+
title?: (props: typeof __VLS_5$1) => any;
|
|
2451
|
+
} & {
|
|
2452
|
+
description?: (props: typeof __VLS_7$1) => any;
|
|
2453
|
+
} & {
|
|
2454
|
+
action?: (props: typeof __VLS_9$1) => any;
|
|
2455
|
+
} & {
|
|
2456
|
+
default?: (props: typeof __VLS_11) => any;
|
|
2457
|
+
} & {
|
|
2458
|
+
footer?: (props: typeof __VLS_13) => any;
|
|
2459
|
+
};
|
|
2460
|
+
declare const __VLS_base$16: import("vue").DefineComponent<Props$3, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2461
|
+
close: () => any;
|
|
2462
|
+
}, string, import("vue").PublicProps, Readonly<Props$3> & Readonly<{
|
|
2463
|
+
onClose?: () => any;
|
|
2464
|
+
}>, {
|
|
2465
|
+
size: CardVariants["size"];
|
|
2466
|
+
bordered: boolean;
|
|
2467
|
+
title: string;
|
|
2468
|
+
description: string;
|
|
252
2469
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
253
|
-
declare const __VLS_export$
|
|
254
|
-
declare const _default$
|
|
255
|
-
type __VLS_WithSlots$
|
|
2470
|
+
declare const __VLS_export$23: __VLS_WithSlots$16<typeof __VLS_base$16, __VLS_Slots$16>;
|
|
2471
|
+
declare const _default$6: typeof __VLS_export$23;
|
|
2472
|
+
type __VLS_WithSlots$16<T, S> = T & {
|
|
256
2473
|
new (): {
|
|
257
2474
|
$slots: S;
|
|
258
2475
|
};
|
|
259
2476
|
};
|
|
260
2477
|
//#endregion
|
|
2478
|
+
//#region src/components/card/index.d.ts
|
|
2479
|
+
export declare const cardVariants: (props?: {
|
|
2480
|
+
size?: "sm" | "lg" | "default";
|
|
2481
|
+
bordered?: boolean;
|
|
2482
|
+
hoverable?: boolean;
|
|
2483
|
+
interactive?: boolean;
|
|
2484
|
+
embedded?: boolean;
|
|
2485
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
2486
|
+
export type CardVariants = VariantProps<typeof cardVariants>;
|
|
2487
|
+
//#endregion
|
|
261
2488
|
//#region src/components/dialog/Dialog.vue.d.ts
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
2489
|
+
/** 关闭对话框(#footer 作用域插槽注入):走受控桥把 open 置 false,
|
|
2490
|
+
* 与原 TDialogClose(Ark CloseTrigger)的关闭语义等价,退出动画/焦点还原由 zag 处理 */
|
|
2491
|
+
declare function close(): void;
|
|
2492
|
+
declare var __VLS_16$3: {}, __VLS_41: {}, __VLS_49: {}, __VLS_51: {}, __VLS_53: {
|
|
2493
|
+
close: typeof close;
|
|
265
2494
|
};
|
|
266
|
-
|
|
2495
|
+
type __VLS_Slots$15 = {} & {
|
|
2496
|
+
trigger?: (props: typeof __VLS_16$3) => any;
|
|
2497
|
+
} & {
|
|
2498
|
+
title?: (props: typeof __VLS_41) => any;
|
|
2499
|
+
} & {
|
|
2500
|
+
description?: (props: typeof __VLS_49) => any;
|
|
2501
|
+
} & {
|
|
2502
|
+
default?: (props: typeof __VLS_51) => any;
|
|
2503
|
+
} & {
|
|
2504
|
+
footer?: (props: typeof __VLS_53) => any;
|
|
2505
|
+
};
|
|
2506
|
+
declare const __VLS_base$15: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2507
|
+
/** 受控开关(配合 v-model:open);不传时为非受控,由内部状态管理 */
|
|
267
2508
|
open: {
|
|
268
2509
|
type: PropType<boolean | undefined>;
|
|
269
2510
|
default: any;
|
|
270
2511
|
};
|
|
2512
|
+
/** 非受控时的初始开关 */
|
|
271
2513
|
defaultOpen: {
|
|
272
2514
|
type: BooleanConstructor;
|
|
273
2515
|
default: boolean;
|
|
274
2516
|
};
|
|
2517
|
+
/** 首次打开前不挂载内容 */
|
|
275
2518
|
lazyMount: {
|
|
276
2519
|
type: BooleanConstructor;
|
|
277
2520
|
default: boolean;
|
|
278
2521
|
};
|
|
2522
|
+
/** 关闭后卸载内容(关闭动画结束后) */
|
|
279
2523
|
unmountOnExit: {
|
|
280
2524
|
type: BooleanConstructor;
|
|
281
2525
|
default: boolean;
|
|
282
2526
|
};
|
|
2527
|
+
/** 标题文案(#title 插槽优先,两者皆无则不渲染标题) */
|
|
2528
|
+
title: {
|
|
2529
|
+
type: StringConstructor;
|
|
2530
|
+
default: any;
|
|
2531
|
+
};
|
|
2532
|
+
/** 描述文案(#description 插槽优先,两者皆无则不渲染描述) */
|
|
2533
|
+
description: {
|
|
2534
|
+
type: StringConstructor;
|
|
2535
|
+
default: any;
|
|
2536
|
+
};
|
|
2537
|
+
/** 是否渲染右上角内置关闭按钮 */
|
|
2538
|
+
showCloseButton: {
|
|
2539
|
+
type: BooleanConstructor;
|
|
2540
|
+
default: boolean;
|
|
2541
|
+
};
|
|
2542
|
+
/** 追加/覆盖面板样式类(默认 sm:max-w-lg 可由此覆盖,如 "sm:max-w-xl") */
|
|
2543
|
+
contentClass: {
|
|
2544
|
+
type: StringConstructor;
|
|
2545
|
+
default: any;
|
|
2546
|
+
};
|
|
283
2547
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
284
2548
|
"update:open": (open: boolean) => any;
|
|
285
2549
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2550
|
+
/** 受控开关(配合 v-model:open);不传时为非受控,由内部状态管理 */
|
|
286
2551
|
open: {
|
|
287
2552
|
type: PropType<boolean | undefined>;
|
|
288
2553
|
default: any;
|
|
289
2554
|
};
|
|
2555
|
+
/** 非受控时的初始开关 */
|
|
290
2556
|
defaultOpen: {
|
|
291
2557
|
type: BooleanConstructor;
|
|
292
2558
|
default: boolean;
|
|
293
2559
|
};
|
|
2560
|
+
/** 首次打开前不挂载内容 */
|
|
294
2561
|
lazyMount: {
|
|
295
2562
|
type: BooleanConstructor;
|
|
296
2563
|
default: boolean;
|
|
297
2564
|
};
|
|
2565
|
+
/** 关闭后卸载内容(关闭动画结束后) */
|
|
298
2566
|
unmountOnExit: {
|
|
299
2567
|
type: BooleanConstructor;
|
|
300
2568
|
default: boolean;
|
|
301
2569
|
};
|
|
2570
|
+
/** 标题文案(#title 插槽优先,两者皆无则不渲染标题) */
|
|
2571
|
+
title: {
|
|
2572
|
+
type: StringConstructor;
|
|
2573
|
+
default: any;
|
|
2574
|
+
};
|
|
2575
|
+
/** 描述文案(#description 插槽优先,两者皆无则不渲染描述) */
|
|
2576
|
+
description: {
|
|
2577
|
+
type: StringConstructor;
|
|
2578
|
+
default: any;
|
|
2579
|
+
};
|
|
2580
|
+
/** 是否渲染右上角内置关闭按钮 */
|
|
2581
|
+
showCloseButton: {
|
|
2582
|
+
type: BooleanConstructor;
|
|
2583
|
+
default: boolean;
|
|
2584
|
+
};
|
|
2585
|
+
/** 追加/覆盖面板样式类(默认 sm:max-w-lg 可由此覆盖,如 "sm:max-w-xl") */
|
|
2586
|
+
contentClass: {
|
|
2587
|
+
type: StringConstructor;
|
|
2588
|
+
default: any;
|
|
2589
|
+
};
|
|
302
2590
|
}>> & Readonly<{
|
|
303
2591
|
"onUpdate:open"?: (open: boolean) => any;
|
|
304
2592
|
}>, {
|
|
305
2593
|
open: boolean;
|
|
306
2594
|
defaultOpen: boolean;
|
|
2595
|
+
title: string;
|
|
307
2596
|
lazyMount: boolean;
|
|
308
2597
|
unmountOnExit: boolean;
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
declare const _default$10: typeof __VLS_export$34;
|
|
312
|
-
type __VLS_WithSlots$27<T, S> = T & {
|
|
313
|
-
new (): {
|
|
314
|
-
$slots: S;
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
//#endregion
|
|
318
|
-
//#region src/components/dialog/DialogClose.vue.d.ts
|
|
319
|
-
interface Props$24 {
|
|
320
|
-
/** 以默认插槽子元素为渲染目标,不渲染额外按钮 */
|
|
321
|
-
asChild?: boolean;
|
|
322
|
-
}
|
|
323
|
-
declare var __VLS_8$10: {};
|
|
324
|
-
type __VLS_Slots$26 = {} & {
|
|
325
|
-
default?: (props: typeof __VLS_8$10) => any;
|
|
326
|
-
};
|
|
327
|
-
declare const __VLS_base$26: import("vue").DefineComponent<Props$24, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$24> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
328
|
-
declare const __VLS_export$33: __VLS_WithSlots$26<typeof __VLS_base$26, __VLS_Slots$26>;
|
|
329
|
-
declare const _default$11: typeof __VLS_export$33;
|
|
330
|
-
type __VLS_WithSlots$26<T, S> = T & {
|
|
331
|
-
new (): {
|
|
332
|
-
$slots: S;
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
//#endregion
|
|
336
|
-
//#region src/components/dialog/DialogContent.vue.d.ts
|
|
337
|
-
interface Props$23 {
|
|
338
|
-
/** 是否在内容右上角渲染关闭按钮 */
|
|
339
|
-
showCloseButton?: boolean;
|
|
340
|
-
class?: string;
|
|
341
|
-
}
|
|
342
|
-
declare var __VLS_18: {};
|
|
343
|
-
type __VLS_Slots$25 = {} & {
|
|
344
|
-
default?: (props: typeof __VLS_18) => any;
|
|
345
|
-
};
|
|
346
|
-
declare const __VLS_base$25: import("vue").DefineComponent<Props$23, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$23> & Readonly<{}>, {
|
|
2598
|
+
contentClass: string;
|
|
2599
|
+
description: string;
|
|
347
2600
|
showCloseButton: boolean;
|
|
348
2601
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
349
|
-
declare const __VLS_export$
|
|
350
|
-
declare const _default$12: typeof __VLS_export$
|
|
351
|
-
type __VLS_WithSlots$
|
|
2602
|
+
declare const __VLS_export$22: __VLS_WithSlots$15<typeof __VLS_base$15, __VLS_Slots$15>;
|
|
2603
|
+
declare const _default$12: typeof __VLS_export$22;
|
|
2604
|
+
type __VLS_WithSlots$15<T, S> = T & {
|
|
352
2605
|
new (): {
|
|
353
2606
|
$slots: S;
|
|
354
2607
|
};
|
|
355
2608
|
};
|
|
356
2609
|
//#endregion
|
|
357
|
-
//#region src/components/
|
|
358
|
-
|
|
2610
|
+
//#region src/components/dropdown-menu/types.d.ts
|
|
2611
|
+
/** DropdownMenu 菜单项描述:四种形态,group 可嵌套 children 形成层级 */
|
|
2612
|
+
type MenuItemOption = {
|
|
2613
|
+
type: "item";
|
|
2614
|
+
value: string;
|
|
2615
|
+
label: string;
|
|
2616
|
+
disabled?: boolean;
|
|
359
2617
|
class?: string;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
default?: (props: typeof __VLS_8$9) => any;
|
|
364
|
-
};
|
|
365
|
-
declare const __VLS_base$24: import("vue").DefineComponent<Props$22, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$22> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
366
|
-
declare const __VLS_export$31: __VLS_WithSlots$24<typeof __VLS_base$24, __VLS_Slots$24>;
|
|
367
|
-
declare const _default$13: typeof __VLS_export$31;
|
|
368
|
-
type __VLS_WithSlots$24<T, S> = T & {
|
|
369
|
-
new (): {
|
|
370
|
-
$slots: S;
|
|
371
|
-
};
|
|
372
|
-
};
|
|
373
|
-
//#endregion
|
|
374
|
-
//#region src/components/dialog/DialogFooter.vue.d.ts
|
|
375
|
-
interface Props$21 {
|
|
2618
|
+
} | {
|
|
2619
|
+
type: "label";
|
|
2620
|
+
label: string;
|
|
376
2621
|
class?: string;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
type __VLS_Slots$23 = {} & {
|
|
380
|
-
default?: (props: typeof __VLS_1$3) => any;
|
|
381
|
-
};
|
|
382
|
-
declare const __VLS_base$23: import("vue").DefineComponent<Props$21, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$21> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
383
|
-
declare const __VLS_export$30: __VLS_WithSlots$23<typeof __VLS_base$23, __VLS_Slots$23>;
|
|
384
|
-
declare const _default$14: typeof __VLS_export$30;
|
|
385
|
-
type __VLS_WithSlots$23<T, S> = T & {
|
|
386
|
-
new (): {
|
|
387
|
-
$slots: S;
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
//#endregion
|
|
391
|
-
//#region src/components/dialog/DialogHeader.vue.d.ts
|
|
392
|
-
interface Props$20 {
|
|
2622
|
+
} | {
|
|
2623
|
+
type: "separator";
|
|
393
2624
|
class?: string;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
default?: (props: typeof __VLS_1$2) => any;
|
|
398
|
-
};
|
|
399
|
-
declare const __VLS_base$22: import("vue").DefineComponent<Props$20, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$20> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
400
|
-
declare const __VLS_export$29: __VLS_WithSlots$22<typeof __VLS_base$22, __VLS_Slots$22>;
|
|
401
|
-
declare const _default$15: typeof __VLS_export$29;
|
|
402
|
-
type __VLS_WithSlots$22<T, S> = T & {
|
|
403
|
-
new (): {
|
|
404
|
-
$slots: S;
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
//#endregion
|
|
408
|
-
//#region src/components/dialog/DialogTitle.vue.d.ts
|
|
409
|
-
interface Props$19 {
|
|
2625
|
+
} | {
|
|
2626
|
+
type: "group";
|
|
2627
|
+
label?: string;
|
|
410
2628
|
class?: string;
|
|
411
|
-
|
|
412
|
-
declare var __VLS_8$8: {};
|
|
413
|
-
type __VLS_Slots$21 = {} & {
|
|
414
|
-
default?: (props: typeof __VLS_8$8) => any;
|
|
415
|
-
};
|
|
416
|
-
declare const __VLS_base$21: import("vue").DefineComponent<Props$19, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$19> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
417
|
-
declare const __VLS_export$28: __VLS_WithSlots$21<typeof __VLS_base$21, __VLS_Slots$21>;
|
|
418
|
-
declare const _default$16: typeof __VLS_export$28;
|
|
419
|
-
type __VLS_WithSlots$21<T, S> = T & {
|
|
420
|
-
new (): {
|
|
421
|
-
$slots: S;
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
//#endregion
|
|
425
|
-
//#region src/components/dialog/DialogTrigger.vue.d.ts
|
|
426
|
-
interface Props$18 {
|
|
427
|
-
/** 以默认插槽子元素为渲染目标(样式与行为合并其上),不渲染额外按钮 */
|
|
428
|
-
asChild?: boolean;
|
|
429
|
-
}
|
|
430
|
-
declare var __VLS_8$7: {};
|
|
431
|
-
type __VLS_Slots$20 = {} & {
|
|
432
|
-
default?: (props: typeof __VLS_8$7) => any;
|
|
433
|
-
};
|
|
434
|
-
declare const __VLS_base$20: import("vue").DefineComponent<Props$18, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$18> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
435
|
-
declare const __VLS_export$27: __VLS_WithSlots$20<typeof __VLS_base$20, __VLS_Slots$20>;
|
|
436
|
-
declare const _default$17: typeof __VLS_export$27;
|
|
437
|
-
type __VLS_WithSlots$20<T, S> = T & {
|
|
438
|
-
new (): {
|
|
439
|
-
$slots: S;
|
|
440
|
-
};
|
|
2629
|
+
children: MenuItemOption[];
|
|
441
2630
|
};
|
|
442
2631
|
//#endregion
|
|
443
2632
|
//#region src/components/dropdown-menu/DropdownMenu.vue.d.ts
|
|
444
|
-
declare var
|
|
445
|
-
|
|
446
|
-
|
|
2633
|
+
declare var __VLS_17: {}, __VLS_38: {
|
|
2634
|
+
item: Extract<MenuItemOption, {
|
|
2635
|
+
type: "item";
|
|
2636
|
+
}>;
|
|
2637
|
+
};
|
|
2638
|
+
type __VLS_Slots$14 = {} & {
|
|
2639
|
+
default?: (props: typeof __VLS_17) => any;
|
|
2640
|
+
} & {
|
|
2641
|
+
item?: (props: typeof __VLS_38) => any;
|
|
447
2642
|
};
|
|
448
|
-
declare const __VLS_base$
|
|
2643
|
+
declare const __VLS_base$14: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2644
|
+
/** 菜单项描述列表(item/label/separator/group 四种形态,group 可嵌套) */
|
|
2645
|
+
items: {
|
|
2646
|
+
type: PropType<MenuItemOption[]>;
|
|
2647
|
+
required: true;
|
|
2648
|
+
};
|
|
2649
|
+
/** 受控开关(配合 v-model:open);不传时为非受控(default: undefined 禁用 Boolean casting) */
|
|
449
2650
|
open: {
|
|
450
2651
|
type: PropType<boolean | undefined>;
|
|
451
2652
|
default: any;
|
|
@@ -462,12 +2663,28 @@ declare const __VLS_base$19: import("vue").DefineComponent<import("vue").Extract
|
|
|
462
2663
|
type: BooleanConstructor;
|
|
463
2664
|
default: boolean;
|
|
464
2665
|
};
|
|
2666
|
+
/** 追加到触发元素上的 class(默认插槽内容即触发元素本身) */
|
|
2667
|
+
triggerClass: {
|
|
2668
|
+
type: StringConstructor;
|
|
2669
|
+
default: any;
|
|
2670
|
+
};
|
|
2671
|
+
/** 追加到菜单面板上的 class */
|
|
2672
|
+
contentClass: {
|
|
2673
|
+
type: StringConstructor;
|
|
2674
|
+
default: any;
|
|
2675
|
+
};
|
|
465
2676
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2677
|
+
"update:open": (open: boolean) => any;
|
|
466
2678
|
select: (details: {
|
|
467
2679
|
value: string;
|
|
468
2680
|
}) => any;
|
|
469
|
-
"update:open": (open: boolean) => any;
|
|
470
2681
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2682
|
+
/** 菜单项描述列表(item/label/separator/group 四种形态,group 可嵌套) */
|
|
2683
|
+
items: {
|
|
2684
|
+
type: PropType<MenuItemOption[]>;
|
|
2685
|
+
required: true;
|
|
2686
|
+
};
|
|
2687
|
+
/** 受控开关(配合 v-model:open);不传时为非受控(default: undefined 禁用 Boolean casting) */
|
|
471
2688
|
open: {
|
|
472
2689
|
type: PropType<boolean | undefined>;
|
|
473
2690
|
default: any;
|
|
@@ -484,381 +2701,467 @@ declare const __VLS_base$19: import("vue").DefineComponent<import("vue").Extract
|
|
|
484
2701
|
type: BooleanConstructor;
|
|
485
2702
|
default: boolean;
|
|
486
2703
|
};
|
|
2704
|
+
/** 追加到触发元素上的 class(默认插槽内容即触发元素本身) */
|
|
2705
|
+
triggerClass: {
|
|
2706
|
+
type: StringConstructor;
|
|
2707
|
+
default: any;
|
|
2708
|
+
};
|
|
2709
|
+
/** 追加到菜单面板上的 class */
|
|
2710
|
+
contentClass: {
|
|
2711
|
+
type: StringConstructor;
|
|
2712
|
+
default: any;
|
|
2713
|
+
};
|
|
487
2714
|
}>> & Readonly<{
|
|
2715
|
+
"onUpdate:open"?: (open: boolean) => any;
|
|
488
2716
|
onSelect?: (details: {
|
|
489
2717
|
value: string;
|
|
490
2718
|
}) => any;
|
|
491
|
-
"onUpdate:open"?: (open: boolean) => any;
|
|
492
2719
|
}>, {
|
|
493
2720
|
open: boolean;
|
|
494
2721
|
defaultOpen: boolean;
|
|
495
2722
|
lazyMount: boolean;
|
|
496
2723
|
unmountOnExit: boolean;
|
|
2724
|
+
contentClass: string;
|
|
2725
|
+
triggerClass: string;
|
|
497
2726
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
498
|
-
declare const __VLS_export$
|
|
499
|
-
declare const _default$
|
|
500
|
-
type __VLS_WithSlots$
|
|
2727
|
+
declare const __VLS_export$21: __VLS_WithSlots$14<typeof __VLS_base$14, __VLS_Slots$14>;
|
|
2728
|
+
declare const _default$13: typeof __VLS_export$21;
|
|
2729
|
+
type __VLS_WithSlots$14<T, S> = T & {
|
|
501
2730
|
new (): {
|
|
502
2731
|
$slots: S;
|
|
503
2732
|
};
|
|
504
2733
|
};
|
|
505
2734
|
//#endregion
|
|
506
|
-
//#region src/components/
|
|
507
|
-
|
|
2735
|
+
//#region src/components/form/context.d.ts
|
|
2736
|
+
/** useForm() 返回实例的宽松形态(provide/inject 边界会擦除泛型,any 化是契约) */
|
|
2737
|
+
type FormInstance = FormApi<any, any, any, any, any, any, any, any, any, any, any, any> & VueFormApi<any, any, any, any, any, any, any, any, any, any, any, any>;
|
|
2738
|
+
//#endregion
|
|
2739
|
+
//#region src/components/form/Form.vue.d.ts
|
|
2740
|
+
type __VLS_Props$9 = {
|
|
2741
|
+
/** useForm() 返回的实例 */
|
|
2742
|
+
form: FormInstance;
|
|
508
2743
|
class?: string;
|
|
509
|
-
}
|
|
510
|
-
declare var __VLS_14$3: {};
|
|
511
|
-
type __VLS_Slots$18 = {} & {
|
|
512
|
-
default?: (props: typeof __VLS_14$3) => any;
|
|
513
2744
|
};
|
|
514
|
-
declare
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
2745
|
+
declare var __VLS_1$7: {};
|
|
2746
|
+
type __VLS_Slots$13 = {} & {
|
|
2747
|
+
default?: (props: typeof __VLS_1$7) => any;
|
|
2748
|
+
};
|
|
2749
|
+
declare const __VLS_base$13: import("vue").DefineComponent<__VLS_Props$9, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$9> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2750
|
+
declare const __VLS_export$20: __VLS_WithSlots$13<typeof __VLS_base$13, __VLS_Slots$13>;
|
|
2751
|
+
declare const _default$15: typeof __VLS_export$20;
|
|
2752
|
+
type __VLS_WithSlots$13<T, S> = T & {
|
|
518
2753
|
new (): {
|
|
519
2754
|
$slots: S;
|
|
520
2755
|
};
|
|
521
2756
|
};
|
|
522
2757
|
//#endregion
|
|
523
|
-
//#region src/components/
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
declare
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
declare const __VLS_export$24: __VLS_WithSlots$17<typeof __VLS_base$17, __VLS_Slots$17>;
|
|
534
|
-
declare const _default$20: typeof __VLS_export$24;
|
|
535
|
-
type __VLS_WithSlots$17<T, S> = T & {
|
|
536
|
-
new (): {
|
|
537
|
-
$slots: S;
|
|
2758
|
+
//#region src/components/form/FormControl.vue.d.ts
|
|
2759
|
+
/**
|
|
2760
|
+
* 把 id / aria-invalid / aria-describedby 合并到唯一子元素(cloneVNode)。
|
|
2761
|
+
* aria 全同步计算:description/message 的 presence 由 FormItem 的 refs 提供。
|
|
2762
|
+
*/
|
|
2763
|
+
declare const _default$16: typeof __VLS_export$19;
|
|
2764
|
+
declare const __VLS_export$19: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2765
|
+
class: {
|
|
2766
|
+
type: StringConstructor;
|
|
2767
|
+
default: any;
|
|
538
2768
|
};
|
|
539
|
-
}
|
|
2769
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2770
|
+
[key: string]: any;
|
|
2771
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2772
|
+
class: {
|
|
2773
|
+
type: StringConstructor;
|
|
2774
|
+
default: any;
|
|
2775
|
+
};
|
|
2776
|
+
}>> & Readonly<{}>, {
|
|
2777
|
+
class: string;
|
|
2778
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
540
2779
|
//#endregion
|
|
541
|
-
//#region src/components/
|
|
542
|
-
|
|
543
|
-
/** 选中回调里回传的标识;缺省自动生成 */
|
|
544
|
-
value?: string;
|
|
545
|
-
disabled?: boolean;
|
|
2780
|
+
//#region src/components/form/FormDescription.vue.d.ts
|
|
2781
|
+
type __VLS_Props$8 = {
|
|
546
2782
|
class?: string;
|
|
547
|
-
}
|
|
548
|
-
declare var __VLS_8$5: {};
|
|
549
|
-
type __VLS_Slots$16 = {} & {
|
|
550
|
-
default?: (props: typeof __VLS_8$5) => any;
|
|
551
2783
|
};
|
|
552
|
-
declare
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
}
|
|
556
|
-
declare const
|
|
557
|
-
declare const
|
|
558
|
-
|
|
2784
|
+
declare var __VLS_1$6: {};
|
|
2785
|
+
type __VLS_Slots$12 = {} & {
|
|
2786
|
+
default?: (props: typeof __VLS_1$6) => any;
|
|
2787
|
+
};
|
|
2788
|
+
declare const __VLS_base$12: import("vue").DefineComponent<__VLS_Props$8, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$8> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2789
|
+
declare const __VLS_export$18: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
|
|
2790
|
+
declare const _default$17: typeof __VLS_export$18;
|
|
2791
|
+
type __VLS_WithSlots$12<T, S> = T & {
|
|
559
2792
|
new (): {
|
|
560
2793
|
$slots: S;
|
|
561
2794
|
};
|
|
562
2795
|
};
|
|
563
2796
|
//#endregion
|
|
564
|
-
//#region src/components/
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
2797
|
+
//#region src/components/form/FormField.vue.d.ts
|
|
2798
|
+
/**
|
|
2799
|
+
* 渲染 TanStack `form.Field` 并经 provide 下发 field 上下文。
|
|
2800
|
+
* field 实例只能在 form.Field 的插槽执行期取得(时序早于子组件 setup),
|
|
2801
|
+
* 故用 defineComponent + render function 在插槽回调中写入 ShallowRef。
|
|
2802
|
+
*/
|
|
2803
|
+
declare const _default$18: typeof __VLS_export$17;
|
|
2804
|
+
declare const __VLS_export$17: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2805
|
+
/** 字段名(TanStack 深层 key 的运行时形态) */
|
|
2806
|
+
name: {
|
|
2807
|
+
type: StringConstructor;
|
|
2808
|
+
required: true;
|
|
2809
|
+
};
|
|
2810
|
+
/** 校验器配置,原样透传(值可为函数或 Standard Schema,如 valibot) */
|
|
2811
|
+
validators: {
|
|
2812
|
+
type: PropType<Record<string, unknown>>;
|
|
2813
|
+
default: any;
|
|
2814
|
+
};
|
|
2815
|
+
/** 字段模式:value 单值(默认);array 数组字段,解锁 pushValue/removeValue 等行操作 */
|
|
2816
|
+
mode: {
|
|
2817
|
+
type: PropType<"value" | "array">;
|
|
2818
|
+
default: string;
|
|
2819
|
+
};
|
|
2820
|
+
}>, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2821
|
+
[key: string]: any;
|
|
2822
|
+
}>[]) | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2823
|
+
[key: string]: any;
|
|
2824
|
+
}>), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2825
|
+
/** 字段名(TanStack 深层 key 的运行时形态) */
|
|
2826
|
+
name: {
|
|
2827
|
+
type: StringConstructor;
|
|
2828
|
+
required: true;
|
|
2829
|
+
};
|
|
2830
|
+
/** 校验器配置,原样透传(值可为函数或 Standard Schema,如 valibot) */
|
|
2831
|
+
validators: {
|
|
2832
|
+
type: PropType<Record<string, unknown>>;
|
|
2833
|
+
default: any;
|
|
2834
|
+
};
|
|
2835
|
+
/** 字段模式:value 单值(默认);array 数组字段,解锁 pushValue/removeValue 等行操作 */
|
|
2836
|
+
mode: {
|
|
2837
|
+
type: PropType<"value" | "array">;
|
|
2838
|
+
default: string;
|
|
2839
|
+
};
|
|
2840
|
+
}>> & Readonly<{}>, {
|
|
2841
|
+
mode: "value" | "array";
|
|
2842
|
+
validators: Record<string, unknown>;
|
|
2843
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2844
|
+
//#endregion
|
|
2845
|
+
//#region src/components/form/FormItem.vue.d.ts
|
|
2846
|
+
declare var __VLS_1$5: {};
|
|
2847
|
+
type __VLS_Slots$11 = {} & {
|
|
2848
|
+
default?: (props: typeof __VLS_1$5) => any;
|
|
571
2849
|
};
|
|
572
|
-
declare const __VLS_base$
|
|
573
|
-
declare const __VLS_export$
|
|
574
|
-
declare const _default$
|
|
575
|
-
type __VLS_WithSlots$
|
|
2850
|
+
declare const __VLS_base$11: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2851
|
+
declare const __VLS_export$16: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
|
|
2852
|
+
declare const _default$19: typeof __VLS_export$16;
|
|
2853
|
+
type __VLS_WithSlots$11<T, S> = T & {
|
|
576
2854
|
new (): {
|
|
577
2855
|
$slots: S;
|
|
578
2856
|
};
|
|
579
2857
|
};
|
|
580
2858
|
//#endregion
|
|
581
|
-
//#region src/components/
|
|
582
|
-
|
|
2859
|
+
//#region src/components/form/FormLabel.vue.d.ts
|
|
2860
|
+
type __VLS_Props$7 = {
|
|
583
2861
|
class?: string;
|
|
584
|
-
}
|
|
585
|
-
declare const __VLS_export$21: import("vue").DefineComponent<Props$13, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$13> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
586
|
-
declare const _default$23: typeof __VLS_export$21;
|
|
587
|
-
//#endregion
|
|
588
|
-
//#region src/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts
|
|
589
|
-
interface Props$12 {
|
|
590
|
-
/** 以默认插槽子元素为渲染目标,行为合并其上 */
|
|
591
|
-
asChild?: boolean;
|
|
592
|
-
}
|
|
593
|
-
declare var __VLS_8$4: {};
|
|
594
|
-
type __VLS_Slots$14 = {} & {
|
|
595
|
-
default?: (props: typeof __VLS_8$4) => any;
|
|
596
2862
|
};
|
|
597
|
-
declare
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
2863
|
+
declare var __VLS_1$4: {};
|
|
2864
|
+
type __VLS_Slots$10 = {} & {
|
|
2865
|
+
default?: (props: typeof __VLS_1$4) => any;
|
|
2866
|
+
};
|
|
2867
|
+
declare const __VLS_base$10: import("vue").DefineComponent<__VLS_Props$7, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$7> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2868
|
+
declare const __VLS_export$15: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
|
|
2869
|
+
declare const _default$20: typeof __VLS_export$15;
|
|
2870
|
+
type __VLS_WithSlots$10<T, S> = T & {
|
|
601
2871
|
new (): {
|
|
602
2872
|
$slots: S;
|
|
603
2873
|
};
|
|
604
2874
|
};
|
|
605
2875
|
//#endregion
|
|
606
|
-
//#region src/components/
|
|
607
|
-
type __VLS_Props$
|
|
2876
|
+
//#region src/components/form/FormMessage.vue.d.ts
|
|
2877
|
+
type __VLS_Props$6 = {
|
|
2878
|
+
/** 静态提示文案:传入后即使无校验错误也渲染(不走 aria-errormessage) */
|
|
2879
|
+
message?: string;
|
|
608
2880
|
class?: string;
|
|
609
2881
|
};
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
};
|
|
613
|
-
type __VLS_PublicProps = __VLS_Props$3 & __VLS_ModelProps;
|
|
614
|
-
declare const __VLS_export$19: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
615
|
-
"update:modelValue": (value: string | number) => any;
|
|
616
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
617
|
-
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
618
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
619
|
-
declare const _default$25: typeof __VLS_export$19;
|
|
2882
|
+
declare const __VLS_export$14: import("vue").DefineComponent<__VLS_Props$6, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$6> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2883
|
+
declare const _default$21: typeof __VLS_export$14;
|
|
620
2884
|
//#endregion
|
|
621
|
-
//#region src/components/
|
|
622
|
-
|
|
623
|
-
|
|
2885
|
+
//#region src/components/form/FormSubscribe.vue.d.ts
|
|
2886
|
+
declare var __VLS_9: {
|
|
2887
|
+
canSubmit: boolean;
|
|
2888
|
+
isSubmitting: boolean;
|
|
624
2889
|
};
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
default?: (props: typeof __VLS_1) => any;
|
|
2890
|
+
type __VLS_Slots$9 = {} & {
|
|
2891
|
+
default?: (props: typeof __VLS_9) => any;
|
|
628
2892
|
};
|
|
629
|
-
declare const __VLS_base$
|
|
630
|
-
declare const __VLS_export$
|
|
631
|
-
declare const _default$
|
|
632
|
-
type __VLS_WithSlots$
|
|
2893
|
+
declare const __VLS_base$9: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2894
|
+
declare const __VLS_export$13: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
|
|
2895
|
+
declare const _default$23: typeof __VLS_export$13;
|
|
2896
|
+
type __VLS_WithSlots$9<T, S> = T & {
|
|
633
2897
|
new (): {
|
|
634
2898
|
$slots: S;
|
|
635
2899
|
};
|
|
636
2900
|
};
|
|
637
2901
|
//#endregion
|
|
638
|
-
//#region src/components/
|
|
639
|
-
|
|
640
|
-
/** 当前值(配合 v-model:value);不传时为非受控 */
|
|
641
|
-
value?: string;
|
|
642
|
-
defaultValue?: string;
|
|
643
|
-
disabled?: boolean;
|
|
644
|
-
orientation?: "horizontal" | "vertical";
|
|
2902
|
+
//#region src/components/label/Label.vue.d.ts
|
|
2903
|
+
type __VLS_Props$5 = {
|
|
645
2904
|
class?: string;
|
|
646
|
-
}
|
|
647
|
-
declare var __VLS_10$2: {};
|
|
648
|
-
type __VLS_Slots$12 = {} & {
|
|
649
|
-
default?: (props: typeof __VLS_10$2) => any;
|
|
650
|
-
};
|
|
651
|
-
declare const __VLS_base$12: import("vue").DefineComponent<Props$11, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
652
|
-
"update:value": (value: string) => any;
|
|
653
|
-
}, string, import("vue").PublicProps, Readonly<Props$11> & Readonly<{
|
|
654
|
-
"onUpdate:value"?: (value: string) => any;
|
|
655
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
656
|
-
declare const __VLS_export$17: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
|
|
657
|
-
declare const _default$27: typeof __VLS_export$17;
|
|
658
|
-
type __VLS_WithSlots$12<T, S> = T & {
|
|
659
|
-
new (): {
|
|
660
|
-
$slots: S;
|
|
661
|
-
};
|
|
662
2905
|
};
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
value: string;
|
|
667
|
-
disabled?: boolean;
|
|
668
|
-
class?: string;
|
|
669
|
-
}
|
|
670
|
-
declare var __VLS_25: {};
|
|
671
|
-
type __VLS_Slots$11 = {} & {
|
|
672
|
-
default?: (props: typeof __VLS_25) => any;
|
|
2906
|
+
declare var __VLS_1$3: {};
|
|
2907
|
+
type __VLS_Slots$8 = {} & {
|
|
2908
|
+
default?: (props: typeof __VLS_1$3) => any;
|
|
673
2909
|
};
|
|
674
|
-
declare const __VLS_base$
|
|
675
|
-
declare const __VLS_export$
|
|
676
|
-
declare const _default$
|
|
677
|
-
type __VLS_WithSlots$
|
|
2910
|
+
declare const __VLS_base$8: import("vue").DefineComponent<__VLS_Props$5, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$5> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2911
|
+
declare const __VLS_export$12: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
|
|
2912
|
+
declare const _default$25: typeof __VLS_export$12;
|
|
2913
|
+
type __VLS_WithSlots$8<T, S> = T & {
|
|
678
2914
|
new (): {
|
|
679
2915
|
$slots: S;
|
|
680
2916
|
};
|
|
681
2917
|
};
|
|
682
2918
|
//#endregion
|
|
683
|
-
//#region src/components/
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
disabled?: boolean;
|
|
688
|
-
}
|
|
689
|
-
//#endregion
|
|
690
|
-
//#region src/components/select/Select.vue.d.ts
|
|
691
|
-
declare var __VLS_11: {};
|
|
692
|
-
type __VLS_Slots$10 = {} & {
|
|
693
|
-
default?: (props: typeof __VLS_11) => any;
|
|
2919
|
+
//#region src/components/pin-input/PinInput.vue.d.ts
|
|
2920
|
+
declare var __VLS_16$2: {};
|
|
2921
|
+
type __VLS_Slots$7 = {} & {
|
|
2922
|
+
separator?: (props: typeof __VLS_16$2) => any;
|
|
694
2923
|
};
|
|
695
|
-
declare const __VLS_base$
|
|
696
|
-
/**
|
|
697
|
-
|
|
698
|
-
type: PropType<
|
|
699
|
-
|
|
2924
|
+
declare const __VLS_base$7: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2925
|
+
/** 受控值:每格一个元素的数组;undefined 走内部非受控 */
|
|
2926
|
+
modelValue: {
|
|
2927
|
+
type: PropType<string[] | undefined>;
|
|
2928
|
+
default: any;
|
|
700
2929
|
};
|
|
701
|
-
/**
|
|
2930
|
+
/** 格数(默认 4) */
|
|
2931
|
+
length: {
|
|
2932
|
+
type: NumberConstructor;
|
|
2933
|
+
default: number;
|
|
2934
|
+
};
|
|
2935
|
+
/** 单格字符类型 */
|
|
2936
|
+
type: {
|
|
2937
|
+
type: PropType<"numeric" | "alphanumeric" | undefined>;
|
|
2938
|
+
default: any;
|
|
2939
|
+
};
|
|
2940
|
+
otp: {
|
|
2941
|
+
type: PropType<boolean | undefined>;
|
|
2942
|
+
default: any;
|
|
2943
|
+
};
|
|
2944
|
+
mask: {
|
|
2945
|
+
type: PropType<boolean | undefined>;
|
|
2946
|
+
default: any;
|
|
2947
|
+
};
|
|
2948
|
+
autoSubmit: {
|
|
2949
|
+
type: PropType<boolean | undefined>;
|
|
2950
|
+
default: any;
|
|
2951
|
+
};
|
|
2952
|
+
blurOnComplete: {
|
|
2953
|
+
type: PropType<boolean | undefined>;
|
|
2954
|
+
default: any;
|
|
2955
|
+
};
|
|
2956
|
+
placeholder: {
|
|
2957
|
+
type: StringConstructor;
|
|
2958
|
+
default: any;
|
|
2959
|
+
};
|
|
2960
|
+
disabled: {
|
|
2961
|
+
type: PropType<boolean | undefined>;
|
|
2962
|
+
default: any;
|
|
2963
|
+
};
|
|
2964
|
+
invalid: {
|
|
2965
|
+
type: PropType<boolean | undefined>;
|
|
2966
|
+
default: any;
|
|
2967
|
+
};
|
|
2968
|
+
class: {
|
|
2969
|
+
type: StringConstructor;
|
|
2970
|
+
default: any;
|
|
2971
|
+
};
|
|
2972
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2973
|
+
"update:modelValue": (value: string[]) => any;
|
|
2974
|
+
complete: (value: string[]) => any;
|
|
2975
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2976
|
+
/** 受控值:每格一个元素的数组;undefined 走内部非受控 */
|
|
702
2977
|
modelValue: {
|
|
703
|
-
type: PropType<string | undefined>;
|
|
2978
|
+
type: PropType<string[] | undefined>;
|
|
704
2979
|
default: any;
|
|
705
2980
|
};
|
|
706
|
-
|
|
2981
|
+
/** 格数(默认 4) */
|
|
2982
|
+
length: {
|
|
2983
|
+
type: NumberConstructor;
|
|
2984
|
+
default: number;
|
|
2985
|
+
};
|
|
2986
|
+
/** 单格字符类型 */
|
|
2987
|
+
type: {
|
|
2988
|
+
type: PropType<"numeric" | "alphanumeric" | undefined>;
|
|
2989
|
+
default: any;
|
|
2990
|
+
};
|
|
2991
|
+
otp: {
|
|
2992
|
+
type: PropType<boolean | undefined>;
|
|
2993
|
+
default: any;
|
|
2994
|
+
};
|
|
2995
|
+
mask: {
|
|
2996
|
+
type: PropType<boolean | undefined>;
|
|
2997
|
+
default: any;
|
|
2998
|
+
};
|
|
2999
|
+
autoSubmit: {
|
|
3000
|
+
type: PropType<boolean | undefined>;
|
|
3001
|
+
default: any;
|
|
3002
|
+
};
|
|
3003
|
+
blurOnComplete: {
|
|
3004
|
+
type: PropType<boolean | undefined>;
|
|
3005
|
+
default: any;
|
|
3006
|
+
};
|
|
3007
|
+
placeholder: {
|
|
3008
|
+
type: StringConstructor;
|
|
3009
|
+
default: any;
|
|
3010
|
+
};
|
|
3011
|
+
disabled: {
|
|
3012
|
+
type: PropType<boolean | undefined>;
|
|
3013
|
+
default: any;
|
|
3014
|
+
};
|
|
3015
|
+
invalid: {
|
|
3016
|
+
type: PropType<boolean | undefined>;
|
|
3017
|
+
default: any;
|
|
3018
|
+
};
|
|
3019
|
+
class: {
|
|
707
3020
|
type: StringConstructor;
|
|
708
3021
|
default: any;
|
|
709
3022
|
};
|
|
3023
|
+
}>> & Readonly<{
|
|
3024
|
+
"onUpdate:modelValue"?: (value: string[]) => any;
|
|
3025
|
+
onComplete?: (value: string[]) => any;
|
|
3026
|
+
}>, {
|
|
3027
|
+
length: number;
|
|
3028
|
+
disabled: boolean;
|
|
3029
|
+
invalid: boolean;
|
|
3030
|
+
class: string;
|
|
3031
|
+
type: "numeric" | "alphanumeric";
|
|
3032
|
+
modelValue: string[];
|
|
3033
|
+
placeholder: string;
|
|
3034
|
+
otp: boolean;
|
|
3035
|
+
mask: boolean;
|
|
3036
|
+
autoSubmit: boolean;
|
|
3037
|
+
blurOnComplete: boolean;
|
|
3038
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3039
|
+
declare const __VLS_export$11: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
|
|
3040
|
+
declare const _default$29: typeof __VLS_export$11;
|
|
3041
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
3042
|
+
new (): {
|
|
3043
|
+
$slots: S;
|
|
3044
|
+
};
|
|
3045
|
+
};
|
|
3046
|
+
//#endregion
|
|
3047
|
+
//#region src/components/popover/Popover.vue.d.ts
|
|
3048
|
+
/** 面板相对触发器的对齐方向 */
|
|
3049
|
+
type Align = "start" | "center" | "end";
|
|
3050
|
+
declare var __VLS_16$1: {}, __VLS_30$1: {};
|
|
3051
|
+
type __VLS_Slots$6 = {} & {
|
|
3052
|
+
default?: (props: typeof __VLS_16$1) => any;
|
|
3053
|
+
} & {
|
|
3054
|
+
content?: (props: typeof __VLS_30$1) => any;
|
|
3055
|
+
};
|
|
3056
|
+
declare const __VLS_base$6: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3057
|
+
/** 受控开关(配合 v-model:open);不传时为非受控 */
|
|
710
3058
|
open: {
|
|
711
3059
|
type: PropType<boolean | undefined>;
|
|
712
3060
|
default: any;
|
|
713
3061
|
};
|
|
3062
|
+
/** 非受控时的初始开关 */
|
|
714
3063
|
defaultOpen: {
|
|
715
3064
|
type: BooleanConstructor;
|
|
716
3065
|
default: boolean;
|
|
717
3066
|
};
|
|
3067
|
+
/** 首次展开才挂载面板内容 */
|
|
718
3068
|
lazyMount: {
|
|
719
3069
|
type: BooleanConstructor;
|
|
720
3070
|
default: boolean;
|
|
721
3071
|
};
|
|
3072
|
+
/** 收起时卸载面板内容 */
|
|
722
3073
|
unmountOnExit: {
|
|
723
3074
|
type: BooleanConstructor;
|
|
724
3075
|
default: boolean;
|
|
725
3076
|
};
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
/** 选项列表(构建键盘导航/回显所需的 collection) */
|
|
731
|
-
items: {
|
|
732
|
-
type: PropType<(string | SelectItemOption)[]>;
|
|
733
|
-
required: true;
|
|
3077
|
+
/** 面板相对触发器的对齐方向(默认居中);attrs.positioning.placement 显式给出时以其为准 */
|
|
3078
|
+
align: {
|
|
3079
|
+
type: PropType<Align>;
|
|
3080
|
+
default: string;
|
|
734
3081
|
};
|
|
735
|
-
/**
|
|
736
|
-
|
|
737
|
-
type:
|
|
3082
|
+
/** 追加/覆盖面板样式类(默认 w-72 可由此覆盖,如 "w-56 p-0") */
|
|
3083
|
+
contentClass: {
|
|
3084
|
+
type: StringConstructor;
|
|
738
3085
|
default: any;
|
|
739
3086
|
};
|
|
740
|
-
|
|
741
|
-
|
|
3087
|
+
/** 透传到面板根元素上的属性(id/style/data-* 等,class 请用 contentClass) */
|
|
3088
|
+
contentProps: {
|
|
3089
|
+
type: PropType<Record<string, unknown>>;
|
|
742
3090
|
default: any;
|
|
743
3091
|
};
|
|
3092
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3093
|
+
"update:open": (open: boolean) => any;
|
|
3094
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3095
|
+
/** 受控开关(配合 v-model:open);不传时为非受控 */
|
|
744
3096
|
open: {
|
|
745
3097
|
type: PropType<boolean | undefined>;
|
|
746
3098
|
default: any;
|
|
747
3099
|
};
|
|
3100
|
+
/** 非受控时的初始开关 */
|
|
748
3101
|
defaultOpen: {
|
|
749
3102
|
type: BooleanConstructor;
|
|
750
3103
|
default: boolean;
|
|
751
3104
|
};
|
|
3105
|
+
/** 首次展开才挂载面板内容 */
|
|
752
3106
|
lazyMount: {
|
|
753
3107
|
type: BooleanConstructor;
|
|
754
3108
|
default: boolean;
|
|
755
3109
|
};
|
|
3110
|
+
/** 收起时卸载面板内容 */
|
|
756
3111
|
unmountOnExit: {
|
|
757
3112
|
type: BooleanConstructor;
|
|
758
3113
|
default: boolean;
|
|
759
3114
|
};
|
|
3115
|
+
/** 面板相对触发器的对齐方向(默认居中);attrs.positioning.placement 显式给出时以其为准 */
|
|
3116
|
+
align: {
|
|
3117
|
+
type: PropType<Align>;
|
|
3118
|
+
default: string;
|
|
3119
|
+
};
|
|
3120
|
+
/** 追加/覆盖面板样式类(默认 w-72 可由此覆盖,如 "w-56 p-0") */
|
|
3121
|
+
contentClass: {
|
|
3122
|
+
type: StringConstructor;
|
|
3123
|
+
default: any;
|
|
3124
|
+
};
|
|
3125
|
+
/** 透传到面板根元素上的属性(id/style/data-* 等,class 请用 contentClass) */
|
|
3126
|
+
contentProps: {
|
|
3127
|
+
type: PropType<Record<string, unknown>>;
|
|
3128
|
+
default: any;
|
|
3129
|
+
};
|
|
760
3130
|
}>> & Readonly<{
|
|
761
|
-
"onUpdate:modelValue"?: (value: string) => any;
|
|
762
3131
|
"onUpdate:open"?: (open: boolean) => any;
|
|
763
3132
|
}>, {
|
|
764
|
-
modelValue: string;
|
|
765
|
-
defaultValue: string;
|
|
766
3133
|
open: boolean;
|
|
767
3134
|
defaultOpen: boolean;
|
|
768
3135
|
lazyMount: boolean;
|
|
769
3136
|
unmountOnExit: boolean;
|
|
3137
|
+
contentClass: string;
|
|
3138
|
+
contentProps: Record<string, unknown>;
|
|
3139
|
+
align: Align;
|
|
770
3140
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
771
|
-
declare const __VLS_export$
|
|
772
|
-
declare const _default$
|
|
773
|
-
type __VLS_WithSlots$
|
|
774
|
-
new (): {
|
|
775
|
-
$slots: S;
|
|
776
|
-
};
|
|
777
|
-
};
|
|
778
|
-
//#endregion
|
|
779
|
-
//#region src/components/select/SelectContent.vue.d.ts
|
|
780
|
-
interface Props$9 {
|
|
781
|
-
class?: string;
|
|
782
|
-
}
|
|
783
|
-
declare var __VLS_14$2: {};
|
|
784
|
-
type __VLS_Slots$9 = {} & {
|
|
785
|
-
default?: (props: typeof __VLS_14$2) => any;
|
|
786
|
-
};
|
|
787
|
-
declare const __VLS_base$9: import("vue").DefineComponent<Props$9, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$9> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
788
|
-
declare const __VLS_export$14: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
|
|
789
|
-
declare const _default$30: typeof __VLS_export$14;
|
|
790
|
-
type __VLS_WithSlots$9<T, S> = T & {
|
|
791
|
-
new (): {
|
|
792
|
-
$slots: S;
|
|
793
|
-
};
|
|
794
|
-
};
|
|
795
|
-
//#endregion
|
|
796
|
-
//#region src/components/select/SelectItem.vue.d.ts
|
|
797
|
-
declare const __VLS_export$13: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
798
|
-
item: {
|
|
799
|
-
type: PropType<string | SelectItemOption>;
|
|
800
|
-
required: true;
|
|
801
|
-
};
|
|
802
|
-
class: {
|
|
803
|
-
type: StringConstructor;
|
|
804
|
-
default: any;
|
|
805
|
-
};
|
|
806
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
807
|
-
item: {
|
|
808
|
-
type: PropType<string | SelectItemOption>;
|
|
809
|
-
required: true;
|
|
810
|
-
};
|
|
811
|
-
class: {
|
|
812
|
-
type: StringConstructor;
|
|
813
|
-
default: any;
|
|
814
|
-
};
|
|
815
|
-
}>> & Readonly<{}>, {
|
|
816
|
-
class: string;
|
|
817
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
818
|
-
declare const _default$31: typeof __VLS_export$13;
|
|
819
|
-
//#endregion
|
|
820
|
-
//#region src/components/select/SelectTrigger.vue.d.ts
|
|
821
|
-
interface Props$8 {
|
|
822
|
-
/** 以默认插槽子元素为渲染目标(chevron 需自行放置) */
|
|
823
|
-
asChild?: boolean;
|
|
824
|
-
class?: string;
|
|
825
|
-
}
|
|
826
|
-
declare var __VLS_14$1: {};
|
|
827
|
-
type __VLS_Slots$8 = {} & {
|
|
828
|
-
default?: (props: typeof __VLS_14$1) => any;
|
|
829
|
-
};
|
|
830
|
-
declare const __VLS_base$8: import("vue").DefineComponent<Props$8, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$8> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
831
|
-
declare const __VLS_export$12: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
|
|
832
|
-
declare const _default$32: typeof __VLS_export$12;
|
|
833
|
-
type __VLS_WithSlots$8<T, S> = T & {
|
|
3141
|
+
declare const __VLS_export$10: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
|
|
3142
|
+
declare const _default$30: typeof __VLS_export$10;
|
|
3143
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
834
3144
|
new (): {
|
|
835
3145
|
$slots: S;
|
|
836
3146
|
};
|
|
837
3147
|
};
|
|
838
3148
|
//#endregion
|
|
839
|
-
//#region src/components/select/SelectValueText.vue.d.ts
|
|
840
|
-
interface Props$7 {
|
|
841
|
-
placeholder?: string;
|
|
842
|
-
}
|
|
843
|
-
declare const __VLS_export$11: import("vue").DefineComponent<Props$7, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$7> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
844
|
-
declare const _default$33: typeof __VLS_export$11;
|
|
845
|
-
//#endregion
|
|
846
3149
|
//#region src/components/separator/Separator.vue.d.ts
|
|
847
|
-
interface Props$
|
|
3150
|
+
interface Props$2 {
|
|
848
3151
|
orientation?: "horizontal" | "vertical";
|
|
849
3152
|
class?: string;
|
|
850
3153
|
}
|
|
851
|
-
declare const __VLS_export$
|
|
3154
|
+
declare const __VLS_export$9: import("vue").DefineComponent<Props$2, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$2> & Readonly<{}>, {
|
|
852
3155
|
orientation: "horizontal" | "vertical";
|
|
853
3156
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
854
|
-
declare const _default$34: typeof __VLS_export$
|
|
3157
|
+
declare const _default$34: typeof __VLS_export$9;
|
|
855
3158
|
//#endregion
|
|
856
3159
|
//#region src/components/skeleton/Skeleton.vue.d.ts
|
|
857
|
-
type __VLS_Props$
|
|
3160
|
+
type __VLS_Props$4 = {
|
|
858
3161
|
class?: string;
|
|
859
3162
|
};
|
|
860
|
-
declare const __VLS_export$
|
|
861
|
-
declare const _default$35: typeof __VLS_export$
|
|
3163
|
+
declare const __VLS_export$8: import("vue").DefineComponent<__VLS_Props$4, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$4> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3164
|
+
declare const _default$35: typeof __VLS_export$8;
|
|
862
3165
|
//#endregion
|
|
863
3166
|
//#region src/components/slot/Slot.d.ts
|
|
864
3167
|
/**
|
|
@@ -878,171 +3181,588 @@ export declare const Slot: import("vue").DefineComponent<{}, () => VNode<import(
|
|
|
878
3181
|
[key: string]: any;
|
|
879
3182
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
880
3183
|
//#endregion
|
|
881
|
-
//#region src/components/
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
3184
|
+
//#region src/components/table-render/column-renders.d.ts
|
|
3185
|
+
/** 单元格渲染器:与 TableColumnOptions.render 同签名(column 用于读取字段值) */
|
|
3186
|
+
type ColumnRender<T extends DataRecord> = (record: T, index: number, column: TableColumnOptions<T>) => VNodeChild;
|
|
3187
|
+
type DictEntryVariant = BadgeVariants["variant"];
|
|
3188
|
+
type DictColumnMapping = Record<string | number, string | {
|
|
3189
|
+
label: string;
|
|
3190
|
+
variant?: DictEntryVariant;
|
|
3191
|
+
}>;
|
|
3192
|
+
interface DictColumnOptions {
|
|
3193
|
+
/** 整列统一 Badge 形态;条目级 variant 优先 */
|
|
3194
|
+
badge?: DictEntryVariant | true;
|
|
3195
|
+
}
|
|
3196
|
+
/** 日期模式串(迷你令牌 yyyy MM dd HH mm ss),如 "yyyy-MM-dd HH:mm" */
|
|
3197
|
+
type DateColumnPattern = string;
|
|
3198
|
+
interface SerialColumnOptions {
|
|
3199
|
+
/** 起始序号,默认 1 */
|
|
3200
|
+
base?: number;
|
|
3201
|
+
}
|
|
3202
|
+
interface TableActionButton<T extends DataRecord> {
|
|
3203
|
+
text: string | ((record: T, index: number) => string);
|
|
3204
|
+
onClick?: (record: T, index: number) => void;
|
|
3205
|
+
variant?: ButtonVariants["variant"];
|
|
3206
|
+
disabled?: (record: T, index: number) => boolean;
|
|
3207
|
+
}
|
|
3208
|
+
interface ColumnRenders<T extends DataRecord> {
|
|
3209
|
+
/** 逃逸口:自定义渲染器与内置同一范式(对齐 x-render renderRenderColumn) */
|
|
3210
|
+
render: (fn: ColumnRender<T>) => ColumnRender<T>;
|
|
3211
|
+
dict: (mapping: DictColumnMapping, options?: DictColumnOptions) => ColumnRender<T>;
|
|
3212
|
+
date: (pattern?: DateColumnPattern) => ColumnRender<T>;
|
|
3213
|
+
currency: (currency?: string, locale?: string) => ColumnRender<T>;
|
|
3214
|
+
serial: (base?: number) => ColumnRender<T>;
|
|
3215
|
+
button: (items: Array<TableActionButton<T> | string>) => ColumnRender<T>;
|
|
3216
|
+
}
|
|
3217
|
+
/**
|
|
3218
|
+
* 内置列渲染器工厂(对标 x-render table-columns,v1:dict/date/currency/serial/button)。
|
|
3219
|
+
* 返回值直接填入 TableColumnOptions.render;column 参数用于读取字段值。
|
|
3220
|
+
* 与 FormRender widget 的 r.xxx() 范式共词根(D10)。
|
|
3221
|
+
*/
|
|
3222
|
+
export declare function columnRenders<T extends DataRecord>(): ColumnRenders<T>;
|
|
901
3223
|
//#endregion
|
|
902
|
-
//#region src/components/
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
3224
|
+
//#region src/components/table-render/types.d.ts
|
|
3225
|
+
/** 任意数据行(表格是弱类型数据容器,行结构由调用方的 T 决定) */
|
|
3226
|
+
interface DataRecord {
|
|
3227
|
+
[key: string]: any;
|
|
3228
|
+
}
|
|
3229
|
+
/**
|
|
3230
|
+
* 列配置。
|
|
3231
|
+
*
|
|
3232
|
+
* 命名总纲(D10):能力/性质用 `-able` 形容词(sortable/ellipsis),
|
|
3233
|
+
* 配置值用名词(title/align/width),无 `allow-*`。
|
|
3234
|
+
*/
|
|
3235
|
+
interface TableColumnOptions<T extends DataRecord = DataRecord> {
|
|
3236
|
+
/** 列标识,同时作为默认取值字段 */
|
|
3237
|
+
key: string;
|
|
3238
|
+
title: string;
|
|
3239
|
+
align?: "left" | "center" | "right";
|
|
3240
|
+
width?: number | string;
|
|
3241
|
+
/** 自定义单元格渲染,取值链 render > formatter > record[key](R17) */
|
|
3242
|
+
render?: (r: ColumnRenders<T>) => ColumnRender<T>;
|
|
3243
|
+
/** 纯数据格式化;render 存在时被忽略 */
|
|
3244
|
+
formatter?: (record: T) => string | number | Date | undefined;
|
|
3245
|
+
/** 超宽截断 + 原生 title 提示(R15);"tooltip" 形态改用库内 Tooltip(不设原生 title) */
|
|
3246
|
+
ellipsis?: boolean | "tooltip";
|
|
3247
|
+
/** 是否可排序(能力开关) */
|
|
3248
|
+
sortable?: boolean;
|
|
3249
|
+
/** 初始排序方向;需 sortable: true,否则 DEV 警告并忽略(R7) */
|
|
3250
|
+
defaultSort?: "asc" | "desc";
|
|
3251
|
+
/** 固定列:横向滚动时 sticky 在左/右;须同时提供数字 width,否则 DEV 警告并按普通列渲染 */
|
|
3252
|
+
fixed?: "left" | "right";
|
|
3253
|
+
}
|
|
3254
|
+
interface PageableOptions {
|
|
3255
|
+
/** 1-based 页码(对外 API 唯一口径) */
|
|
3256
|
+
pageIndex: number;
|
|
3257
|
+
pageSize: number;
|
|
3258
|
+
total: number;
|
|
3259
|
+
/** 只读:状态投影不允许调用方直接改写每页条数选项 */
|
|
3260
|
+
pageSizeOpts: readonly number[];
|
|
3261
|
+
}
|
|
3262
|
+
interface SortableOptions {
|
|
3263
|
+
key: string;
|
|
3264
|
+
direction: "asc" | "desc";
|
|
3265
|
+
}
|
|
3266
|
+
/** onLoad 入参:数据协议与 x-render 同构,request 生态由调用方自理 */
|
|
3267
|
+
interface TableLoadParams<T extends DataRecord = DataRecord> {
|
|
3268
|
+
/** 搜索表单值(来自 options.search 的表单当前值);未配置 search 时为 {} */
|
|
3269
|
+
form: DataRecord;
|
|
3270
|
+
page: PageableOptions;
|
|
3271
|
+
/** 无排序或已取消排序时为 undefined */
|
|
3272
|
+
sort?: SortableOptions;
|
|
3273
|
+
/** 回写数据;total 缺省时保留旧值(R10) */
|
|
3274
|
+
update: (data: T[], total?: number) => void;
|
|
3275
|
+
}
|
|
3276
|
+
/** defineTable 的声明式配置 */
|
|
3277
|
+
interface DefineTableOptions<T extends DataRecord = DataRecord> {
|
|
3278
|
+
columns: TableColumnOptions<T>[];
|
|
3279
|
+
/** 服务端模式数据源;与 data 二选一,onLoad 优先 */
|
|
3280
|
+
onLoad?: (params: TableLoadParams<T>) => void | Promise<unknown>;
|
|
3281
|
+
/** 静态模式数据源(本地分页/排序) */
|
|
3282
|
+
data?: T[];
|
|
3283
|
+
/** 是否在挂载后自动加载,默认 true;仅服务端模式生效 */
|
|
3284
|
+
autoLoad?: boolean;
|
|
3285
|
+
/**
|
|
3286
|
+
* 每页条数 / 受控每页条数(D11)。约定:传入(非 undefined)即受控,缺省(undefined)时
|
|
3287
|
+
* 以默认 10 行运行;R9 归位:pageIndex 未受控时内部归位第 1 页并经 update:page-index 通知,
|
|
3288
|
+
* 两个都受控时由父层自行联动。支持传 ref/getter(聚合式受控)
|
|
3289
|
+
*/
|
|
3290
|
+
pageSize?: MaybeRefOrGetter<number | undefined>;
|
|
3291
|
+
pageSizeOpts?: number[];
|
|
3292
|
+
/** 行选择:radio 单选 / checkbox 多选;字符串为简写(S2) */
|
|
3293
|
+
rowSelection?: "radio" | "checkbox" | TableSelectionOptions<T>;
|
|
3294
|
+
/** 行主键字段;rowSelection 启用且此值无效时禁用选择(S1) */
|
|
3295
|
+
rowKey?: string;
|
|
3296
|
+
/**
|
|
3297
|
+
* 搜索表单(defineForm 返回值):仅服务端模式生效,每次 onLoad 的 form 参数
|
|
3298
|
+
* 携带 `search.form.state.values` 当前值。静态模式传入时 DEV 警告并忽略。
|
|
3299
|
+
* 泛型为 any:FormRenderDefinition 对 T 不变(FormRenderItem.key 字面量收窄),
|
|
3300
|
+
* DataRecord 版会拒收一切具体 defineForm<Q> 结果(对齐 FormRender.vue prop 约定)。
|
|
3301
|
+
*/
|
|
3302
|
+
search?: FormRenderDefinition<any>;
|
|
3303
|
+
/** 虚拟滚动:开启后表体行在当前页行窗口内虚拟化(分页语义不变);须同时配置 height,否则 DEV 警告并降级普通渲染 */
|
|
3304
|
+
virtual?: boolean;
|
|
3305
|
+
/** 虚拟滚动容器高度(数字 px 或 CSS 高度);仅 virtual: true 时生效 */
|
|
3306
|
+
height?: number | string;
|
|
3307
|
+
/** 树形数据:子行展开/收起(展开按钮在首个业务列内);配置无效时 DEV 警告并忽略 */
|
|
3308
|
+
tree?: TreeOptions;
|
|
3309
|
+
/**
|
|
3310
|
+
* 受控页码(1-based,D11)。约定:传入(非 undefined)即受控,缺省保持非受控;
|
|
3311
|
+
* 内部翻页经 update:page-index 通知,外部变更经受控 watch 同步(语义等值跳过,防回弹循环)
|
|
3312
|
+
*/
|
|
3313
|
+
pageIndex?: MaybeRefOrGetter<number | undefined>;
|
|
3314
|
+
/** 受控排序。内部/外部变化均经 sort-change 通知;指向不可排序列时 DEV 警告并忽略 */
|
|
3315
|
+
sort?: MaybeRefOrGetter<SortableOptions | undefined>;
|
|
3316
|
+
/** 受控选中集(数组,与 update:selected-keys 载荷同构)。经 setSelection 写入(S5 过滤/S12 待定 key 继承) */
|
|
3317
|
+
selectedKeys?: MaybeRefOrGetter<Array<string | number> | undefined>;
|
|
3318
|
+
/**
|
|
3319
|
+
* 列显隐:默认可见列集(R21「重置」基准;未知 key 静默忽略;未传 = 全部可见)。
|
|
3320
|
+
* 列显隐不触发 onLoad、不重置 pageIndex/sort/selectedKeys(R25)
|
|
3321
|
+
*/
|
|
3322
|
+
columnVisibility?: ColumnVisibilityOptions;
|
|
3323
|
+
/**
|
|
3324
|
+
* 受控可见列 key(columns 原序子集)。约定:传入(非 undefined)即受控;
|
|
3325
|
+
* 内部显隐经 update:visible-keys 通知;空数组钳制为首列可见(R24,warn 一次)
|
|
3326
|
+
*/
|
|
3327
|
+
visibleKeys?: MaybeRefOrGetter<string[] | undefined>;
|
|
3328
|
+
/**
|
|
3329
|
+
* 拆分式默认可见列集;与聚合式 columnVisibility.defaultVisibleKeys 同传时
|
|
3330
|
+
* DEV 警告 definition 优先(R26)
|
|
3331
|
+
*/
|
|
3332
|
+
defaultVisibleKeys?: MaybeRefOrGetter<string[] | undefined>;
|
|
3333
|
+
}
|
|
3334
|
+
/** 树形数据配置(T 系列) */
|
|
3335
|
+
interface TreeOptions {
|
|
3336
|
+
/** 子行字段名,默认 "children" */
|
|
3337
|
+
childrenKey?: string;
|
|
3338
|
+
/** 默认全部展开,默认 false */
|
|
3339
|
+
defaultExpandAll?: boolean;
|
|
3340
|
+
/** 每层缩进 px,默认 16 */
|
|
3341
|
+
indentSize?: number;
|
|
3342
|
+
}
|
|
3343
|
+
/** 列显隐配置(R20–R24) */
|
|
3344
|
+
interface ColumnVisibilityOptions {
|
|
3345
|
+
/** 默认可见列 key 列表(R21「重置」基准);未知 key 静默忽略;未传 = 全部可见 */
|
|
3346
|
+
defaultVisibleKeys?: string[];
|
|
3347
|
+
}
|
|
3348
|
+
/** 行选择配置(S 系列) */
|
|
3349
|
+
interface TableSelectionOptions<T extends DataRecord = DataRecord> {
|
|
3350
|
+
type: "radio" | "checkbox";
|
|
3351
|
+
/** 选择列宽,默认 48 */
|
|
3352
|
+
width?: number;
|
|
3353
|
+
/** 行级可选过滤;false 的行选择控件置灰且被全选跳过(S5) */
|
|
3354
|
+
selectable?: (record: T) => boolean;
|
|
3355
|
+
/** radio 再点已选中行是否取消,默认 true(S4) */
|
|
3356
|
+
cancelable?: boolean;
|
|
3357
|
+
/** 翻页/重载后是否保留选中,默认 true(S6) */
|
|
3358
|
+
reserveOnPageChange?: boolean;
|
|
3359
|
+
}
|
|
3360
|
+
/** useTableRender 的入参:data 额外支持 ref/getter(拆分模式下 props 天然响应式) */
|
|
3361
|
+
interface UseTableRenderOptions<T extends DataRecord = DataRecord> extends Omit<DefineTableOptions<T>, "data"> {
|
|
3362
|
+
data?: MaybeRefOrGetter<T[] | undefined>;
|
|
3363
|
+
}
|
|
3364
|
+
/** defineTable / useTableRender 的返回物:列配置 + 引擎实例 + 只读状态 + 实例动作 */
|
|
3365
|
+
interface TableRenderDefinition<T extends DataRecord = DataRecord> {
|
|
3366
|
+
columns: TableColumnOptions<T>[];
|
|
3367
|
+
/** TanStack 表格实例(逃逸舱口) */
|
|
3368
|
+
table: Table<T>;
|
|
3369
|
+
page: Readonly<PageableOptions>;
|
|
3370
|
+
sort: Readonly<{
|
|
3371
|
+
value: SortableOptions | undefined;
|
|
3372
|
+
}>;
|
|
3373
|
+
loading: Readonly<{
|
|
3374
|
+
value: boolean;
|
|
3375
|
+
}>;
|
|
3376
|
+
/** 重新加载;resetPage 为 true 时先回到第 1 页(R12) */
|
|
3377
|
+
reload: (resetPage?: boolean) => void;
|
|
3378
|
+
/** 排序三态切换:无 → asc → desc → 取消(R8) */
|
|
3379
|
+
toggleSort: (key: string) => void;
|
|
3380
|
+
setPageIndex: (pageIndex: number) => void;
|
|
3381
|
+
setPageSize: (pageSize: number) => void;
|
|
3382
|
+
/** 选中行快照(含跨页保留行;跨页行可能为过期数据,见 S6) */
|
|
3383
|
+
selection: Readonly<{
|
|
3384
|
+
value: T[];
|
|
3385
|
+
/** rowSelection 配置有效(含 rowKey 就绪)时为 true(S1) */
|
|
3386
|
+
enabled: boolean;
|
|
3387
|
+
type: "radio" | "checkbox";
|
|
3388
|
+
width: number;
|
|
3389
|
+
}>;
|
|
3390
|
+
/** 选中主键集合;每次选中集变化替换为新 Set(S7) */
|
|
3391
|
+
selectedKeys: Readonly<Ref<Set<string | number>>>;
|
|
3392
|
+
/** 程序化设置选中集;不存在的 key 保留(S12) */
|
|
3393
|
+
setSelection: (keys: Array<string | number>) => void;
|
|
3394
|
+
clearSelection: () => void;
|
|
3395
|
+
/** 行控件切换:checked 为 false 时移除(radio 受 cancelable 约束,S4) */
|
|
3396
|
+
toggleRowSelected: (key: string, checked: boolean) => void;
|
|
3397
|
+
/** 搜索表单定义(options.search 校验后的回传,供 TableRender 渲染搜索区;被忽略时为 undefined) */
|
|
3398
|
+
search: FormRenderDefinition<any> | undefined;
|
|
3399
|
+
/** 内部装配口:definition 未配置 search 时由 TableRender 回填组件 prop(对齐 setRowKey) */
|
|
3400
|
+
setSearch: (search: FormRenderDefinition<any> | undefined) => void;
|
|
3401
|
+
/** 虚拟滚动配置透传(未配置为 undefined),供组件渲染层判定(definition 优先于 prop) */
|
|
3402
|
+
virtual: boolean | undefined;
|
|
3403
|
+
/** 虚拟滚动容器高度配置透传(仅 virtual: true 时被组件使用) */
|
|
3404
|
+
height: number | string | undefined;
|
|
3405
|
+
/** 树形配置(引擎校验后的回传,供组件读取 indentSize;无效配置被忽略时为 undefined) */
|
|
3406
|
+
tree: TreeOptions | undefined;
|
|
3407
|
+
/** 最近一次 onLoad 失败的 Error(仅服务端模式产生);下一次 load 开始时清除 */
|
|
3408
|
+
error: Readonly<Ref<Error | undefined>>;
|
|
3409
|
+
/** 可见列 key(columns 原序子集);受控/非受控统一投影 */
|
|
3410
|
+
visibleKeys: Readonly<Ref<readonly string[]>>;
|
|
3411
|
+
/** 列显隐动作:规范化(未知忽略、columns 原序、空钳制为首列 R24)后更新 */
|
|
3412
|
+
setVisibleKeys: (keys: string[]) => void;
|
|
3413
|
+
/** 解析后的默认可见集(R21 重置基准;未配置为 undefined = 全部可见) */
|
|
3414
|
+
defaultVisibleKeys: string[] | undefined;
|
|
3415
|
+
/** 聚合式列显隐配置回传(拆分式为 undefined) */
|
|
3416
|
+
columnVisibility: ColumnVisibilityOptions | undefined;
|
|
3417
|
+
/** 内部装配口:拆分式由 TableRender 在 setup 时回填 rowKey(S1) */
|
|
3418
|
+
setRowKey: (rowKey: string | undefined) => void;
|
|
3419
|
+
}
|
|
3420
|
+
//#endregion
|
|
3421
|
+
//#region src/components/table-render/TableRender.vue.d.ts
|
|
3422
|
+
type __VLS_Slots$5 = {
|
|
3423
|
+
empty?: () => VNodeChild;
|
|
3424
|
+
/** 错误态占位(服务端模式 onLoad 失败时渲染,优先于数据区) */
|
|
3425
|
+
error?: (props: {
|
|
3426
|
+
error: Error | undefined;
|
|
3427
|
+
retry: () => void;
|
|
3428
|
+
}) => VNodeChild;
|
|
906
3429
|
};
|
|
907
|
-
declare
|
|
908
|
-
|
|
3430
|
+
declare function onSort(key: string): void;
|
|
3431
|
+
declare function onPageIndex(pageIndex: number): void;
|
|
3432
|
+
declare function onPageSize(pageSize: number): void;
|
|
3433
|
+
declare const __VLS_base$5: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3434
|
+
/** 聚合式(推荐):defineTable 返回的定义对象 */
|
|
3435
|
+
definition: {
|
|
3436
|
+
type: PropType<TableRenderDefinition<any>>;
|
|
3437
|
+
};
|
|
3438
|
+
/** 数据主键(记录缺字段时以行索引兜底) */
|
|
3439
|
+
rowKey: {
|
|
3440
|
+
type: StringConstructor;
|
|
3441
|
+
required: true;
|
|
3442
|
+
};
|
|
3443
|
+
/** 拆分式:与 definition 二选一,definition 优先 */
|
|
3444
|
+
columns: {
|
|
3445
|
+
type: PropType<TableColumnOptions[]>;
|
|
3446
|
+
};
|
|
3447
|
+
onLoad: {
|
|
3448
|
+
type: PropType<(params: TableLoadParams) => void | Promise<unknown>>;
|
|
3449
|
+
};
|
|
3450
|
+
data: {
|
|
3451
|
+
type: PropType<DataRecord[]>;
|
|
3452
|
+
};
|
|
3453
|
+
autoLoad: {
|
|
909
3454
|
type: PropType<boolean | undefined>;
|
|
910
3455
|
default: any;
|
|
911
3456
|
};
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
3457
|
+
/** 每页条数 / 受控每页条数(D11):传入即受控(pageIndex 未受控时 R9 归位内部处理并通知) */
|
|
3458
|
+
pageSize: {
|
|
3459
|
+
type: NumberConstructor;
|
|
915
3460
|
};
|
|
916
|
-
|
|
917
|
-
type:
|
|
918
|
-
default: boolean;
|
|
3461
|
+
pageSizeOpts: {
|
|
3462
|
+
type: PropType<number[]>;
|
|
919
3463
|
};
|
|
920
|
-
|
|
3464
|
+
loading: {
|
|
3465
|
+
type: PropType<boolean | undefined>;
|
|
3466
|
+
default: any;
|
|
3467
|
+
};
|
|
3468
|
+
emptyText: {
|
|
921
3469
|
type: StringConstructor;
|
|
3470
|
+
};
|
|
3471
|
+
/** 行选择(仅拆分式生效;聚合式请在 defineTable 配置):"radio" | "checkbox" | 对象 */
|
|
3472
|
+
rowSelection: {
|
|
3473
|
+
type: PropType<"radio" | "checkbox" | TableSelectionOptions>;
|
|
922
3474
|
default: any;
|
|
923
3475
|
};
|
|
924
|
-
|
|
925
|
-
|
|
3476
|
+
/** 搜索表单(defineForm 返回值):拆分式直接传;聚合式请在 defineTable 配置(definition 优先,同传 DEV 警告) */
|
|
3477
|
+
search: {
|
|
3478
|
+
type: PropType<FormRenderDefinition<any>>;
|
|
3479
|
+
};
|
|
3480
|
+
/** 虚拟滚动:开启后表体行虚拟化渲染;聚合式请在 defineTable 配置(definition 优先);须同时给 height */
|
|
3481
|
+
virtual: {
|
|
3482
|
+
type: PropType<boolean | undefined>;
|
|
3483
|
+
default: any;
|
|
3484
|
+
};
|
|
3485
|
+
/** 虚拟滚动容器高度(数字 px 或 CSS 高度);仅 virtual: true 时生效 */
|
|
3486
|
+
height: {
|
|
3487
|
+
type: PropType<number | string>;
|
|
3488
|
+
};
|
|
3489
|
+
/** 树形数据(子行展开/收起);拆分式直接传,聚合式请在 defineTable 配置 */
|
|
3490
|
+
tree: {
|
|
3491
|
+
type: PropType<TreeOptions>;
|
|
3492
|
+
};
|
|
3493
|
+
/** 受控页码(1-based):传入即受控,缺省非受控;内部翻页经 update:page-index 通知 */
|
|
3494
|
+
pageIndex: {
|
|
3495
|
+
type: NumberConstructor;
|
|
3496
|
+
};
|
|
3497
|
+
/** 受控排序:传入即受控;内部/外部变化均经 sort-change 通知 */
|
|
3498
|
+
sort: {
|
|
3499
|
+
type: PropType<SortableOptions>;
|
|
3500
|
+
};
|
|
3501
|
+
/** 受控选中集(数组,与 update:selected-keys 载荷同构):传入即受控 */
|
|
3502
|
+
selectedKeys: {
|
|
3503
|
+
type: PropType<Array<string | number>>;
|
|
3504
|
+
};
|
|
3505
|
+
/** 受控可见列 key(columns 原序子集):传入即受控;内部显隐经 update:visible-keys 通知 */
|
|
3506
|
+
visibleKeys: {
|
|
3507
|
+
type: PropType<string[]>;
|
|
3508
|
+
};
|
|
3509
|
+
/** 拆分式默认可见列集;与聚合式 columnVisibility.defaultVisibleKeys 同传时 DEV 警告(R26,definition 优先) */
|
|
3510
|
+
defaultVisibleKeys: {
|
|
3511
|
+
type: PropType<string[]>;
|
|
3512
|
+
};
|
|
3513
|
+
/** 列设置触发器/面板开关(默认 true);false 时不渲染 UI,受控 API 不受影响 */
|
|
3514
|
+
columnSettings: {
|
|
3515
|
+
type: PropType<boolean | undefined>;
|
|
3516
|
+
default: any;
|
|
3517
|
+
};
|
|
3518
|
+
}>, {
|
|
3519
|
+
table: import("@tanstack/vue-table").Table<DataRecord> | import("@tanstack/vue-table").Table<any>;
|
|
3520
|
+
page: Readonly<PageableOptions>;
|
|
3521
|
+
sort: Readonly<{
|
|
3522
|
+
value: SortableOptions | undefined;
|
|
3523
|
+
}>;
|
|
3524
|
+
loading: Readonly<{
|
|
3525
|
+
value: boolean;
|
|
3526
|
+
}>;
|
|
3527
|
+
error: Readonly<import("vue").Ref<Error, Error>>;
|
|
3528
|
+
visibleKeys: Readonly<import("vue").Ref<readonly string[], readonly string[]>>;
|
|
3529
|
+
setVisibleKeys: (keys: string[]) => void;
|
|
3530
|
+
reload: (resetPage?: boolean) => void;
|
|
3531
|
+
toggleSort: typeof onSort;
|
|
3532
|
+
setPageIndex: typeof onPageIndex;
|
|
3533
|
+
setPageSize: typeof onPageSize;
|
|
3534
|
+
selection: Readonly<{
|
|
3535
|
+
value: DataRecord[];
|
|
3536
|
+
enabled: boolean;
|
|
3537
|
+
type: "radio" | "checkbox";
|
|
3538
|
+
width: number;
|
|
3539
|
+
}> | Readonly<{
|
|
3540
|
+
value: any[];
|
|
3541
|
+
enabled: boolean;
|
|
3542
|
+
type: "radio" | "checkbox";
|
|
3543
|
+
width: number;
|
|
3544
|
+
}>;
|
|
3545
|
+
selectedKeys: Readonly<import("vue").Ref<Set<string | number>, Set<string | number>>>;
|
|
3546
|
+
setSelection: (keys: Array<string | number>) => void;
|
|
3547
|
+
clearSelection: () => void;
|
|
3548
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3549
|
+
search: (values: DataRecord) => any;
|
|
3550
|
+
reset: (values: DataRecord) => any;
|
|
3551
|
+
"update:page-index": (pageIndex: number) => any;
|
|
3552
|
+
"update:page-size": (pageSize: number) => any;
|
|
3553
|
+
"sort-change": (sort: SortableOptions) => any;
|
|
3554
|
+
"row-click": (record: DataRecord, index: number, event: MouseEvent) => any;
|
|
3555
|
+
"row-dblclick": (record: DataRecord, index: number, event: MouseEvent) => any;
|
|
3556
|
+
"row-contextmenu": (record: DataRecord, index: number, event: MouseEvent) => any;
|
|
3557
|
+
"cell-click": (record: DataRecord, columnKey: string, index: number, event: MouseEvent) => any;
|
|
3558
|
+
"selection-change": (rows: DataRecord[]) => any;
|
|
3559
|
+
"update:selected-keys": (keys: (string | number)[]) => any;
|
|
3560
|
+
"load-error": (error: Error) => any;
|
|
3561
|
+
"update:visible-keys": (keys: string[]) => any;
|
|
3562
|
+
"column-visibility-change": (keys: string[]) => any;
|
|
926
3563
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
927
|
-
|
|
3564
|
+
/** 聚合式(推荐):defineTable 返回的定义对象 */
|
|
3565
|
+
definition: {
|
|
3566
|
+
type: PropType<TableRenderDefinition<any>>;
|
|
3567
|
+
};
|
|
3568
|
+
/** 数据主键(记录缺字段时以行索引兜底) */
|
|
3569
|
+
rowKey: {
|
|
3570
|
+
type: StringConstructor;
|
|
3571
|
+
required: true;
|
|
3572
|
+
};
|
|
3573
|
+
/** 拆分式:与 definition 二选一,definition 优先 */
|
|
3574
|
+
columns: {
|
|
3575
|
+
type: PropType<TableColumnOptions[]>;
|
|
3576
|
+
};
|
|
3577
|
+
onLoad: {
|
|
3578
|
+
type: PropType<(params: TableLoadParams) => void | Promise<unknown>>;
|
|
3579
|
+
};
|
|
3580
|
+
data: {
|
|
3581
|
+
type: PropType<DataRecord[]>;
|
|
3582
|
+
};
|
|
3583
|
+
autoLoad: {
|
|
928
3584
|
type: PropType<boolean | undefined>;
|
|
929
3585
|
default: any;
|
|
930
3586
|
};
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
3587
|
+
/** 每页条数 / 受控每页条数(D11):传入即受控(pageIndex 未受控时 R9 归位内部处理并通知) */
|
|
3588
|
+
pageSize: {
|
|
3589
|
+
type: NumberConstructor;
|
|
934
3590
|
};
|
|
935
|
-
|
|
936
|
-
type:
|
|
937
|
-
default: boolean;
|
|
3591
|
+
pageSizeOpts: {
|
|
3592
|
+
type: PropType<number[]>;
|
|
938
3593
|
};
|
|
939
|
-
|
|
3594
|
+
loading: {
|
|
3595
|
+
type: PropType<boolean | undefined>;
|
|
3596
|
+
default: any;
|
|
3597
|
+
};
|
|
3598
|
+
emptyText: {
|
|
940
3599
|
type: StringConstructor;
|
|
3600
|
+
};
|
|
3601
|
+
/** 行选择(仅拆分式生效;聚合式请在 defineTable 配置):"radio" | "checkbox" | 对象 */
|
|
3602
|
+
rowSelection: {
|
|
3603
|
+
type: PropType<"radio" | "checkbox" | TableSelectionOptions>;
|
|
3604
|
+
default: any;
|
|
3605
|
+
};
|
|
3606
|
+
/** 搜索表单(defineForm 返回值):拆分式直接传;聚合式请在 defineTable 配置(definition 优先,同传 DEV 警告) */
|
|
3607
|
+
search: {
|
|
3608
|
+
type: PropType<FormRenderDefinition<any>>;
|
|
3609
|
+
};
|
|
3610
|
+
/** 虚拟滚动:开启后表体行虚拟化渲染;聚合式请在 defineTable 配置(definition 优先);须同时给 height */
|
|
3611
|
+
virtual: {
|
|
3612
|
+
type: PropType<boolean | undefined>;
|
|
3613
|
+
default: any;
|
|
3614
|
+
};
|
|
3615
|
+
/** 虚拟滚动容器高度(数字 px 或 CSS 高度);仅 virtual: true 时生效 */
|
|
3616
|
+
height: {
|
|
3617
|
+
type: PropType<number | string>;
|
|
3618
|
+
};
|
|
3619
|
+
/** 树形数据(子行展开/收起);拆分式直接传,聚合式请在 defineTable 配置 */
|
|
3620
|
+
tree: {
|
|
3621
|
+
type: PropType<TreeOptions>;
|
|
3622
|
+
};
|
|
3623
|
+
/** 受控页码(1-based):传入即受控,缺省非受控;内部翻页经 update:page-index 通知 */
|
|
3624
|
+
pageIndex: {
|
|
3625
|
+
type: NumberConstructor;
|
|
3626
|
+
};
|
|
3627
|
+
/** 受控排序:传入即受控;内部/外部变化均经 sort-change 通知 */
|
|
3628
|
+
sort: {
|
|
3629
|
+
type: PropType<SortableOptions>;
|
|
3630
|
+
};
|
|
3631
|
+
/** 受控选中集(数组,与 update:selected-keys 载荷同构):传入即受控 */
|
|
3632
|
+
selectedKeys: {
|
|
3633
|
+
type: PropType<Array<string | number>>;
|
|
3634
|
+
};
|
|
3635
|
+
/** 受控可见列 key(columns 原序子集):传入即受控;内部显隐经 update:visible-keys 通知 */
|
|
3636
|
+
visibleKeys: {
|
|
3637
|
+
type: PropType<string[]>;
|
|
3638
|
+
};
|
|
3639
|
+
/** 拆分式默认可见列集;与聚合式 columnVisibility.defaultVisibleKeys 同传时 DEV 警告(R26,definition 优先) */
|
|
3640
|
+
defaultVisibleKeys: {
|
|
3641
|
+
type: PropType<string[]>;
|
|
3642
|
+
};
|
|
3643
|
+
/** 列设置触发器/面板开关(默认 true);false 时不渲染 UI,受控 API 不受影响 */
|
|
3644
|
+
columnSettings: {
|
|
3645
|
+
type: PropType<boolean | undefined>;
|
|
941
3646
|
default: any;
|
|
942
3647
|
};
|
|
943
3648
|
}>> & Readonly<{
|
|
944
|
-
|
|
3649
|
+
onSearch?: (values: DataRecord) => any;
|
|
3650
|
+
onReset?: (values: DataRecord) => any;
|
|
3651
|
+
"onUpdate:page-index"?: (pageIndex: number) => any;
|
|
3652
|
+
"onUpdate:page-size"?: (pageSize: number) => any;
|
|
3653
|
+
"onSort-change"?: (sort: SortableOptions) => any;
|
|
3654
|
+
"onRow-click"?: (record: DataRecord, index: number, event: MouseEvent) => any;
|
|
3655
|
+
"onRow-dblclick"?: (record: DataRecord, index: number, event: MouseEvent) => any;
|
|
3656
|
+
"onRow-contextmenu"?: (record: DataRecord, index: number, event: MouseEvent) => any;
|
|
3657
|
+
"onCell-click"?: (record: DataRecord, columnKey: string, index: number, event: MouseEvent) => any;
|
|
3658
|
+
"onSelection-change"?: (rows: DataRecord[]) => any;
|
|
3659
|
+
"onUpdate:selected-keys"?: (keys: (string | number)[]) => any;
|
|
3660
|
+
"onLoad-error"?: (error: Error) => any;
|
|
3661
|
+
"onUpdate:visible-keys"?: (keys: string[]) => any;
|
|
3662
|
+
"onColumn-visibility-change"?: (keys: string[]) => any;
|
|
945
3663
|
}>, {
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
3664
|
+
loading: boolean;
|
|
3665
|
+
autoLoad: boolean;
|
|
3666
|
+
rowSelection: "radio" | "checkbox" | TableSelectionOptions<DataRecord>;
|
|
3667
|
+
virtual: boolean;
|
|
3668
|
+
columnSettings: boolean;
|
|
950
3669
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
951
|
-
declare const __VLS_export$7: __VLS_WithSlots$
|
|
952
|
-
declare const _default$
|
|
953
|
-
type __VLS_WithSlots$
|
|
3670
|
+
declare const __VLS_export$7: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
3671
|
+
declare const _default$39: typeof __VLS_export$7;
|
|
3672
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
954
3673
|
new (): {
|
|
955
3674
|
$slots: S;
|
|
956
3675
|
};
|
|
957
3676
|
};
|
|
958
3677
|
//#endregion
|
|
3678
|
+
//#region src/components/table-render/define-columns.d.ts
|
|
3679
|
+
/**
|
|
3680
|
+
* 列定义辅助:补全泛型推导,便于把列配置抽到独立文件。
|
|
3681
|
+
*
|
|
3682
|
+
* 纯类型辅助,原样返回入参——裸数组同样可直接传给 defineTable(无需此函数)。
|
|
3683
|
+
*/
|
|
3684
|
+
export declare function defineColumns<T extends DataRecord = DataRecord>(columns: TableColumnOptions<T>[]): TableColumnOptions<T>[];
|
|
3685
|
+
//#endregion
|
|
3686
|
+
//#region src/components/table-render/define-table.d.ts
|
|
3687
|
+
/**
|
|
3688
|
+
* 聚合入口:单次调用完成「列定义 + 数据内核 + 分页排序状态 + 实例动作」。
|
|
3689
|
+
*
|
|
3690
|
+
* 返回值直接传给 `<TableRender :definition="def" />`;
|
|
3691
|
+
* 须在组件 setup 中调用(TanStack useVueTable 约束)。
|
|
3692
|
+
*/
|
|
3693
|
+
export declare function defineTable<T extends DataRecord>(config: DefineTableOptions<T>): TableRenderDefinition<T>;
|
|
3694
|
+
//#endregion
|
|
3695
|
+
//#region src/components/table-render/useTableRender.d.ts
|
|
3696
|
+
/**
|
|
3697
|
+
* 表格数据内核:TanStack 无头引擎组装 + 1-based 对外投影 + 实例动作。
|
|
3698
|
+
*
|
|
3699
|
+
* 状态真相源是 TanStack 引擎(pageIndex 为 0-based),
|
|
3700
|
+
* `page`/`sort` 是对外的 1-based 只读投影,由 watch 同步。
|
|
3701
|
+
*/
|
|
3702
|
+
export declare function useTableRender<T extends DataRecord>(options: UseTableRenderOptions<T>): TableRenderDefinition<T>;
|
|
3703
|
+
//#endregion
|
|
959
3704
|
//#region src/components/tabs/Tabs.vue.d.ts
|
|
960
|
-
|
|
3705
|
+
/** 单个标签页配置项 */
|
|
3706
|
+
interface TabItem {
|
|
3707
|
+
/** 唯一标识,同时作为触发按钮与面板的 value */
|
|
3708
|
+
value: string;
|
|
3709
|
+
/** 触发按钮文案 */
|
|
3710
|
+
label: string;
|
|
3711
|
+
/** 是否禁用该标签(禁用项不参与键盘导航) */
|
|
3712
|
+
disabled?: boolean;
|
|
3713
|
+
/** 面板级覆盖:首次激活才挂载(缺省回落组件级 lazyMount) */
|
|
3714
|
+
lazyMount?: boolean;
|
|
3715
|
+
/** 面板级覆盖:切走即卸载(缺省回落组件级 unmountOnExit) */
|
|
3716
|
+
unmountOnExit?: boolean;
|
|
3717
|
+
/** 追加到触发按钮的样式类 */
|
|
3718
|
+
class?: string;
|
|
3719
|
+
}
|
|
3720
|
+
interface Props$1 {
|
|
3721
|
+
/** 标签页配置列表(必填) */
|
|
3722
|
+
items: TabItem[];
|
|
961
3723
|
/** 当前激活的 tab 值(配合 v-model:value);不传时为非受控 */
|
|
962
3724
|
value?: string;
|
|
963
3725
|
defaultValue?: string;
|
|
964
|
-
/** 切换模式:automatic
|
|
3726
|
+
/** 切换模式:automatic 聚焦即切换 / manual 需点击或 Enter */
|
|
965
3727
|
activationMode?: "automatic" | "manual";
|
|
3728
|
+
/** 组件级默认:面板首次激活才挂载(item.lazyMount 优先) */
|
|
966
3729
|
lazyMount?: boolean;
|
|
3730
|
+
/** 组件级默认:面板切走即卸载(item.unmountOnExit 优先) */
|
|
967
3731
|
unmountOnExit?: boolean;
|
|
968
3732
|
}
|
|
969
|
-
declare var
|
|
970
|
-
|
|
971
|
-
default?: (props: typeof __VLS_10$1) => any;
|
|
972
|
-
};
|
|
973
|
-
declare const __VLS_base$6: import("vue").DefineComponent<Props$5, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
974
|
-
"update:value": (value: string) => any;
|
|
975
|
-
}, string, import("vue").PublicProps, Readonly<Props$5> & Readonly<{
|
|
976
|
-
"onUpdate:value"?: (value: string) => any;
|
|
977
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
978
|
-
declare const __VLS_export$6: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
|
|
979
|
-
declare const _default$38: typeof __VLS_export$6;
|
|
980
|
-
type __VLS_WithSlots$6<T, S> = T & {
|
|
981
|
-
new (): {
|
|
982
|
-
$slots: S;
|
|
983
|
-
};
|
|
984
|
-
};
|
|
985
|
-
//#endregion
|
|
986
|
-
//#region src/components/tabs/TabsContent.vue.d.ts
|
|
987
|
-
interface Props$4 {
|
|
988
|
-
value: string;
|
|
989
|
-
class?: string;
|
|
990
|
-
}
|
|
991
|
-
declare var __VLS_8$3: {};
|
|
992
|
-
type __VLS_Slots$5 = {} & {
|
|
993
|
-
default?: (props: typeof __VLS_8$3) => any;
|
|
994
|
-
};
|
|
995
|
-
declare const __VLS_base$5: import("vue").DefineComponent<Props$4, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props$4> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
996
|
-
declare const __VLS_export$5: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
997
|
-
declare const _default$39: typeof __VLS_export$5;
|
|
998
|
-
type __VLS_WithSlots$5<T, S> = T & {
|
|
999
|
-
new (): {
|
|
1000
|
-
$slots: S;
|
|
1001
|
-
};
|
|
3733
|
+
declare var __VLS_28: {
|
|
3734
|
+
item: TabItem;
|
|
1002
3735
|
};
|
|
1003
|
-
//#endregion
|
|
1004
|
-
//#region src/components/tabs/TabsList.vue.d.ts
|
|
1005
|
-
interface Props$3 {
|
|
1006
|
-
class?: string;
|
|
1007
|
-
}
|
|
1008
|
-
declare var __VLS_8$2: {};
|
|
1009
3736
|
type __VLS_Slots$4 = {} & {
|
|
1010
|
-
|
|
3737
|
+
panel?: (props: typeof __VLS_28) => any;
|
|
1011
3738
|
};
|
|
1012
|
-
declare const __VLS_base$4: import("vue").DefineComponent<Props$
|
|
1013
|
-
|
|
1014
|
-
|
|
3739
|
+
declare const __VLS_base$4: import("vue").DefineComponent<Props$1, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3740
|
+
"update:value": (value: string) => any;
|
|
3741
|
+
}, string, import("vue").PublicProps, Readonly<Props$1> & Readonly<{
|
|
3742
|
+
"onUpdate:value"?: (value: string) => any;
|
|
3743
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3744
|
+
declare const __VLS_export$6: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
3745
|
+
declare const _default$40: typeof __VLS_export$6;
|
|
1015
3746
|
type __VLS_WithSlots$4<T, S> = T & {
|
|
1016
3747
|
new (): {
|
|
1017
3748
|
$slots: S;
|
|
1018
3749
|
};
|
|
1019
3750
|
};
|
|
1020
3751
|
//#endregion
|
|
1021
|
-
//#region src/components/
|
|
1022
|
-
|
|
1023
|
-
value: string;
|
|
1024
|
-
disabled?: boolean;
|
|
1025
|
-
class?: string;
|
|
1026
|
-
}
|
|
1027
|
-
declare var __VLS_8$1: {};
|
|
3752
|
+
//#region src/components/tooltip/Tooltip.vue.d.ts
|
|
3753
|
+
declare var __VLS_16: {}, __VLS_30: {};
|
|
1028
3754
|
type __VLS_Slots$3 = {} & {
|
|
1029
|
-
default?: (props: typeof
|
|
3755
|
+
default?: (props: typeof __VLS_16) => any;
|
|
3756
|
+
} & {
|
|
3757
|
+
content?: (props: typeof __VLS_30) => any;
|
|
1030
3758
|
};
|
|
1031
|
-
declare const __VLS_base$3: import("vue").DefineComponent<
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
type
|
|
1035
|
-
|
|
1036
|
-
$slots: S;
|
|
3759
|
+
declare const __VLS_base$3: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3760
|
+
/** 提示文字;#content 插槽可覆盖以渲染富内容 */
|
|
3761
|
+
content: {
|
|
3762
|
+
type: StringConstructor;
|
|
3763
|
+
default: any;
|
|
1037
3764
|
};
|
|
1038
|
-
|
|
1039
|
-
//#endregion
|
|
1040
|
-
//#region src/components/tooltip/Tooltip.vue.d.ts
|
|
1041
|
-
declare var __VLS_10: {};
|
|
1042
|
-
type __VLS_Slots$2 = {} & {
|
|
1043
|
-
default?: (props: typeof __VLS_10) => any;
|
|
1044
|
-
};
|
|
1045
|
-
declare const __VLS_base$2: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3765
|
+
/** 受控开关(配合 v-model:open);不传时为非受控 */
|
|
1046
3766
|
open: {
|
|
1047
3767
|
type: PropType<boolean | undefined>;
|
|
1048
3768
|
default: any;
|
|
@@ -1051,10 +3771,12 @@ declare const __VLS_base$2: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1051
3771
|
type: BooleanConstructor;
|
|
1052
3772
|
default: boolean;
|
|
1053
3773
|
};
|
|
3774
|
+
/** 悬停多久后显示(毫秒) */
|
|
1054
3775
|
delayDuration: {
|
|
1055
3776
|
type: NumberConstructor;
|
|
1056
3777
|
default: any;
|
|
1057
3778
|
};
|
|
3779
|
+
/** 移开后多久隐藏(毫秒) */
|
|
1058
3780
|
closeDuration: {
|
|
1059
3781
|
type: NumberConstructor;
|
|
1060
3782
|
default: any;
|
|
@@ -1067,9 +3789,25 @@ declare const __VLS_base$2: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1067
3789
|
type: BooleanConstructor;
|
|
1068
3790
|
default: boolean;
|
|
1069
3791
|
};
|
|
3792
|
+
/** 追加/覆盖气泡样式(经 cn 合并) */
|
|
3793
|
+
contentClass: {
|
|
3794
|
+
type: StringConstructor;
|
|
3795
|
+
default: any;
|
|
3796
|
+
};
|
|
3797
|
+
/** 透传到气泡 Content 的属性对象(id、data-*、事件监听等) */
|
|
3798
|
+
contentProps: {
|
|
3799
|
+
type: PropType<Record<string, unknown>>;
|
|
3800
|
+
default: any;
|
|
3801
|
+
};
|
|
1070
3802
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1071
3803
|
"update:open": (open: boolean) => any;
|
|
1072
3804
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3805
|
+
/** 提示文字;#content 插槽可覆盖以渲染富内容 */
|
|
3806
|
+
content: {
|
|
3807
|
+
type: StringConstructor;
|
|
3808
|
+
default: any;
|
|
3809
|
+
};
|
|
3810
|
+
/** 受控开关(配合 v-model:open);不传时为非受控 */
|
|
1073
3811
|
open: {
|
|
1074
3812
|
type: PropType<boolean | undefined>;
|
|
1075
3813
|
default: any;
|
|
@@ -1078,10 +3816,12 @@ declare const __VLS_base$2: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1078
3816
|
type: BooleanConstructor;
|
|
1079
3817
|
default: boolean;
|
|
1080
3818
|
};
|
|
3819
|
+
/** 悬停多久后显示(毫秒) */
|
|
1081
3820
|
delayDuration: {
|
|
1082
3821
|
type: NumberConstructor;
|
|
1083
3822
|
default: any;
|
|
1084
3823
|
};
|
|
3824
|
+
/** 移开后多久隐藏(毫秒) */
|
|
1085
3825
|
closeDuration: {
|
|
1086
3826
|
type: NumberConstructor;
|
|
1087
3827
|
default: any;
|
|
@@ -1094,57 +3834,263 @@ declare const __VLS_base$2: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1094
3834
|
type: BooleanConstructor;
|
|
1095
3835
|
default: boolean;
|
|
1096
3836
|
};
|
|
3837
|
+
/** 追加/覆盖气泡样式(经 cn 合并) */
|
|
3838
|
+
contentClass: {
|
|
3839
|
+
type: StringConstructor;
|
|
3840
|
+
default: any;
|
|
3841
|
+
};
|
|
3842
|
+
/** 透传到气泡 Content 的属性对象(id、data-*、事件监听等) */
|
|
3843
|
+
contentProps: {
|
|
3844
|
+
type: PropType<Record<string, unknown>>;
|
|
3845
|
+
default: any;
|
|
3846
|
+
};
|
|
1097
3847
|
}>> & Readonly<{
|
|
1098
3848
|
"onUpdate:open"?: (open: boolean) => any;
|
|
1099
3849
|
}>, {
|
|
1100
3850
|
open: boolean;
|
|
1101
3851
|
defaultOpen: boolean;
|
|
3852
|
+
content: string;
|
|
1102
3853
|
delayDuration: number;
|
|
1103
3854
|
closeDuration: number;
|
|
1104
3855
|
lazyMount: boolean;
|
|
1105
3856
|
unmountOnExit: boolean;
|
|
3857
|
+
contentClass: string;
|
|
3858
|
+
contentProps: Record<string, unknown>;
|
|
1106
3859
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1107
|
-
declare const __VLS_export$
|
|
1108
|
-
declare const _default$
|
|
1109
|
-
type __VLS_WithSlots$
|
|
3860
|
+
declare const __VLS_export$5: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
3861
|
+
declare const _default$43: typeof __VLS_export$5;
|
|
3862
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
1110
3863
|
new (): {
|
|
1111
3864
|
$slots: S;
|
|
1112
3865
|
};
|
|
1113
3866
|
};
|
|
1114
3867
|
//#endregion
|
|
1115
|
-
//#region src/components/
|
|
1116
|
-
interface Props
|
|
3868
|
+
//#region src/components/alert/Alert.vue.d.ts
|
|
3869
|
+
interface Props {
|
|
3870
|
+
title?: string;
|
|
3871
|
+
description?: string;
|
|
3872
|
+
variant?: AlertVariants["variant"];
|
|
3873
|
+
closable?: boolean;
|
|
3874
|
+
showIcon?: boolean;
|
|
1117
3875
|
class?: string;
|
|
1118
3876
|
}
|
|
1119
|
-
|
|
3877
|
+
type __VLS_Props$3 = Props;
|
|
3878
|
+
type __VLS_ModelProps = {
|
|
3879
|
+
modelValue?: boolean;
|
|
3880
|
+
};
|
|
3881
|
+
type __VLS_PublicProps = __VLS_Props$3 & __VLS_ModelProps;
|
|
3882
|
+
declare var __VLS_1$2: {}, __VLS_3$1: {}, __VLS_5: {}, __VLS_7: {};
|
|
3883
|
+
type __VLS_Slots$2 = {} & {
|
|
3884
|
+
icon?: (props: typeof __VLS_1$2) => any;
|
|
3885
|
+
} & {
|
|
3886
|
+
title?: (props: typeof __VLS_3$1) => any;
|
|
3887
|
+
} & {
|
|
3888
|
+
default?: (props: typeof __VLS_5) => any;
|
|
3889
|
+
} & {
|
|
3890
|
+
close?: (props: typeof __VLS_7) => any;
|
|
3891
|
+
};
|
|
3892
|
+
declare const __VLS_base$2: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3893
|
+
"update:modelValue": (value: boolean) => any;
|
|
3894
|
+
close: () => any;
|
|
3895
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
3896
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
3897
|
+
onClose?: () => any;
|
|
3898
|
+
}>, {
|
|
3899
|
+
variant: AlertVariants["variant"];
|
|
3900
|
+
class: string;
|
|
3901
|
+
title: string;
|
|
3902
|
+
description: string;
|
|
3903
|
+
closable: boolean;
|
|
3904
|
+
showIcon: boolean;
|
|
3905
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3906
|
+
declare const __VLS_export$4: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
3907
|
+
declare const _default: typeof __VLS_export$4;
|
|
3908
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
3909
|
+
new (): {
|
|
3910
|
+
$slots: S;
|
|
3911
|
+
};
|
|
3912
|
+
};
|
|
3913
|
+
//#endregion
|
|
3914
|
+
//#region src/components/alert/index.d.ts
|
|
3915
|
+
export declare const alertVariants: (props?: {
|
|
3916
|
+
variant?: "default" | "info" | "success" | "warning" | "error";
|
|
3917
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
3918
|
+
export type AlertVariants = VariantProps<typeof alertVariants>;
|
|
3919
|
+
export declare const alertIconVariants: (props?: {
|
|
3920
|
+
variant?: "default" | "info" | "success" | "warning" | "error";
|
|
3921
|
+
} & import("class-variance-authority/types").ClassProp) => string;
|
|
3922
|
+
/**
|
|
3923
|
+
* 内置图标路径(按 variant 形状差异化,保证色弱用户可辨别):
|
|
3924
|
+
* - default:圆圈 + i(信息)
|
|
3925
|
+
* - info:圆圈 + 感叹号
|
|
3926
|
+
* - success:圆圈 + 对勾
|
|
3927
|
+
* - warning:三角 + 感叹号
|
|
3928
|
+
* - error:圆圈 + 叉号
|
|
3929
|
+
*/
|
|
3930
|
+
export declare const alertIconPaths: Record<string, string>;
|
|
3931
|
+
//#endregion
|
|
3932
|
+
//#region src/components/empty/Empty.vue.d.ts
|
|
3933
|
+
type __VLS_Props$2 = {
|
|
3934
|
+
class?: string;
|
|
3935
|
+
description?: string;
|
|
3936
|
+
};
|
|
3937
|
+
declare var __VLS_1$1: {}, __VLS_3: {};
|
|
1120
3938
|
type __VLS_Slots$1 = {} & {
|
|
1121
|
-
|
|
3939
|
+
icon?: (props: typeof __VLS_1$1) => any;
|
|
3940
|
+
} & {
|
|
3941
|
+
default?: (props: typeof __VLS_3) => any;
|
|
1122
3942
|
};
|
|
1123
|
-
declare const __VLS_base$1: import("vue").DefineComponent<
|
|
1124
|
-
|
|
1125
|
-
|
|
3943
|
+
declare const __VLS_base$1: import("vue").DefineComponent<__VLS_Props$2, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props$2> & Readonly<{}>, {
|
|
3944
|
+
description: string;
|
|
3945
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3946
|
+
declare const __VLS_export$3: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
3947
|
+
declare const _default$14: typeof __VLS_export$3;
|
|
1126
3948
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
1127
3949
|
new (): {
|
|
1128
3950
|
$slots: S;
|
|
1129
3951
|
};
|
|
1130
3952
|
};
|
|
1131
3953
|
//#endregion
|
|
1132
|
-
//#region src/components/
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
3954
|
+
//#region src/components/progress/Progress.vue.d.ts
|
|
3955
|
+
/** 语义变体 */
|
|
3956
|
+
type ProgressVariant = "default" | "info" | "success" | "warning" | "error";
|
|
3957
|
+
type __VLS_Props$1 = {
|
|
3958
|
+
/** 当前值(配合 v-model:value,0 ~ max);显式传 null 为不确定态 */
|
|
3959
|
+
value?: number | null;
|
|
3960
|
+
/** 最大值 @default 100 */
|
|
3961
|
+
max?: number;
|
|
3962
|
+
/** 进度标签文本 */
|
|
3963
|
+
label?: string;
|
|
3964
|
+
/** 是否显示百分比文本 @default false */
|
|
3965
|
+
showValue?: boolean;
|
|
3966
|
+
/** 语义变体:default 用 primary,error 映射 destructive @default "default" */
|
|
3967
|
+
variant?: ProgressVariant;
|
|
3968
|
+
/** 不确定态(忽略 value,恒以 null 传给 Ark) */
|
|
3969
|
+
indeterminate?: boolean;
|
|
3970
|
+
/** 追加/覆盖根元素样式类 */
|
|
3971
|
+
class?: string;
|
|
3972
|
+
};
|
|
3973
|
+
declare const __VLS_export$2: import("vue").DefineComponent<__VLS_Props$1, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3974
|
+
"update:value": (value: number) => any;
|
|
3975
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props$1> & Readonly<{
|
|
3976
|
+
"onUpdate:value"?: (value: number) => any;
|
|
3977
|
+
}>, {
|
|
3978
|
+
variant: ProgressVariant;
|
|
3979
|
+
max: number;
|
|
3980
|
+
indeterminate: boolean;
|
|
3981
|
+
showValue: boolean;
|
|
3982
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3983
|
+
declare const _default$31: typeof __VLS_export$2;
|
|
3984
|
+
//#endregion
|
|
3985
|
+
//#region src/components/spin/Spin.vue.d.ts
|
|
3986
|
+
type __VLS_Props = {
|
|
3987
|
+
/** spinner 尺寸 */
|
|
3988
|
+
size?: "sm" | "default" | "lg";
|
|
3989
|
+
/** 是否处于加载中 */
|
|
3990
|
+
spinning?: boolean;
|
|
3991
|
+
/** 无障碍标签(role="status" 的 aria-label) */
|
|
3992
|
+
label?: string;
|
|
3993
|
+
class?: string;
|
|
3994
|
+
};
|
|
3995
|
+
declare var __VLS_1: {};
|
|
1138
3996
|
type __VLS_Slots = {} & {
|
|
1139
|
-
default?: (props: typeof
|
|
3997
|
+
default?: (props: typeof __VLS_1) => any;
|
|
1140
3998
|
};
|
|
1141
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
1142
|
-
|
|
1143
|
-
|
|
3999
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
4000
|
+
size: "sm" | "default" | "lg";
|
|
4001
|
+
label: string;
|
|
4002
|
+
spinning: boolean;
|
|
4003
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4004
|
+
declare const __VLS_export$1: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4005
|
+
declare const _default$37: typeof __VLS_export$1;
|
|
1144
4006
|
type __VLS_WithSlots<T, S> = T & {
|
|
1145
4007
|
new (): {
|
|
1146
4008
|
$slots: S;
|
|
1147
4009
|
};
|
|
1148
4010
|
};
|
|
1149
4011
|
//#endregion
|
|
1150
|
-
|
|
4012
|
+
//#region src/components/toast/useToast.d.ts
|
|
4013
|
+
type ToastOptions = ToastOptions$1;
|
|
4014
|
+
type ToastPlacement = ToastPlacement$1;
|
|
4015
|
+
type ToastPromiseOptions<T> = ToastPromiseOptions$1<T>;
|
|
4016
|
+
declare const toastApi: {
|
|
4017
|
+
/** 成功提示 */
|
|
4018
|
+
success: (options: ToastOptions) => string;
|
|
4019
|
+
/** 错误提示 */
|
|
4020
|
+
error: (options: ToastOptions) => string;
|
|
4021
|
+
/** 信息提示 */
|
|
4022
|
+
info: (options: ToastOptions) => string;
|
|
4023
|
+
/** 警告提示 */
|
|
4024
|
+
warning: (options: ToastOptions) => string;
|
|
4025
|
+
/** 加载中提示 */
|
|
4026
|
+
loading: (options: ToastOptions) => string;
|
|
4027
|
+
/** 跟踪 Promise 状态的提示 */
|
|
4028
|
+
promise: <T>(promise: Promise<T> | (() => Promise<T>), options: ToastPromiseOptions$1<T>, shared?: Omit<ToastOptions, "type">) => {
|
|
4029
|
+
id: string | undefined;
|
|
4030
|
+
unwrap: () => Promise<T>;
|
|
4031
|
+
};
|
|
4032
|
+
/** 关闭指定 toast;不传 id 时关闭全部 */
|
|
4033
|
+
dismiss: (id?: string) => void;
|
|
4034
|
+
};
|
|
4035
|
+
export declare function useToast(): {
|
|
4036
|
+
/** 成功提示 */
|
|
4037
|
+
success: (options: ToastOptions) => string;
|
|
4038
|
+
/** 错误提示 */
|
|
4039
|
+
error: (options: ToastOptions) => string;
|
|
4040
|
+
/** 信息提示 */
|
|
4041
|
+
info: (options: ToastOptions) => string;
|
|
4042
|
+
/** 警告提示 */
|
|
4043
|
+
warning: (options: ToastOptions) => string;
|
|
4044
|
+
/** 加载中提示 */
|
|
4045
|
+
loading: (options: ToastOptions) => string;
|
|
4046
|
+
/** 跟踪 Promise 状态的提示 */
|
|
4047
|
+
promise: <T>(promise: Promise<T> | (() => Promise<T>), options: ToastPromiseOptions$1<T>, shared?: Omit<ToastOptions, "type">) => {
|
|
4048
|
+
id: string | undefined;
|
|
4049
|
+
unwrap: () => Promise<T>;
|
|
4050
|
+
};
|
|
4051
|
+
/** 关闭指定 toast;不传 id 时关闭全部 */
|
|
4052
|
+
dismiss: (id?: string) => void;
|
|
4053
|
+
};
|
|
4054
|
+
type ToastApi = typeof toastApi;
|
|
4055
|
+
//#endregion
|
|
4056
|
+
//#region src/components/toast/ToastProvider.vue.d.ts
|
|
4057
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4058
|
+
/** 弹出位置 */
|
|
4059
|
+
placement: {
|
|
4060
|
+
type: () => ToastPlacement;
|
|
4061
|
+
default: string;
|
|
4062
|
+
};
|
|
4063
|
+
/** 默认自动关闭时长(ms) */
|
|
4064
|
+
duration: {
|
|
4065
|
+
type: NumberConstructor;
|
|
4066
|
+
default: number;
|
|
4067
|
+
};
|
|
4068
|
+
/** 同屏最大数量,超出排队 */
|
|
4069
|
+
max: {
|
|
4070
|
+
type: NumberConstructor;
|
|
4071
|
+
default: number;
|
|
4072
|
+
};
|
|
4073
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4074
|
+
/** 弹出位置 */
|
|
4075
|
+
placement: {
|
|
4076
|
+
type: () => ToastPlacement;
|
|
4077
|
+
default: string;
|
|
4078
|
+
};
|
|
4079
|
+
/** 默认自动关闭时长(ms) */
|
|
4080
|
+
duration: {
|
|
4081
|
+
type: NumberConstructor;
|
|
4082
|
+
default: number;
|
|
4083
|
+
};
|
|
4084
|
+
/** 同屏最大数量,超出排队 */
|
|
4085
|
+
max: {
|
|
4086
|
+
type: NumberConstructor;
|
|
4087
|
+
default: number;
|
|
4088
|
+
};
|
|
4089
|
+
}>> & Readonly<{}>, {
|
|
4090
|
+
max: number;
|
|
4091
|
+
placement: Toast.Placement;
|
|
4092
|
+
duration: number;
|
|
4093
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4094
|
+
declare const _default$42: typeof __VLS_export;
|
|
4095
|
+
//#endregion
|
|
4096
|
+
export { _default as Alert, _default$1 as Avatar, _default$2 as AvatarGroup, _default$3 as Badge, type BindingSpec, _default$4 as Button, _default$5 as Calendar, _default$6 as Card, _default$7 as Cascader, type CheckStrategy, _default$8 as Checkbox, type CheckboxWidgetOptions, type ColumnRenders, _default$9 as CurrencyInput, type CurrencyUnit, type CurrencyWidgetOptions, type DataRecord, _default$10 as DatePicker, type DatePickerWidgetOptions, _default$11 as DateRangePicker, type DateRangeWidgetOptions, type DefineFormOptions, type DefineTableOptions, _default$12 as Dialog, type DictColumnMapping, type DictColumnOptions, type DictEntryVariant, _default$13 as DropdownMenu, _default$14 as Empty, _default$15 as Form, _default$16 as FormControl, _default$17 as FormDescription, _default$18 as FormField, _default$19 as FormItem, _default$20 as FormLabel, _default$21 as FormMessage, _default$22 as FormRender, type FormRenderDefinition, type FormRenderFormApi, type FormRenderItem, _default$23 as FormSubscribe, _default$24 as Input, type InputWidgetOptions, type Key, _default$25 as Label, type MenuItemOption, _default$26 as MonthPicker, type MonthPickerWidgetOptions, _default$27 as NumberInput, type NumberWidgetOptions, type PageableOptions, _default$28 as PasswordInput, type PasswordWidgetOptions, _default$29 as PinInput, _default$30 as Popover, _default$31 as Progress, _default$32 as RadioGroup, type RadioGroupWidgetOptions, _default$33 as Select, type SelectItemOption, type SelectWidgetOptions, _default$34 as Separator, type SerialColumnOptions, type SfcOptions, _default$35 as Skeleton, _default$36 as Slider, type SliderWidgetOptions, type SortableOptions, _default$37 as Spin, _default$38 as Switch, type SwitchWidgetOptions, type TableActionButton, type TableColumnOptions, type TableLoadParams, _default$39 as TableRender, type TableRenderDefinition, _default$40 as Tabs, _default$41 as Textarea, type TextareaWidgetOptions, type ToastApi, type ToastOptions, type ToastPlacement, type ToastPromiseOptions, _default$42 as ToastProvider, _default$43 as Tooltip, type TreeOption, type TreeOptions, _default$44 as TreeSelect, type UseFormRenderOptions, type UseTableRenderOptions, _default$45 as WeekPicker, type WidgetContext, type WidgetItemOption, type WidgetRenderReturn, type WidgetRenders, _default$46 as YearPicker, type YearPickerWidgetOptions };
|