@opentiny/tiny-robot 0.2.5 → 0.2.7

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
@@ -861,12 +861,14 @@ declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_2, {}, {}, {}
861
861
  "update:showAll": (value: boolean | undefined) => any;
862
862
  } & {
863
863
  "item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
864
- "click-outside": () => any;
864
+ "click-outside": (event: MouseEvent) => any;
865
865
  }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
866
866
  "onItem-click"?: ((item: SuggestionPillItem<Record<string, unknown>>) => any) | undefined;
867
- "onClick-outside"?: (() => any) | undefined;
867
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
868
868
  "onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
869
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
869
+ }>, {
870
+ showAllButtonOn: "hover" | "always";
871
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
870
872
  containerWrapperRef: HTMLDivElement;
871
873
  containerRef: HTMLDivElement;
872
874
  }, HTMLDivElement>;
@@ -2461,7 +2463,7 @@ export declare type SuggestionPillItem<T = Record<string, unknown>> = Suggestion
2461
2463
 
2462
2464
  export declare interface SuggestionPillsEmits {
2463
2465
  (e: 'item-click', item: SuggestionPillItem): void;
2464
- (e: 'click-outside'): void;
2466
+ (e: 'click-outside', event: MouseEvent): void;
2465
2467
  }
2466
2468
 
2467
2469
  export declare interface SuggestionPillsProps {
@@ -2470,6 +2472,13 @@ export declare interface SuggestionPillsProps {
2470
2472
  * model:showAll
2471
2473
  */
2472
2474
  showAll?: boolean;
2475
+ /**
2476
+ * 显示更多按钮的时机
2477
+ * - hover: 鼠标悬停时显示
2478
+ * - always: 总是显示
2479
+ * @default 'hover'
2480
+ */
2481
+ showAllButtonOn?: 'hover' | 'always';
2473
2482
  }
2474
2483
 
2475
2484
  /**