UNPKG

epic-designer-cjh

Version:

基于vue3的设计器,可视化开发页面表单

32 lines (31 loc) 931 B
import { a as o, o as r } from "./delegate-6e021bb9.js"; const d = "@@coContext", a = { mounted(c, { value: t, modifiers: n }) { c[d] = { handler: void 0 }, typeof t == "function" && (c[d].handler = t, o("clickoutside", c, t, { capture: n.capture })); }, updated(c, { value: t, modifiers: n }) { const e = c[d]; typeof t == "function" ? e.handler ? e.handler !== t && (r("clickoutside", c, e.handler, { capture: n.capture }), e.handler = t, o("clickoutside", c, t, { capture: n.capture })) : (c[d].handler = t, o("clickoutside", c, t, { capture: n.capture })) : e.handler && (r("clickoutside", c, e.handler, { capture: n.capture }), e.handler = void 0); }, unmounted(c, { modifiers: t }) { const { handler: n } = c[d]; n && r("clickoutside", c, n, { capture: t.capture }), c[d].handler = void 0; } }, u = a; export { u as c };