From 1a466551d0e75cd3bb4946d51d291470834e9569 Mon Sep 17 00:00:00 2001 From: "Xc@centOs" Date: Thu, 7 Dec 2023 19:15:04 +0800 Subject: [PATCH] =?UTF-8?q?getTotal=E8=AE=BE=E7=BD=AE=E4=BA=86=E5=AE=BD?= =?UTF-8?q?=E7=AA=84=E5=B1=8F=E7=9A=84=E9=BB=98=E8=AE=A4=E5=8F=96=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- es/page.common.js | 7 +++++++ lib/page.common.js | 7 +++++++ src/page.common.ts | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/es/page.common.js b/es/page.common.js index ee209f8e..bc812d48 100644 --- a/es/page.common.js +++ b/es/page.common.js @@ -66,6 +66,13 @@ export function onPathSet(option) { } } } + else { + // 不设置的默认情况,宽屏取100窄屏不取 + const { width } = this.props; + if (width !== 'xs') { + getTotal2 = 100; + } + } features.runningTree.createNode({ path: oakPath2, entity: entity2, diff --git a/lib/page.common.js b/lib/page.common.js index 6a193b0a..58618038 100644 --- a/lib/page.common.js +++ b/lib/page.common.js @@ -69,6 +69,13 @@ function onPathSet(option) { } } } + else { + // 不设置的默认情况,宽屏取100窄屏不取 + const { width } = this.props; + if (width !== 'xs') { + getTotal2 = 100; + } + } features.runningTree.createNode({ path: oakPath2, entity: entity2, diff --git a/src/page.common.ts b/src/page.common.ts index 5f8765cb..400e6fe8 100644 --- a/src/page.common.ts +++ b/src/page.common.ts @@ -109,6 +109,13 @@ export function onPathSet< } } } + else { + // 不设置的默认情况,宽屏取100窄屏不取 + const { width } = this.props; + if (width !== 'xs') { + getTotal2 = 100; + } + } features.runningTree.createNode({ path: oakPath2, entity: entity2,