From fdb90d2bc3f09cfa3b9172d8a8f5ac949a07e9a6 Mon Sep 17 00:00:00 2001 From: lichong <18518571399@163.com> Date: Fri, 25 Oct 2024 19:06:42 +0800 Subject: [PATCH] 10.25 --- src/renderer/src/App.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/App.vue b/src/renderer/src/App.vue index 6565259..3ed21aa 100644 --- a/src/renderer/src/App.vue +++ b/src/renderer/src/App.vue @@ -41,7 +41,7 @@ - + 随机数复制 @@ -64,6 +64,7 @@ export default { _: _, dayjs: dayjs, isVip: true, + rows: 27, form: { min: 1, max: 10, @@ -154,6 +155,10 @@ export default { this.isVip = true } } + // 监听窗口大小并获取高度 + window.onresize = () => { + this.rows = Math.floor((window.innerHeight-45) / 22) + } }, }