Ryan Wang 2020-03-12 14:42:48 +08:00 committed by GitHub
parent e0b7da7a77
commit ed6cc4a707
1 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
allowClear allowClear
mode="tags" mode="tags"
placeholder="选择或输入标签" placeholder="选择或输入标签"
@blur="handleBlur" @change="handleChange"
> >
<a-select-option <a-select-option
v-for="tag in tags" v-for="tag in tags"
@ -76,8 +76,8 @@ export default {
} }
}) })
}, },
handleBlur() { handleChange() {
this.$log.debug('Blured') this.$log.debug('Changed')
const tagNamesToCreate = this.selectedTagNames.filter(tagName => !this.tagNameMap[tagName]) const tagNamesToCreate = this.selectedTagNames.filter(tagName => !this.tagNameMap[tagName])
this.$log.debug('Tag names to create', tagNamesToCreate) this.$log.debug('Tag names to create', tagNamesToCreate)