feat(editor): Refactor several smaller components to composition API (no-changelog) (#10038)

This commit is contained in:
oleg
2024-07-12 15:43:07 +02:00
committed by GitHub
parent 2e9ab66602
commit c4c25eadfd
12 changed files with 147 additions and 234 deletions

View File

@@ -1,6 +1,6 @@
<template>
<n8n-card :class="$style.card" v-bind="$attrs">
<template v-if="!loading" #header>
<template v-if="!loading && title" #header>
<span :class="$style.title" v-text="title" />
</template>
<n8n-loading :loading="loading" :rows="3" variant="p" />
@@ -10,20 +10,11 @@
</n8n-card>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
name: 'Card',
props: {
loading: {
type: Boolean,
},
title: {
type: String,
},
},
});
<script lang="ts" setup>
defineProps<{
loading: boolean;
title?: string;
}>();
</script>
<style lang="scss" module>