From f5f00e9a4ea4a4a4b968837fa880f10a07d67262 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sat, 9 Aug 2025 16:14:23 +0800 Subject: [PATCH] columns default value --- src/components/RightToolbar/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/RightToolbar/index.vue b/src/components/RightToolbar/index.vue index 86ba246..68eb0f0 100644 --- a/src/components/RightToolbar/index.vue +++ b/src/components/RightToolbar/index.vue @@ -7,7 +7,7 @@ - + @@ -48,7 +48,8 @@ const props = defineProps({ }, /* 显隐列信息(数组格式、对象格式) */ columns: { - type: [Array, Object] + type: [Array, Object], + default: () => ({}) }, /* 是否显示检索图标 */ search: {