Ant Design of Vue —— Table表格组件之设置动态表头

先看效果:

Ant Design of Vue —— Table表格组件之设置动态表头

 代码如下:

Ant Design of Vue —— Table表格组件之设置动态表头

Ant Design of Vue —— Table表格组件之设置动态表头

scopedSlots是作用域插槽,filterDropdown可以自定义筛选菜单,title表头名字

Ant Design of Vue —— Table表格组件之设置动态表头

Ant Design of Vue —— Table表格组件之设置动态表头

 通过下拉框选择,选到哪一项,就给相应的变量赋值

https://www.cnblogs.com/duoer/p/12096895.html