From 50a54539ae23edeae068ad08a2d6902dfde5e852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Mon, 25 Nov 2024 18:30:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8E=86=E5=8F=B2=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E5=B0=96=E9=94=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/modules/subscript/index.vue | 21 +- components/diy/nav-group.vue | 350 ++++++++++++--------- 2 files changed, 212 insertions(+), 159 deletions(-) diff --git a/components/diy/modules/subscript/index.vue b/components/diy/modules/subscript/index.vue index c828aca8..62ba332d 100644 --- a/components/diy/modules/subscript/index.vue +++ b/components/diy/modules/subscript/index.vue @@ -52,16 +52,17 @@ if (!isEmpty(this.propValue)) { const new_content = this.propValue.content || {}; const new_style = this.propType == 'outer' ? this.propValue.style || {} : { subscript_style: this.propValue.style || {} }; - - // 视频比例 - this.setData({ - form: new_content, - new_style: new_style, - corner_marker: this.get_corner_marker(new_style), - text_size: `font-size: ${ new_style.subscript_style.text_or_icon_size * 2 }rpx;color: ${ new_style.subscript_style.text_or_icon_color };`, - corner_img_marker: common_img_computer(new_style.subscript_style), - img_style: `height: ${new_style.subscript_style.img_height * 2}rpx; width: ${new_style.subscript_style.img_width * 2}rpx`, - }); + if (!isEmpty(new_style.subscript_style)) { + // 视频比例 + this.setData({ + form: new_content, + new_style: new_style, + corner_marker: this.get_corner_marker(new_style), + text_size: `font-size: ${ new_style.subscript_style.text_or_icon_size * 2 }rpx;color: ${ new_style.subscript_style.text_or_icon_color };`, + corner_img_marker: common_img_computer(new_style.subscript_style), + img_style: `height: ${new_style.subscript_style.img_height * 2}rpx; width: ${new_style.subscript_style.img_width * 2}rpx`, + }); + } } }, get_corner_marker(new_style) { diff --git a/components/diy/nav-group.vue b/components/diy/nav-group.vue index 3dfc4a91..07991d52 100644 --- a/components/diy/nav-group.vue +++ b/components/diy/nav-group.vue @@ -33,167 +33,219 @@