mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-16 18:09:22 +08:00
fix(ui): model prop设置成可选
This commit is contained in:
parent
0295d6f4b5
commit
315e83da19
@ -19,7 +19,7 @@ import { toLine } from '@tmagic/utils';
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
config: Record<string, any>;
|
||||
model: any;
|
||||
model?: any;
|
||||
}>(),
|
||||
{
|
||||
config: () => ({}),
|
||||
|
@ -15,7 +15,7 @@ import useApp from '../../useApp';
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
config: MComponent;
|
||||
model: any;
|
||||
model?: any;
|
||||
}>(),
|
||||
{
|
||||
model: () => ({}),
|
||||
|
@ -23,7 +23,7 @@ import useCommonMethod from '../../useCommonMethod';
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
config: MContainer;
|
||||
model: any;
|
||||
model?: any;
|
||||
}>(),
|
||||
{
|
||||
model: () => ({}),
|
||||
|
@ -9,7 +9,7 @@ import useApp from '../../useApp';
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
config: MComponent;
|
||||
model: any;
|
||||
model?: any;
|
||||
}>(),
|
||||
{
|
||||
model: () => ({}),
|
||||
|
@ -14,7 +14,7 @@ import useApp from '../../useApp';
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
config: MComponent;
|
||||
model: any;
|
||||
model?: any;
|
||||
}>(),
|
||||
{
|
||||
model: () => ({}),
|
||||
|
@ -23,7 +23,7 @@ import useApp from '../../useApp';
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
config: MPage;
|
||||
model: any;
|
||||
model?: any;
|
||||
}>(),
|
||||
{
|
||||
model: () => ({}),
|
||||
|
@ -13,7 +13,7 @@ import useApp from '../../useApp';
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
config: MComponent;
|
||||
model: any;
|
||||
model?: any;
|
||||
}>(),
|
||||
{
|
||||
model: () => ({}),
|
||||
|
@ -10,7 +10,7 @@ import useApp from '../../useApp';
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
config: MComponent;
|
||||
model: any;
|
||||
model?: any;
|
||||
}>(),
|
||||
{
|
||||
model: () => ({}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user