style(Picker): add @picker-option-height less var (#6571)

This commit is contained in:
neverland
2020-06-19 06:36:23 +08:00
committed by GitHub
parent 717352b453
commit 99db42372c
13 changed files with 727 additions and 723 deletions
+4 -5
View File
@@ -1,16 +1,19 @@
export type SharedPickerProps = {
title?: string;
loading?: boolean;
itemHeight: number;
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,
@@ -22,10 +25,6 @@ export const pickerProps = {
type: [Number, String],
default: 5,
},
itemHeight: {
type: [Number, String],
default: 44,
},
swipeDuration: {
type: [Number, String],
default: 1000,