vue antd 的写法备忘录

表格循环icon


<a-table :columns="columns" :data-source="data" :rowKey="record=>record.title">
      <template slot="tags" slot-scope="tags">
        <a-icon :type="tags"/>
      </template>
</a-table> const columns = [{ title: 'title', dataIndex: 'title', key: 'title', }, { title: 'tags', key: 'tags', dataIndex: 'tags', scopedSlots: { customRender: 'tags' }, }]; const data = [{ tags: "home", title: "fall", }];

 

//获取半选中状态
onCheck(checkedKeys, info) {
      console.log('onCheck', checkedKeys, info);
      
      let checkedKey = checkedKeys.concat(info.halfCheckedKeys);
      console.log( JSON.stringify(checkedKey))
    },
info.halfCheckedKeys

  

上一篇:AntD使用Form表单DatePicker时间组件时间差一天bug


下一篇:antd组件显示为英文时