@policystudio/policy-studio-ui-vue 1.1.90-beta.33 → 1.1.90-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -112,7 +112,6 @@ const imageLoadError = ref(false)
|
|
|
112
112
|
const emit = defineEmits(['click'])
|
|
113
113
|
|
|
114
114
|
const getIconType = computed(() => {
|
|
115
|
-
if (imageLoadError.value || !finishedImageLoad.value) return 'material-icons'
|
|
116
115
|
if (props.type) return props.type
|
|
117
116
|
if (!props.icon?.includes('/')) return 'material-icons'
|
|
118
117
|
if (!props.icon?.includes('.svg')) return 'url'
|
|
@@ -128,7 +127,7 @@ const getIcon = computed(() => {
|
|
|
128
127
|
|
|
129
128
|
const getIconClasses = computed(() => {
|
|
130
129
|
if (props.iconClasses) return props.iconClasses
|
|
131
|
-
return `${props.color}`
|
|
130
|
+
return props.color ? `${props.color}` : ''
|
|
132
131
|
})
|
|
133
132
|
|
|
134
133
|
const getColor = computed(() => {
|