Explorar el Código

fix: 修复 computed 定义 isFull 的错误使用

tnt group hace 3 años
padre
commit
101a4ea27c
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      src/components/Tips/MacOsControlBtn/index.vue

+ 4 - 2
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
   }