From 8c82a5146c9e811c0f1183e7bdb82ad739e805e4 Mon Sep 17 00:00:00 2001 From: LCJ-MinYa <1049468118@qq.com> Date: Fri, 16 Jan 2026 11:19:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8B=96=E6=8B=BD=E5=B8=83=E5=B1=80-?= =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=A1=8C=E5=88=97=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demoHtml/flex/js/index.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/demoHtml/flex/js/index.js b/demoHtml/flex/js/index.js index 072a8e9..0e9eccc 100644 --- a/demoHtml/flex/js/index.js +++ b/demoHtml/flex/js/index.js @@ -8,7 +8,7 @@ initData: null, }; let currentComponent = null; - let cellHeight = 60; + let cellHeight = 30; let locale = 'en'; var initGridStack = () => { @@ -19,8 +19,8 @@ GridStack.setupDragIn('#components-panel .component-item', undefined, [ { - w: 2, - h: 2, + w: 4, + h: 4, type: 'image', name: userLangConfig[locale].user.image_default_name, background: '#fff', @@ -38,8 +38,8 @@ focusedStyle_scale: 1, }, { - w: 2, - h: 1, + w: 4, + h: 2, type: 'text', childrenType: '', name: userLangConfig[locale].user.text_default_name, @@ -120,6 +120,7 @@ // subGridOpts: subOptions, // subGridDynamic: true, children: self['initData'].children, + column: 24, }, `#${type}-screen` ); @@ -633,12 +634,12 @@ let initDataCopy = JSON.parse(JSON.stringify(otherInfo)); initDataCopy.children.forEach((item) => { item.xCopy = item.x; - item.x = item.x * (1920 / 12); + item.x = item.x * (1920 / 24); item.yCopy = item.y; item.y = item.y * cellHeight * 2; item.wCopy = item.w; - item.w = item.w * (1920 / 12); + item.w = item.w * (1920 / 24); if (!item.hasOwnProperty('h')) { item.h = 1; }