chore(additional-components): upgrade to vite 3

This commit is contained in:
braks
2022-11-06 19:20:39 +01:00
committed by Braks
parent 43953c9d1f
commit 74433c46e9
4 changed files with 76 additions and 30 deletions
+1
View File
@@ -43,6 +43,7 @@ declare global {
const readonly: typeof import('vue')['readonly']
const ref: typeof import('vue')['ref']
const resolveComponent: typeof import('vue')['resolveComponent']
const resolveDirective: typeof import('vue')['resolveDirective']
const shallowReactive: typeof import('vue')['shallowReactive']
const shallowReadonly: typeof import('vue')['shallowReadonly']
const shallowRef: typeof import('vue')['shallowRef']
@@ -63,14 +63,14 @@ export default {
<slot name="control-zoom-in">
<ControlButton class="vue-flow__controls-zoomin" @click="onZoomInHandler">
<slot name="icon-zoom-in">
<PlusIcon />
<component :is="PlusIcon" />
</slot>
</ControlButton>
</slot>
<slot name="control-zoom-out">
<ControlButton class="vue-flow__controls-zoomout" @click="onZoomOutHandler">
<slot name="icon-zoom-out">
<MinusIcon />
<component :is="MinusIcon" />
</slot>
</ControlButton>
</slot>
@@ -79,7 +79,7 @@ export default {
<slot name="control-fit-view">
<ControlButton class="vue-flow__controls-fitview" @click="onFitViewHandler">
<slot name="icon-fit-view">
<FitView />
<component :is="FitView" />
</slot>
</ControlButton>
</slot>
@@ -88,10 +88,10 @@ export default {
<slot name="control-interactive">
<ControlButton v-if="showInteractive" class="vue-flow__controls-interactive" @click="onInteractiveChangeHandler">
<slot v-if="isInteractive" name="icon-unlock">
<Unlock />
<component :is="Unlock" />
</slot>
<slot v-if="!isInteractive" name="icon-lock">
<Lock />
<component :is="Lock" />
</slot>
</ControlButton>
</slot>