From 04b88583c2d67ee370d4494d1e47ce5245fcabc0 Mon Sep 17 00:00:00 2001 From: akebe Date: Sun, 9 Jun 2019 09:48:01 +0800 Subject: [PATCH] [new feature] Picker: add toolbar-position prop --- packages/picker/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/picker/index.js b/packages/picker/index.js index 27083d5f9..f296b83a4 100644 --- a/packages/picker/index.js +++ b/packages/picker/index.js @@ -16,6 +16,10 @@ export default sfc({ type: Number, default: 0 }, + toolbarPosition: { + type: String, + default: 'top' + }, valueKey: { type: String, default: 'text' @@ -176,7 +180,7 @@ export default sfc({ return (
- {Toolbar} + {this.toolbarPosition === 'top' ? Toolbar : h()} {this.loading ? : h()}
{columns.map((item, index) => ( @@ -195,6 +199,7 @@ export default sfc({
+ {this.toolbarPosition === 'bottom' ? Toolbar : h()}
); }