[improvement] Picker: shared props (#2888)

This commit is contained in:
neverland
2019-03-02 11:03:04 +08:00
committed by GitHub
parent 0245e663d0
commit 317b9c329d
5 changed files with 32 additions and 31 deletions

25
packages/picker/shared.ts Normal file
View File

@@ -0,0 +1,25 @@
export type SharedPickerProps = {
title?: string;
loading?: boolean;
itemHeight: number;
showToolbar?: boolean;
visibleItemCount: number;
cancelButtonText?: string;
confirmButtonText?: string;
}
export const pickerProps = {
title: String,
loading: Boolean,
showToolbar: Boolean,
cancelButtonText: String,
confirmButtonText: String,
visibleItemCount: {
type: Number,
default: 5
},
itemHeight: {
type: Number,
default: 44
}
};