UNPKG

shineout

Version:

A components library for React

26 lines (25 loc) 829 B
import { RateProps as UnStyledRateProps } from '@sheinx/base'; import { GetWithFieldProps } from '../hooks/use-field-common'; /** * @title RateFunction * @subTitle (background, front): ReactClass */ export interface ArgProps { /** * @en Unselected element background * @cn 未选中元素背景 * @override ReactElement | string | Array<string | ReactElement> */ background: Exclude<RateProps['background'], undefined>; /** * @en selected element background * @cn 选中元素背景 * @override ReactElement | string | Array<string | ReactElement> */ front: Exclude<RateProps['front'], undefined>; } export type BaseRateProps = Omit<UnStyledRateProps, 'jssStyle'>; /** * @title Rate */ export type RateProps = GetWithFieldProps<BaseRateProps, BaseRateProps['value']>;