@opentiny/tiny-robot 0.3.0-alpha.5 → 0.3.0-alpha.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.
package/dist/index.d.ts CHANGED
@@ -17,7 +17,6 @@ import { default as default_2 } from './index.vue';
17
17
  import { DefineComponent } from 'vue';
18
18
  import { GlobalComponents } from 'vue';
19
19
  import { GlobalDirectives } from 'vue';
20
- import { MaybeElement } from '@vueuse/core';
21
20
  import { nextTick } from 'vue';
22
21
  import { OnCleanup } from '@vue/reactivity';
23
22
  import { Options } from 'markdown-it';
@@ -47,10 +46,13 @@ declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {},
47
46
  "onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
48
47
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
49
48
 
50
- declare const __VLS_component_3: DefineComponent<DropdownMenuProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
49
+ declare const __VLS_component_3: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
50
+ "update:show": (value: boolean) => any;
51
+ } & {
51
52
  "item-click": (item: DropdownMenuItem) => any;
52
53
  "click-outside": (event: MouseEvent) => any;
53
- }, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{
54
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
55
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
54
56
  "onItem-click"?: ((item: DropdownMenuItem) => any) | undefined;
55
57
  "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
56
58
  }>, {
@@ -67,7 +69,6 @@ crossAxis?: number;
67
69
  } | undefined;
68
70
  readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
69
71
  readonly preventOverflow?: boolean | undefined;
70
- readonly renderAllTriggers?: boolean | undefined;
71
72
  readonly show?: boolean | undefined;
72
73
  readonly transitionProps?: TransitionProps | undefined;
73
74
  readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
@@ -77,8 +78,6 @@ $attrs: {
77
78
  };
78
79
  $refs: {
79
80
  [x: string]: unknown;
80
- } & {
81
- popperRef: HTMLDivElement;
82
81
  };
83
82
  $slots: Readonly<{
84
83
  [name: string]: Slot<any> | undefined;
@@ -96,14 +95,12 @@ crossAxis?: number;
96
95
  };
97
96
  placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
98
97
  preventOverflow?: boolean;
99
- renderAllTriggers?: boolean;
100
98
  show?: boolean;
101
99
  transitionProps?: TransitionProps;
102
100
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
103
101
  }> & Readonly<{}>, {
104
- triggerRef: ComputedRef<MaybeElement>;
105
- triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
106
- popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
102
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
103
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
107
104
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
108
105
  placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
109
106
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
@@ -136,23 +133,19 @@ crossAxis?: number;
136
133
  };
137
134
  placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
138
135
  preventOverflow?: boolean;
139
- renderAllTriggers?: boolean;
140
136
  show?: boolean;
141
137
  transitionProps?: TransitionProps;
142
138
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
143
- }> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
144
- triggerRef: ComputedRef<MaybeElement>;
145
- triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
146
- popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
139
+ }> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
140
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
141
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
147
142
  }> & {} & ComponentCustomProperties & {} & {
148
143
  $slots: Readonly<{
149
144
  trigger?: () => VNode[];
150
145
  content?: () => VNode[];
151
- backdrop?: () => VNode[];
152
146
  }> & {
153
147
  trigger?: () => VNode[];
154
148
  content?: () => VNode[];
155
- backdrop?: () => VNode[];
156
149
  };
157
150
  }) | null;
158
151
  }, any>;
@@ -165,13 +158,13 @@ declare const __VLS_component_4: DefineComponent<PromptsProps, {}, {}, {}, {}, C
165
158
 
166
159
  declare const __VLS_component_5: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
167
160
 
168
- declare const __VLS_component_6: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
161
+ declare const __VLS_component_6: DefineComponent<__VLS_PublicProps_3, {
162
+ children: ComputedRef<(HTMLElement | SVGElement)[]>;
163
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
169
164
  "update:showAll": (value: boolean | undefined) => any;
170
165
  } & {
171
- "item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
172
166
  "click-outside": (event: MouseEvent) => any;
173
- }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
174
- "onItem-click"?: ((item: SuggestionPillItem<Record<string, unknown>>) => any) | undefined;
167
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
175
168
  "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
176
169
  "onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
177
170
  }>, {
@@ -180,10 +173,12 @@ overflowMode: "expand" | "scroll";
180
173
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
181
174
  containerWrapperRef: HTMLDivElement;
182
175
  containerRef: HTMLDivElement;
176
+ staticMaybeItemRefs: unknown[];
183
177
  floatingItemsRef: HTMLDivElement;
178
+ floatingMaybeItemRefs: unknown[];
184
179
  }, HTMLDivElement>;
