UNPKG

comic-plus

Version:

<p align="center"> <img width="200px" src="./logo.png"/> </p>

43 lines (41 loc) 1.4 kB
import { Component, ExtractPropTypes, PropType } from 'vue'; export declare const rateProps: { readonly modelValue: { readonly type: NumberConstructor; readonly default: 0; }; readonly count: { readonly type: NumberConstructor; readonly default: 5; readonly validator: (value: number) => boolean; }; readonly size: { readonly type: NumberConstructor; readonly default: 20; readonly validator: (value: number) => boolean; }; readonly allowHalf: BooleanConstructor; readonly clearable: BooleanConstructor; readonly showText: BooleanConstructor; readonly texts: PropType<string[]>; readonly icons: { readonly type: PropType<Component | Component[]>; }; readonly color: { readonly type: StringConstructor; readonly default: "#f7ba2a"; }; readonly unColor: { readonly type: StringConstructor; readonly default: "#999999"; }; readonly variableIcon: PropType<(idx: number) => string | Component>; readonly variableColor: PropType<(idx: number) => string>; readonly disabled: BooleanConstructor; }; export type RateProps = ExtractPropTypes<typeof rateProps>; export declare const rateEmits: { "update:modelValue": (value: number) => boolean; change: (value: number) => boolean; }; export type RateEmits = typeof rateEmits;