@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>
127 lines (126 loc) • 2.94 kB
TypeScript
import { ExtractPropTypes, PropType, Component } from 'vue';
export declare const MenuSizeTypes: readonly ["medium", "small"];
export type MenuSizeT = (typeof MenuSizeTypes)[number];
export declare const menuProps: {
/**
* @zh-CN 菜单尺寸
* @en-US Menu size
* @default 'medium'
*/
size: {
type: PropType<MenuSizeT>;
default: string;
};
/**
* @zh-CN 是否开启手风琴模式
* @en-US Whether to enable accordion mode
* @default false
*/
accordion: {
type: BooleanConstructor;
default: boolean;
};
/**
* @zh-CN 选中值
* @en-US Selected value
*/
modelValue: {
type: StringConstructor;
};
/**
* @zh-CN 非受控模式时,默认选中值
* @en-US Default selected value when not controlled
* @default ''
*/
defaultValue: {
type: StringConstructor;
default: string;
};
/**
* @zh-CN 展开节点值
* @en-US Expanded node value
*/
expanded: {
type: PropType<Array<string>>;
};
/**
* @zh-CN 非受控模式时,默认展开节点值
* @en-US Default expanded node value when not controlled
* @default []
*/
defaultExpanded: {
type: PropType<Array<string>>;
default: () => never[];
};
/**
* @zh-CN 父子节点是否关联
* @en-US Whether parent and child nodes are associated
* @default false
*/
selectStrictly: {
type: BooleanConstructor;
default: boolean;
};
/**
* @zh-CN 折叠箭头的位置
* @en-US Position of the collapse arrow
* @default right
*/
arrowPosition: {
type: PropType<"left" | "right">;
default: string;
};
};
export type MenuPropsT = ExtractPropTypes<typeof menuProps>;
export declare const subMenuProps: {
/**
* @zh-CN 菜单项值
* @en-US Menu item value
*/
value: {
type: StringConstructor;
required: true;
};
/**
* @zh-CN 菜单项是否可选
* @en-US Whether the menu item is selectable
*/
selectable: {
type: BooleanConstructor;
};
/**
* @zh-CN 前缀图标
* @en-US Prefix icon
*/
icon: {
type: PropType<Component>;
};
};
export type SubMenuPropsT = ExtractPropTypes<typeof subMenuProps>;
export declare const menuItemProps: {
/**
* @zh-CN 菜单项值
* @en-US Menu item value
*/
value: {
type: StringConstructor;
required: true;
};
/**
* @zh-CN 前缀图标
* @en-US Prefix icon
*/
icon: {
type: PropType<Component>;
};
/**
* @zh-CN 禁用
* @en-US Disabled
* @default false
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
};
export type MenuItemPropsT = ExtractPropTypes<typeof menuItemProps>;