From 68c5ef7d9fea3f911e250fb5f8b300bc76099e49 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 26 十月 2023 13:55:49 +0800
Subject: [PATCH] 小程序
---
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