diff --git a/pages/component/slider-100/slider-100.uvue b/pages/component/slider-100/slider-100.uvue index e8bdb935e1752dbabfed3f0d26963e5868fa7318..bade12cee2b6a54fce32f87960b2ebf94d2ab11d 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") }); },