优化
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<cl-page>
|
<cl-page>
|
||||||
<cl-sign
|
<cl-sign ref="signRef" :height="height" :enable-brush="isBrush"></cl-sign>
|
||||||
ref="signRef"
|
|
||||||
:height="isFullscreen ? windowHeight - 200 : 200"
|
|
||||||
:enable-brush="isBrush"
|
|
||||||
></cl-sign>
|
|
||||||
|
|
||||||
<view class="p-3">
|
<view class="p-3">
|
||||||
<cl-list>
|
<cl-list>
|
||||||
@@ -13,7 +9,7 @@
|
|||||||
<cl-button @click="preview">预览</cl-button>
|
<cl-button @click="preview">预览</cl-button>
|
||||||
</cl-list-item>
|
</cl-list-item>
|
||||||
|
|
||||||
<cl-list-item label="全屏">
|
<cl-list-item label="大屏">
|
||||||
<cl-switch v-model="isFullscreen"></cl-switch>
|
<cl-switch v-model="isFullscreen"></cl-switch>
|
||||||
</cl-list-item>
|
</cl-list-item>
|
||||||
|
|
||||||
@@ -26,9 +22,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from "vue";
|
import { computed, ref } from "vue";
|
||||||
|
|
||||||
const { windowHeight } = uni.getWindowInfo();
|
const height = computed(() => {
|
||||||
|
return isFullscreen.value ? uni.getWindowInfo().windowHeight - 200 : 200;
|
||||||
|
});
|
||||||
|
|
||||||
const isFullscreen = ref(false);
|
const isFullscreen = ref(false);
|
||||||
const isBrush = ref(true);
|
const isBrush = ref(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user