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
@nutui/nutui-taro
4.3.8
weapp
https://nutui.jd.com/playground/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuPG51dC1yYW5nZVxuICAgICAgaGlkZGVuLXJhbmdlXG4gICAgICBoaWRkZW4tdGFnXG4gICAgICB2LW1vZGVsPVwidmFsXCJcbiAgICAgIDpzaG93LXN0b3BzPVwidHJ1ZVwiXG4gICAgICA6c2hvdy10b29sdGlwPVwiZmFsc2VcIlxuICAgICAgOnN0ZXA9XCIyMFwiXG4gICAgICA6bWluPVwiMTBcIlxuICAgICAgOm1heD1cIjkwXCJcbiAgICAgIDptYXJrcz1cIm1hcmtzXCJcbi8+XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0IHNldHVwPlxuICBpbXBvcnQge3JlZn0gZnJvbSBcInZ1ZVwiO1xuY29uc3QgdmFsID0gcmVmKDMwKVxuY29uc3QgbWFya3MgPSByZWYoe1xuICAgIDEwOiAnMTAlJyxcbiAgICAzMDogXCIzMCVcIixcbiAgICA1MDogXCI1MCVcIixcbiAgICA3MDogXCI3MCVcIixcbiAgICA5MDogXCI5MCVcIlxuIH0pXG48L3NjcmlwdD4ifQ==
<template> <nut-range hidden-range hidden-tag v-model="val" :show-stops="true" :show-tooltip="false" :step="20" :min="10" :max="90" :marks="marks" /> </template> <script setup> import {ref} from "vue"; const val = ref(30) const marks = ref({ 10: '10%', 30: "30%", 50: "50%", 70: "70%", 90: "90%" }) </script>
当最小值为10,当前val为30的时候,step为20,向前滑动应该为10,向后滑动应该为50
实际上: 向前滑动:20 向后滑动:60
这个step似乎绑定起始位置为0了,不随着最小值变化
No response
The text was updated successfully, but these errors were encountered:
同时,刻度标记 const marks = ref({ 0: 0, 20: 20, 40: 40, 60: 60, 80: 80, 100: 100 }) 只能显示数字么,比如,我想刻度显示的是 50%,就实现不了
Sorry, something went wrong.
No branches or pull requests
NutUI 包名
@nutui/nutui-taro
NutUI 版本号
4.3.8
平台
weapp
重现链接
https://nutui.jd.com/playground/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuPG51dC1yYW5nZVxuICAgICAgaGlkZGVuLXJhbmdlXG4gICAgICBoaWRkZW4tdGFnXG4gICAgICB2LW1vZGVsPVwidmFsXCJcbiAgICAgIDpzaG93LXN0b3BzPVwidHJ1ZVwiXG4gICAgICA6c2hvdy10b29sdGlwPVwiZmFsc2VcIlxuICAgICAgOnN0ZXA9XCIyMFwiXG4gICAgICA6bWluPVwiMTBcIlxuICAgICAgOm1heD1cIjkwXCJcbiAgICAgIDptYXJrcz1cIm1hcmtzXCJcbi8+XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0IHNldHVwPlxuICBpbXBvcnQge3JlZn0gZnJvbSBcInZ1ZVwiO1xuY29uc3QgdmFsID0gcmVmKDMwKVxuY29uc3QgbWFya3MgPSByZWYoe1xuICAgIDEwOiAnMTAlJyxcbiAgICAzMDogXCIzMCVcIixcbiAgICA1MDogXCI1MCVcIixcbiAgICA3MDogXCI3MCVcIixcbiAgICA5MDogXCI5MCVcIlxuIH0pXG48L3NjcmlwdD4ifQ==
重现步骤
期望的结果是什么?
当最小值为10,当前val为30的时候,step为20,向前滑动应该为10,向后滑动应该为50
实际的结果是什么?
实际上:
向前滑动:20
向后滑动:60
这个step似乎绑定起始位置为0了,不随着最小值变化
环境信息
No response
其他补充信息
No response
The text was updated successfully, but these errors were encountered: