vue TagsInput
-
输入标签
-
安装
npm install @johmun/vue-tags-input
-
用法
<template> <div> <vue-tags-input v-model="tag" :tags="tags" @tags-changed="newTags => tags = newTags" /> </div> </template> <script> import VueTagsInput from '@johmun/vue-tags-input'; export default { components: { VueTagsInput, }, data() { return { tag:'', tags: [], }; }, }; </script>