diff --git a/packages/uni-core/src/helpers/event.ts b/packages/uni-core/src/helpers/event.ts index 3f6b3cb6c6c2db5aa8bcf585551a430b4c6b2201..53ad996ab53df9ce3ba670b9b0bf4ec05a621580 100644 --- a/packages/uni-core/src/helpers/event.ts +++ b/packages/uni-core/src/helpers/event.ts @@ -1,3 +1,5 @@ import { withModifiers } from 'vue' -export const onTouchmovePrevent = withModifiers(() => {}, ['prevent']) -export const onTouchmoveStop = withModifiers(() => {}, ['stop']) +export const onTouchmovePrevent = /*#__PURE__*/ withModifiers(() => {}, [ + 'prevent', +]) +export const onTouchmoveStop = /*#__PURE__*/ withModifiers(() => {}, ['stop']) diff --git a/packages/uni-h5/dist/uni-h5.esm.js b/packages/uni-h5/dist/uni-h5.esm.js index e5db18b0a2b0dc81ef687835926c6b08391ec489..55d3a1b4eba6702b4fc4ca8bd9569b09e7f9d5aa 100644 --- a/packages/uni-h5/dist/uni-h5.esm.js +++ b/packages/uni-h5/dist/uni-h5.esm.js @@ -1064,9 +1064,11 @@ function createSvgIconVNode(path, color = "#000", size = 27) { }, null, 8, ["d", "fill"]) ], 8, ["width", "height"]); } -const onTouchmovePrevent = withModifiers(() => { -}, ["prevent"]); -const onTouchmoveStop = withModifiers(() => { +const onTouchmovePrevent = /* @__PURE__ */ withModifiers(() => { +}, [ + "prevent" +]); +const onTouchmoveStop = /* @__PURE__ */ withModifiers(() => { }, ["stop"]); function disableScrollListener(evt) { evt.preventDefault(); @@ -12761,9 +12763,9 @@ function useKeyboard() { } const VNODE_MASK = /* @__PURE__ */ createVNode("div", {class: "uni-mask"}, null, -1); function createRootApp(component, rootState, callback) { + const onClose = (...args) => (rootState.visible = false, callback.apply(null, args)); return createApp(defineComponent({ setup() { - const onClose = (...args) => (rootState.visible = false, callback.apply(null, args)); return () => (openBlock(), createBlock(component, mergeProps({ onClose }, rootState))); diff --git a/packages/uni-h5/src/service/api/ui/popup/utils.ts b/packages/uni-h5/src/service/api/ui/popup/utils.ts index e391b290db89527d3fca11f468eb3daa1b3bc6a0..4e2bbffe95cc528d348e59716cbc1a463d25ee3e 100644 --- a/packages/uni-h5/src/service/api/ui/popup/utils.ts +++ b/packages/uni-h5/src/service/api/ui/popup/utils.ts @@ -25,12 +25,12 @@ export function createRootApp( rootState: Record, callback: (...args: any[]) => void ) { + const onClose = (...args: any[]) => ( + (rootState.visible = false), callback.apply(null, args) + ) return createApp( defineComponent({ setup() { - const onClose = (...args: any[]) => ( - (rootState.visible = false), callback.apply(null, args) - ) return () => ( openBlock(), createBlock(