Fix #4791 - SpinnerIcon: SpinnerIcon component isn't spinning

pull/4792/head
Dima Ershov 2023-11-10 02:19:31 +03:00
parent 5e341367c2
commit 7e8a4712f1
1 changed files with 3 additions and 0 deletions

View File

@ -1,9 +1,11 @@
<script> <script>
import BaseComponent from 'primevue/basecomponent';
import BaseIconStyle from 'primevue/baseicon/style'; import BaseIconStyle from 'primevue/baseicon/style';
import { ObjectUtils } from 'primevue/utils'; import { ObjectUtils } from 'primevue/utils';
export default { export default {
name: 'BaseIcon', name: 'BaseIcon',
extends: BaseComponent,
props: { props: {
label: { label: {
type: String, type: String,
@ -14,6 +16,7 @@ export default {
default: false default: false
} }
}, },
style: BaseIconStyle,
beforeMount() { beforeMount() {
BaseIconStyle.loadStyle({ nonce: this.$config?.csp?.nonce }); BaseIconStyle.loadStyle({ nonce: this.$config?.csp?.nonce });
}, },