We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e8c4d6 commit 753ac12Copy full SHA for 753ac12
src/components/InfiniteLoading.vue
@@ -122,9 +122,7 @@ export default {
122
type: Number,
123
default: config.props.distance,
124
},
125
- spinner: {
126
- type: String,
127
- },
+ spinner: String,
128
direction: {
129
type: String,
130
default: config.props.direction,
src/components/Spinner.vue
@@ -70,9 +70,8 @@ export default {
70
computed: {
71
spinnerView() {
72
return (
73
- typeof this.$attrs.spinner === 'string'
74
- ? SPINNERS[this.$attrs.spinner.toUpperCase()]
75
- : this.spinnerInConfig // fallback to spinner of config
+ SPINNERS[(this.$attrs.spinner || '').toUpperCase()]
+ || this.spinnerInConfig // fallback to spinner of config
76
);
77
78
spinnerInConfig() {
0 commit comments