185
180
 
186
- declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
181
+ declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
187
182
  "update:selectedGroup": (value: string) => any;
188
183
  } & {
189
184
  close: () => any;
@@ -191,7 +186,7 @@ open: () => any;
191
186
  "item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
192
187
  "click-outside": (event: MouseEvent) => any;
193
188
  "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
194
- }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
189
+ }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
195
190
  onClose?: (() => any) | undefined;
196
191
  onOpen?: (() => any) | undefined;
197
192
  "onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
@@ -215,7 +210,6 @@ crossAxis?: number;
215
210
  } | undefined;
216
211
  readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
217
212
  readonly preventOverflow?: boolean | undefined;
218
- readonly renderAllTriggers?: boolean | undefined;
219
213
  readonly show?: boolean | undefined;
220
214
  readonly transitionProps?: TransitionProps | undefined;
221
215
  readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
@@ -225,8 +219,6 @@ $attrs: {
225
219
  };
226
220
  $refs: {
227
221
  [x: string]: unknown;
228
- } & {
229
- popperRef: HTMLDivElement;
230
222
  };
231
223
  $slots: Readonly<{
232
224
  [name: string]: Slot<any> | undefined;
@@ -244,14 +236,12 @@ crossAxis?: number;
244
236
  };
245
237
  placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
246
238
  preventOverflow?: boolean;
247
- renderAllTriggers?: boolean;
248
239
  show?: boolean;
249
240
  transitionProps?: TransitionProps;
250
241
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
251
242
  }> & Readonly<{}>, {
252
- triggerRef: ComputedRef<MaybeElement>;
253
- triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
254
- popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
243
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
244
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
255
245
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
256
246
  placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
257
247
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
@@ -284,23 +274,19 @@ crossAxis?: number;
284
274
  };
285
275
  placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
286
276
  preventOverflow?: boolean;
287
- renderAllTriggers?: boolean;
288
277
  show?: boolean;
289
278
  transitionProps?: TransitionProps;
290
279
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
291
- }> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
292
- triggerRef: ComputedRef<MaybeElement>;
293
- triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
294
- popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
280
+ }> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
281
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
282
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
295
283
  }> & {} & ComponentCustomProperties & {} & {
296
284
  $slots: Readonly<{
297
285
  trigger?: () => VNode[];
298
286
  content?: () => VNode[];
299
- backdrop?: () => VNode[];
300
287
  }> & {
301
288
  trigger?: () => VNode[];
302
289
  content?: () => VNode[];
303
- backdrop?: () => VNode[];
304
290
  };
305
291
  }) | null;
306
292
  listRef: HTMLUListElement;
@@ -328,9 +314,11 @@ declare const __VLS_component_8: DefineComponent<WelcomeProps, {}, {}, {}, {}, C
328
314
  align: "left" | "center" | "right" | string;
329
315
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
330
316
 
331
- declare type __VLS_Props = SuggestionPillsProps;
317
+ declare type __VLS_Props = DropdownMenuProps;
332
318
 
333
- declare type __VLS_Props_2 = SuggestionPopoverProps;
319
+ declare type __VLS_Props_2 = SuggestionPillsProps;
320
+
321
+ declare type __VLS_Props_3 = SuggestionPopoverProps;
334
322
 
