@firerian/fireui 1.0.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.
Files changed (63) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +74 -0
  3. package/dist/fireui.cjs +2 -0
  4. package/dist/fireui.cjs.map +1 -0
  5. package/dist/fireui.css +1 -0
  6. package/dist/fireui.es.mjs +3867 -0
  7. package/dist/fireui.es.mjs.map +1 -0
  8. package/dist/fireui.umd.js +2 -0
  9. package/dist/fireui.umd.js.map +1 -0
  10. package/dist/types/index.d.ts +1590 -0
  11. package/package.json +132 -0
  12. package/src/components/button/button.test.ts +357 -0
  13. package/src/components/button/button.vue +366 -0
  14. package/src/components/button/index.ts +17 -0
  15. package/src/components/button/types.ts +76 -0
  16. package/src/components/form/form-item.vue +136 -0
  17. package/src/components/form/form.vue +76 -0
  18. package/src/components/form/index.ts +16 -0
  19. package/src/components/grid/col.vue +99 -0
  20. package/src/components/grid/index.ts +16 -0
  21. package/src/components/grid/row.vue +85 -0
  22. package/src/components/grid/types.ts +66 -0
  23. package/src/components/index.ts +36 -0
  24. package/src/components/input/index.ts +8 -0
  25. package/src/components/input/input.test.ts +129 -0
  26. package/src/components/input/input.vue +256 -0
  27. package/src/components/input/types.ts +100 -0
  28. package/src/components/layout/aside.vue +89 -0
  29. package/src/components/layout/container.vue +53 -0
  30. package/src/components/layout/footer.vue +57 -0
  31. package/src/components/layout/header.vue +56 -0
  32. package/src/components/layout/index.ts +28 -0
  33. package/src/components/layout/main.vue +36 -0
  34. package/src/components/layout/types.ts +74 -0
  35. package/src/components/table/index.ts +16 -0
  36. package/src/components/table/table-column.vue +69 -0
  37. package/src/components/table/table.vue +354 -0
  38. package/src/components/tips/index.ts +12 -0
  39. package/src/components/tips/tips.test.ts +96 -0
  40. package/src/components/tips/tips.vue +206 -0
  41. package/src/components/tips/types.ts +56 -0
  42. package/src/components/tooltip/index.ts +8 -0
  43. package/src/components/tooltip/tooltip.test.ts +187 -0
  44. package/src/components/tooltip/tooltip.vue +261 -0
  45. package/src/components/tooltip/types.ts +60 -0
  46. package/src/hooks/useForm.ts +233 -0
  47. package/src/hooks/useTable.ts +153 -0
  48. package/src/index.ts +48 -0
  49. package/src/styles/main.scss +6 -0
  50. package/src/styles/mixins.scss +48 -0
  51. package/src/styles/reset.scss +49 -0
  52. package/src/styles/variables.scss +137 -0
  53. package/src/types/component.ts +9 -0
  54. package/src/types/form.ts +149 -0
  55. package/src/types/global.d.ts +49 -0
  56. package/src/types/grid.ts +76 -0
  57. package/src/types/index.ts +23 -0
  58. package/src/types/table.ts +181 -0
  59. package/src/types/tooltip.ts +44 -0
  60. package/src/utils/auto-import.ts +41 -0
  61. package/src/utils/index.ts +2 -0
  62. package/src/utils/install.ts +20 -0
  63. package/src/utils/useNamespace.ts +29 -0
