@fesjs/fes-design
Version:
fes-design for PC
52 lines (51 loc) • 1.44 kB
TypeScript
import type { PropType } from 'vue';
import type { ComponentInnerProps, ExtractPublicPropTypes } from '../_util/interface';
type Size = 'large' | 'medium' | 'small';
export declare const rateProps: {
readonly size: {
readonly type: PropType<Size>;
readonly default: "medium";
};
readonly allowHalf: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly color: {
readonly type: StringConstructor;
};
readonly count: {
readonly type: NumberConstructor;
readonly default: 5;
};
readonly modelValue: {
readonly type: NumberConstructor;
readonly default: 0;
};
readonly readonly: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly clearable: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly texts: {
readonly type: PropType<string[]>;
};
readonly showText: {
readonly type: BooleanConstructor;
readonly default: false;
};
readonly colorFilled: {
readonly type: BooleanConstructor;
readonly default: true;
};
};
export type RateProps = ExtractPublicPropTypes<typeof rateProps>;
export type RateInnerProps = ComponentInnerProps<typeof rateProps>;
export interface RateItem {
active: boolean;
hover?: boolean;
half?: boolean;
}
export {};