335
323
  declare type __VLS_PublicProps = {
336
324
  'show': ContainerProps['show'];
@@ -338,13 +326,17 @@ declare type __VLS_PublicProps = {
338
326
  };
339
327
 
340
328
  declare type __VLS_PublicProps_2 = {
341
- 'showAll'?: SuggestionPillsProps['showAll'];
329
+ 'show'?: boolean;
342
330
  } & __VLS_Props;
343
331
 
344
332
  declare type __VLS_PublicProps_3 = {
345
- 'selectedGroup'?: string;
333
+ 'showAll'?: SuggestionPillsProps['showAll'];
346
334
  } & __VLS_Props_2;
347
335
 
336
+ declare type __VLS_PublicProps_4 = {
337
+ 'selectedGroup'?: string;
338
+ } & __VLS_Props_3;
339
+
348
340
  declare function __VLS_template(): {
349
341
  attrs: Partial<{}>;
350
342
  slots: Readonly<BubbleSlots> & BubbleSlots;
@@ -376,7 +368,6 @@ declare function __VLS_template_3(): {
376
368
  } | undefined;
377
369
  readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
378
370
  readonly preventOverflow?: boolean | undefined;
379
- readonly renderAllTriggers?: boolean | undefined;
380
371
  readonly show?: boolean | undefined;
381
372
  readonly transitionProps?: TransitionProps | undefined;
382
373
  readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
@@ -386,8 +377,6 @@ declare function __VLS_template_3(): {
386
377
  };
387
378
  $refs: {
388
379
  [x: string]: unknown;
389
- } & {
390
- popperRef: HTMLDivElement;
391
380
  };
392
381
  $slots: Readonly<{
393
382
  [name: string]: Slot<any> | undefined;
@@ -405,14 +394,12 @@ declare function __VLS_template_3(): {
405
394
  };
406
395
  placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
407
396
  preventOverflow?: boolean;
408
- renderAllTriggers?: boolean;
409
397
  show?: boolean;
410
398
  transitionProps?: TransitionProps;
411
399
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
412
400
  }> & Readonly<{}>, {
413
- triggerRef: ComputedRef<MaybeElement>;
414
- triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
415
- popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
401
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
402
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
416
403
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
417
404
  placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
418
405
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
@@ -445,23 +432,19 @@ declare function __VLS_template_3(): {
445
432
  };
446
433
  placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
447
434
  preventOverflow?: boolean;
448
- renderAllTriggers?: boolean;
449
435
  show?: boolean;
450
436
  transitionProps?: TransitionProps;
451
437
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
452
- }> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
453
- triggerRef: ComputedRef<MaybeElement>;
454
- triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
455
- popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
438
+ }> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
439
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
440
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
456
441
  }> & {} & ComponentCustomProperties & {} & {
457
442
  $slots: Readonly<{
458
443
  trigger?: () => VNode[];
459
444
  content?: () => VNode[];
460
- backdrop?: () => VNode[];
461
445
  }> & {
462
446
  trigger?: () => VNode[];
463
447
  content?: () => VNode[];
464
- backdrop?: () => VNode[];
465
448
  };
466
449
  }) | null;
467
450
  };
@@ -488,7 +471,9 @@ declare function __VLS_template_6(): {
488
471
  refs: {
489
472
  containerWrapperRef: HTMLDivElement;
490
473
  containerRef: HTMLDivElement;
474
+ staticMaybeItemRefs: unknown[];
491
475
  floatingItemsRef: HTMLDivElement;
476
+ floatingMaybeItemRefs: unknown[];
492
477
  };
493
478
  rootEl: HTMLDivElement;
494
479
  };
@@ -508,7 +493,6 @@ declare function __VLS_template_7(): {
508
493
  } | undefined;
509
494
  readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
510
495
  readonly preventOverflow?: boolean | undefined;
511
- readonly renderAllTriggers?: boolean | undefined;
512
496
  readonly show?: boolean | undefined;
513
497
  readonly transitionProps?: TransitionProps | undefined;
514
498
  readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
@@ -518,8 +502,6 @@ declare function __VLS_template_7(): {
518
502
  };
519
503
  $refs: {
520
504
  [x: string]: unknown;
521
- } & {
522
- popperRef: HTMLDivElement;
523
505
  };
524
506
  $slots: Readonly<{
525
507
  [name: string]: Slot<any> | undefined;
@@ -537,14 +519,12 @@ declare function __VLS_template_7(): {
537
519
  };
538
520
  placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
539
521
  preventOverflow?: boolean;
540
- renderAllTriggers?: boolean;
541
522
  show?: boolean;
542
523
  transitionProps?: TransitionProps;
543
524
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
544
525
  }> & Readonly<{}>, {
545
- triggerRef: ComputedRef<MaybeElement>;
546
- triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
547
- popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
526
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
527
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
548
528
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
549
529
  placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
550
530
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
@@ -577,23 +557,19 @@ declare function __VLS_template_7(): {
577
557
  };
578
558
  placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
579
559
  preventOverflow?: boolean;
580
- renderAllTriggers?: boolean;
581
560
  show?: boolean;
582
561
  transitionProps?: TransitionProps;
583
562
  triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
584
- }> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
585
- triggerRef: ComputedRef<MaybeElement>;
586
- triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
587
- popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
563
+ }> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
564
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
565
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
588
566
  }> & {} & ComponentCustomProperties & {} & {
589
567
  $slots: Readonly<{
590
568
  trigger?: () => VNode[];
591
569
  content?: () => VNode[];
592
- backdrop?: () => VNode[];
593
570
  }> & {
594
571
  trigger?: () => VNode[];
595
572
  content?: () => VNode[];
596
- backdrop?: () => VNode[];
597
573
  };
598
574
  }) | null;
