From c807ea43529df6ff114797eb4362219728883ca4 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期三, 06 十一月 2024 17:13:10 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- src/components/paint/index.vue | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/components/paint/index.vue b/src/components/paint/index.vue index eadb1e3..180ddcc 100644 --- a/src/components/paint/index.vue +++ b/src/components/paint/index.vue @@ -1,6 +1,6 @@ <template> <div class="paint"> - <canvas id="canvas" width="400" :height="canvasHeight"></canvas> + <canvas id="canvas" :width="canvasWidth" :height="canvasHeight"></canvas> <!-- 鎿嶄綔鎸夐挳 --> <ul class="paint-btn"> <li class="paint-btn-box"> @@ -55,6 +55,7 @@ export default { data() { return { + canvasWidth:window.innerWidth > 450 ? 400 : window.innerWidth - 30, backgroundImgUrl: "", // 鑳屾櫙 isDraw: true, // 缁樼敾銆佹閫夋ā寮� brush: "Pencil", // 鐢荤瑪绫诲瀷 -- Gitblit v1.9.1