hide sheet after user have selected a item

This commit is contained in:
MaysWind
2020-12-20 15:15:23 +08:00
parent b2f5b0afd3
commit 2fbd4b37ea
2 changed files with 2 additions and 0 deletions
@@ -61,6 +61,7 @@ export default {
onColorClicked(colorInfo) {
this.currentValue = colorInfo.color;
this.$emit('input', this.currentValue);
this.$emit('update:show', false);
},
onSheetOpen() {
this.currentValue = this.value;
@@ -75,6 +75,7 @@ export default {
onIconClicked(iconInfo) {
this.currentValue = iconInfo.id;
this.$emit('input', this.currentValue);
this.$emit('update:show', false);
},
onSheetOpen() {
this.currentValue = this.value;