leepyng / vue-input-text-to-tags

a input component that can create tags for the result display

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-input-text-to-tags

A input component that can create tags for the result display

Coverage Status

install

npm install vue-input-text-to-tags --save

how to use

template:
	 <text-to-tags :list="list" @change="handleCcChange"></text-to-tags>

script:
	//import
	import TextToTags from 'vue-input-text-to-tags'
	//define
	components:{
		TextToTags
	},
	data(){
		return{
			list:['tag1','tag2']
		}
	}
	methods:{
		handleCcChange(list){
			console.log(list)

		}
	}

props description

list: defalut array for the component

About

a input component that can create tags for the result display


Languages

Language:Vue 100.0%