We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.2.22
微信小程序
git@github.com:VomeShop/shaokx.git
在wd-drop-menu组件加入wd-slider组件时,步长正常
滑动滑块时会直接跳到max值,没有步长
No response
The text was updated successfully, but these errors were encountered:
fc3e4ef
此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。
Sorry, something went wrong.
No branches or pull requests
Wot Design Uni 版本号
1.2.22
平台
微信小程序
复现Demo地址
git@github.com:VomeShop/shaokx.git
重现步骤
搜索 {{item.value}} 价格区间:{{ pricemax() }} 重置 确定 <script setup lang="ts"> import { cityStore } from "@/store/city"; import { onLoad } from "@dcloudio/uni-app"; import { storeToRefs } from "pinia"; import { ref } from "vue"; import { useQueue, useToast } from "wot-design-uni"; // 信息弹窗实例化 const toast = useToast(); // 导航栏跳转 const handleBack = () => { uni.navigateBack({}); }; const handleBackHome = () => { uni.reLaunch({ url: "/pages/index/index" }); }; // 搜索框 const searchValue = ref(""); const blur = () => { uni.hideKeyboard(); //失焦时关闭键盘 }; const change = ({ value }: { value: string }) => { searchValue.value = value; // 监听输入 }; // 区域筛选器 const { closeOutside } = useQueue() const region = ref(0) let option1 = ref[]>([]) const { citydata } = storeToRefs(cityStore()); onLoad(async () => { await cityStore().citylist(); option1.value = citydata.value; }); function regionchange({ value }: { value: string }) { console.log(value) } // 价格筛选器 const pricebutton = [ {value:'40万以下',price:[0,40]}, {value:'40-60万',price:[40,60]}, {value:'60-80万',price:[60,80]}, {value:'80-100万',price:[80,100]}, {value:'100-150万',price:[100,150]}, {value:'150-200万',price:[150,200]}, {value:'200-250万',price:[200,250]}, {value:'250-300万',price:[250,300]}, {value:'300万以上',price:[300,9999]}, ] const price = ref([0, 9999]) function pricebuttons(prices: number[]){ price.value = prices console.log(price.value) } const dropMenu = ref() //关闭下拉菜单 function confirm() { dropMenu.value.close() } function pricemax() { if (price.value[0] === 0 && price.value[1] === 0) { return '请选择价格区间' } else if (price.value[0] === 0 && price.value[1] !== 300) { return price.value[0] + '元 -' + price.value[1] + '万' } else if (price.value[0] !== 0 && price.value[1] !== 300) { return price.value[0] + '万 -' + price.value[1] + '万' } else if (price.value[0] === 300 && price.value[1] === 300 || price.value[0] === 0 && price.value[1] === 300) { return '不限' } else { return price.value[0] + '万 - 不限' } } function reset() { price.value = [0, 9999] } </script> <style scoped lang="scss"> @import "@/assets/secondhand/secondhand.scss"; </style>期望的结果是什么?
在wd-drop-menu组件加入wd-slider组件时,步长正常
实际的结果是什么?
滑动滑块时会直接跳到max值,没有步长
环境信息
No response
其他补充信息
No response
The text was updated successfully, but these errors were encountered: