chore(vue-components): 添加name option

This commit is contained in:
roymondchen 2025-02-27 19:33:57 +08:00
parent 90abde57cc
commit f5315122e4
9 changed files with 18 additions and 0 deletions

View File

@ -19,6 +19,8 @@ interface ButtonSchema extends Omit<MComponent, 'id'> {
}
export default defineComponent({
name: 'tmagic-button',
props: {
config: {
type: Object as PropType<ButtonSchema>,

View File

@ -16,6 +16,8 @@ interface ImgSchema extends Omit<MComponent, 'id'> {
}
export default defineComponent({
name: 'tmagic-img',
props: {
config: {
type: Object as PropType<ImgSchema>,

View File

@ -31,6 +31,8 @@ interface IteratorItemSchema {
}
export default defineComponent({
name: 'tmagic-iterator-container',
props: {
config: {
type: Object as PropType<IteratorContainerSchema>,

View File

@ -16,6 +16,8 @@ interface OverlaySchema extends Omit<MContainer, 'id'> {
}
export default defineComponent({
name: 'tmagic-overlay',
props: {
config: {
type: Object as PropType<OverlaySchema>,

View File

@ -17,6 +17,8 @@ import { type Id, type MComponent, type MNode, NodeType } from '@tmagic/core';
import { useApp, useComponent } from '@tmagic/vue-runtime-help';
export default defineComponent({
name: 'tmagic-page-fragment-container',
props: {
config: {
type: Object as PropType<MComponent>,

View File

@ -15,6 +15,8 @@ import type { MPageFragment } from '@tmagic/core';
import { useApp, useComponent } from '@tmagic/vue-runtime-help';
export default defineComponent({
name: 'tmagic-page-fragment',
props: {
config: {
type: Object as PropType<MPageFragment>,

View File

@ -31,6 +31,8 @@ const createJs = (config: MPage) => {
};
export default defineComponent({
name: 'tmagic-page',
props: {
config: {
type: Object as PropType<MPage>,

View File

@ -16,6 +16,8 @@ interface QrCodeSchema extends Omit<MComponent, 'id'> {
}
export default defineComponent({
name: 'tmagic-qrcode',
props: {
config: {
type: Object as PropType<QrCodeSchema>,

View File

@ -15,6 +15,8 @@ interface TextSchema extends Omit<MComponent, 'id'> {
}
export default defineComponent({
name: 'tmagic-text',
props: {
config: {
type: Object as PropType<TextSchema>,