Tencent / Tencent/tdesign-miniprogram

[t-slider] max设置后可选择区域的问题

Open
#4,122 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Vue
Stars
1.8k
Forks
337
Avg merge
1d 21h
Merged PRs (30d)
19

Description

tdesign-miniprogram 版本

1.10.0

重现链接

No response

重现步骤
<t-dialog
  visible="{{showTemperatureControl}}"
  title="温度控制 {{temperature}}℃"
  confirm-btn="确定"
  cancel-btn="取消"
  bind:confirm="onTemperatureConfirm"
  bind:cancel="onTemperatureCancel"
>
    <view slot="content" class="camera-manage-content">
        <t-slider id="slider" defaultValue="{{temperature}}" value="{{temperature}}" marks="{{marks}}" max="{{40}}" bind:change="onTemperatureChange" />
    </view>
</t-dialog>
期望结果

设置max之后整个slider最大就是max的值,而不是右边空一片

实际结果
Image
基础库版本

3.8.0

补充说明

另外现在这么渲染的情况下,滑动滑块的时候位置会和点的位置错开

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported t-slider example in tdesign-miniprogram 1.10.0, focusing on the interaction between max, marks, and the slider track. Reproduce it with max set to 40 and verify that the track ends at the maximum and the thumb aligns with the marks while dragging.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.