提交 b54cfdbe 编写于 作者: fxy060608's avatar fxy060608

fix(h5): popup

上级 ee17d765
......@@ -8,7 +8,6 @@ import {
createApp,
openBlock,
createBlock,
mergeProps,
} from 'vue'
import { useKeyboard } from '../../../../helpers/useKeyboard'
......@@ -25,7 +24,7 @@ export function createRootApp(
rootState: Record<string, any>,
callback: (...args: any[]) => void
) {
const onClose = (...args: any[]) => (
rootState.onClose = (...args: any[]) => (
(rootState.visible = false), callback.apply(null, args)
)
return createApp(
......@@ -33,15 +32,7 @@ export function createRootApp(
setup() {
return () => (
openBlock(),
createBlock(
component,
mergeProps(
{
onClose,
},
rootState
)
)
createBlock(component, rootState, null, 16 /* FULL_PROPS */)
)
},
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册