current position:Home>The applet customizes the slider slider and makes the number in decimal form

The applet customizes the slider slider and makes the number in decimal form

2022-02-02 21:11:00 CSDN Q & A

demand : Applet customization slider Slider bar , And let the number be in decimal form

img

Solutions : Already used uview,vant Component library slider Components , It was found that the number cannot be changed to decimal , Only default integers are supported

The desired result : Is to realize that the number of the sliding bar is displayed as a small value




Refer to the answer 1:

The following values show a custom one , Let the sliding value have some correlation with the displayed value




Refer to the answer 2:



Refer to the answer 3:

Binding step
<van-slider v-model="value" :step="0.01" />




Refer to the answer 4:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022110585942.html

Random recommended