Skip to content

Commit a1631c7

Browse files
committed
Update README.md
1 parent 525fa86 commit a1631c7

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,33 @@
11
# vue-input-text-to-tags
22
A input component that can create tags for the result display
3+
# install
4+
5+
npm install vue-input-text-to-tags --save
6+
7+
8+
# how to use
9+
template:
10+
<text-to-tags :list="list" @change="handleCcChange"></text-to-tags>
11+
12+
script:
13+
//import
14+
import TextToTags from 'vue-input-text-to-tags'
15+
//define
16+
components:{
17+
TextToTags
18+
},
19+
data(){
20+
return{
21+
list:['tag1','tag2']
22+
}
23+
}
24+
methods:{
25+
handleCcChange(list){
26+
console.log(list)
27+
28+
}
29+
}
30+
31+
32+
# props description
33+
list: defalut array for the component

0 commit comments

Comments
 (0)