From 646946399adf86c47ddc079882f9bade16bcb094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Sun, 2 Feb 2020 00:18:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BB=9A=E5=8A=A8=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=B8=80=E5=A4=84=E5=8F=98=E9=87=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scroll/index.wc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scroll/index.wc b/src/scroll/index.wc index cdca30e..1422886 100644 --- a/src/scroll/index.wc +++ b/src/scroll/index.wc @@ -137,7 +137,7 @@ export default class Scroll { return this.__BOX__.scrollLeft } - set scrollLeft(val) { + set scrollLeft(n) { n = +n if (n === n) { var { sw, ow, xw } = this.props