From 0a24ffeb3eff074c8f11e9f94fdf2c2cb4929799 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Fri, 10 Nov 2023 13:08:29 +0800
Subject: [PATCH] fix:小程序详情修改
---
uni_modules/uview-ui/components/u-slider/u-slider.vue | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 55 insertions(+), 0 deletions(-)
diff --git a/uni_modules/uview-ui/components/u-slider/u-slider.vue b/uni_modules/uview-ui/components/u-slider/u-slider.vue
new file mode 100644
index 0000000..80ebbed
--- /dev/null
+++ b/uni_modules/uview-ui/components/u-slider/u-slider.vue
@@ -0,0 +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"
+ :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>
--
Gitblit v1.8.0