提交 40efdf7f 编写于 作者: H hdx

slider-100: 调整调用组件内部属性名

上级 ee3c8d14
...@@ -38,22 +38,22 @@ ...@@ -38,22 +38,22 @@
sliderChanging(e : SliderChangeEvent) { sliderChanging(e : SliderChangeEvent) {
// this.sliderValue = e.detail.value // this.sliderValue = e.detail.value
// TODO // TODO 跳过vue框架,直接修改原生组件
const sliderValue = e.detail.value; const sliderValue = e.detail.value;
(this.$refs["slider1"]! as ComponentPublicInstance[]).forEach((item) => { (this.$refs["slider1"]! as ComponentPublicInstance[]).forEach((item) => {
item.$data["sliderValue"] = sliderValue item.$data["$sliderValue"] = sliderValue
item.$callMethod("_onRender") item.$callMethod("_onRender")
}); });
(this.$refs["slider2"]! as ComponentPublicInstance[]).forEach((item) => { (this.$refs["slider2"]! as ComponentPublicInstance[]).forEach((item) => {
item.$data["sliderValue"] = sliderValue item.$data["$sliderValue"] = sliderValue
item.$callMethod("_onRender") item.$callMethod("_onRender")
}); });
(this.$refs["slider3"]! as ComponentPublicInstance[]).forEach((item) => { (this.$refs["slider3"]! as ComponentPublicInstance[]).forEach((item) => {
item.$data["sliderValue"] = sliderValue item.$data["$sliderValue"] = sliderValue
item.$callMethod("_onRender") item.$callMethod("_onRender")
}); });
(this.$refs["slider4"]! as ComponentPublicInstance[]).forEach((item) => { (this.$refs["slider4"]! as ComponentPublicInstance[]).forEach((item) => {
item.$data["sliderValue"] = sliderValue item.$data["$sliderValue"] = sliderValue
item.$callMethod("_onRender") item.$callMethod("_onRender")
}); });
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册