From 053007ef9e7faa8aa64f95acc2c2ed51463b1ab1 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 15 Feb 2022 20:00:34 +0800 Subject: [PATCH] v3.5.0 显隐列初始默认隐藏列 --- yudao-ui-admin/src/components/RightToolbar/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin/src/components/RightToolbar/index.vue b/yudao-ui-admin/src/components/RightToolbar/index.vue index 92c65a5..e3e1286 100644 --- a/yudao-ui-admin/src/components/RightToolbar/index.vue +++ b/yudao-ui-admin/src/components/RightToolbar/index.vue @@ -43,7 +43,14 @@ export default { type: Array, }, }, - + created() { + // 显隐列初始默认隐藏列 + for (let item in this.columns) { + if (this.columns[item].visible === false) { + this.value.push(parseInt(item)); + } + } + }, methods: { // 搜索 toggleSearch() { -- libgit2 0.21.4