提交 ec76aef2 编写于 作者: H hdx

slider-100: 移除 不必要的 "!",因为已经使用了 as 语法

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