import { PropType } from "vue"; import { FloatingTrigger, Transition } from '../../../typings'; import { Placement } from "@floating-ui/vue"; export declare const SDropdownProps: { /** * @description 下拉框触发方式 */ readonly trigger: { readonly type: PropType; readonly default: "click"; }; /** * @description 下拉框相对于引用元素的定位 */ readonly placement: { readonly type: PropType; readonly default: "bottom"; }; /** * @description 下拉框出现时的过渡 */ readonly transition: { readonly type: PropType; readonly default: "s-transition-scale"; }; /** * @description 下拉框出现的延时 */ readonly openDelay: { readonly type: NumberConstructor; readonly default: 0; }; /** * @description 下拉框消失的延时 */ readonly closeDelay: { readonly type: NumberConstructor; readonly default: 0; }; /** * @description 禁用下拉框 */ readonly disabled: BooleanConstructor; /** * @description 下拉框相对于引用元素的偏移量 */ readonly offset: { readonly type: NumberConstructor; readonly default: 10; }; /** * @description 是否可以通过点击页面来关闭下拉框 */ readonly closeOnClickBody: BooleanConstructor; /** * @description 是否在挂载后立即出现 */ readonly openOnMounted: BooleanConstructor; /** * @description 是否瞬移到到floating container元素下面 */ readonly teleported: { readonly type: BooleanConstructor; readonly default: true; }; /** * @description 是否展示小箭头 */ readonly showArrow: { readonly type: BooleanConstructor; readonly default: true; }; /** * @description 最外层元素的类 */ readonly floatingClass: StringConstructor; /** * @description 当没有传递reference slot时, 此项作用 */ readonly reference: PropType; /** * @description 是否开启快速跟踪, 当reference元素可以移动且floating元素更不上时开启此项 */ readonly quickTrack: BooleanConstructor; /** * @description 下拉框的大小是否不会再改变, 开启此项优化部分性能 */ readonly scrollbarNoResize: BooleanConstructor; /** * @description 滚动条定位在元素外面 */ readonly scrollbarIsOutside: BooleanConstructor; /** * @description 所有item内元素居中显示 */ readonly center: BooleanConstructor; readonly activeColor: StringConstructor; /** * @description 是否在点击任意Item后关闭下拉框 */ readonly closeOnClickItem: { readonly type: BooleanConstructor; readonly default: true; }; /** * @description 暂时保留 */ readonly prefix: { (arrayLength: number): string[]; (...items: string[]): string[]; new (arrayLength: number): string[]; new (...items: string[]): string[]; isArray(arg: any): arg is any[]; readonly prototype: any[]; from(arrayLike: ArrayLike): T[]; from(arrayLike: ArrayLike, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[]; from(iterable: Iterable | ArrayLike): T_2[]; from(iterable: Iterable | ArrayLike, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[]; of(...items: T_4[]): T_4[]; readonly [Symbol.species]: ArrayConstructor; }; }; export declare const SDropdownEmits: { /** * @description 选中事件, 任意dropdownItem触发select事件都会触发此事件 * @param value dropdownItem的value * @param prefix 暂时保留 */ readonly select: (value: string, prefix?: string[]) => boolean; readonly open: () => boolean; readonly opened: () => boolean; readonly close: () => boolean; readonly closed: () => boolean; };