Skip to content

Commit 4e33ea2

Browse files
committed
feat(QScrollArea): small tweaks
1 parent e37a757 commit 4e33ea2

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

ui/src/components/scroll-area/QScrollArea.js

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,12 @@ export default Vue.extend({
1818
},
1919

2020
props: {
21-
barStyle: Object,
22-
thumbStyle: {
23-
type: Object,
24-
default: () => ({})
25-
},
26-
contentStyle: {
27-
type: Object,
28-
default: () => ({})
29-
},
30-
contentActiveStyle: {
31-
type: Object,
32-
default: () => ({})
33-
},
21+
barStyle: [ Array, String, Object ],
22+
23+
thumbStyle: Object,
24+
contentStyle: [ Array, String, Object ],
25+
contentActiveStyle: [ Array, String, Object ],
26+
3427
delay: {
3528
type: [String, Number],
3629
default: 1000
@@ -40,6 +33,7 @@ export default Vue.extend({
4033
type: Boolean,
4134
default: null
4235
},
36+
4337
horizontal: Boolean
4438
},
4539

ui/src/components/scroll-area/QScrollArea.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
"props": {
77
"bar-style": {
8-
"type": "Object",
8+
"type": [ "Array", "String", "Object"],
99
"desc": "Object with CSS properties and values for styling the custom scrollbar",
1010
"examples": [ ":bar-style=\"{ right: '4px', borderRadius: '5px', background: 'red', width: '10px', opacity: 1 }\"" ],
1111
"category": "style",
@@ -20,14 +20,14 @@
2020
},
2121

2222
"content-style": {
23-
"type": "Object",
23+
"type": [ "Array", "String", "Object"],
2424
"desc": "Object with CSS properties and values for styling the container of QScrollArea",
2525
"examples": [ ":content-style=\"{ backgroundColor: '#C0C0C0' }\"" ],
2626
"category": "style"
2727
},
2828

2929
"content-active-style": {
30-
"type": "Object",
30+
"type": [ "Array", "String", "Object"],
3131
"desc": "Object with CSS properties and values for styling the container of QScrollArea when scroll area becomes active (is mouse hovered)",
3232
"examples": [ ":content-active-style=\"{ backgroundColor: 'white' }\"" ],
3333
"category": "style"

ui/src/components/slider/slider-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export let SliderMixin = {
115115
},
116116

117117
isReversed () {
118-
return (this.reverse === true ? 1 : -1) * (this.$q.lang.rtl === true ? -1 : 1) === 1
118+
return this.reverse !== (this.$q.lang.rtl === true)
119119
},
120120

121121
horizProp () {

0 commit comments

Comments
 (0)