599
575
  listRef: HTMLUListElement;
@@ -955,7 +931,8 @@ export declare interface DropdownMenuProps {
955
931
  appendTo?: string | HTMLElement;
956
932
  items: DropdownMenuItem[];
957
933
  /**
958
- * 是否显示菜单,仅在 trigger 为 'manual' 时有效
934
+ * trigger 为 'click' 或 'hover' 时,是一个双向绑定的 model(v-model:show),可在组件外部控制显示状态。
935
+ * 否则当 trigger 为 'manual' 时,是一个单向绑定的 prop,组件内部无法修改 show 的值
959
936
  */
960
937
  show?: boolean;
961
938
  /**
@@ -1235,13 +1212,6 @@ export declare interface SuggestionGroup<T = Record<string, unknown>> {
1235
1212
 
1236
1213
  export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
1237
1214
 
1238
- export declare type SuggestionPillAction = SuggestionPillPopoverAction | SuggestionPillMenuAction;
1239
-
1240
- export declare type SuggestionPillBaseItem<T> = {
1241
- id: string;
1242
- action?: SuggestionPillAction;
1243
- } & T;
1244
-
1245
1215
  declare const SuggestionPillButton: typeof _default_21 & {
1246
1216
  install: typeof installPillButton;
1247
1217
  };
@@ -1257,40 +1227,19 @@ export declare interface SuggestionPillButtonSlots {
1257
1227
  icon?: () => unknown;
1258
1228
  }
1259
1229
 
1260
- export declare type SuggestionPillItem<T = Record<string, unknown>> = SuggestionPillBaseItem<T> & ({
1230
+ export declare type SuggestionPillItem = {
1261
1231
  text: string;
1262
1232
  icon?: VNode | Component;
1263
1233
  } | {
1264
1234
  text?: string;
1265
1235
  icon: VNode | Component;
1266
- });
1267
-
1268
- export declare type SuggestionPillMenuAction = {
1269
- type: 'menu';
1270
- props: DropdownMenuProps & DropdownMenuEventProps;
1271
- /**
1272
- * @deprecated use onXXX in props instead
1273
- */
1274
- events?: DropdownMenuEvents;
1275
- };
1276
-
1277
- export declare type SuggestionPillPopoverAction = {
1278
- type: 'popover';
1279
- props: SuggestionPopoverProps & SuggestionPopoverEventProps;
1280
- slots?: Omit<SuggestionPopoverSlots, 'default'>;
1281
- /**
1282
- * @deprecated use onXXX in props instead
1283
- */
1284
- events?: SuggestionPopoverEvents;
1285
1236
  };
1286
1237
 
1287
1238
  export declare interface SuggestionPillsEmits {
1288
- (e: 'item-click', item: SuggestionPillItem): void;
1289
1239
  (e: 'click-outside', event: MouseEvent): void;
1290
1240
  }
1291
1241
 
1292
1242
  export declare interface SuggestionPillsProps {
1293
- items?: SuggestionPillItem[];
1294
1243
  /**
1295
1244
  * model:showAll
1296
1245
  */
@@ -1311,16 +1260,12 @@ export declare interface SuggestionPillsProps {
1311
1260
  overflowMode?: 'expand' | 'scroll';
1312
1261
  /**
1313
1262
  * 鼠标悬停时是否自动滚动到可见区域
1314
- * @default false
1315
1263
  */
1316
- autoScrollOnHover?: boolean;
1264
+ autoScrollOn?: 'mouseenter' | 'click';
1317
1265
  }
1318
1266
 
1319
- /**
1320
- * @deprecated
1321
- */
1322
1267
  export declare interface SuggestionPillsSlots {
1323
- default?: () => VNode | VNode[];
1268
+ default?: () => VNode[];
1324
1269
  }
1325
1270
 
1326
1271
  export declare interface SuggestionPopoverEmits {
package/dist/index2.js CHANGED
@@ -607,13 +607,14 @@ function Ne(e = {}) {
607
607
  return { width: i, height: s };
608
608
  }
609
609
  export {
610
- Ne as a,
611
- Ve as b,
612
- je as c,
610
+ je as a,
611
+ Ne as b,
612
+ Ve as c,
613
613
  E as d,
614
- De as e,
615
- Fe as f,
616
- He as g,
614
+ M as e,
615
+ De as f,
616
+ Fe as g,
617
+ He as h,
617
618
  ke as o,
618
619
  ze as u,
619
620
  Ce as w