@@ -0,0 +1,1590 @@
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { App } from 'vue';
3
+ import { Component } from 'vue';
4
+ import { ComponentCustomProps } from 'vue';
5
+ import { ComponentOptionsBase } from 'vue';
6
+ import { ComponentOptionsMixin } from 'vue';
7
+ import { ComponentProvideOptions } from 'vue';
8
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
9
+ import { DefineComponent } from 'vue';
10
+ import { GlobalComponents } from 'vue';
11
+ import { GlobalDirectives } from 'vue';
12
+ import { Plugin as Plugin_2 } from 'vue';
13
+ import { PublicProps } from 'vue';
14
+ import { Ref } from 'vue';
15
+ import { RuleItem } from 'async-validator';
16
+ import { ValidateError } from 'async-validator';
17
+ import { VNodeProps } from 'vue';
18
+
19
+ declare const __VLS_component: DefineComponent<Props, {
20
+ ref: Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
21
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
22
+ click: (event: MouseEvent) => any;
23
+ }, string, PublicProps, Readonly<Props> & Readonly<{
24
+ onClick?: ((event: MouseEvent) => any) | undefined;
25
+ }>, {
26
+ type: ButtonType;
27
+ size: ButtonSize;
28
+ nativeType: ButtonNativeType;
29
+ disabled: boolean;
30
+ loading: boolean;
31
+ circle: boolean;
32
+ block: boolean;
33
+ loadingIcon: string;
34
+ icon: string;
35
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
36
+ buttonRef: HTMLButtonElement;
37
+ }, any>;
38
+
39
+ declare const __VLS_component_2: DefineComponent<TooltipProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
40
+ "update:visible": (value: boolean) => any;
41
+ show: () => any;
42
+ hide: () => any;
43
+ }, string, PublicProps, Readonly<TooltipProps_2> & Readonly<{
44
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
45
+ onShow?: (() => any) | undefined;
46
+ onHide?: (() => any) | undefined;
47
+ }>, {
48
+ disabled: boolean;
49
+ offset: number;
50
+ content: string;
51
+ placement: TooltipPlacement_2;
52
+ trigger: TooltipTrigger_2;
53
+ visible: boolean;
54
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
55
+ reference: HTMLDivElement;
56
+ floating: HTMLDivElement;
57
+ }, HTMLDivElement>;
58
+
59
+ declare const __VLS_component_3: DefineComponent<InputProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
60
+ input: (value: string | number) => any;
61
+ clear: () => any;
62
+ focus: (event: FocusEvent) => any;
63
+ blur: (event: FocusEvent) => any;
64
+ "update:modelValue": (value: string | number) => any;
65
+ enter: (event: KeyboardEvent) => any;
66
+ }, string, PublicProps, Readonly<InputProps_2> & Readonly<{
67
+ onInput?: ((value: string | number) => any) | undefined;
68
+ onClear?: (() => any) | undefined;
69
+ onFocus?: ((event: FocusEvent) => any) | undefined;
70
+ onBlur?: ((event: FocusEvent) => any) | undefined;
71
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
72
+ onEnter?: ((event: KeyboardEvent) => any) | undefined;
73
+ }>, {
74
+ type: string;
75
+ size: "large" | "medium" | "small";
76
+ disabled: boolean;
77
+ placeholder: string;
78
+ modelValue: string | number;
79
+ readonly: boolean;
80
+ password: boolean;
81
+ maxlength: number;
82
+ minlength: number;
83
+ showWordLimit: boolean;
84
+ prefixIcon: string | object;
85
+ suffixIcon: string | object;
86
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
87
+ inputRef: HTMLInputElement;
88
+ }, HTMLDivElement>;
89
+
90
+ declare function __VLS_template(): {
91
+ attrs: Partial<{}>;
92
+ slots: {
93
+ loading?(_: {}): any;
94
+ icon?(_: {}): any;
95
+ default?(_: {}): any;
96
+ };
97
+ refs: {
98
+ buttonRef: HTMLButtonElement;
99
+ };
100
+ rootEl: any;
101
+ };
102
+
103
+ declare function __VLS_template_2(): {
104
+ attrs: Partial<{}>;
105
+ slots: {
106
+ default?(_: {}): any;
107
+ content?(_: {}): any;
108
+ };
109
+ refs: {
110
+ reference: HTMLDivElement;
111
+ floating: HTMLDivElement;
112
+ };
113
+ rootEl: HTMLDivElement;
114
+ };
115
+
116
+ declare function __VLS_template_3(): {
117
+ attrs: Partial<{}>;
118
+ slots: {
119
+ prefix?(_: {}): any;
120
+ suffix?(_: {}): any;
121
+ };
122
+ refs: {
123
+ inputRef: HTMLInputElement;
124
+ };
125
+ rootEl: HTMLDivElement;
126
+ };
127
+
128
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
129
+
130
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
131
+
132
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
133
+
134
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
135
+ new (): {
136
+ $slots: S;
137
+ };
138
+ };
139
+
140
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
141
+ new (): {
142
+ $slots: S;
143
+ };
144
+ };
145
+
146
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
147
+ new (): {
148
+ $slots: S;
149
+ };
150
+ };
151
+
152
+ export declare interface AsideProps {
153
+ /**
154
+ * 侧边栏宽度
155
+ */
156
+ width?: string | number;
157
+ /**
158
+ * 折叠状态
159
+ */
160
+ collapsed?: boolean;
161
+ /**
162
+ * 自定义类名
163
+ */
164
+ class?: string;
165
+ /**
166
+ * 自定义样式
167
+ */
168
+ style?: string | object;
169
+ }
170
+
171
+ /**
172
+ * Button 组件 Emits 接口
173
+ */
174
+ export declare interface ButtonEmits {
175
+ /** 点击事件 - 当按钮被点击时触发 */
176
+ (e: 'click', event: MouseEvent): void;
177
+ }
178
+
179
+ declare type ButtonNativeType = 'button' | 'submit' | 'reset';
180
+
181
+ /**
182
+ * Button 组件原生类型
183
+ */
184
+ declare type ButtonNativeType_2 = 'button' | 'submit' | 'reset';
185
+
186
+ /**
187
+ * Button 组件 Props 接口
188
+ */
189
+ export declare interface ButtonProps {
190
+ /** 按钮类型 - 用于区分不同的视觉样式 */
191
+ type?: ButtonType_2;
192
+ /** 按钮尺寸 - 控制按钮的大小 */
193
+ size?: ButtonSize_2;
194
+ /** 按钮原生类型 - 用于表单提交等场景 */
195
+ nativeType?: ButtonNativeType_2;
196
+ /** 是否禁用 - 禁用状态下按钮不可点击 */
197
+ disabled?: boolean;
198
+ /** 是否加载中 - 显示加载状态和动画 */
199
+ loading?: boolean;
200
+ /** 是否为圆形按钮 - 常用于图标按钮 */
201
+ circle?: boolean;
202
+ /** 是否为块级元素 - 按钮宽度占满容器 */
203
+ block?: boolean;
204
+ /** 自定义加载图标 - 可自定义加载时的图标 */
205
+ loadingIcon?: string;
206
+ /** 自定义图标 - 按钮左侧的图标 */
207
+ icon?: string;
208
+ /** 原生 HTML 属性 - 透传到 button 元素 */
209
+ [key: string]: any;
210
+ }
211
+
212
+ declare type ButtonSize = 'small' | 'default' | 'large';
213
+
214
+ /**
215
+ * @file Button 组件类型定义
216
+ * @description 定义 Button 组件的 Props、Emits 和 Slots 接口
217
+ */
218
+ /**
219
+ * Button 组件尺寸类型
220
+ */
221
+ declare type ButtonSize_2 = 'small' | 'default' | 'large';
222
+
223
+ /**
224
+ * Button 组件 Slots 接口
225
+ */
226
+ export declare interface ButtonSlots {
227
+ /** 默认插槽 - 按钮内容 */
228
+ default?: () => any;
229
+ /** 图标插槽 - 自定义图标内容 */
230
+ icon?: () => any;
231
+ /** 加载插槽 - 自定义加载状态内容 */
232
+ loading?: () => any;
233
+ }
234
+
235
+ declare type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
236
+
237
+ /**
238
+ * Button 组件类型
239
+ */
240
+ declare type ButtonType_2 = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
241
+
242
+ export declare interface ColProps {
243
+ /**
244
+ * 占列数
245
+ */
246
+ span?: number;
247
+ /**
248
+ * 偏移量
249
+ */
250
+ offset?: number;
251
+ /**
252
+ * 超小屏幕响应式配置
253
+ */
254
+ xs?: number | ResponsiveProps;
255
+ /**
256
+ * 小屏幕响应式配置
257
+ */
258
+ sm?: number | ResponsiveProps;
259
+ /**
260
+ * 中等屏幕响应式配置
261
+ */
262
+ md?: number | ResponsiveProps;
263
+ /**
264
+ * 大屏幕响应式配置
265
+ */
266
+ lg?: number | ResponsiveProps;
267
+ /**
268
+ * 超大屏幕响应式配置
269
+ */
270
+ xl?: number | ResponsiveProps;
271
+ /**
272
+ * 自定义类名
273
+ */
274
+ class?: string;
275
+ /**
276
+ * 自定义样式
277
+ */
278
+ style?: string | object;
279
+ }
280
+
281
+ declare interface ColProps_2 {
282
+ /**
283
+ * 占列数
284
+ */
285
+ span?: number;
286
+ /**
287
+ * 偏移量
288
+ */
289
+ offset?: number;
290
+ /**
291
+ * 超小屏幕响应式配置
292
+ */
293
+ xs?: number | ResponsiveProps_2;
294
+ /**
295
+ * 小屏幕响应式配置
296
+ */
297
+ sm?: number | ResponsiveProps_2;
298
+ /**
299
+ * 中等屏幕响应式配置
300
+ */
301
+ md?: number | ResponsiveProps_2;
302
+ /**
303
+ * 大屏幕响应式配置
304
+ */
305
+ lg?: number | ResponsiveProps_2;
306
+ /**
307
+ * 超大屏幕响应式配置
308
+ */
309
+ xl?: number | ResponsiveProps_2;
310
+ /**
311
+ * 自定义类名
312
+ */
313
+ class?: string;
314
+ /**
315
+ * 自定义样式
316
+ */
317
+ style?: string | object;
318
+ }
319
+
320
+ export declare interface ContainerProps {
321
+ /**
322
+ * 布局方向
323
+ */
324
+ direction?: 'horizontal' | 'vertical';
325
+ /**
326
+ * 自定义类名
327
+ */
328
+ class?: string;
329
+ /**
330
+ * 自定义样式
331
+ */
332
+ style?: string | object;
333
+ }
334
+
335
+ declare const _default: Plugin_2;
336
+ export default _default;
337
+
338
+ declare const _default_2: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
339
+
340
+ declare const _default_3: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
341
+
342
+ export declare const FButton: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
343
+
344
+ export declare const FireAside: {
345
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
346
+ width?: string | number;
347
+ collapsed?: boolean;
348
+ class?: string;
349
+ style?: string | object;
350
+ }> & Readonly<{
351
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
352
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
353
+ "update:collapsed": (value: boolean) => any;
354
+ }, PublicProps, {
355
+ width: string | number;
356
+ collapsed: boolean;
357
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLElement, ComponentProvideOptions, {
358
+ P: {};
359
+ B: {};
360
+ D: {};
361
+ C: {};
362
+ M: {};
363
+ Defaults: {};
364
+ }, Readonly<{
365
+ width?: string | number;
366
+ collapsed?: boolean;
367
+ class?: string;
368
+ style?: string | object;
369
+ }> & Readonly<{
370
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
371
+ }>, {}, {}, {}, {}, {
372
+ width: string | number;
373
+ collapsed: boolean;
374
+ }>;
375
+ __isFragment?: never;
376
+ __isTeleport?: never;
377
+ __isSuspense?: never;
378
+ } & ComponentOptionsBase<Readonly<{
379
+ width?: string | number;
380
+ collapsed?: boolean;
381
+ class?: string;
382
+ style?: string | object;
383
+ }> & Readonly<{
384
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
385
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
386
+ "update:collapsed": (value: boolean) => any;
387
+ }, string, {
388
+ width: string | number;
389
+ collapsed: boolean;
390
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
391
+ $slots: {
392
+ default?(_: {}): any;
393
+ };
394
+ }) & {
395
+ install: (app: App) => void;
396
+ };
397
+
398
+ export declare const FireCol: {
399
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ColProps_2> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
400
+ span: number;
401
+ offset: number;
402
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
403
+ P: {};
404
+ B: {};
405
+ D: {};
406
+ C: {};
407
+ M: {};
408
+ Defaults: {};
409
+ }, Readonly<ColProps_2> & Readonly<{}>, {}, {}, {}, {}, {
410
+ span: number;
411
+ offset: number;
412
+ }>;
413
+ __isFragment?: never;
414
+ __isTeleport?: never;
415
+ __isSuspense?: never;
416
+ } & ComponentOptionsBase<Readonly<ColProps_2> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
417
+ span: number;
418
+ offset: number;
419
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
420
+ $slots: {
421
+ default?(_: {}): any;
422
+ };
423
+ }) & {
424
+ install: (app: App) => void;
425
+ };
426
+
427
+ export declare const FireContainer: {
428
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
429
+ direction?: "horizontal" | "vertical";
430
+ class?: string;
431
+ style?: string | object;
432
+ }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
433
+ direction: "horizontal" | "vertical";
434
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
435
+ P: {};
436
+ B: {};
437
+ D: {};
438
+ C: {};
439
+ M: {};
440
+ Defaults: {};
441
+ }, Readonly<{
442
+ direction?: "horizontal" | "vertical";
443
+ class?: string;
444
+ style?: string | object;
445
+ }> & Readonly<{}>, {}, {}, {}, {}, {
446
+ direction: "horizontal" | "vertical";
447
+ }>;
448
+ __isFragment?: never;
449
+ __isTeleport?: never;
450
+ __isSuspense?: never;
451
+ } & ComponentOptionsBase<Readonly<{
452
+ direction?: "horizontal" | "vertical";
453
+ class?: string;
454
+ style?: string | object;
455
+ }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
456
+ direction: "horizontal" | "vertical";
457
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
458
+ $slots: {
459
+ default?(_: {}): any;
460
+ };
461
+ }) & {
462
+ install: (app: App) => void;
463
+ };
464
+
465
+ export declare const FireFooter: {
466
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
467
+ height?: string | number;
468
+ class?: string;
469
+ style?: string | object;
470
+ }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
471
+ height: string | number;
472
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLElement, ComponentProvideOptions, {
473
+ P: {};
474
+ B: {};
475
+ D: {};
476
+ C: {};
477
+ M: {};
478
+ Defaults: {};
479
+ }, Readonly<{
480
+ height?: string | number;
481
+ class?: string;
482
+ style?: string | object;
483
+ }> & Readonly<{}>, {}, {}, {}, {}, {
484
+ height: string | number;
485
+ }>;
486
+ __isFragment?: never;
487
+ __isTeleport?: never;
488
+ __isSuspense?: never;
489
+ } & ComponentOptionsBase<Readonly<{
490
+ height?: string | number;
491
+ class?: string;
492
+ style?: string | object;
493
+ }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
494
+ height: string | number;
495
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
496
+ $slots: {
497
+ default?(_: {}): any;
498
+ };
499
+ }) & {
500
+ install: (app: App) => void;
501
+ };
502
+
503
+ export declare const FireForm: {
504
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<FormProps<Record<string, any>>> & Readonly<{
505
+ onSubmit?: ((evt: Event) => any) | undefined;
506
+ onReset?: (() => any) | undefined;
507
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
508
+ submit: (evt: Event) => any;
509
+ reset: () => any;
510
+ }, PublicProps, {
511
+ model: Record<string, any>;
512
+ rules: Record<string, RuleItem | RuleItem[]>;
513
+ labelWidth: string | number;
514
+ labelPosition: FormLabelPosition;
515
+ inline: boolean;
516
+ hideRequiredAsterisk: boolean;
517
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLFormElement, ComponentProvideOptions, {
518
+ P: {};
519
+ B: {};
520
+ D: {};
521
+ C: {};
522
+ M: {};
523
+ Defaults: {};
524
+ }, Readonly<FormProps<Record<string, any>>> & Readonly<{
525
+ onSubmit?: ((evt: Event) => any) | undefined;
526
+ onReset?: (() => any) | undefined;
527
+ }>, {}, {}, {}, {}, {
528
+ model: Record<string, any>;
529
+ rules: Record<string, RuleItem | RuleItem[]>;
530
+ labelWidth: string | number;
531
+ labelPosition: FormLabelPosition;
532
+ inline: boolean;
533
+ hideRequiredAsterisk: boolean;
534
+ }>;
535
+ __isFragment?: never;
536
+ __isTeleport?: never;
537
+ __isSuspense?: never;
538
+ } & ComponentOptionsBase<Readonly<FormProps<Record<string, any>>> & Readonly<{
539
+ onSubmit?: ((evt: Event) => any) | undefined;
540
+ onReset?: (() => any) | undefined;
541
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
542
+ submit: (evt: Event) => any;
543
+ reset: () => any;
544
+ }, string, {
545
+ model: Record<string, any>;
546
+ rules: Record<string, RuleItem | RuleItem[]>;
547
+ labelWidth: string | number;
548
+ labelPosition: FormLabelPosition;
549
+ inline: boolean;
550
+ hideRequiredAsterisk: boolean;
551
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
552
+ $slots: {
553
+ default?(_: {}): any;
554
+ };
555
+ }) & {
556
+ install: (app: App) => void;
557
+ };
558
+
559
+ export declare const FireFormItem: {
560
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<FormItemProps> & Readonly<{
561
+ onValidate?: ((valid: boolean, errorMessage: string) => any) | undefined;
562
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
563
+ validate: (valid: boolean, errorMessage: string) => any;
564
+ }, PublicProps, {
565
+ label: string;
566
+ error: string;
567
+ labelWidth: string | number;
568
+ prop: string;
569
+ required: boolean;
570
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
571
+ P: {};
572
+ B: {};
573
+ D: {};
574
+ C: {};
575
+ M: {};
576
+ Defaults: {};
577
+ }, Readonly<FormItemProps> & Readonly<{
578
+ onValidate?: ((valid: boolean, errorMessage: string) => any) | undefined;
579
+ }>, {}, {}, {}, {}, {
580
+ label: string;
581
+ error: string;
582
+ labelWidth: string | number;
583
+ prop: string;
584
+ required: boolean;
585
+ }>;
586
+ __isFragment?: never;
587
+ __isTeleport?: never;
588
+ __isSuspense?: never;
589
+ } & ComponentOptionsBase<Readonly<FormItemProps> & Readonly<{
590
+ onValidate?: ((valid: boolean, errorMessage: string) => any) | undefined;
591
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
592
+ validate: (valid: boolean, errorMessage: string) => any;
593
+ }, string, {
594
+ label: string;
595
+ error: string;
596
+ labelWidth: string | number;
597
+ prop: string;
598
+ required: boolean;
599
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
600
+ $slots: {
601
+ default?(_: {}): any;
602
+ };
603
+ }) & {
604
+ install: (app: App) => void;
605
+ };
606
+
607
+ export declare const FireHeader: {
608
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
609
+ height?: string | number;
610
+ class?: string;
611
+ style?: string | object;
612
+ }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
613
+ height: string | number;
614
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLElement, ComponentProvideOptions, {
615
+ P: {};
616
+ B: {};
617
+ D: {};
618
+ C: {};
619
+ M: {};
620
+ Defaults: {};
621
+ }, Readonly<{
622
+ height?: string | number;
623
+ class?: string;
624
+ style?: string | object;
625
+ }> & Readonly<{}>, {}, {}, {}, {}, {
626
+ height: string | number;
627
+ }>;
628
+ __isFragment?: never;
629
+ __isTeleport?: never;
630
+ __isSuspense?: never;
631
+ } & ComponentOptionsBase<Readonly<{
632
+ height?: string | number;
633
+ class?: string;
634
+ style?: string | object;
635
+ }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
636
+ height: string | number;
637
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
638
+ $slots: {
639
+ default?(_: {}): any;
640
+ };
641
+ }) & {
642
+ install: (app: App) => void;
643
+ };
644
+
645
+ export declare const FireInput: typeof _default_3 & {
646
+ install: (app: App) => void;
647
+ };
648
+
649
+ export declare const FireMain: {
650
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
651
+ class?: string;
652
+ style?: string | object;
653
+ }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLElement, ComponentProvideOptions, {
654
+ P: {};
655
+ B: {};
656
+ D: {};
657
+ C: {};
658
+ M: {};
659
+ Defaults: {};
660
+ }, Readonly<{
661
+ class?: string;
662
+ style?: string | object;
663
+ }> & Readonly<{}>, {}, {}, {}, {}, {}>;
664
+ __isFragment?: never;
665
+ __isTeleport?: never;
666
+ __isSuspense?: never;
667
+ } & ComponentOptionsBase<Readonly<{
668
+ class?: string;
669
+ style?: string | object;
670
+ }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
671
+ $slots: {
672
+ default?(_: {}): any;
673
+ };
674
+ }) & {
675
+ install: (app: App) => void;
676
+ };
677
+
678
+ export declare const FireRow: {
679
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<RowProps_2> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
680
+ gutter: number | [number, number];
681
+ justify: "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly";
682
+ align: "top" | "middle" | "bottom";
683
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
684
+ P: {};
685
+ B: {};
686
+ D: {};
687
+ C: {};
688
+ M: {};
689
+ Defaults: {};
690
+ }, Readonly<RowProps_2> & Readonly<{}>, {}, {}, {}, {}, {
691
+ gutter: number | [number, number];
692
+ justify: "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly";
693
+ align: "top" | "middle" | "bottom";
694
+ }>;
695
+ __isFragment?: never;
696
+ __isTeleport?: never;
697
+ __isSuspense?: never;
698
+ } & ComponentOptionsBase<Readonly<RowProps_2> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
699
+ gutter: number | [number, number];
700
+ justify: "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly";
701
+ align: "top" | "middle" | "bottom";
702
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
703
+ $slots: {
704
+ default?(_: {}): any;
705
+ };
706
+ }) & {
707
+ install: (app: App) => void;
708
+ };
709
+
710
+ export declare const FireTable: {
711
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<TableProps<any>> & Readonly<{
712
+ "onRow-click"?: ((row: any, event: Event) => any) | undefined;
713
+ "onSort-change"?: ((column: TableColumnProps, order: TableColumnSortOrder) => any) | undefined;
714
+ "onFilter-change"?: ((filters: Record<string, (string | number)[]>) => any) | undefined;
715
+ "onCurrent-change"?: ((currentRow: any, oldCurrentRow: any) => any) | undefined;
716
+ }>, {
717
+ registerColumn: (column: any) => void;
718
+ unregisterColumn: (column: any) => void;
719
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
720
+ "row-click": (row: any, event: Event) => any;
721
+ "sort-change": (column: TableColumnProps, order: TableColumnSortOrder) => any;
722
+ "filter-change": (filters: Record<string, (string | number)[]>) => any;
723
+ "current-change": (currentRow: any, oldCurrentRow: any) => any;
724
+ }, PublicProps, {
725
+ data: any[];
726
+ border: boolean;
727
+ stripe: boolean;
728
+ highlightCurrentRow: boolean;
729
+ currentRowKey: string | number;
730
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
731
+ P: {};
732
+ B: {};
733
+ D: {};
734
+ C: {};
735
+ M: {};
736
+ Defaults: {};
737
+ }, Readonly<TableProps<any>> & Readonly<{
738
+ "onRow-click"?: ((row: any, event: Event) => any) | undefined;
739
+ "onSort-change"?: ((column: TableColumnProps, order: TableColumnSortOrder) => any) | undefined;
740
+ "onFilter-change"?: ((filters: Record<string, (string | number)[]>) => any) | undefined;
741
+ "onCurrent-change"?: ((currentRow: any, oldCurrentRow: any) => any) | undefined;
742
+ }>, {
743
+ registerColumn: (column: any) => void;
744
+ unregisterColumn: (column: any) => void;
745
+ }, {}, {}, {}, {
746
+ data: any[];
747
+ border: boolean;
748
+ stripe: boolean;
749
+ highlightCurrentRow: boolean;
750
+ currentRowKey: string | number;
751
+ }>;
752
+ __isFragment?: never;
753
+ __isTeleport?: never;
754
+ __isSuspense?: never;
755
+ } & ComponentOptionsBase<Readonly<TableProps<any>> & Readonly<{
756
+ "onRow-click"?: ((row: any, event: Event) => any) | undefined;
757
+ "onSort-change"?: ((column: TableColumnProps, order: TableColumnSortOrder) => any) | undefined;
758
+ "onFilter-change"?: ((filters: Record<string, (string | number)[]>) => any) | undefined;
759
+ "onCurrent-change"?: ((currentRow: any, oldCurrentRow: any) => any) | undefined;
760
+ }>, {
761
+ registerColumn: (column: any) => void;
762
+ unregisterColumn: (column: any) => void;
763
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
764
+ "row-click": (row: any, event: Event) => any;
765
+ "sort-change": (column: TableColumnProps, order: TableColumnSortOrder) => any;
766
+ "filter-change": (filters: Record<string, (string | number)[]>) => any;
767
+ "current-change": (currentRow: any, oldCurrentRow: any) => any;
768
+ }, string, {
769
+ data: any[];
770
+ border: boolean;
771
+ stripe: boolean;
772
+ highlightCurrentRow: boolean;
773
+ currentRowKey: string | number;
774
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
775
+ $slots: Partial<Record<`header-${any}`, (_: {
776
+ column: any;
777
+ }) => any>> & Partial<Record<"header", (_: {
778
+ column: any;
779
+ }) => any>> & Partial<Record<`default-${any}`, (_: {
780
+ row: any;
781
+ column: any;
782
+ $index: number;
783
+ }) => any>> & Partial<Record<"default", (_: {
784
+ row: any;
785
+ column: any;
786
+ $index: number;
787
+ }) => any>> & {
788
+ empty?(_: {}): any;
789
+ };
790
+ }) & {
791
+ install: (app: App) => void;
792
+ };
793
+
794
+ export declare const FireTableColumn: {
795
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<TableColumnProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
796
+ fixed: TableColumnFixed;
797
+ label: string;
798
+ width: string | number;
799
+ filters: TableColumnFilterOption[];
800
+ prop: string;
801
+ sortable: boolean;
802
+ sortOrder: TableColumnSortOrder;
803
+ filteredValue: Array<string | number>;
804
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
805
+ P: {};
806
+ B: {};
807
+ D: {};
808
+ C: {};
809
+ M: {};
810
+ Defaults: {};
811
+ }, Readonly<TableColumnProps> & Readonly<{}>, {}, {}, {}, {}, {
812
+ fixed: TableColumnFixed;
813
+ label: string;
814
+ width: string | number;
815
+ filters: TableColumnFilterOption[];
816
+ prop: string;
817
+ sortable: boolean;
818
+ sortOrder: TableColumnSortOrder;
819
+ filteredValue: Array<string | number>;
820
+ }>;
821
+ __isFragment?: never;
822
+ __isTeleport?: never;
823
+ __isSuspense?: never;
824
+ } & ComponentOptionsBase<Readonly<TableColumnProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
825
+ fixed: TableColumnFixed;
826
+ label: string;
827
+ width: string | number;
828
+ filters: TableColumnFilterOption[];
829
+ prop: string;
830
+ sortable: boolean;
831
+ sortOrder: TableColumnSortOrder;
832
+ filteredValue: Array<string | number>;
833
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
834
+ install: (app: App) => void;
835
+ };
836
+
837
+ export declare const FireTips: {
838
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
839
+ type?: "info" | "success" | "warning" | "error";
840
+ closable?: boolean;
841
+ icon?: string | object;
842
+ title?: string;
843
+ description?: string;
844
+ class?: string;
845
+ style?: string | object;
846
+ }> & Readonly<{
847
+ onClose?: (() => any) | undefined;
848
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
849
+ close: () => any;
850
+ }, PublicProps, {
851
+ type: "info" | "success" | "warning" | "error";
852
+ icon: string | object;
853
+ title: string;
854
+ closable: boolean;
855
+ description: string;
856
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
857
+ P: {};
858
+ B: {};
859
+ D: {};
860
+ C: {};
861
+ M: {};
862
+ Defaults: {};
863
+ }, Readonly<{
864
+ type?: "info" | "success" | "warning" | "error";
865
+ closable?: boolean;
866
+ icon?: string | object;
867
+ title?: string;
868
+ description?: string;
869
+ class?: string;
870
+ style?: string | object;
871
+ }> & Readonly<{
872
+ onClose?: (() => any) | undefined;
873
+ }>, {}, {}, {}, {}, {
874
+ type: "info" | "success" | "warning" | "error";
875
+ icon: string | object;
876
+ title: string;
877
+ closable: boolean;
878
+ description: string;
879
+ }>;
880
+ __isFragment?: never;
881
+ __isTeleport?: never;
882
+ __isSuspense?: never;
883
+ } & ComponentOptionsBase<Readonly<{
884
+ type?: "info" | "success" | "warning" | "error";
885
+ closable?: boolean;
886
+ icon?: string | object;
887
+ title?: string;
888
+ description?: string;
889
+ class?: string;
890
+ style?: string | object;
891
+ }> & Readonly<{
892
+ onClose?: (() => any) | undefined;
893
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
894
+ close: () => any;
895
+ }, string, {
896
+ type: "info" | "success" | "warning" | "error";
897
+ icon: string | object;
898
+ title: string;
899
+ closable: boolean;
900
+ description: string;
901
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
902
+ $slots: {
903
+ icon?(_: {}): any;
904
+ title?(_: {}): any;
905
+ description?(_: {}): any;
906
+ default?(_: {}): any;
907
+ };
908
+ }) & {
909
+ install: (app: App) => void;
910
+ };
911
+
912
+ export declare const FireTooltip: typeof _default_2 & {
913
+ install: (app: App) => void;
914
+ };
915
+
916
+ export declare interface FooterProps {
917
+ /**
918
+ * 底部高度
919
+ */
920
+ height?: string | number;
921
+ /**
922
+ * 自定义类名
923
+ */
924
+ class?: string;
925
+ /**
926
+ * 自定义样式
927
+ */
928
+ style?: string | object;
929
+ }
930
+
931
+ export declare interface FormEmits {
932
+ /**
933
+ * 表单提交事件
934
+ */
935
+ (e: 'submit', evt: Event): void;
936
+ /**
937
+ * 表单重置事件
938
+ */
939
+ (e: 'reset'): void;
940
+ }
941
+
942
+ export declare interface FormInstance<T = Record<string, any>> {
943
+ /**
944
+ * 验证表单
945
+ */
946
+ validate: (callback?: (valid: boolean, errors?: ValidateError[]) => void) => Promise<boolean>;
947
+ /**
948
+ * 验证指定字段
949
+ */
950
+ validateField: (props: keyof T | Array<keyof T>, callback?: (error: ValidateError | null, fields?: Record<string, ValidateError[]>) => void) => Promise<boolean>;
951
+ /**
952
+ * 重置表单
953
+ */
954
+ resetFields: () => void;
955
+ /**
956
+ * 清除验证状态
957
+ */
958
+ clearValidate: (props?: keyof T | Array<keyof T>) => void;
959
+ /**
960
+ * 滚动到指定字段
961
+ */
962
+ scrollToField: (prop: keyof T) => void;
963
+ }
964
+
965
+ export declare interface FormItemEmits {
966
+ /**
967
+ * 验证状态变化事件
968
+ */
969
+ (e: 'validate', valid: boolean, errorMessage: string): void;
970
+ }
971
+
972
+ export declare interface FormItemInstance {
973
+ /**
974
+ * 验证字段
975
+ */
976
+ validate: (trigger?: string, callback?: (valid: boolean, errorMessage: string) => void) => Promise<boolean>;
977
+ /**
978
+ * 重置字段
979
+ */
980
+ resetField: () => void;
981
+ /**
982
+ * 清除验证状态
983
+ */
984
+ clearValidate: () => void;
985
+ }
986
+
987
+ export declare interface FormItemProps {
988
+ /**
989
+ * 字段名
990
+ */
991
+ prop?: string;
992
+ /**
993
+ * 标签文本
994
+ */
995
+ label?: string;
996
+ /**
997
+ * 标签宽度
998
+ */
999
+ labelWidth?: string | number;
1000
+ /**
1001
+ * 是否必填
1002
+ */
1003
+ required?: boolean;
1004
+ /**
1005
+ * 错误信息
1006
+ */
1007
+ error?: string;
1008
+ /**
1009
+ * 自定义类名
1010
+ */
1011
+ class?: string;
1012
+ /**
1013
+ * 自定义样式
1014
+ */
1015
+ style?: string | object;
1016
+ }
1017
+
1018
+ declare type FormLabelPosition = 'left' | 'top';
1019
+
1020
+ export declare interface FormProps<T = Record<string, any>> {
1021
+ /**
1022
+ * 表单数据模型
1023
+ */
1024
+ model?: T;
1025
+ /**
1026
+ * 表单验证规则
1027
+ */
1028
+ rules?: Record<keyof T, RuleItem | RuleItem[]>;
1029
+ /**
1030
+ * 标签宽度
1031
+ */
1032
+ labelWidth?: string | number;
1033
+ /**
1034
+ * 标签位置
1035
+ */
1036
+ labelPosition?: FormLabelPosition;
1037
+ /**
1038
+ * 是否为行内表单
1039
+ */
1040
+ inline?: boolean;
1041
+ /**
1042
+ * 是否显示必填星号
1043
+ */
1044
+ hideRequiredAsterisk?: boolean;
1045
+ /**
1046
+ * 必填符号
1047
+ */
1048
+ requiredSymbol?: string;
1049
+ /**
1050
+ * 是否显示状态图标
1051
+ */
1052
+ statusIcon?: boolean;
1053
+ /**
1054
+ * 自定义类名
1055
+ */
1056
+ class?: string;
1057
+ /**
1058
+ * 自定义样式
1059
+ */
1060
+ style?: string | object;
1061
+ }
1062
+
1063
+ export declare interface HeaderProps {
1064
+ /**
1065
+ * 头部高度
1066
+ */
1067
+ height?: string | number;
1068
+ /**
1069
+ * 自定义类名
1070
+ */
1071
+ class?: string;
1072
+ /**
1073
+ * 自定义样式
1074
+ */
1075
+ style?: string | object;
1076
+ }
1077
+
1078
+ export declare interface InputEmits {
1079
+ /**
1080
+ * 输入事件
1081
+ */
1082
+ (e: 'update:modelValue', value: string | number): void;
1083
+ /**
1084
+ * 输入事件
1085
+ */
1086
+ (e: 'input', value: string | number): void;
1087
+ /**
1088
+ * 焦点事件
1089
+ */
1090
+ (e: 'focus', event: FocusEvent): void;
1091
+ /**
1092
+ * 失焦事件
1093
+ */
1094
+ (e: 'blur', event: FocusEvent): void;
1095
+ /**
1096
+ * 回车事件
1097
+ */
1098
+ (e: 'enter', event: KeyboardEvent): void;
1099
+ /**
1100
+ * 清除事件
1101
+ */
1102
+ (e: 'clear'): void;
1103
+ }
1104
+
1105
+ export declare interface InputProps {
1106
+ /**
1107
+ * 输入框类型
1108
+ */
1109
+ type?: string;
1110
+ /**
1111
+ * 绑定值
1112
+ */
1113
+ modelValue?: string | number;
1114
+ /**
1115
+ * 占位符
1116
+ */
1117
+ placeholder?: string;
1118
+ /**
1119
+ * 是否禁用
1120
+ */
1121
+ disabled?: boolean;
1122
+ /**
1123
+ * 是否只读
1124
+ */
1125
+ readonly?: boolean;
1126
+ /**
1127
+ * 是否为密码输入框
1128
+ */
1129
+ password?: boolean;
1130
+ /**
1131
+ * 最大长度
1132
+ */
1133
+ maxlength?: number;
1134
+ /**
1135
+ * 最小长度
1136
+ */
1137
+ minlength?: number;
1138
+ /**
1139
+ * 是否显示字数统计
1140
+ */
1141
+ showWordLimit?: boolean;
1142
+ /**
1143
+ * 输入框大小
1144
+ */
1145
+ size?: 'large' | 'medium' | 'small';
1146
+ /**
1147
+ * 前缀图标
1148
+ */
1149
+ prefixIcon?: string | object;
1150
+ /**
1151
+ * 后缀图标
1152
+ */
1153
+ suffixIcon?: string | object;
1154
+ /**
1155
+ * 自定义类名
1156
+ */
1157
+ class?: string;
1158
+ /**
1159
+ * 自定义样式
1160
+ */
1161
+ style?: string | object;
1162
+ }
1163
+
1164
+ declare interface InputProps_2 {
1165
+ type?: string;
1166
+ modelValue?: string | number;
1167
+ placeholder?: string;
1168
+ disabled?: boolean;
1169
+ readonly?: boolean;
1170
+ password?: boolean;
1171
+ maxlength?: number;
1172
+ minlength?: number;
1173
+ showWordLimit?: boolean;
1174
+ size?: 'large' | 'medium' | 'small';
1175
+ prefixIcon?: string | object;
1176
+ suffixIcon?: string | object;
1177
+ class?: string;
1178
+ style?: string | object;
1179
+ }
1180
+
1181
+ export declare interface InputSlots {
1182
+ /**
1183
+ * 前缀
1184
+ */
1185
+ prefix?: () => any;
1186
+ /**
1187
+ * 后缀
1188
+ */
1189
+ suffix?: () => any;
1190
+ /**
1191
+ * 输入框内容
1192
+ */
1193
+ default?: () => any;
1194
+ }
1195
+
1196
+ export declare interface MainProps {
1197
+ /**
1198
+ * 自定义类名
1199
+ */
1200
+ class?: string;
1201
+ /**
1202
+ * 自定义样式
1203
+ */
1204
+ style?: string | object;
1205
+ }
1206
+
1207
+ declare interface Props {
1208
+ type?: ButtonType;
1209
+ size?: ButtonSize;
1210
+ nativeType?: ButtonNativeType;
1211
+ disabled?: boolean;
1212
+ loading?: boolean;
1213
+ circle?: boolean;
1214
+ block?: boolean;
1215
+ loadingIcon?: string;
1216
+ icon?: string;
1217
+ }
1218
+
1219
+ export declare function registerComponent(app: App, component: Component): void;
1220
+
1221
+ export declare function registerComponents(app: App, components: Component[]): void;
1222
+
1223
+ export declare interface ResponsiveProps {
1224
+ span?: number;
1225
+ offset?: number;
1226
+ }
1227
+
1228
+ /**
1229
+ * @file 栅格系统类型定义
1230
+ */
1231
+ declare interface ResponsiveProps_2 {
1232
+ /**
1233
+ * 占列数
1234
+ */
1235
+ span?: number;
1236
+ /**
1237
+ * 偏移量
1238
+ */
1239
+ offset?: number;
1240
+ }
1241
+
1242
+ export declare interface RowProps {
1243
+ /**
1244
+ * 栅格间距
1245
+ */
1246
+ gutter?: number | [number, number];
1247
+ /**
1248
+ * 水平对齐方式
1249
+ */
1250
+ justify?: 'start' | 'end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
1251
+ /**
1252
+ * 垂直对齐方式
1253
+ */
1254
+ align?: 'top' | 'middle' | 'bottom';
1255
+ /**
1256
+ * 自定义类名
1257
+ */
1258
+ class?: string;
1259
+ /**
1260
+ * 自定义样式
1261
+ */
1262
+ style?: string | object;
1263
+ }
1264
+
1265
+ declare interface RowProps_2 {
1266
+ /**
1267
+ * 栅格间距
1268
+ */
1269
+ gutter?: number | [number, number];
1270
+ /**
1271
+ * 水平对齐方式
1272
+ */
1273
+ justify?: 'start' | 'end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
1274
+ /**
1275
+ * 垂直对齐方式
1276
+ */
1277
+ align?: 'top' | 'middle' | 'bottom';
1278
+ /**
1279
+ * 自定义类名
1280
+ */
1281
+ class?: string;
1282
+ /**
1283
+ * 自定义样式
1284
+ */
1285
+ style?: string | object;
1286
+ }
1287
+
1288
+ declare interface TableColumnFilterOption {
1289
+ text: string;
1290
+ value: string | number;
1291
+ }
1292
+
1293
+ declare type TableColumnFixed = 'left' | 'right';
1294
+
1295
+ export declare interface TableColumnProps {
1296
+ /**
1297
+ * 列字段名
1298
+ */
1299
+ prop?: string;
1300
+ /**
1301
+ * 列标题
1302
+ */
1303
+ label?: string;
1304
+ /**
1305
+ * 列宽度
1306
+ */
1307
+ width?: string | number;
1308
+ /**
1309
+ * 是否固定列
1310
+ */
1311
+ fixed?: TableColumnFixed;
1312
+ /**
1313
+ * 是否可排序
1314
+ */
1315
+ sortable?: boolean;
1316
+ /**
1317
+ * 排序方法
1318
+ */
1319
+ sortMethod?: (a: any, b: any) => number;
1320
+ /**
1321
+ * 排序顺序
1322
+ */
1323
+ sortOrder?: TableColumnSortOrder;
1324
+ /**
1325
+ * 过滤选项
1326
+ */
1327
+ filters?: TableColumnFilterOption[];
1328
+ /**
1329
+ * 过滤方法
1330
+ */
1331
+ filterMethod?: (value: string | number, row: any) => boolean;
1332
+ /**
1333
+ * 过滤值
1334
+ */
1335
+ filteredValue?: Array<string | number>;
1336
+ /**
1337
+ * 自定义类名
1338
+ */
1339
+ class?: string;
1340
+ /**
1341
+ * 自定义样式
1342
+ */
1343
+ style?: string | object;
1344
+ }
1345
+
1346
+ export declare interface TableColumnSlots {
1347
+ /**
1348
+ * 列标题
1349
+ */
1350
+ header?: (props: {
1351
+ column: TableColumnProps;
1352
+ }) => any;
1353
+ /**
1354
+ * 列内容
1355
+ */
1356
+ default?: (props: {
1357
+ row: any;
1358
+ column: TableColumnProps;
1359
+ $index: number;
1360
+ }) => any;
1361
+ /**
1362
+ * 排序图标
1363
+ */
1364
+ sortIcon?: (props: {
1365
+ sortOrder: TableColumnSortOrder;
1366
+ }) => any;
1367
+ /**
1368
+ * 过滤图标
1369
+ */
1370
+ filterIcon?: (props: {
1371
+ filtered: boolean;
1372
+ }) => any;
1373
+ }
1374
+
1375
+ declare type TableColumnSortOrder = 'ascending' | 'descending' | null;
1376
+
1377
+ export declare interface TableEmits<T = any> {
1378
+ /**
1379
+ * 选择行事件
1380
+ */
1381
+ (e: 'row-click', row: T, event: Event): void;
1382
+ /**
1383
+ * 排序事件
1384
+ */
1385
+ (e: 'sort-change', column: TableColumnProps, order: TableColumnSortOrder): void;
1386
+ /**
1387
+ * 过滤事件
1388
+ */
1389
+ (e: 'filter-change', filters: Record<string, Array<string | number>>): void;
1390
+ /**
1391
+ * 当前行变化事件
1392
+ */
1393
+ (e: 'current-change', currentRow: T | null, oldCurrentRow: T | null): void;
1394
+ }
1395
+
1396
+ export declare interface TableInstance<T = any> {
1397
+ /**
1398
+ * 清空排序
1399
+ */
1400
+ clearSort: () => void;
1401
+ /**
1402
+ * 清空过滤
1403
+ */
1404
+ clearFilter: (columnKey?: string | string[]) => void;
1405
+ /**
1406
+ * 设置当前行
1407
+ */
1408
+ setCurrentRow: (row: T | null) => void;
1409
+ /**
1410
+ * 刷新表格
1411
+ */
1412
+ doLayout: () => void;
1413
+ /**
1414
+ * 获取所有行
1415
+ */
1416
+ getRows: () => T[];
1417
+ }
1418
+
1419
+ export declare interface TableProps<T = any> {
1420
+ /**
1421
+ * 表格数据
1422
+ */
1423
+ data?: T[];
1424
+ /**
1425
+ * 是否显示边框
1426
+ */
1427
+ border?: boolean;
1428
+ /**
1429
+ * 是否显示斑马纹
1430
+ */
1431
+ stripe?: boolean;
1432
+ /**
1433
+ * 是否高亮当前行
1434
+ */
1435
+ highlightCurrentRow?: boolean;
1436
+ /**
1437
+ * 当前行索引
1438
+ */
1439
+ currentRowKey?: string | number;
1440
+ /**
1441
+ * 表格高度
1442
+ */
1443
+ height?: string | number;
1444
+ /**
1445
+ * 表格最大高度
1446
+ */
1447
+ maxHeight?: string | number;
1448
+ /**
1449
+ * 自定义类名
1450
+ */
1451
+ class?: string;
1452
+ /**
1453
+ * 自定义样式
1454
+ */
1455
+ style?: string | object;
1456
+ }
1457
+
1458
+ export declare interface TipsEmits {
1459
+ /**
1460
+ * 关闭事件
1461
+ */
1462
+ (e: 'close'): void;
1463
+ }
1464
+
1465
+ export declare interface TipsProps {
1466
+ /**
1467
+ * 提示类型
1468
+ */
1469
+ type?: 'info' | 'success' | 'warning' | 'error';
1470
+ /**
1471
+ * 是否可关闭
1472
+ */
1473
+ closable?: boolean;
1474
+ /**
1475
+ * 自定义图标
1476
+ */
1477
+ icon?: string | object;
1478
+ /**
1479
+ * 标题
1480
+ */
1481
+ title?: string;
1482
+ /**
1483
+ * 描述
1484
+ */
1485
+ description?: string;
1486
+ /**
1487
+ * 自定义类名
1488
+ */
1489
+ class?: string;
1490
+ /**
1491
+ * 自定义样式
1492
+ */
1493
+ style?: string | object;
1494
+ }
1495
+
1496
+ export declare interface TipsSlots {
1497
+ /**
1498
+ * 默认内容
1499
+ */
1500
+ default: () => any;
1501
+ /**
1502
+ * 图标
1503
+ */
1504
+ icon?: () => any;
1505
+ /**
1506
+ * 标题
1507
+ */
1508
+ title?: () => any;
1509
+ /**
1510
+ * 描述
1511
+ */
1512
+ description?: () => any;
1513
+ }
1514
+
1515
+ /**
1516
+ * Tooltip 组件 Emits 接口
1517
+ */
1518
+ export declare interface TooltipEmits {
1519
+ /** 更新可见状态 */
1520
+ (e: 'update:visible', value: boolean): void;
1521
+ /** 显示事件 */
1522
+ (e: 'show'): void;
1523
+ /** 隐藏事件 */
1524
+ (e: 'hide'): void;
1525
+ }
1526
+
1527
+ /**
1528
+ * @file Tooltip 组件类型定义
1529
+ * @description 定义 Tooltip 组件的 Props、Emits 接口
1530
+ */
1531
+ /**
1532
+ * Tooltip 位置类型
1533
+ */
1534
+ export declare type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
1535
+
1536
+ declare type TooltipPlacement_2 = 'top' | 'bottom' | 'left' | 'right';
1537
+
1538
+ /**
1539
+ * Tooltip 组件 Props 接口
1540
+ */
1541
+ export declare interface TooltipProps {
1542
+ /** 提示内容 */
1543
+ content?: string;
1544
+ /** 位置 */
1545
+ placement?: TooltipPlacement;
1546
+ /** 触发方式 */
1547
+ trigger?: TooltipTrigger;
1548
+ /** 是否禁用 */
1549
+ disabled?: boolean;
1550
+ /** 是否可见(受控模式) */
1551
+ visible?: boolean;
1552
+ /** 偏移量 */
1553
+ offset?: number;
1554
+ }
1555
+
1556
+ declare interface TooltipProps_2 {
1557
+ content?: string;
1558
+ placement?: TooltipPlacement_2;
1559
+ trigger?: TooltipTrigger_2;
1560
+ disabled?: boolean;
1561
+ visible?: boolean;
1562
+ offset?: number;
1563
+ }
1564
+
1565
+ /**
1566
+ * Tooltip 触发方式类型
1567
+ */
1568
+ export declare type TooltipTrigger = 'hover' | 'click' | 'focus';
1569
+
1570
+ declare type TooltipTrigger_2 = 'hover' | 'click' | 'focus';
1571
+
1572
+ /**
1573
+ * 生成 BEM 命名空间
1574
+ * @param block 组件名称
1575
+ * @returns BEM 命名空间对象
1576
+ */
1577
+ export declare function useNamespace(block: string): {
1578
+ b: string;
1579
+ e: (element: string) => string;
1580
+ m: (modifier: string) => string;
1581
+ em: (element: string, modifier: string) => string;
1582
+ };
1583
+
1584
+ export declare function withInstall<T>(component: T & {
1585
+ name?: string;
1586
+ }): T & {
1587
+ install: (app: App) => void;
1588
+ };
1589
+
1590
+ export { }