File tree Expand file tree Collapse file tree 4 files changed +16
-17
lines changed
packages/vue-final-modal/src/components
viteplay/src/components/VueFinalModal Expand file tree Collapse file tree 4 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ import { useVfmAttrs } from '~/useApi'
10
10
11
11
export interface ModalBottomEmits extends VueFinalModalEmits {}
12
12
13
+ const props = defineProps (modalBottomProps )
14
+
15
+ const emit = defineEmits <ModalBottomEmits >()
16
+
13
17
defineOptions ({
14
18
inheritAttrs: false ,
15
19
})
16
20
17
- // eslint-disable-next-line vue/define-macros-order
18
- const props = defineProps (modalBottomProps )
19
- const emit = defineEmits <ModalBottomEmits >()
20
-
21
21
const vfmAttrs = useVfmAttrs ({
22
22
props ,
23
23
modalProps: vueFinalModalProps ,
Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ import { useVfmAttrs } from '~/useApi'
10
10
11
11
export interface ModalFullscreenEmits extends VueFinalModalEmits {}
12
12
13
+ const props = defineProps (modalFullscreenProps )
14
+
15
+ const emit = defineEmits <ModalFullscreenEmits >()
16
+
13
17
defineOptions ({
14
18
inheritAttrs: false ,
15
19
})
16
20
17
- // eslint-disable-next-line vue/define-macros-order
18
- const props = defineProps (modalFullscreenProps )
19
- const emit = defineEmits <ModalFullscreenEmits >()
20
-
21
21
const vfmAttrs = useVfmAttrs ({
22
22
props ,
23
23
modalProps: vueFinalModalProps ,
Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ import { useVfmAttrs } from '~/useApi'
8
8
9
9
export interface VueFinalModalEmits extends CoreModalEmits {}
10
10
11
+ const props = defineProps (vueFinalModalProps )
12
+
13
+ const emit = defineEmits <VueFinalModalEmits >()
14
+
11
15
defineOptions ({
12
16
inheritAttrs: false ,
13
17
})
14
18
15
- // eslint-disable-next-line vue/define-macros-order
16
- const props = defineProps (vueFinalModalProps )
17
- const emit = defineEmits <VueFinalModalEmits >()
18
-
19
19
const vfmAttrs = useVfmAttrs ({
20
20
props ,
21
21
modalProps: coreModalProps ,
Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ import {
10
10
// export interface TestModalEmits extends VueFinalModalEmits {
11
11
// }
12
12
13
- defineOptions ({
14
- inheritAttrs: false ,
15
- })
16
-
17
- // eslint-disable-next-line vue/define-macros-order
18
13
const props = defineProps ({
19
14
... vueFinalModalProps ,
20
15
customPropA: { type: Boolean as PropType <boolean >, default: false },
@@ -31,6 +26,10 @@ const emit = defineEmits<{
31
26
(e : ' clickOutside' ): void
32
27
}>()
33
28
29
+ defineOptions ({
30
+ inheritAttrs: false ,
31
+ })
32
+
34
33
const vfmAttrs = useVfmAttrs ({
35
34
props ,
36
35
modalProps: vueFinalModalProps ,
You can’t perform that action at this time.
0 commit comments