提交 4fe80a96 编写于 作者: H hdx

slider-100: 暂时注释更新 value 逻辑;使用新的赋值方式,待框架更新后放开

上级 749e174c
......@@ -27,7 +27,6 @@
</template>
<script>
type SliderRender = (value : number) => void
export default {
data() {
return {
......@@ -46,18 +45,18 @@
// this.sliderValue = value
// TODO 跳过vue框架,直接修改原生组件
(this.$refs["slider1"]! as Element[]).forEach((item) => {
(item.ext['render'] as SliderRender)(value)
});
(this.$refs["slider2"]! as Element[]).forEach((item) => {
(item.ext['render'] as SliderRender)(value)
});
(this.$refs["slider3"]! as Element[]).forEach((item) => {
(item.ext['render'] as SliderRender)(value)
});
(this.$refs["slider4"]! as Element[]).forEach((item) => {
(item.ext['render'] as SliderRender)(value)
});
// (this.$refs["slider1"]! as SliderElement[]).forEach((item) => {
// item.value = value
// });
// (this.$refs["slider2"]! as SliderElement[]).forEach((item) => {
// item.value = value
// });
// (this.$refs["slider3"]! as SliderElement[]).forEach((item) => {
// item.value = value
// });
// (this.$refs["slider4"]! as SliderElement[]).forEach((item) => {
// item.value = value
// });
}
},
}
......@@ -79,4 +78,4 @@
.slider {
margin: 1px 0.5px;
}
</style>
\ No newline at end of file
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册