mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
Switching our $emit('input' to $emit('update:value' to be in line with the new way v-model works
This commit is contained in:
@@ -92,7 +92,7 @@ export default {
|
||||
confirmAdd() {
|
||||
if (this.inputValue && !this.value.includes(this.inputValue)) {
|
||||
this.tags.push(this.inputValue);
|
||||
this.$emit('input', this.tags);
|
||||
this.$emit('update:value', this.tags);
|
||||
}
|
||||
|
||||
this.inputValue = '';
|
||||
@@ -101,7 +101,7 @@ export default {
|
||||
|
||||
onRemoveTag(tag) {
|
||||
this.tags = this.tags.filter(v => v !== tag);
|
||||
this.$emit('input', this.tags);
|
||||
this.$emit('update:value', this.tags);
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user