antdv CheckableTag 动态显示

export interface data{
   checked:boolean,
   label:string,
}
<template v-for="(item, index) in labelItems" :key="index">
        <CheckableTag
          v-model:checked="item.checked"
          @change="handleChange(index, item.checked)"
          placeholder="商品信息"
        >
          {{ item.label }}
        </CheckableTag>
        <Divider type="vertical" />
      </template>

 

posted @ 2022-10-21 16:03  jiduoduo  阅读(41)  评论(0编辑  收藏  举报