微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ant design vue - 表格 (待更

过滤器:就是筛选

 filters: [

            { text: '全部',value: '' },

            { text: '通过',value: '通过' },

            { text: '拒绝',value: '拒绝' },

            { text: '待处理',value: '待处理' },

          ],

          onFilter: (value,record) => record.condition.indexOf(value) === 0,

 

部分渲染

前提

scopedSlots: {customrender: 'state'}

  <a slot="action" href="javascript:;" @click="onEdit(record)">查看</a>

   <a slot="action" href="javascript:;" @click="visible = true" >备注</a>

             

排序

  // 排列变化

          onFilter: (value,record) => record.address.indexOf(value) === 0,

          sorter: (a,b) => a.address - b.address,

          //  sorter: (a,b) => a.address.length - b.address.length,

          // 可有可无 还是在这里吧 好像是可以倒转切换的 虽然没有ta 也可以切换

          sortDirections: ['descend','ascend'],

 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