Skip to content

Commit

Permalink
fix(ui): model prop设置成可选
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Apr 25, 2023
1 parent 0295d6f commit 315e83d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/Component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { toLine } from '@tmagic/utils';
const props = withDefaults(
defineProps<{
config: Record<string, any>;
model: any;
model?: any;
}>(),
{
config: () => ({}),
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/button/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import useApp from '../../useApp';
const props = withDefaults(
defineProps<{
config: MComponent;
model: any;
model?: any;
}>(),
{
model: () => ({}),
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/container/src/Container.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import useCommonMethod from '../../useCommonMethod';
const props = withDefaults(
defineProps<{
config: MContainer;
model: any;
model?: any;
}>(),
{
model: () => ({}),
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/img/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import useApp from '../../useApp';
const props = withDefaults(
defineProps<{
config: MComponent;
model: any;
model?: any;
}>(),
{
model: () => ({}),
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/overlay/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import useApp from '../../useApp';
const props = withDefaults(
defineProps<{
config: MComponent;
model: any;
model?: any;
}>(),
{
model: () => ({}),
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/page/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import useApp from '../../useApp';
const props = withDefaults(
defineProps<{
config: MPage;
model: any;
model?: any;
}>(),
{
model: () => ({}),
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/qrcode/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import useApp from '../../useApp';
const props = withDefaults(
defineProps<{
config: MComponent;
model: any;
model?: any;
}>(),
{
model: () => ({}),
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/text/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import useApp from '../../useApp';
const props = withDefaults(
defineProps<{
config: MComponent;
model: any;
model?: any;
}>(),
{
model: () => ({}),
Expand Down

0 comments on commit 315e83d

Please sign in to comment.