feat(Picker): add option slot (#7380)

This commit is contained in:
neverland
2020-10-21 21:52:12 +08:00
committed by GitHub
parent 7ec560fc82
commit ea210bb013
6 changed files with 91 additions and 18 deletions
+3
View File
@@ -338,6 +338,9 @@ export default createComponent({
swipeDuration={this.swipeDuration}
visibleItemCount={this.visibleItemCount}
initialOptions={item.values}
scopedSlots={{
option: this.$scopedSlots.option,
}}
onChange={() => {
this.onChange(columnIndex);
}}