diff --git a/pages/component/slider-100/slider-100.uvue b/pages/component/slider-100/slider-100.uvue
index 77c77f87ef38bba1ea82e847240b495b6b37693b..e8bdb935e1752dbabfed3f0d26963e5868fa7318 100644
--- a/pages/component/slider-100/slider-100.uvue
+++ b/pages/component/slider-100/slider-100.uvue
@@ -5,20 +5,20 @@
-
+
-
+
-
+
-
+
@@ -36,7 +36,26 @@
},
methods: {
sliderChanging(e : SliderChangeEvent) {
- this.sliderValue = e.detail.value
+ // this.sliderValue = e.detail.value
+
+ // TODO
+ const sliderValue = e.detail.value;
+ (this.$refs["slider1"]! as ComponentPublicInstance[]).forEach((item) => {
+ item.$data["sliderValue"] = sliderValue
+ item.$callMethod("_onRender")
+ });
+ (this.$refs["slider2"]! as ComponentPublicInstance[]).forEach((item) => {
+ item.$data["sliderValue"] = sliderValue
+ item.$callMethod("_onRender")
+ });
+ (this.$refs["slider3"]! as ComponentPublicInstance[]).forEach((item) => {
+ item.$data["sliderValue"] = sliderValue
+ item.$callMethod("_onRender")
+ });
+ (this.$refs["slider4"]! as ComponentPublicInstance[]).forEach((item) => {
+ item.$data["sliderValue"] = sliderValue
+ item.$callMethod("_onRender")
+ });
},
},
}
@@ -56,6 +75,6 @@
}
.slider {
- margin: 2px 0.5px;
+ margin: 1px 0.5px;
}
\ No newline at end of file