Files
supplier-dispatch-h5/node_modules/.cache/babel-loader/c054530e58b9b808d01a821cc1fedc267c6df7b44292bdbab47bf67c1ea94fb4.json
2023-08-11 10:45:20 +08:00

1 line
6.3 KiB
JSON

{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport Vue from 'vue';\nimport VanNotify from './Notify';\nimport { isObject, isServer } from '../utils';\nimport { mount } from '../utils/functional';\nvar timer;\nvar instance;\nfunction parseOptions(message) {\n return isObject(message) ? message : {\n message: message\n };\n}\nfunction Notify(options) {\n /* istanbul ignore if */\n if (isServer) {\n return;\n }\n if (!instance) {\n instance = mount(VanNotify, {\n on: {\n click: function click(event) {\n if (instance.onClick) {\n instance.onClick(event);\n }\n },\n close: function close() {\n if (instance.onClose) {\n instance.onClose();\n }\n },\n opened: function opened() {\n if (instance.onOpened) {\n instance.onOpened();\n }\n }\n }\n });\n }\n options = _extends({}, Notify.currentOptions, parseOptions(options));\n _extends(instance, options);\n clearTimeout(timer);\n if (options.duration && options.duration > 0) {\n timer = setTimeout(Notify.clear, options.duration);\n }\n return instance;\n}\nfunction defaultOptions() {\n return {\n type: 'danger',\n value: true,\n message: '',\n color: undefined,\n background: undefined,\n duration: 3000,\n className: '',\n onClose: null,\n onClick: null,\n onOpened: null\n };\n}\nNotify.clear = function () {\n if (instance) {\n instance.value = false;\n }\n};\nNotify.currentOptions = defaultOptions();\nNotify.setDefaultOptions = function (options) {\n _extends(Notify.currentOptions, options);\n};\nNotify.resetDefaultOptions = function () {\n Notify.currentOptions = defaultOptions();\n};\nNotify.install = function () {\n Vue.use(VanNotify);\n};\nNotify.Component = VanNotify;\nVue.prototype.$notify = Notify;\nexport default Notify;","map":{"version":3,"names":["_extends","Vue","VanNotify","isObject","isServer","mount","timer","instance","parseOptions","message","Notify","options","on","click","event","onClick","close","onClose","opened","onOpened","currentOptions","clearTimeout","duration","setTimeout","clear","defaultOptions","type","value","color","undefined","background","className","setDefaultOptions","resetDefaultOptions","install","use","Component","prototype","$notify"],"sources":["C:/Users/zhouxueli/Desktop/scheduling-app/node_modules/vant/es/notify/index.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport Vue from 'vue';\nimport VanNotify from './Notify';\nimport { isObject, isServer } from '../utils';\nimport { mount } from '../utils/functional';\nvar timer;\nvar instance;\n\nfunction parseOptions(message) {\n return isObject(message) ? message : {\n message: message\n };\n}\n\nfunction Notify(options) {\n /* istanbul ignore if */\n if (isServer) {\n return;\n }\n\n if (!instance) {\n instance = mount(VanNotify, {\n on: {\n click: function click(event) {\n if (instance.onClick) {\n instance.onClick(event);\n }\n },\n close: function close() {\n if (instance.onClose) {\n instance.onClose();\n }\n },\n opened: function opened() {\n if (instance.onOpened) {\n instance.onOpened();\n }\n }\n }\n });\n }\n\n options = _extends({}, Notify.currentOptions, parseOptions(options));\n\n _extends(instance, options);\n\n clearTimeout(timer);\n\n if (options.duration && options.duration > 0) {\n timer = setTimeout(Notify.clear, options.duration);\n }\n\n return instance;\n}\n\nfunction defaultOptions() {\n return {\n type: 'danger',\n value: true,\n message: '',\n color: undefined,\n background: undefined,\n duration: 3000,\n className: '',\n onClose: null,\n onClick: null,\n onOpened: null\n };\n}\n\nNotify.clear = function () {\n if (instance) {\n instance.value = false;\n }\n};\n\nNotify.currentOptions = defaultOptions();\n\nNotify.setDefaultOptions = function (options) {\n _extends(Notify.currentOptions, options);\n};\n\nNotify.resetDefaultOptions = function () {\n Notify.currentOptions = defaultOptions();\n};\n\nNotify.install = function () {\n Vue.use(VanNotify);\n};\n\nNotify.Component = VanNotify;\nVue.prototype.$notify = Notify;\nexport default Notify;"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,GAAG,MAAM,KAAK;AACrB,OAAOC,SAAS,MAAM,UAAU;AAChC,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,UAAU;AAC7C,SAASC,KAAK,QAAQ,qBAAqB;AAC3C,IAAIC,KAAK;AACT,IAAIC,QAAQ;A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