mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 07:27:09 +08:00
chore(vue-components): 添加name option
This commit is contained in:
parent
90abde57cc
commit
f5315122e4
@ -19,6 +19,8 @@ interface ButtonSchema extends Omit<MComponent, 'id'> {
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'tmagic-button',
|
||||
|
||||
props: {
|
||||
config: {
|
||||
type: Object as PropType<ButtonSchema>,
|
||||
|
@ -16,6 +16,8 @@ interface ImgSchema extends Omit<MComponent, 'id'> {
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'tmagic-img',
|
||||
|
||||
props: {
|
||||
config: {
|
||||
type: Object as PropType<ImgSchema>,
|
||||
|
@ -31,6 +31,8 @@ interface IteratorItemSchema {
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'tmagic-iterator-container',
|
||||
|
||||
props: {
|
||||
config: {
|
||||
type: Object as PropType<IteratorContainerSchema>,
|
||||
|
@ -16,6 +16,8 @@ interface OverlaySchema extends Omit<MContainer, 'id'> {
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'tmagic-overlay',
|
||||
|
||||
props: {
|
||||
config: {
|
||||
type: Object as PropType<OverlaySchema>,
|
||||
|
@ -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>,
|
||||
|
@ -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>,
|
||||
|
@ -31,6 +31,8 @@ const createJs = (config: MPage) => {
|
||||
};
|
||||
|
||||
export default defineComponent({
|
||||
name: 'tmagic-page',
|
||||
|
||||
props: {
|
||||
config: {
|
||||
type: Object as PropType<MPage>,
|
||||
|
@ -16,6 +16,8 @@ interface QrCodeSchema extends Omit<MComponent, 'id'> {
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'tmagic-qrcode',
|
||||
|
||||
props: {
|
||||
config: {
|
||||
type: Object as PropType<QrCodeSchema>,
|
||||
|
@ -15,6 +15,8 @@ interface TextSchema extends Omit<MComponent, 'id'> {
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'tmagic-text',
|
||||
|
||||
props: {
|
||||
config: {
|
||||
type: Object as PropType<TextSchema>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user