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

117 lines
3.1 KiB
TypeScript
Raw Normal View History

2024-12-01 11:56:54 +00:00
import { IBaseProps } from '../_util/base';
2024-11-10 07:01:22 +00:00
export interface PickerData {
2024-12-01 11:56:54 +00:00
value: PickerValue;
label: string;
2024-11-10 07:01:22 +00:00
}
2024-12-01 11:56:54 +00:00
export declare type PickerValue = string | number | PickerData | (string | number | PickerData)[];
2024-11-10 07:01:22 +00:00
/**
* @description **Picker**
*/
export interface IPickerProps extends IBaseProps {
2024-12-01 11:56:54 +00:00
visible?: boolean;
defaultVisible?: boolean;
/**
* @desciption
* @default "transform"
*/
animationType: 'transform' | 'position';
/**
* @description picker
*/
value: PickerValue;
/**
* @description value , onFormat
*/
formattedValueText?: string;
/**
* @description picker
*/
defaultValue: PickerValue;
/**
* @description
*/
disabled?: boolean;
/**
* @description
*/
title: string;
/**
* @description
* @default "确定"
*/
okText: string;
/**
* @description
* @default "取消"
*/
cancelText: string;
/**
* @description
* @default '请选择'
*/
placeholder: string;
/**
* @description
* @default '暂无数据'
*/
emptyText?: string;
/**
* @description picker
*/
options: PickerValue[];
/**
* @description
* @default false
*/
maskClosable: boolean;
/**
* @description
*/
popClassName: string;
/**
* @description
*/
popStyle: string;
/**
*@description
* 1.10.0
*/
indicatorStyle?: string;
/**
*@description
* 1.10.0
*/
indicatorClassName?: string;
/**
* @description
* 1.10.0
*/
maskStyle?: string;
/**
* @description
* 1.10.0
*/
maskClassName?: string;
/**
* @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;
2024-11-10 07:01:22 +00:00
}
export declare const PickerDefaultProps: Partial<IPickerProps>;