From 64b432916af9c9218ab3f3eca614e26c542142ae Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期二, 07 十一月 2023 15:47:13 +0800 Subject: [PATCH] bug --- minipro_standard/uni_modules/uview-ui/components/u-slider/u-slider.vue | 108 +++++++++++++++++++++++++++--------------------------- 1 files changed, 54 insertions(+), 54 deletions(-) diff --git a/minipro_standard/uni_modules/uview-ui/components/u-slider/u-slider.vue b/minipro_standard/uni_modules/uview-ui/components/u-slider/u-slider.vue index 9b5ee36..80ebbed 100644 --- a/minipro_standard/uni_modules/uview-ui/components/u-slider/u-slider.vue +++ b/minipro_standard/uni_modules/uview-ui/components/u-slider/u-slider.vue @@ -1,55 +1,55 @@ -<template> - <view - class="u-slider" - :style="[$u.addStyle(customStyle)]" - > - <slider - :min="min" - :max="max" - :step="step" - :value="value" - :activeColor="activeColor" - :inactiveColor="inactiveColor" - :blockSize="$u.getPx(blockSize)" - :blockColor="blockColor" +<template> + <view + class="u-slider" + :style="[$u.addStyle(customStyle)]" + > + <slider + :min="min" + :max="max" + :step="step" + :value="value" + :activeColor="activeColor" + :inactiveColor="inactiveColor" + :blockSize="$u.getPx(blockSize)" + :blockColor="blockColor" :showValue="showValue" - :disabled="disabled" - @changing="changingHandler" - @change="changeHandler" - ></slider> - </view> -</template> - -<script> - import props from './props.js' - export default { - name: 'u--slider', - mixins: [uni.$u.mpMixin, uni.$u.mixin, props], - methods: { - // 鎷栧姩杩囩▼涓Е鍙� - changingHandler(e) { - const { - value - } = e.detail - // 鏇存柊v-model鐨勫�� - this.$emit('input', value) - // 瑙﹀彂浜嬩欢 - this.$emit('changing', value) - }, - // 婊戝姩缁撴潫鏃惰Е鍙� - changeHandler(e) { - const { - value - } = e.detail - // 鏇存柊v-model鐨勫�� - this.$emit('input', value) - // 瑙﹀彂浜嬩欢 - this.$emit('change', value) - } - }, - } -</script> - -<style lang="scss" scoped> - @import "../../libs/css/components.scss"; -</style> + :disabled="disabled" + @changing="changingHandler" + @change="changeHandler" + ></slider> + </view> +</template> + +<script> + import props from './props.js' + export default { + name: 'u--slider', + mixins: [uni.$u.mpMixin, uni.$u.mixin, props], + methods: { + // 鎷栧姩杩囩▼涓Е鍙� + changingHandler(e) { + const { + value + } = e.detail + // 鏇存柊v-model鐨勫�� + this.$emit('input', value) + // 瑙﹀彂浜嬩欢 + this.$emit('changing', value) + }, + // 婊戝姩缁撴潫鏃惰Е鍙� + changeHandler(e) { + const { + value + } = e.detail + // 鏇存柊v-model鐨勫�� + this.$emit('input', value) + // 瑙﹀彂浜嬩欢 + this.$emit('change', value) + } + }, + } +</script> + +<style lang="scss" scoped> + @import "../../libs/css/components.scss"; +</style> -- Gitblit v1.9.3