1 line
4.8 KiB
JSON
1 line
4.8 KiB
JSON
{"ast":null,"code":"import _mergeJSXProps from \"@vue/babel-helper-vue-jsx-merge-props\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\n// Utils\nimport { createNamespace, isDef, noop } from '../utils';\nimport { inherit } from '../utils/functional';\nimport { preventDefault } from '../utils/dom/event'; // Types\n\nvar _createNamespace = createNamespace('overlay'),\n createComponent = _createNamespace[0],\n bem = _createNamespace[1];\nfunction preventTouchMove(event) {\n preventDefault(event, true);\n}\nfunction Overlay(h, props, slots, ctx) {\n var style = _extends({\n zIndex: props.zIndex\n }, props.customStyle);\n if (isDef(props.duration)) {\n style.animationDuration = props.duration + \"s\";\n }\n return h(\"transition\", {\n \"attrs\": {\n \"name\": \"van-fade\"\n }\n }, [h(\"div\", _mergeJSXProps([{\n \"directives\": [{\n name: \"show\",\n value: props.show\n }],\n \"style\": style,\n \"class\": [bem(), props.className],\n \"on\": {\n \"touchmove\": props.lockScroll ? preventTouchMove : noop\n }\n }, inherit(ctx, true)]), [slots.default == null ? void 0 : slots.default()])]);\n}\nOverlay.props = {\n show: Boolean,\n zIndex: [Number, String],\n duration: [Number, String],\n className: null,\n customStyle: Object,\n lockScroll: {\n type: Boolean,\n default: true\n }\n};\nexport default createComponent(Overlay);","map":{"version":3,"names":["_mergeJSXProps","_extends","createNamespace","isDef","noop","inherit","preventDefault","_createNamespace","createComponent","bem","preventTouchMove","event","Overlay","h","props","slots","ctx","style","zIndex","customStyle","duration","animationDuration","name","value","show","className","lockScroll","default","Boolean","Number","String","Object","type"],"sources":["C:/Users/zhouxueli/Desktop/scheduling-app/node_modules/vant/es/overlay/index.js"],"sourcesContent":["import _mergeJSXProps from \"@vue/babel-helper-vue-jsx-merge-props\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\n// Utils\nimport { createNamespace, isDef, noop } from '../utils';\nimport { inherit } from '../utils/functional';\nimport { preventDefault } from '../utils/dom/event'; // Types\n\nvar _createNamespace = createNamespace('overlay'),\n createComponent = _createNamespace[0],\n bem = _createNamespace[1];\n\nfunction preventTouchMove(event) {\n preventDefault(event, true);\n}\n\nfunction Overlay(h, props, slots, ctx) {\n var style = _extends({\n zIndex: props.zIndex\n }, props.customStyle);\n\n if (isDef(props.duration)) {\n style.animationDuration = props.duration + \"s\";\n }\n\n return h(\"transition\", {\n \"attrs\": {\n \"name\": \"van-fade\"\n }\n }, [h(\"div\", _mergeJSXProps([{\n \"directives\": [{\n name: \"show\",\n value: props.show\n }],\n \"style\": style,\n \"class\": [bem(), props.className],\n \"on\": {\n \"touchmove\": props.lockScroll ? preventTouchMove : noop\n }\n }, inherit(ctx, true)]), [slots.default == null ? void 0 : slots.default()])]);\n}\n\nOverlay.props = {\n show: Boolean,\n zIndex: [Number, String],\n duration: [Number, String],\n className: null,\n customStyle: Object,\n lockScroll: {\n type: Boolean,\n default: true\n }\n};\nexport default createComponent(Overlay);"],"mappings":"AAAA,OAAOA,cAAc,MAAM,uCAAuC;AAClE,OAAOC,QAAQ,MAAM,oCAAoC;AACzD;AACA,SAASC,eAAe,EAAEC,KAAK,EAAEC,IAAI,QAAQ,UAAU;AACvD,SAASC,OAAO,QAAQ,qBAAqB;AAC7C,SAASC,cAAc,QAAQ,oBAAoB,CAAC,CAAC;;AAErD,IAAIC,gBAAgB,GAAGL,eAAe,CAAC,SAAS,CAAC;EAC7CM,eAAe,GAAGD,gBAAgB,CAAC,CAAC,CAAC;EACrCE,GAAG,GAAGF,gBAAgB,CAAC,CAAC,CAAC;AAE7B,SAASG,gBAAgBA,CAACC,KAAK,EAAE;EAC/BL,cAAc,CAACK,KAAK,EAAE,IAAI,CAAC;AAC7B;AAEA,SAASC,OAAOA,CAACC,CAAC,EAAEC,KAAK,EAAEC,KAAK,EAAEC,GAAG,EAAE;EACrC,IAAIC,KAAK,GAAGhB,QAAQ,CAAC;IACnBiB,MAAM,EAAEJ,KAAK,CAACI;EAChB,CAAC,EAAEJ,KAAK,CAACK,WAAW,CAAC;EAErB,I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