@opensig/opendesign
Version:
<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>
104 lines (103 loc) • 2.27 kB
TypeScript
import { PopupPositionT, PopupTriggerT } from '../popup';
import { ExtractPropTypes, PropType } from 'vue';
import { SizeT, RoundT } from '../_utils/types';
export declare const dropdownProps: {
/**
* 弹出框是否可见
*/
visible: {
type: BooleanConstructor;
};
/**
* 非受控模式,弹出框是否默认可见
*/
defaultVisible: {
type: BooleanConstructor;
default: boolean;
};
/**
* 大小 SizeT
*/
size: {
type: PropType<SizeT>;
};
/**
* 圆角值 RoundT
*/
round: {
type: PropType<RoundT>;
};
/**
* 下拉选项触发方式 PopupTriggerT
*/
trigger: {
type: PropType<PopupTriggerT>;
default: string;
};
/**
* 下拉选项位置 PopupPositionT
*/
optionPosition: {
type: PropType<PopupPositionT>;
default: string;
};
/**
* 下拉选项宽度自适应规则
* 'auto':自动 | 'min-width':最小宽度与选择框一致 | 'width': 宽度与选择框一致
*/
optionWidthMode: {
type: PropType<"auto" | "min-width" | "width">;
default: string;
};
/**
* 挂载容器,默认为body
*/
optionsWrapper: {
type: PropType<string | HTMLElement | null>;
default: string;
};
/**
* 下拉容器自定义类
*/
optionWrapClass: {
type: PropType<string | any[]>;
};
/**
* 是否在结束选择时,卸载下拉选项
*/
unmountOnHide: {
type: BooleanConstructor;
default: boolean;
};
/**
* 过渡名称
*/
transition: {
type: StringConstructor;
};
};
export type DropdownPropsT = ExtractPropTypes<typeof dropdownProps>;
export declare const dropdownItemProps: {
/**
* 显示文本
*/
label: {
type: StringConstructor;
default: string;
};
/**
* 选项值
*/
value: {
type: PropType<string | number>;
default: string;
};
/**
* 是否禁用
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
};
export type DropdownItemPropsT = ExtractPropTypes<typeof dropdownItemProps>;