angular / angular/components

feat(material/slider): allow slider thumbs to have independent min & max values

Đang mở
#27,290 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
feature needs: discussion P4
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

I would like to set a max possible value per thumb of the mat range slider

### Reproduction

StackBlitz link: https://stackblitz.com/edit/a7wg4u?file=src%2Fexample%2Fslider-range-example.html
Steps to reproduce:
1. Set max and min for matSliderThumbs
2. See that the individual maxs and mins do not apply

### Expected Behavior

max and min on each input would be applied.

### Actual Behavior

max and min on the input elements is not applied

### Environment

- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với bản tái hiện trên StackBlitz và tệp src/example/slider-range-example.html của nó, sau đó kiểm tra cách matSliderThumbs xử lý các đầu vào min và max của từng thumb. Hoàn tất khi các giá trị min và max riêng lẻ được áp dụng độc lập và bản tái hiện không còn cho thấy chúng bị bỏ qua.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.