Skip to content

Commit

Permalink
fix(QSpinner/...): JSON structure; JSON > "size" type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed May 3, 2024
1 parent 8452447 commit 3af7616
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 1 addition & 5 deletions ui/src/components/spinner/QSpinner.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{
"mixins": [ "composables/private.use-size/use-size" ],
"mixins": [ "components/spinner/spinner" ],

"meta": {
"docsUrl": "https://v2.quasar.dev/vue-components/spinners"
},

"props": {
"color": {
"extends": "color"
},

"thickness": {
"type": "Number",
"desc": "Override value to use for stroke-width",
Expand Down
5 changes: 5 additions & 0 deletions ui/src/components/spinner/spinner.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"props": {
"color": {
"extends": "color"
},

"size": {
"type": [ "String", "Number" ],
"default": "'1em'"
}
}
}
2 changes: 1 addition & 1 deletion ui/src/components/spinner/use-spinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useSizeDefaults } from '../../composables/private.use-size/use-size.js'

export const useSpinnerProps = {
size: {
type: [ Number, String ],
type: [ String, Number ],
default: '1em'
},
color: String
Expand Down

0 comments on commit 3af7616

Please sign in to comment.