From 40efdf7f7640c004420f4268b9fbd1f2207e4390 Mon Sep 17 00:00:00 2001 From: hdx Date: Mon, 28 Aug 2023 18:52:14 +0800 Subject: [PATCH] =?UTF-8?q?slider-100:=20=E8=B0=83=E6=95=B4=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E7=BB=84=E4=BB=B6=E5=86=85=E9=83=A8=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/slider-100/slider-100.uvue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/component/slider-100/slider-100.uvue b/pages/component/slider-100/slider-100.uvue index e8bdb935..bade12ce 100644 --- a/pages/component/slider-100/slider-100.uvue +++ b/pages/component/slider-100/slider-100.uvue @@ -38,22 +38,22 @@ sliderChanging(e : SliderChangeEvent) { // this.sliderValue = e.detail.value - // TODO + // TODO 跳过vue框架,直接修改原生组件 const sliderValue = e.detail.value; (this.$refs["slider1"]! as ComponentPublicInstance[]).forEach((item) => { - item.$data["sliderValue"] = sliderValue + item.$data["$sliderValue"] = sliderValue item.$callMethod("_onRender") }); (this.$refs["slider2"]! as ComponentPublicInstance[]).forEach((item) => { - item.$data["sliderValue"] = sliderValue + item.$data["$sliderValue"] = sliderValue item.$callMethod("_onRender") }); (this.$refs["slider3"]! as ComponentPublicInstance[]).forEach((item) => { - item.$data["sliderValue"] = sliderValue + item.$data["$sliderValue"] = sliderValue item.$callMethod("_onRender") }); (this.$refs["slider4"]! as ComponentPublicInstance[]).forEach((item) => { - item.$data["sliderValue"] = sliderValue + item.$data["$sliderValue"] = sliderValue item.$callMethod("_onRender") }); }, -- GitLab