@varlet/ui
Version:
A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.
36 lines (30 loc) • 931 B
TypeScript
import { BasicAttributes, ListenerProp, Rules as RateRules, SetPropsDefaults, VarComponent } from './varComponent'
export declare const rateProps: Record<keyof RateProps, any>
export interface RateProps extends BasicAttributes {
modelValue?: number
count?: string | number
color?: string
emptyColor?: string
disabledColor?: string
icon?: string
emptyIcon?: string
halfIcon?: string
namespace?: string
emptyIconNamespace?: string
halfIconNamespace?: string
size?: string | number
gap?: string | number
half?: boolean
disabled?: boolean
readonly?: boolean
clearable?: boolean
ripple?: boolean
rules?: RateRules
onChange?: ListenerProp<(value: number) => void>
'onUpdate:modelValue'?: ListenerProp<(value: number) => void>
}
export class Rate extends VarComponent {
static setPropsDefaults: SetPropsDefaults<RateProps>
$props: RateProps
}
export class _RateComponent extends Rate {}