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

feat: make event tree-shakeable

上级 4635d375
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'])
......@@ -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)));
......
......@@ -25,12 +25,12 @@ export function createRootApp(
rootState: Record<string, any>,
callback: (...args: any[]) => void
) {
return createApp(
defineComponent({
setup() {
const onClose = (...args: any[]) => (
(rootState.visible = false), callback.apply(null, args)
)
return createApp(
defineComponent({
setup() {
return () => (
openBlock(),
createBlock(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册