Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit e584834

Browse files
committed
fix(demo): fix emit type for some dialogs
1 parent 71fbcfd commit e584834

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

packages/demo/src/components/Dialogs/BaseDialog/BaseDialog.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export default defineComponent({
4646
},
4747
},
4848
49-
emits: ['update:modelValue'],
49+
emits: {
50+
'update:modelValue': (val: boolean) => true,
51+
},
5052
5153
setup(props: IBaseDialogProps, { emit }) {
5254
const depressed = ref(false)

packages/demo/src/components/Dialogs/FullscreenDialog/FullscreenDialog.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ export default defineComponent({
5858
},
5959
},
6060
61-
emits: ['update:modelValue'],
61+
emits: {
62+
'update:modelValue': (val: boolean) => true,
63+
},
6264
6365
setup(props, { emit }) {
6466
const value = useVModel(props, 'modelValue', emit)

packages/demo/src/components/Dialogs/ScrollDialog/ScrollDialog.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export default defineComponent({
4747
},
4848
},
4949
50-
emits: ['update:modelValue'],
50+
emits: {
51+
'update:modelValue': (val: boolean) => true,
52+
},
5153
5254
setup(props, { emit }) {
5355
const value = useVModel(props, 'modelValue', emit)

packages/demo/src/components/Dialogs/StyledDialog/StyledDialog.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export default defineComponent({
4040
},
4141
},
4242
43-
emits: ['update:modelValue'],
43+
emits: {
44+
'update:modelValue': (val: boolean) => true,
45+
},
4446
4547
setup(props, { emit }) {
4648
const value = useVModel(props, 'modelValue', emit)

0 commit comments

Comments
 (0)