From 2b34a018453b663f4046dfdedee1bf812be1edfe Mon Sep 17 00:00:00 2001 From: tnt group Date: Sat, 3 Sep 2022 16:45:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20computed=20?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=20isFull=20=E7=9A=84=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tips/MacOsControlBtn/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Tips/MacOsControlBtn/index.vue b/src/components/Tips/MacOsControlBtn/index.vue index 980454d0..fbfd2c18 100644 --- a/src/components/Tips/MacOsControlBtn/index.vue +++ b/src/components/Tips/MacOsControlBtn/index.vue @@ -37,7 +37,9 @@ const props = defineProps({ hidden: { request: false, type: Array, - default: [] + default() { + return [] + } }, // 使用全屏功能 narrow: { @@ -76,7 +78,7 @@ const btnList: { icon: RemoveIcon }, { - title: isFull ? '缩小' : '放大', + title: isFull.value ? '缩小' : '放大', key: props.narrow ? 'fullResize' : 'resize', icon: ResizeIcon }