File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
- import { shallowReadonly } from '@vue/reactivity'
2
1
import { getCurrentInstance , SetupContext } from './component'
3
2
import { EmitFn , EmitsOptions } from './componentEmits'
4
3
import { ComponentObjectPropsOptions , ExtractPropTypes } from './componentProps'
@@ -32,9 +31,7 @@ export function defineProps(props?: any) {
32
31
`compiled away and passing it at runtime has no effect.`
33
32
)
34
33
}
35
- return __DEV__
36
- ? shallowReadonly ( getCurrentInstance ( ) ! . props )
37
- : getCurrentInstance ( ) ! . props
34
+ return null as any
38
35
}
39
36
40
37
export function defineEmit <
@@ -52,7 +49,7 @@ export function defineEmit(emitOptions?: any) {
52
49
`compiled away and passing it at runtime has no effect.`
53
50
)
54
51
}
55
- return getCurrentInstance ( ) ! . emit
52
+ return null as any
56
53
}
57
54
58
55
export function useContext ( ) : SetupContext {
You can’t perform that action at this time.
0 commit comments