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

89 lines
2.0 KiB
TypeScript
Raw Normal View History

2024-11-10 07:01:22 +00:00
import { IBaseProps } from '../_base';
export interface PickerData {
value: PickerValue;
label: string;
}
export declare type PickerValue = string | number | (string | number)[];
/**
* @description **Picker**
*/
export interface IPickerProps extends IBaseProps {
/**
* @description picker
*/
value?: PickerValue;
/**
* @description picker
*/
defaultValue?: PickerValue;
/**
* @description
*/
disabled?: boolean;
/**
* @description
*/
title?: string;
/**
* @description
* @default "确定"
*/
okText?: string;
/**
* @description
* @default "取消"
*/
cancelText?: string;
/**
* @description
* @default '请选择'
*/
placeholder?: string;
/**
* @description picker
*/
options: PickerValue[];
/**
* @description
*/
onOk?: (
value: PickerValue,
column: PickerData,
e: Record<string, any>
) => void;
/**
* @description
*/
onCancel?: (e: Record<string, any>) => void;
/**
* @description onChange ok
*/
onChange?: (
value: PickerValue,
column: PickerData,
e: Record<string, any>
) => void;
/**
* @description
*/
onFormat?: (value: PickerValue, column: PickerValue) => string;
/**
* @description
*/
onVisibleChange?: (visible: boolean, e: Record<string, any>) => void;
/**
* @description
* @default false
*/
maskClosable?: boolean;
/**
* @description
*/
popClassName?: string;
/**
* @description
*/
popStyle?: string;
}
export declare const PickerDefaultProps: Partial<IPickerProps>;