fix(editor): Resolve vue 3 related console-warnings (#6779)

* fix(editor): Resolve vue 3 related console-warnings

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Use span as component wrapper instead of div

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Wrap popover component in span

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

---------

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
OlegIvaniv
2023-07-28 16:59:06 +02:00
committed by GitHub
parent e824ab057d
commit 30484a0615
4 changed files with 36 additions and 30 deletions

View File

@@ -14,10 +14,12 @@ export default defineComponent({
</script> </script>
<template> <template>
<span>
<el-popover v-bind="{ ...$props, ...$attrs }"> <el-popover v-bind="{ ...$props, ...$attrs }">
<template #reference> <template #reference>
<slot name="reference" /> <slot name="reference" />
</template> </template>
<slot /> <slot />
</el-popover> </el-popover>
</span>
</template> </template>

View File

@@ -1,4 +1,5 @@
<template> <template>
<span>
<n8n-tooltip placement="bottom" :disabled="!disabledHint"> <n8n-tooltip placement="bottom" :disabled="!disabledHint">
<template #content> <template #content>
<div>{{ disabledHint }}</div> <div>{{ disabledHint }}</div>
@@ -16,6 +17,7 @@
/> />
</div> </div>
</n8n-tooltip> </n8n-tooltip>
</span>
</template> </template>
<script lang="ts"> <script lang="ts">

View File

@@ -1,10 +1,12 @@
<template> <template>
<span>
<n8n-tooltip content=" " placement="top"> <n8n-tooltip content=" " placement="top">
<template #content> <template #content>
<slot /> <slot />
</template> </template>
<font-awesome-icon :class="$style['icon']" icon="exclamation-triangle"></font-awesome-icon> <font-awesome-icon :class="$style['icon']" icon="exclamation-triangle"></font-awesome-icon>
</n8n-tooltip> </n8n-tooltip>
</span>
</template> </template>
<style lang="scss" module> <style lang="scss" module>

View File

@@ -731,7 +731,7 @@
"node.waitingForYouToCreateAnEventIn": "Waiting for you to create an event in {nodeType}", "node.waitingForYouToCreateAnEventIn": "Waiting for you to create an event in {nodeType}",
"node.discovery.pinData.canvas": "You can pin this output instead of waiting for a test event. Open node to do so.", "node.discovery.pinData.canvas": "You can pin this output instead of waiting for a test event. Open node to do so.",
"node.discovery.pinData.ndv": "You can pin this output instead of waiting for a test event.", "node.discovery.pinData.ndv": "You can pin this output instead of waiting for a test event.",
"nodeBase.clickToAddNodeOrDragToConnect": "Click to add node<br />or drag to connect", "nodeBase.clickToAddNodeOrDragToConnect": "Click to add node \n or drag to connect",
"nodeCreator.actionsPlaceholderNode.scheduleTrigger": "On a Schedule", "nodeCreator.actionsPlaceholderNode.scheduleTrigger": "On a Schedule",
"nodeCreator.actionsPlaceholderNode.webhook": "On a Webhook call", "nodeCreator.actionsPlaceholderNode.webhook": "On a Webhook call",
"nodeCreator.actionsCategory.actions": "Actions", "nodeCreator.actionsCategory.actions": "Actions",