jiaqingjiayi-xiaochengxu/甲情_甲意/node_modules/antd-mini/less/Selector/props.d.ts

70 lines
1.8 KiB
TypeScript
Raw Normal View History

2024-11-15 03:51:28 +00:00
import { IBaseProps } from '../_util/base';
export type Value = string | number;
export interface ISelectorItem {
/**
* @description
*/
text: string;
/**
* @description Selector
*/
value: Value;
/**
* @description
*/
subText?: string;
/**
* @description
*/
disabled?: boolean;
}
/**
* @description
*/
export interface ISelectorProps extends IBaseProps {
/**
* @description , items value
*/
value: Value | Value[];
/**
* @description , items value
*/
defaultValue: Value | Value[];
/**
* @description
*/
options: ISelectorItem[];
/**
* @description
*/
activeItemClassName: string;
/**
* @description
*/
activeItemStyle: string;
/**
* @description
* @default false
*/
multiple: boolean;
/**
* @description
*/
minSelectedCount: number;
/**
* @description
*/
maxSelectedCount: number;
disabled?: boolean;
onChange?(value: Value | Value[] | undefined, item: ISelectorItem | ISelectorItem[] | undefined, e: Record<string, any>): void;
/**
* @description
*/
onSelectMax?(value: Value, item: ISelectorItem, e: Record<string, any>): void;
/**
* @description
*/
onSelectMin?(value: Value, item: ISelectorItem, e: Record<string, any>): void;
}
export declare const SelectorDefaultProps: Partial<ISelectorProps>;