首页 > 其他 > 详细

vue antd 的写法备忘录

时间:2020-11-07 14:06:24      阅读:39      评论:0      收藏:0      [点我收藏+]

表格循环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

  

vue antd 的写法备忘录

原文:https://www.cnblogs.com/qkstart/p/13940737.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!