@explorer-1/vue 1.1.17 → 1.1.18
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { defineComponent, type PropType } from 'vue'
|
|
2
|
+
import { defineComponent, resolveComponent, type PropType } from 'vue'
|
|
3
3
|
import { mapStores } from 'pinia'
|
|
4
4
|
import { useThemeStore } from '../../store/theme'
|
|
5
5
|
import { eventBus } from './../../utils/eventBus'
|
|
@@ -148,6 +148,10 @@ export default defineComponent({
|
|
|
148
148
|
],
|
|
149
149
|
computed: {
|
|
150
150
|
...mapStores(useThemeStore),
|
|
151
|
+
dynamicLinkComponent() {
|
|
152
|
+
// Resolves the NuxtLink component for Vue 3's dynamic <component> binding
|
|
153
|
+
return this.customElementType || resolveComponent('NuxtLink')
|
|
154
|
+
},
|
|
151
155
|
computedVariants() {
|
|
152
156
|
if (this.usePrimaryColor) {
|
|
153
157
|
return primaryColorVariants
|
|
@@ -271,7 +275,7 @@ export default defineComponent({
|
|
|
271
275
|
<div>
|
|
272
276
|
<!-- annoyingly repetive due to complexities around `to` and @click.native -->
|
|
273
277
|
<component
|
|
274
|
-
:is="
|
|
278
|
+
:is="dynamicLinkComponent"
|
|
275
279
|
v-if="computedTo"
|
|
276
280
|
class="group"
|
|
277
281
|
:class="computedClass"
|