Blame view

examples/routers/tag.vue 540 Bytes
382c000c   梁灏   Tag add type prop...
1
  <template>
456daf34   梁灏   support Tag
2
      <div>
ec4117cb   梁灏   tag add prop: name
3
4
          <Tag v-for="item in count" :key="item" :name="item" @on-close="close" closable>标签{{ item + 1 }}</Tag>
          <Button icon="ios-plus-empty" type="dashed" size="small" @click="count += 1">添加标签</Button>
456daf34   梁灏   support Tag
5
      </div>
382c000c   梁灏   Tag add type prop...
6
7
  </template>
  <script>
382c000c   梁灏   Tag add type prop...
8
      export default {
3e855e34   梁灏   fixed #46
9
10
          data () {
              return {
ec4117cb   梁灏   tag add prop: name
11
                  count: 3
3c01d81a   梁灏   fixed Modal bug,w...
12
13
14
              }
          },
          methods: {
ec4117cb   梁灏   tag add prop: name
15
16
17
              close (e, name) {
                  console.log(e);
                  console.log(name);
3e855e34   梁灏   fixed #46
18
19
              }
          }
382c000c   梁灏   Tag add type prop...
20
21
      }
  </script>