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>

86 lines (85 loc) 1.11 kB
const RateItemStatusTypes = ["full", "half", "empty"]; const RateSizeTypes = ["large", "medium"]; const rateProps = { /** * 评分数量 */ count: { type: Number, default: 5 }, /** * 双向绑定值 */ modelValue: { type: Number }, /** * 非受控状态时,默认值 */ defaultValue: { type: Number, default: 0 }, /** * 尺寸 RateSizeT */ size: { type: String }, /** * 颜色类型 ColorT */ color: { type: String, default: "normal" }, /** * 是否只读 */ readonly: { type: Boolean, default: false }, /** * 是否支持半选 */ allowHalf: { type: Boolean, default: false }, /** * 是否支持可清空 */ clearable: { type: Boolean, default: false }, /** * 文字 */ labels: { type: Array } }; const rateItemProps = { /** * 序号 */ index: { type: Number }, /** * 状态 */ status: { type: String, default: "empty" } }; export { RateItemStatusTypes, RateSizeTypes, rateItemProps, rateProps };