@eturnity/eturnity_reusable_components 7.12.6-EPDM-7951.6 → 7.12.6-EPDM-7951.7

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.12.6-EPDM-7951.6",
3
+ "version": "7.12.6-EPDM-7951.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -117,7 +117,14 @@ const loadSvg = async (fileName = props.name) => {
117
117
  }
118
118
  }
119
119
 
120
- onMounted(() => loadSvg())
120
+ onMounted(async () => {
121
+ const iconPath = `../../assets/svgIcons/${props.name.toLowerCase()}.svg?raw`
122
+ const module = await import(/* @vite-ignore */ iconPath)
123
+ console.log(module.default)
124
+ icon.html = module.default
125
+ })
126
+
127
+ // onMounted(() => loadSvg())
121
128
 
122
129
  watch(() => props.name, loadSvg)
123
130
  </script>