1
0
mirror of synced 2026-03-23 11:18:36 +08:00

fix(ui): model prop设置成可选

This commit is contained in:
roymondchen
2023-04-25 11:33:52 +08:00
parent 0295d6f4b5
commit 315e83da19
8 changed files with 8 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ import { toLine } from '@tmagic/utils';
const props = withDefaults(
defineProps<{
config: Record<string, any>;
model: any;
model?: any;
}>(),
{
config: () => ({}),

View File

@@ -15,7 +15,7 @@ import useApp from '../../useApp';
const props = withDefaults(
defineProps<{
config: MComponent;
model: any;
model?: any;
}>(),
{
model: () => ({}),

View File

@@ -23,7 +23,7 @@ import useCommonMethod from '../../useCommonMethod';
const props = withDefaults(
defineProps<{
config: MContainer;
model: any;
model?: any;
}>(),
{
model: () => ({}),

View File

@@ -9,7 +9,7 @@ import useApp from '../../useApp';
const props = withDefaults(
defineProps<{
config: MComponent;
model: any;
model?: any;
}>(),
{
model: () => ({}),

View File

@@ -14,7 +14,7 @@ import useApp from '../../useApp';
const props = withDefaults(
defineProps<{
config: MComponent;
model: any;
model?: any;
}>(),
{
model: () => ({}),

View File

@@ -23,7 +23,7 @@ import useApp from '../../useApp';
const props = withDefaults(
defineProps<{
config: MPage;
model: any;
model?: any;
}>(),
{
model: () => ({}),

View File

@@ -13,7 +13,7 @@ import useApp from '../../useApp';
const props = withDefaults(
defineProps<{
config: MComponent;
model: any;
model?: any;
}>(),
{
model: () => ({}),

View File

@@ -10,7 +10,7 @@ import useApp from '../../useApp';
const props = withDefaults(
defineProps<{
config: MComponent;
model: any;
model?: any;
}>(),
{
model: () => ({}),