UNPKG

@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>

85 lines (84 loc) 1.73 kB
import { ExtractPropTypes, PropType } from 'vue'; import { ColorT } from '../_utils/types'; export declare const RateItemStatusTypes: readonly ["full", "half", "empty"]; export type RateItemStatusT = (typeof RateItemStatusTypes)[number]; export declare const RateSizeTypes: readonly ["large", "medium"]; export type RateSizeT = (typeof RateSizeTypes)[number]; export declare const rateProps: { /** * 评分数量 */ count: { type: NumberConstructor; default: number; }; /** * 双向绑定值 */ modelValue: { type: NumberConstructor; }; /** * 非受控状态时,默认值 */ defaultValue: { type: NumberConstructor; default: number; }; /** * 尺寸 RateSizeT */ size: { type: PropType<RateSizeT>; }; /** * 颜色类型 ColorT */ color: { type: PropType<ColorT>; default: string; }; /** * 是否只读 */ readonly: { type: BooleanConstructor; default: boolean; }; /** * 是否支持半选 */ allowHalf: { type: BooleanConstructor; default: boolean; }; /** * 是否支持可清空 */ clearable: { type: BooleanConstructor; default: boolean; }; /** * 文字 */ labels: { type: PropType<Array<string>>; }; }; export declare const rateItemProps: { /** * 序号 */ index: { type: NumberConstructor; }; /** * 状态 */ status: { type: PropType<RateItemStatusT>; default: string; }; }; export type RatePropsT = ExtractPropTypes<typeof rateProps>;