From cf610e9d72874c67f79f9f73e86db7260b2e36d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Mon, 23 Dec 2019 23:51:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dlayer=E7=9A=84radius=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=97=A0=E6=95=88=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layer/index.wc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/layer/index.wc b/src/layer/index.wc index 59f1f11..c91811a 100644 --- a/src/layer/index.wc +++ b/src/layer/index.wc @@ -289,6 +289,7 @@ class Layer { blur: false, background: null, mask: false, + radius: null, 'mask-close': false, 'mask-color': null, fixed: true //是否固定位置 @@ -606,15 +607,16 @@ class Layer { case 'blur': this.props[name] = true break + case 'radius': + this.props.radius = val + break case 'left': case 'right': case 'top': case 'bottom': - if (val !== null) { - this.props.from[name] = val - this.props.to = this.props.from - this.removeAttribute(name) - } + this.props.from[name] = val + this.props.to = this.props.from + this.removeAttribute(name) break case 'fixed': this.fixed = true