Commit 053007ef9e7faa8aa64f95acc2c2ed51463b1ab1
1 parent
33d8dbef
v3.5.0 显隐列初始默认隐藏列
Showing
1 changed file
with
8 additions
and
1 deletions
yudao-ui-admin/src/components/RightToolbar/index.vue
| ... | ... | @@ -43,7 +43,14 @@ export default { |
| 43 | 43 | type: Array, |
| 44 | 44 | }, |
| 45 | 45 | }, |
| 46 | - | |
| 46 | + created() { | |
| 47 | + // 显隐列初始默认隐藏列 | |
| 48 | + for (let item in this.columns) { | |
| 49 | + if (this.columns[item].visible === false) { | |
| 50 | + this.value.push(parseInt(item)); | |
| 51 | + } | |
| 52 | + } | |
| 53 | + }, | |
| 47 | 54 | methods: { |
| 48 | 55 | // 搜索 |
| 49 | 56 | toggleSearch() { | ... | ... |