@cregis/ui 1.1.4 → 1.1.6

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.
@@ -8,13 +8,18 @@ import { DefineComponent } from 'vue';
8
8
  import { InjectionKey } from 'vue';
9
9
  import { PublicProps } from 'vue';
10
10
  import { Ref } from 'vue';
11
- import { VNode } from 'vue';
12
11
 
13
12
  declare type Align = 'left' | 'center' | 'right';
14
13
 
15
14
  declare type Align_2 = 'left' | 'center' | 'right';
16
15
 
17
- export declare const Badge: WithComponentSlots<typeof _default_11, BadgeSlots>;
16
+ export declare const Badge: DefineComponent<BadgeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
17
+ value: string | number;
18
+ type: "info" | "success" | "danger";
19
+ hidden: boolean;
20
+ max: number;
21
+ isDot: boolean;
22
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
18
23
 
19
24
  export declare interface BadgeProps {
20
25
  value?: string | number;
@@ -25,13 +30,13 @@ export declare interface BadgeProps {
25
30
  offset?: [number, number];
26
31
  }
27
32
 
28
- export declare interface BadgeSlots {
29
- default?(props?: Record<string, never>): any;
30
- }
31
-
32
33
  declare type BooleanOrStringOrNumber = boolean | string | number;
33
34
 
34
- export declare const Button: WithComponentSlots<typeof _default_2, ButtonSlots>;
35
+ export declare const Button: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
36
+ type: ButtonType;
37
+ size: ButtonSize;
38
+ iconType: IconButtonType;
39
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
35
40
 
36
41
  export declare interface ButtonProps {
37
42
  type?: ButtonType;
@@ -53,24 +58,35 @@ export declare interface ButtonProps {
53
58
 
54
59
  export declare type ButtonSize = 'extraSmall' | 'small' | 'medium' | 'large';
55
60
 
56
- export declare interface ButtonSlots {
57
- default?(props?: Record<string, never>): any;
58
- icon?(props?: Record<string, never>): any;
59
- }
60
-
61
61
  export declare type ButtonType = 'primary' | 'secondary' | 'danger' | 'foreground' | 'sameWhite';
62
62
 
63
- export declare const Cascader: WithComponentSlots<typeof _default_9, CascaderSlots>;
64
-
65
- export declare interface CascaderBaseSlotProps {
66
- modelValue?: StringOrNumber;
67
- selectedLabel: string;
68
- level: CascaderSelectionLevel;
69
- primaryOption?: CascaderRootOption;
70
- subOption?: CascaderSubOption;
71
- placeholder?: string;
72
- hasSelection: boolean;
73
- }
63
+ export declare const Cascader: DefineComponent<CascaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
64
+ "update:modelValue": (value: StringOrNumber) => any;
65
+ change: (value: StringOrNumber) => any;
66
+ "visible-change": (value: boolean) => any;
67
+ "filter-input": (value: string) => any;
68
+ "filter-clear": () => any;
69
+ }, string, PublicProps, Readonly<CascaderProps> & Readonly<{
70
+ "onUpdate:modelValue"?: (value: StringOrNumber) => any;
71
+ onChange?: (value: StringOrNumber) => any;
72
+ "onVisible-change"?: (value: boolean) => any;
73
+ "onFilter-input"?: (value: string) => any;
74
+ "onFilter-clear"?: () => any;
75
+ }>, {
76
+ type: "plain" | "default" | "noBorder";
77
+ size: "small" | "medium" | "large" | "extraSmall";
78
+ options: CascaderRootOption[];
79
+ maxPopperHeight: StringOrNumber;
80
+ offset: [number, number];
81
+ align: "left" | "right" | "center";
82
+ filterDebounceMs: number;
83
+ noDataText: string;
84
+ noMatchText: string;
85
+ triggerWidth: StringOrNumber;
86
+ searchText: string;
87
+ subPopperWidth: StringOrNumber;
88
+ showSubOptionAmount: boolean;
89
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
74
90
 
75
91
  export declare interface CascaderEmits {
76
92
  (e: 'update:modelValue', value: StringOrNumber): void;
@@ -122,29 +138,6 @@ export declare interface CascaderScrollPayload {
122
138
  /** 当前选中项所在层级:0 未选;1 一级;2 二级 */
123
139
  export declare type CascaderSelectionLevel = 0 | 1 | 2;
124
140
 
125
- export declare interface CascaderSlots {
126
- trigger?(props: CascaderBaseSlotProps & {
127
- open: boolean;
128
- disabled: boolean;
129
- }): any;
130
- label?(props: CascaderBaseSlotProps): any;
131
- option?(props: CascaderBaseSlotProps & {
132
- option: CascaderRootOption;
133
- index: number;
134
- disabled: boolean;
135
- selected: boolean;
136
- isParentOfSelected: boolean;
137
- }): any;
138
- subOption?(props: CascaderBaseSlotProps & {
139
- option: CascaderSubOption;
140
- index: number;
141
- parent: CascaderRootOption;
142
- parentIndex: number;
143
- selected: boolean;
144
- disabled: boolean;
145
- }): any;
146
- }
147
-
148
141
  /** 二级选项 */
149
142
  export declare interface CascaderSubOption {
150
143
  label: string;
@@ -154,7 +147,16 @@ export declare interface CascaderSubOption {
154
147
  filterText?: string;
155
148
  }
156
149
 
157
- export declare const Checkbox: WithComponentSlots<typeof _default_3, CheckboxSlots>;
150
+ export declare const Checkbox: DefineComponent<CheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
151
+ "update:modelValue": (value: number | boolean) => any;
152
+ change: (value: number | boolean) => any;
153
+ }, string, PublicProps, Readonly<CheckboxProps> & Readonly<{
154
+ "onUpdate:modelValue"?: (value: number | boolean) => any;
155
+ onChange?: (value: number | boolean) => any;
156
+ }>, {
157
+ disabled: boolean;
158
+ modelValue: boolean | number;
159
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
158
160
 
159
161
  export declare interface CheckboxEmits {
160
162
  (e: 'update:modelValue', value: boolean | number): void;
@@ -169,10 +171,6 @@ export declare interface CheckboxProps {
169
171
  indeterminate?: boolean;
170
172
  }
171
173
 
172
- export declare interface CheckboxSlots {
173
- default?(props?: Record<string, never>): any;
174
- }
175
-
176
174
  export declare interface ClickOutsideOptions {
177
175
  /** 忽略的元素列表,点击这些元素内部不会触发回调(如触发弹窗的按钮) */
178
176
  ignore?: ClickOutsideTarget[];
@@ -230,49 +228,7 @@ declare interface CregisTableProps {
230
228
 
231
229
  export declare type DataItem = Record<string, any>;
232
230
 
233
- declare const _default: DefineComponent<InputProps, {
234
- focus: () => Promise<void>;
235
- updateTextWidth: () => void;
236
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
237
- input: (value: string | number) => any;
238
- "update:modelValue": (value: string | number) => any;
239
- change: (value: string | number) => any;
240
- focus: (value: FocusEvent) => any;
241
- blur: (value: FocusEvent) => any;
242
- clear: () => any;
243
- }, string, PublicProps, Readonly<InputProps> & Readonly<{
244
- onInput?: (value: string | number) => any;
245
- "onUpdate:modelValue"?: (value: string | number) => any;
246
- onChange?: (value: string | number) => any;
247
- onFocus?: (value: FocusEvent) => any;
248
- onBlur?: (value: FocusEvent) => any;
249
- onClear?: () => any;
250
- }>, {
251
- type: "text" | "number" | "textarea";
252
- size: "small" | "medium" | "large";
253
- width: string;
254
- placeholder: string;
255
- rows: number;
256
- nonNegative: boolean;
257
- pasteText: string;
258
- clearText: string;
259
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
260
-
261
- declare const _default_10: DefineComponent<TagProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TagProps> & Readonly<{}>, {
262
- type: "danger" | "sameWhite" | "solid" | "success" | "invalid" | "warning" | "subtle" | "gray" | "strokeSubtle" | "strokeSolid" | "ready" | "apricot" | "khaki" | "grass" | "sage" | "cyan" | "iceBlue" | "periwinkle" | "lilac" | "orchid" | "mallow" | "rose" | "coral" | "mauve" | "moss" | "steel" | "grape" | "lime" | "amlDanger";
263
- size: TagSize;
264
- palette: boolean;
265
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
266
-
267
- declare const _default_11: DefineComponent<BadgeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
268
- value: string | number;
269
- type: "info" | "success" | "danger";
270
- hidden: boolean;
271
- max: number;
272
- isDot: boolean;
273
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
274
-
275
- declare const _default_12: DefineComponent<DialogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
231
+ declare const _default: DefineComponent<DialogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
276
232
  "update:modelValue": (visible: boolean) => any;
277
233
  "after-leave": () => any;
278
234
  }, string, PublicProps, Readonly<DialogProps> & Readonly<{
@@ -289,164 +245,9 @@ declare const _default_12: DefineComponent<DialogProps, {}, {}, {}, {}, Componen
289
245
  lockScroll: boolean;
290
246
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
291
247
 
292
- declare const _default_13: DefineComponent<TimelineProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TimelineProps> & Readonly<{}>, {
293
- dotSize: number | string;
294
- lineWidth: number | string;
295
- iconSize: number | string;
296
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
297
-
298
- declare const _default_14: DefineComponent<TimelineItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
299
- status: TimelineItemStatus;
300
- contentHoverable: boolean;
301
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
302
-
303
- declare const _default_15: DefineComponent<CregisTableProps, {
304
- selectMode: Ref<boolean>;
305
- openSelect: () => void;
306
- closeSelect: () => void;
307
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
308
- "row-click": (...args: any[]) => void;
309
- "update:selected-list": (...args: any[]) => void;
310
- "selected-change": (...args: any[]) => void;
311
- "select-close": (...args: any[]) => void;
312
- }, string, PublicProps, Readonly<CregisTableProps> & Readonly<{
313
- "onRow-click"?: (...args: any[]) => any;
314
- "onUpdate:selected-list"?: (...args: any[]) => any;
315
- "onSelected-change"?: (...args: any[]) => any;
316
- "onSelect-close"?: (...args: any[]) => any;
317
- }>, {
318
- columnHeight: number;
319
- headerHeight: number;
320
- bottomPadding: number;
321
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
322
-
323
- declare const _default_16: DefineComponent<TableListColumnProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
324
- selectChange: (...args: any[]) => void;
325
- }, string, PublicProps, Readonly<TableListColumnProps> & Readonly<{
326
- onSelectChange?: (...args: any[]) => any;
327
- }>, {
328
- type: "default" | "select";
329
- hidden: boolean;
330
- align: "left" | "center" | "right";
331
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
332
-
333
- declare const _default_2: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
334
- type: ButtonType;
335
- size: ButtonSize;
336
- iconType: IconButtonType;
337
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
338
-
339
- declare const _default_3: DefineComponent<CheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
340
- "update:modelValue": (value: number | boolean) => any;
341
- change: (value: number | boolean) => any;
342
- }, string, PublicProps, Readonly<CheckboxProps> & Readonly<{
343
- "onUpdate:modelValue"?: (value: number | boolean) => any;
344
- onChange?: (value: number | boolean) => any;
345
- }>, {
346
- disabled: boolean;
347
- modelValue: boolean | number;
348
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
349
-
350
- declare const _default_4: DefineComponent<RadioProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
351
- "update:modelValue": (value: RadioValue) => any;
352
- change: (value: RadioValue) => any;
353
- }, string, PublicProps, Readonly<RadioProps> & Readonly<{
354
- "onUpdate:modelValue"?: (value: RadioValue) => any;
355
- onChange?: (value: RadioValue) => any;
356
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
357
-
358
- declare const _default_5: DefineComponent<TabsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
359
- "update:modelValue": (name: string | number) => any;
360
- }, string, PublicProps, Readonly<TabsProps> & Readonly<{
361
- "onUpdate:modelValue"?: (name: string | number) => any;
362
- }>, {
363
- type: "default" | "card";
364
- size: TabSize;
365
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
366
-
367
- declare const _default_6: DefineComponent<PopoverProps, {
368
- isOpen: Ref<boolean>;
369
- open: () => void;
370
- close: () => void;
371
- update: () => void;
372
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
373
- scroll: (payload: PopoverScrollPayload) => any;
374
- "visible-change": (value: boolean) => any;
375
- "click-outside": (value: boolean) => any;
376
- }, string, PublicProps, Readonly<PopoverProps> & Readonly<{
377
- onScroll?: (payload: PopoverScrollPayload) => any;
378
- "onVisible-change"?: (value: boolean) => any;
379
- "onClick-outside"?: (value: boolean) => any;
380
- }>, {
381
- disabled: boolean;
382
- teleported: boolean;
383
- preserveContentMount: boolean;
384
- trigger: "hover" | "click";
385
- placement: Placement;
386
- manual: boolean;
387
- openDelay: number;
388
- closeDelay: number;
389
- offset: [number, number];
390
- padding: string | number;
391
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
392
-
393
- declare const _default_7: DefineComponent<SelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
394
- "update:modelValue": (value: StringOrNumber | StringOrNumber[]) => any;
395
- change: (value: StringOrNumber | StringOrNumber[]) => any;
396
- "visible-change": (value: boolean) => any;
397
- "filter-input": (value: string) => any;
398
- "filter-clear": () => any;
399
- }, string, PublicProps, Readonly<SelectProps> & Readonly<{
400
- "onUpdate:modelValue"?: (value: StringOrNumber | StringOrNumber[]) => any;
401
- onChange?: (value: StringOrNumber | StringOrNumber[]) => any;
402
- "onVisible-change"?: (value: boolean) => any;
403
- "onFilter-input"?: (value: string) => any;
404
- "onFilter-clear"?: () => any;
405
- }>, {
406
- type: "plain" | "default" | "noBorder";
407
- size: "small" | "medium" | "large" | "extraSmall";
408
- placeholder: string;
409
- align: "left" | "right" | "center";
410
- filterDebounceMs: number;
411
- noDataText: string;
412
- noMatchText: string;
413
- triggerWidth: StringOrNumber;
414
- searchText: string;
415
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
416
-
417
- declare const _default_8: DefineComponent<OptionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<OptionProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
418
-
419
- declare const _default_9: DefineComponent<CascaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
420
- "update:modelValue": (value: StringOrNumber) => any;
421
- change: (value: StringOrNumber) => any;
422
- "visible-change": (value: boolean) => any;
423
- "filter-input": (value: string) => any;
424
- "filter-clear": () => any;
425
- }, string, PublicProps, Readonly<CascaderProps> & Readonly<{
426
- "onUpdate:modelValue"?: (value: StringOrNumber) => any;
427
- onChange?: (value: StringOrNumber) => any;
428
- "onVisible-change"?: (value: boolean) => any;
429
- "onFilter-input"?: (value: string) => any;
430
- "onFilter-clear"?: () => any;
431
- }>, {
432
- type: "plain" | "default" | "noBorder";
433
- size: "small" | "medium" | "large" | "extraSmall";
434
- options: CascaderRootOption[];
435
- maxPopperHeight: StringOrNumber;
436
- offset: [number, number];
437
- align: "left" | "right" | "center";
438
- filterDebounceMs: number;
439
- noDataText: string;
440
- noMatchText: string;
441
- triggerWidth: StringOrNumber;
442
- searchText: string;
443
- subPopperWidth: StringOrNumber;
444
- showSubOptionAmount: boolean;
445
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
446
-
447
248
  export declare const Dialog: DialogComponent;
448
249
 
449
- declare type DialogComponent = WithComponentSlots<typeof _default_12, DialogSlots> & {
250
+ declare type DialogComponent = typeof _default & {
450
251
  install: (app: App) => void;
451
252
  confirm: typeof confirm_2;
452
253
  };
@@ -467,10 +268,6 @@ export declare interface DialogProps {
467
268
  lockScroll?: boolean;
468
269
  }
469
270
 
470
- export declare interface DialogSlots {
471
- default?(props?: Record<string, never>): any;
472
- }
473
-
474
271
  export declare const Divider: DefineComponent<DividerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DividerProps> & Readonly<{}>, {
475
272
  direction: "horizontal" | "vertical";
476
273
  borderStyle: "solid" | "dashed" | "dotted";
@@ -488,24 +285,37 @@ export declare interface DividerProps {
488
285
  length?: string;
489
286
  }
490
287
 
491
- /**
492
- * 插槽补全依赖 Volar 的 `new Comp({})` 实例上的 `$slots`。
493
- *
494
- * 不能写成 `C & { new(): { $slots } }`:两个构造函数的实例会交叉,
495
- * Vue 自带的 `$slots` 字符串索引会留下来,`#` 弹不出具名插槽。
496
- * 也不能用 `C extends ... ? ...`:检查能过,补全展开不了。
497
- *
498
- * 这里只保留一个构造函数,并用映射类型去掉原来的 `$slots`,只挂具名插槽。
499
- */
500
- declare type DropIndexSignature<S> = {
501
- [K in keyof S as string extends K ? never : number extends K ? never : K]: S[K];
502
- };
503
-
504
288
  export declare const getDialogZIndex: () => number;
505
289
 
506
290
  export declare type IconButtonType = 'rectangle' | 'square' | 'circle' | 'professional';
507
291
 
508
- export declare const Input: WithComponentSlots<typeof _default, InputSlots>;
292
+ export declare const Input: DefineComponent<InputProps, {
293
+ focus: () => Promise<void>;
294
+ updateTextWidth: () => void;
295
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
296
+ input: (value: string | number) => any;
297
+ "update:modelValue": (value: string | number) => any;
298
+ change: (value: string | number) => any;
299
+ focus: (value: FocusEvent) => any;
300
+ blur: (value: FocusEvent) => any;
301
+ clear: () => any;
302
+ }, string, PublicProps, Readonly<InputProps> & Readonly<{
303
+ onInput?: (value: string | number) => any;
304
+ "onUpdate:modelValue"?: (value: string | number) => any;
305
+ onChange?: (value: string | number) => any;
306
+ onFocus?: (value: FocusEvent) => any;
307
+ onBlur?: (value: FocusEvent) => any;
308
+ onClear?: () => any;
309
+ }>, {
310
+ type: "text" | "number" | "textarea";
311
+ size: "small" | "medium" | "large";
312
+ width: string;
313
+ placeholder: string;
314
+ rows: number;
315
+ nonNegative: boolean;
316
+ pasteText: string;
317
+ clearText: string;
318
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
509
319
 
510
320
  export declare interface InputEmits {
511
321
  (e: 'update:modelValue', value: StringOrNumber_2): void;
@@ -537,15 +347,6 @@ export declare interface InputProps {
537
347
  clearText?: string;
538
348
  }
539
349
 
540
- export declare interface InputSlots {
541
- prefix?(props?: Record<string, never>): any;
542
- suffix?(props?: Record<string, never>): any;
543
- }
544
-
545
- declare type InstanceWithoutSlots<I> = {
546
- [K in keyof I as K extends '$slots' ? never : K]: I[K];
547
- };
548
-
549
350
  export declare const isElementMeasurable: (el: {
550
351
  isConnected: boolean;
551
352
  offsetWidth: number;
@@ -593,7 +394,7 @@ export declare interface NotificationProps {
593
394
  onVanish?: () => void;
594
395
  }
595
396
 
596
- declare const Option_2: WithComponentSlots<typeof _default_8, OptionSlots>;
397
+ declare const Option_2: DefineComponent<OptionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<OptionProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
597
398
  export { Option_2 as Option }
598
399
 
599
400
  export declare interface OptionProps {
@@ -604,19 +405,34 @@ export declare interface OptionProps {
604
405
  filterText?: string;
605
406
  }
606
407
 
607
- export declare interface OptionSlots {
608
- default?(props: {
609
- label: string;
610
- value: StringOrNumber;
611
- disabled: boolean;
612
- selected: boolean;
613
- }): any;
614
- }
615
-
616
408
  /** 与 @popperjs/core Placement 对齐,本地声明以免公共 d.ts 依赖该包 */
617
409
  export declare type Placement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
618
410
 
619
- export declare const Popover: WithComponentSlots<typeof _default_6, PopoverSlots>;
411
+ export declare const Popover: DefineComponent<PopoverProps, {
412
+ isOpen: Ref<boolean>;
413
+ open: () => void;
414
+ close: () => void;
415
+ update: () => void;
416
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
417
+ scroll: (payload: PopoverScrollPayload) => any;
418
+ "visible-change": (value: boolean) => any;
419
+ "click-outside": (value: boolean) => any;
420
+ }, string, PublicProps, Readonly<PopoverProps> & Readonly<{
421
+ onScroll?: (payload: PopoverScrollPayload) => any;
422
+ "onVisible-change"?: (value: boolean) => any;
423
+ "onClick-outside"?: (value: boolean) => any;
424
+ }>, {
425
+ disabled: boolean;
426
+ teleported: boolean;
427
+ preserveContentMount: boolean;
428
+ trigger: "hover" | "click";
429
+ placement: Placement;
430
+ manual: boolean;
431
+ openDelay: number;
432
+ closeDelay: number;
433
+ offset: [number, number];
434
+ padding: string | number;
435
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
620
436
 
621
437
  export declare interface PopoverEmits {
622
438
  (e: 'visible-change', value: boolean): void;
@@ -670,11 +486,6 @@ export declare interface PopoverScrollPayload {
670
486
  scrollLeft: number;
671
487
  }
672
488
 
673
- export declare interface PopoverSlots {
674
- default?(props?: Record<string, never>): any;
675
- reference?(props?: Record<string, never>): any;
676
- }
677
-
678
489
  export declare const Progress: DefineComponent<ProgressProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
679
490
  loading: boolean;
680
491
  strokeWidth: number;
@@ -689,7 +500,13 @@ export declare interface ProgressProps {
689
500
  loading?: boolean;
690
501
  }
691
502
 
692
- export declare const Radio: WithComponentSlots<typeof _default_4, RadioSlots>;
503
+ export declare const Radio: DefineComponent<RadioProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
504
+ "update:modelValue": (value: RadioValue) => any;
505
+ change: (value: RadioValue) => any;
506
+ }, string, PublicProps, Readonly<RadioProps> & Readonly<{
507
+ "onUpdate:modelValue"?: (value: RadioValue) => any;
508
+ onChange?: (value: RadioValue) => any;
509
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
693
510
 
694
511
  export declare interface RadioEmits {
695
512
  (e: 'update:modelValue', value: RadioValue): void;
@@ -703,15 +520,33 @@ export declare interface RadioProps {
703
520
  disabled?: boolean;
704
521
  }
705
522
 
706
- export declare interface RadioSlots {
707
- default?(props?: Record<string, never>): any;
708
- }
709
-
710
523
  export declare type RadioValue = boolean | string | number;
711
524
 
712
525
  export declare const resolveTextOverflow: (metrics: TextOverflowMetrics, axis?: TextOverflowAxis, threshold?: number) => TextOverflowState;
713
526
 
714
- export declare const Select: WithComponentSlots<typeof _default_7, SelectSlots>;
527
+ export declare const Select: DefineComponent<SelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
528
+ "update:modelValue": (value: StringOrNumber | StringOrNumber[]) => any;
529
+ change: (value: StringOrNumber | StringOrNumber[]) => any;
530
+ "visible-change": (value: boolean) => any;
531
+ "filter-input": (value: string) => any;
532
+ "filter-clear": () => any;
533
+ }, string, PublicProps, Readonly<SelectProps> & Readonly<{
534
+ "onUpdate:modelValue"?: (value: StringOrNumber | StringOrNumber[]) => any;
535
+ onChange?: (value: StringOrNumber | StringOrNumber[]) => any;
536
+ "onVisible-change"?: (value: boolean) => any;
537
+ "onFilter-input"?: (value: string) => any;
538
+ "onFilter-clear"?: () => any;
539
+ }>, {
540
+ type: "plain" | "default" | "noBorder";
541
+ size: "small" | "medium" | "large" | "extraSmall";
542
+ placeholder: string;
543
+ align: "left" | "right" | "center";
544
+ filterDebounceMs: number;
545
+ noDataText: string;
546
+ noMatchText: string;
547
+ triggerWidth: StringOrNumber;
548
+ searchText: string;
549
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
715
550
 
716
551
  export declare type SelectAllMode = 'none' | 'some' | 'all';
717
552
 
@@ -735,14 +570,6 @@ export declare interface SelectEmits {
735
570
 
736
571
  export declare const selectInjectKey: InjectionKey<SelectContext>;
737
572
 
738
- export declare interface SelectLabelSlotProps {
739
- modelValue?: StringOrNumber | StringOrNumber[];
740
- displayText: string;
741
- selectedCount: number;
742
- placeholder?: string;
743
- hasSelection: boolean;
744
- }
745
-
746
573
  export declare interface SelectProps {
747
574
  modelValue?: StringOrNumber | StringOrNumber[];
748
575
  type?: Type_2;
@@ -768,11 +595,6 @@ export declare interface SelectScrollPayload {
768
595
  scrollLeft: number;
769
596
  }
770
597
 
771
- export declare interface SelectSlots {
772
- default?(props?: Record<string, never>): any;
773
- label?(props: SelectLabelSlotProps): any;
774
- }
775
-
776
598
  export declare const setCregisUILocale: (lang: LanguageKey) => void;
777
599
 
778
600
  export declare const setDialogZIndex: (_zIndex: number) => void;
@@ -815,9 +637,35 @@ export declare interface SwitchProps {
815
637
  beforeChange?: () => boolean | Promise<boolean>;
816
638
  }
817
639
 
818
- export declare const TableList: WithComponentSlots<typeof _default_15, TableListSlots>;
640
+ export declare const TableList: DefineComponent<CregisTableProps, {
641
+ selectMode: Ref<boolean>;
642
+ openSelect: () => void;
643
+ closeSelect: () => void;
644
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
645
+ "row-click": (...args: any[]) => void;
646
+ "update:selected-list": (...args: any[]) => void;
647
+ "selected-change": (...args: any[]) => void;
648
+ "select-close": (...args: any[]) => void;
649
+ }, string, PublicProps, Readonly<CregisTableProps> & Readonly<{
650
+ "onRow-click"?: (...args: any[]) => any;
651
+ "onUpdate:selected-list"?: (...args: any[]) => any;
652
+ "onSelected-change"?: (...args: any[]) => any;
653
+ "onSelect-close"?: (...args: any[]) => any;
654
+ }>, {
655
+ columnHeight: number;
656
+ headerHeight: number;
657
+ bottomPadding: number;
658
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
819
659
 
820
- export declare const TableListColumn: WithComponentSlots<typeof _default_16, TableListColumnSlots>;
660
+ export declare const TableListColumn: DefineComponent<TableListColumnProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
661
+ selectChange: (...args: any[]) => void;
662
+ }, string, PublicProps, Readonly<TableListColumnProps> & Readonly<{
663
+ onSelectChange?: (...args: any[]) => any;
664
+ }>, {
665
+ type: "default" | "select";
666
+ hidden: boolean;
667
+ align: "left" | "center" | "right";
668
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
821
669
 
822
670
  declare interface TableListColumnProps {
823
671
  data?: DataItem;
@@ -837,13 +685,6 @@ declare interface TableListColumnProps {
837
685
  hidden?: boolean;
838
686
  }
839
687
 
840
- export declare interface TableListColumnSlots {
841
- default?(props: {
842
- data: Record<string, any>;
843
- }): any;
844
- header?(props?: Record<string, never>): any;
845
- }
846
-
847
688
  export declare interface TableListInstance {
848
689
  /** 是否开启批量选择模式 */
849
690
  selectMode: Ref<boolean>;
@@ -851,11 +692,6 @@ export declare interface TableListInstance {
851
692
  closeSelect: () => void;
852
693
  }
853
694
 
854
- export declare interface TableListSlots {
855
- default?(props?: Record<string, never>): VNode[];
856
- operation?(props?: Record<string, never>): VNode[];
857
- }
858
-
859
695
  export declare const TabPane: DefineComponent<TabPaneProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TabPaneProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
860
696
 
861
697
  export declare interface TabPaneProps {
@@ -863,7 +699,14 @@ export declare interface TabPaneProps {
863
699
  name: string | number;
864
700
  }
865
701
 
866
- export declare const Tabs: WithComponentSlots<typeof _default_5, TabsSlots>;
702
+ export declare const Tabs: DefineComponent<TabsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
703
+ "update:modelValue": (name: string | number) => any;
704
+ }, string, PublicProps, Readonly<TabsProps> & Readonly<{
705
+ "onUpdate:modelValue"?: (name: string | number) => any;
706
+ }>, {
707
+ type: "default" | "card";
708
+ size: TabSize;
709
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
867
710
 
868
711
  export declare const TABS_KEY: InjectionKey<TabsContext>;
869
712
 
@@ -885,11 +728,11 @@ export declare interface TabsProps {
885
728
  size?: TabSize;
886
729
  }
887
730
 
888
- export declare interface TabsSlots {
889
- default?(props?: Record<string, never>): any;
890
- }
891
-
892
- export declare const Tag: WithComponentSlots<typeof _default_10, TagSlots>;
731
+ export declare const Tag: DefineComponent<TagProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TagProps> & Readonly<{}>, {
732
+ type: "danger" | "sameWhite" | "solid" | "success" | "invalid" | "warning" | "subtle" | "gray" | "strokeSubtle" | "strokeSolid" | "ready" | "apricot" | "khaki" | "grass" | "sage" | "cyan" | "iceBlue" | "periwinkle" | "lilac" | "orchid" | "mallow" | "rose" | "coral" | "mauve" | "moss" | "steel" | "grape" | "lime" | "amlDanger";
733
+ size: TagSize;
734
+ palette: boolean;
735
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
893
736
 
894
737
  export declare type TagProps = {
895
738
  type?: TagType;
@@ -901,10 +744,6 @@ export declare type TagProps = {
901
744
 
902
745
  export declare type TagSize = 'small' | 'medium' | 'large';
903
746
 
904
- export declare interface TagSlots {
905
- default?(props?: Record<string, never>): any;
906
- }
907
-
908
747
  declare type TagType = 'subtle' | 'solid' | 'gray' | 'strokeSubtle' | 'strokeSolid' | 'danger' | 'warning' | 'success' | 'ready' | 'invalid' | 'apricot' | 'khaki' | 'grass' | 'sage' | 'cyan' | 'iceBlue' | 'periwinkle' | 'lilac' | 'orchid' | 'mallow' | 'rose' | 'coral' | 'mauve' | 'moss' | 'steel' | 'grape' | 'sameWhite' | 'lime' | 'amlDanger';
909
748
 
910
749
  export declare type TextOverflowAxis = 'horizontal' | 'vertical' | 'both';
@@ -922,7 +761,11 @@ export declare interface TextOverflowState {
922
761
  overflow: boolean;
923
762
  }
924
763
 
925
- export declare const Timeline: WithComponentSlots<typeof _default_13, TimelineSlots>;
764
+ export declare const Timeline: DefineComponent<TimelineProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TimelineProps> & Readonly<{}>, {
765
+ dotSize: number | string;
766
+ lineWidth: number | string;
767
+ iconSize: number | string;
768
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
926
769
 
927
770
  export declare const TIMELINE_KEY: InjectionKey<TimelineContext>;
928
771
 
@@ -947,7 +790,10 @@ export declare interface TimelineContext {
947
790
  iconSize: Ref<number | string>;
948
791
  }
949
792
 
950
- export declare const TimelineItem: WithComponentSlots<typeof _default_14, TimelineItemSlots>;
793
+ export declare const TimelineItem: DefineComponent<TimelineItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
794
+ status: TimelineItemStatus;
795
+ contentHoverable: boolean;
796
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
951
797
 
952
798
  export declare interface TimelineItemProps {
953
799
  /** 节点状态:finished 已完成 / pending 待处理 / not-started 未开始 / rejected 已驳回 / withdrawn 已撤回,默认 not-started */
@@ -962,11 +808,6 @@ export declare interface TimelineItemProps {
962
808
  contentHoverable?: boolean;
963
809
  }
964
810
 
965
- export declare interface TimelineItemSlots {
966
- default?(props?: Record<string, never>): any;
967
- title?(props?: Record<string, never>): any;
968
- }
969
-
970
811
  export declare type TimelineItemStatus = 'finished' | 'pending' | 'not-started' | 'rejected' | 'withdrawn';
971
812
 
972
813
  export declare interface TimelineProps {
@@ -978,10 +819,6 @@ export declare interface TimelineProps {
978
819
  iconSize?: number | string;
979
820
  }
980
821
 
981
- export declare interface TimelineSlots {
982
- default?(props?: Record<string, never>): any;
983
- }
984
-
985
822
  export declare type Type = 'primary' | 'info' | 'success' | 'warning' | 'danger';
986
823
 
987
824
  declare type Type_2 = 'default' | 'plain' | 'noBorder';
@@ -1082,12 +919,4 @@ export declare interface UseTextOverflowReturn {
1082
919
  stop: () => void;
1083
920
  }
1084
921
 
1085
- export declare type WithComponentSlots<C extends abstract new (...args: any) => any, S extends Record<string, any>> = {
1086
- new (...args: ConstructorParameters<C>): InstanceWithoutSlots<InstanceType<C>> & {
1087
- $slots: DropIndexSignature<S>;
1088
- };
1089
- } & {
1090
- [K in keyof C]: C[K];
1091
- };
1092
-
1093
922
  export { }