Skip to content

Commit e2adc75

Browse files
committed
Use name to select spinner
1 parent fa1f0d5 commit e2adc75

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/Spinner.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ export default /* #__PURE__ */defineComponent({
2929
computed: {
3030
spinnerView() {
3131
return (
32-
SPINNERS[(this.spinner || '')]
33-
|| 'default' // fallback to spinner of config
32+
if (!this.SPINNERS.includes(this.spinner))
33+
return 'default'
34+
35+
return this.spinner
3436
);
3537
},
3638
},

0 commit comments

Comments
 (0)