From 151d3aee0218a3eb6b928b0b327be6cd9ac7652c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 01 七月 2021 16:02:07 +0800 Subject: [PATCH] 2021-07-01 --- src/utils/utils-custom.js | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js index a963563..840ce6d 100644 --- a/src/utils/utils-custom.js +++ b/src/utils/utils-custom.js @@ -280,6 +280,11 @@ return cell }) item.components = this.resetConfig(item.components) + } else if (item.type === 'menubar') { + item.subMenus = item.subMenus.map(cell => { + cell.uuid = this.getuuid() + return cell + }) } else if (item.type === 'card' || item.type === 'carousel' || (item.type === 'table' && item.subtype === 'tablecard')) { item.subcards.forEach(card => { card.uuid = this.getuuid() @@ -379,10 +384,10 @@ // scaleview _style = _style.replace(/\d+vw/ig, (word) => { - return parseFloat(word) * 420 / 100 + 'px' + return parseFloat(word) * (window.GLOB.winWidth || 420) / 100 + 'px' // return parseFloat(word) * 350 / 100 + 'px' }).replace(/\d+vh/ig, (word) => { - return parseFloat(word) * 738 / 100 + 'px' + return parseFloat(word) * (window.GLOB.winHeight || 738) / 100 + 'px' // return parseFloat(word) * 615 / 100 + 'px' }) -- Gitblit v1.8.0