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()}
); }