!35 修复 computed 定义 isFull 的错误使用

Merge pull request !35 from dodu/dev-back
This commit is contained in:
奔跑的面条
2022-09-05 01:20:19 +00:00
committed by Gitee
2 changed files with 13 additions and 10 deletions
@@ -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
}