NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.93k forks source link

nz-slider issues #5756

Open dk-common opened 4 years ago

dk-common commented 4 years ago

Reproduction link

https://codesandbox.io/s/elated-feynman-szkn1

Steps to reproduce

You can find in 'What happening' section

What is expected?

You can find in 'What happening' section

What is actually happening?

1.If there can be more properties that allows display some forbidden region,such as bellow: <nz-slider [nzMin]="0" [nzMax]="100" [availableRegion]="[10,50]"> // in this case, [availableRegion] means active value region can be between 10 and 50,but the slider itself displays a whole 0 to 100 line for beauty. 2.In sandbox case above, sometimes the highlight area displays on wrong slider.You can try drag the first slider to some value such as 25,then drag the second slider to 75, and you'll see. And the sliders in for-statement in templates just acts only one time when the if statement activated after init, I also wander why. 3.As the sandbox case above, can there be a new component such as NzSliderGroup to work like it?

Environment Info
ng-zorro-antd 9.3.0
Browser chrome / firefox
ft-dsinitsyn commented 4 years ago

Another bug!!! If you'll set nzMin=-10 and nzMax =10 for example and ngModel value will be 0, position of slider won't be at the middle of slider as expected, it will be on the start (-10).

theroozbeh commented 3 years ago

Hi, are there any updates on this bug?