mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-17 02:19:25 +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(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
config: Record<string, any>;
|
config: Record<string, any>;
|
||||||
model: any;
|
model?: any;
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
config: () => ({}),
|
config: () => ({}),
|
||||||
|
@ -15,7 +15,7 @@ import useApp from '../../useApp';
|
|||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
config: MComponent;
|
config: MComponent;
|
||||||
model: any;
|
model?: any;
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
model: () => ({}),
|
model: () => ({}),
|
||||||
|
@ -23,7 +23,7 @@ import useCommonMethod from '../../useCommonMethod';
|
|||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
config: MContainer;
|
config: MContainer;
|
||||||
model: any;
|
model?: any;
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
model: () => ({}),
|
model: () => ({}),
|
||||||
|
@ -9,7 +9,7 @@ import useApp from '../../useApp';
|
|||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
config: MComponent;
|
config: MComponent;
|
||||||
model: any;
|
model?: any;
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
model: () => ({}),
|
model: () => ({}),
|
||||||
|
@ -14,7 +14,7 @@ import useApp from '../../useApp';
|
|||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
config: MComponent;
|
config: MComponent;
|
||||||
model: any;
|
model?: any;
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
model: () => ({}),
|
model: () => ({}),
|
||||||
|
@ -23,7 +23,7 @@ import useApp from '../../useApp';
|
|||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
config: MPage;
|
config: MPage;
|
||||||
model: any;
|
model?: any;
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
model: () => ({}),
|
model: () => ({}),
|
||||||
|
@ -13,7 +13,7 @@ import useApp from '../../useApp';
|
|||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
config: MComponent;
|
config: MComponent;
|
||||||
model: any;
|
model?: any;
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
model: () => ({}),
|
model: () => ({}),
|
||||||
|
@ -10,7 +10,7 @@ import useApp from '../../useApp';
|
|||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
config: MComponent;
|
config: MComponent;
|
||||||
model: any;
|
model?: any;
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
model: () => ({}),
|
model: () => ({}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user