From 053007ef9e7faa8aa64f95acc2c2ed51463b1ab1 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 15 Feb 2022 20:00:34 +0800 Subject: [PATCH] =?UTF-8?q?v3.5.0=20=E6=98=BE=E9=9A=90=E5=88=97=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E9=BB=98=E8=AE=A4=E9=9A=90=E8=97=8F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 92c65a534..e3e1286f8 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() {