mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
33 lines
643 B
TypeScript
33 lines
643 B
TypeScript
export type SharedPickerProps = {
|
|
title?: string;
|
|
loading?: boolean;
|
|
itemHeight?: number;
|
|
showToolbar?: boolean;
|
|
visibleItemCount: number | string;
|
|
cancelButtonText?: string;
|
|
confirmButtonText?: string;
|
|
};
|
|
|
|
export const DEFAULT_ITEM_HEIGHT = 44;
|
|
|
|
export const pickerProps = {
|
|
title: String,
|
|
loading: Boolean,
|
|
itemHeight: [Number, String],
|
|
showToolbar: Boolean,
|
|
cancelButtonText: String,
|
|
confirmButtonText: String,
|
|
allowHtml: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
visibleItemCount: {
|
|
type: [Number, String],
|
|
default: 6,
|
|
},
|
|
swipeDuration: {
|
|
type: [Number, String],
|
|
default: 1000,
|
|
},
|
|
};
|