Skip to content

Commit

Permalink
fix(ui): use correct list type for QSliderSlots (fix: #17060) (#17061)
Browse files Browse the repository at this point in the history
* fix(ui): use correct list type for QSliderSlots

* refactor!: remove unused SliderMarkerLabelArrayConfig type

---------

Co-authored-by: Yusuf Kandemir <[email protected]>
  • Loading branch information
thexeos and yusufkandemir authored Jun 5, 2024
1 parent 5c34bf9 commit fe421fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/slider/use-slider.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@

"markerList": {
"type": "Array",
"tsType": "SliderMarkerLabelArrayConfig",
"tsType": "SliderMarkerLabelConfig",
"desc": "Array of marker label configs",
"definition": {
"index": {
Expand Down Expand Up @@ -406,7 +406,7 @@
"scope": {
"markerList": {
"type": "Array",
"tsType": "SliderMarkerLabelArrayConfig",
"tsType": "SliderMarkerLabelConfig",
"desc": "Array of marker label configs",
"definition": {
"index": {
Expand Down
2 changes: 0 additions & 2 deletions ui/types/api/slider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ export type SliderMarkerLabelConfig = {
style: VueStyleObjectProp;
};

export type SliderMarkerLabelArrayConfig = SliderMarkerLabelConfig[];

export interface SliderMarkerLabelObjectConfig {
[value: number]: SliderMarkerLabelConfig;
}

0 comments on commit fe421fb

Please sign in to comment.