Update tag.vue
This commit is contained in:
parent
9a039b1687
commit
5f75101e6f
1 changed files with 8 additions and 0 deletions
|
@ -40,6 +40,8 @@
|
||||||
<i-button @click="loading = true">true</i-button>
|
<i-button @click="loading = true">true</i-button>
|
||||||
<i-button @click="loading = false">false</i-button>
|
<i-button @click="loading = false">false</i-button>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
<br><br>
|
||||||
|
<Tag type="border" color="yellow" closable @click="clickTag" @on-close="clickTagClose">标签一</Tag>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { Tag, Modal, iButton } from 'iview';
|
import { Tag, Modal, iButton } from 'iview';
|
||||||
|
@ -56,6 +58,12 @@
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.modal1 = false;
|
this.modal1 = false;
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
},
|
||||||
|
clickTag() {
|
||||||
|
console.log('click tag');
|
||||||
|
},
|
||||||
|
clickTagClose() {
|
||||||
|
console.log('click tag close-icon');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue