UNPKG

@minto-ai/mt-ui

Version:

UI组件库

43 lines (42 loc) 1.05 kB
import { ExtractPropTypes, PropType } from 'vue'; declare const iconProps: { /** * 图标大小 */ readonly size: { readonly type: PropType<number | string>; readonly validator: (value: number | string) => value is number | "inherit"; readonly default: "inherit"; }; /** * 图标颜色 */ readonly color: { readonly type: StringConstructor; readonly default: "inherit"; }; /** * 图标名称 */ readonly name: { readonly type: StringConstructor; readonly required: true; readonly validator: (value: string) => boolean; }; /** * 图标旋转角度 */ readonly rotate: { readonly type: NumberConstructor; readonly default: 0; }; /** * 是否显示可点击指针样式 */ readonly clickable: { readonly type: BooleanConstructor; readonly default: false; }; }; export type IconProps = ExtractPropTypes<typeof iconProps>; export { iconProps };