web-component-gallery 1.2.16 → 1.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/amap.umd.js +218 -15
- package/dist/form.umd.js +3 -3
- package/dist/index.umd.js +218 -15
- package/dist/node_modules_amap_amap-jsapi-loader_dist_index_js.umd.js +22 -0
- package/lib/form/components/ATagsInput.vue +29 -10
- package/method/AMap.js +4 -1
- package/package.json +1 -1
- package/plugins/lib/form/components/ATagsInput.vue +29 -10
- package/plugins/method/AMap.js +4 -1
package/dist/amap.umd.js
CHANGED
|
@@ -19,17 +19,6 @@
|
|
|
19
19
|
return /******/ (() => { // webpackBootstrap
|
|
20
20
|
/******/ var __webpack_modules__ = ({
|
|
21
21
|
|
|
22
|
-
/***/ "./node_modules/@amap/amap-jsapi-loader/dist/index.js":
|
|
23
|
-
/*!************************************************************!*\
|
|
24
|
-
!*** ./node_modules/@amap/amap-jsapi-loader/dist/index.js ***!
|
|
25
|
-
\************************************************************/
|
|
26
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
27
|
-
|
|
28
|
-
"use strict";
|
|
29
|
-
eval("\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n(function (m, p) {\n true ? module.exports = p() : 0;\n})(this, function () {\n function m(a) {\n var b = [];\n a.AMapUI && b.push(p(a.AMapUI));\n a.Loca && b.push(r(a.Loca));\n return Promise.all(b);\n }\n function p(a) {\n return new Promise(function (h, c) {\n var f = [];\n if (a.plugins) for (var e = 0; e < a.plugins.length; e += 1) -1 == d.AMapUI.plugins.indexOf(a.plugins[e]) && f.push(a.plugins[e]);\n if (g.AMapUI === b.failed) c(\"\\u524d\\u6b21\\u8bf7\\u6c42 AMapUI \\u5931\\u8d25\");else if (g.AMapUI === b.notload) {\n g.AMapUI = b.loading;\n d.AMapUI.version = a.version || d.AMapUI.version;\n e = d.AMapUI.version;\n var l = document.body || document.head,\n k = document.createElement(\"script\");\n k.type = \"text/javascript\";\n k.src = \"https://webapi.amap.com/ui/\" + e + \"/main.js\";\n k.onerror = function (a) {\n g.AMapUI = b.failed;\n c(\"\\u8bf7\\u6c42 AMapUI \\u5931\\u8d25\");\n };\n k.onload = function () {\n g.AMapUI = b.loaded;\n if (f.length) window.AMapUI.loadUI(f, function () {\n for (var a = 0, b = f.length; a < b; a++) {\n var c = f[a].split(\"/\").slice(-1)[0];\n window.AMapUI[c] = arguments[a];\n }\n for (h(); n.AMapUI.length;) n.AMapUI.splice(0, 1)[0]();\n });else for (h(); n.AMapUI.length;) n.AMapUI.splice(0, 1)[0]();\n };\n l.appendChild(k);\n } else g.AMapUI === b.loaded ? a.version && a.version !== d.AMapUI.version ? c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c AMapUI \\u6df7\\u7528\") : f.length ? window.AMapUI.loadUI(f, function () {\n for (var a = 0, b = f.length; a < b; a++) {\n var c = f[a].split(\"/\").slice(-1)[0];\n window.AMapUI[c] = arguments[a];\n }\n h();\n }) : h() : a.version && a.version !== d.AMapUI.version ? c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c AMapUI \\u6df7\\u7528\") : n.AMapUI.push(function (a) {\n a ? c(a) : f.length ? window.AMapUI.loadUI(f, function () {\n for (var a = 0, b = f.length; a < b; a++) {\n var c = f[a].split(\"/\").slice(-1)[0];\n window.AMapUI[c] = arguments[a];\n }\n h();\n }) : h();\n });\n });\n }\n function r(a) {\n return new Promise(function (h, c) {\n if (g.Loca === b.failed) c(\"\\u524d\\u6b21\\u8bf7\\u6c42 Loca \\u5931\\u8d25\");else if (g.Loca === b.notload) {\n g.Loca = b.loading;\n d.Loca.version = a.version || d.Loca.version;\n var f = d.Loca.version,\n e = d.AMap.version.startsWith(\"2\"),\n l = f.startsWith(\"2\");\n if (e && !l || !e && l) c(\"JSAPI \\u4e0e Loca \\u7248\\u672c\\u4e0d\\u5bf9\\u5e94\\uff01\\uff01\");else {\n e = d.key;\n l = document.body || document.head;\n var k = document.createElement(\"script\");\n k.type = \"text/javascript\";\n k.src = \"https://webapi.amap.com/loca?v=\" + f + \"&key=\" + e;\n k.onerror = function (a) {\n g.Loca = b.failed;\n c(\"\\u8bf7\\u6c42 AMapUI \\u5931\\u8d25\");\n };\n k.onload = function () {\n g.Loca = b.loaded;\n for (h(); n.Loca.length;) n.Loca.splice(0, 1)[0]();\n };\n l.appendChild(k);\n }\n } else g.Loca === b.loaded ? a.version && a.version !== d.Loca.version ? c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c Loca \\u6df7\\u7528\") : h() : a.version && a.version !== d.Loca.version ? c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c Loca \\u6df7\\u7528\") : n.Loca.push(function (a) {\n a ? c(a) : c();\n });\n });\n }\n if (!window) throw Error(\"AMap JSAPI can only be used in Browser.\");\n var b;\n (function (a) {\n a.notload = \"notload\";\n a.loading = \"loading\";\n a.loaded = \"loaded\";\n a.failed = \"failed\";\n })(b || (b = {}));\n var d = {\n key: \"\",\n AMap: {\n version: \"1.4.15\",\n plugins: []\n },\n AMapUI: {\n version: \"1.1\",\n plugins: []\n },\n Loca: {\n version: \"1.3.2\"\n }\n },\n g = {\n AMap: b.notload,\n AMapUI: b.notload,\n Loca: b.notload\n },\n n = {\n AMap: [],\n AMapUI: [],\n Loca: []\n },\n q = [],\n t = function (a) {\n \"function\" == typeof a && (g.AMap === b.loaded ? a(window.AMap) : q.push(a));\n };\n return {\n load: function (a) {\n return new Promise(function (h, c) {\n if (g.AMap == b.failed) c(\"\");else if (g.AMap == b.notload) {\n var f = a.key,\n e = a.version,\n l = a.plugins;\n f ? (window.AMap && \"lbs.amap.com\" !== location.host && c(\"\\u7981\\u6b62\\u591a\\u79cdAPI\\u52a0\\u8f7d\\u65b9\\u5f0f\\u6df7\\u7528\"), d.key = f, d.AMap.version = e || d.AMap.version, d.AMap.plugins = l || d.AMap.plugins, g.AMap = b.loading, e = document.body || document.head, window.___onAPILoaded = function (d) {\n delete window.___onAPILoaded;\n if (d) g.AMap = b.failed, c(d);else for (g.AMap = b.loaded, m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c); q.length;) q.splice(0, 1)[0]();\n }, l = document.createElement(\"script\"), l.type = \"text/javascript\", l.src = \"https://webapi.amap.com/maps?callback=___onAPILoaded&v=\" + d.AMap.version + \"&key=\" + f + \"&plugin=\" + d.AMap.plugins.join(\",\"), l.onerror = function (a) {\n g.AMap = b.failed;\n c(a);\n }, e.appendChild(l)) : c(\"\\u8bf7\\u586b\\u5199key\");\n } else if (g.AMap == b.loaded) {\n if (a.key && a.key !== d.key) c(\"\\u591a\\u4e2a\\u4e0d\\u4e00\\u81f4\\u7684 key\");else if (a.version && a.version !== d.AMap.version) c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c JSAPI \\u6df7\\u7528\");else {\n f = [];\n if (a.plugins) for (e = 0; e < a.plugins.length; e += 1) -1 == d.AMap.plugins.indexOf(a.plugins[e]) && f.push(a.plugins[e]);\n if (f.length) window.AMap.plugin(f, function () {\n m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c);\n });else m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c);\n }\n } else if (a.key && a.key !== d.key) c(\"\\u591a\\u4e2a\\u4e0d\\u4e00\\u81f4\\u7684 key\");else if (a.version && a.version !== d.AMap.version) c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c JSAPI \\u6df7\\u7528\");else {\n var k = [];\n if (a.plugins) for (e = 0; e < a.plugins.length; e += 1) -1 == d.AMap.plugins.indexOf(a.plugins[e]) && k.push(a.plugins[e]);\n t(function () {\n if (k.length) window.AMap.plugin(k, function () {\n m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c);\n });else m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c);\n });\n }\n });\n },\n reset: function () {\n delete window.AMap;\n delete window.AMapUI;\n delete window.Loca;\n d = {\n key: \"\",\n AMap: {\n version: \"1.4.15\",\n plugins: []\n },\n AMapUI: {\n version: \"1.1\",\n plugins: []\n },\n Loca: {\n version: \"1.3.2\"\n }\n };\n g = {\n AMap: b.notload,\n AMapUI: b.notload,\n Loca: b.notload\n };\n n = {\n AMap: [],\n AMapUI: [],\n Loca: []\n };\n }\n };\n});\n\n//# sourceURL=webpack://mui/./node_modules/@amap/amap-jsapi-loader/dist/index.js?");
|
|
30
|
-
|
|
31
|
-
/***/ }),
|
|
32
|
-
|
|
33
22
|
/***/ "./node_modules/@ant-design/colors/lib/generate.js":
|
|
34
23
|
/*!*********************************************************!*\
|
|
35
24
|
!*** ./node_modules/@ant-design/colors/lib/generate.js ***!
|
|
@@ -8428,7 +8417,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
8428
8417
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8429
8418
|
|
|
8430
8419
|
"use strict";
|
|
8431
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ \"./node_modules/core-js/modules/es.iterator.constructor.js\");\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ \"./node_modules/core-js/modules/es.iterator.filter.js\");\n/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ant_design_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ant-design-vue */ \"./node_modules/ant-design-vue/es/tag/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'TAntdTags',\n components: {\n Tag: ant_design_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n model: {\n prop: 'value',\n event: 'update:tagsInput'\n },\n data() {\n return {};\n },\n computed: {\n selectChecked: {\n get() {\n return this.value;\n },\n set(val) {\n this.$emit('update:tagsInput', val);\n }\n }\n },\n props: {\n value: {\n type: Array,\n default: () => {\n return [];\n }\n },\n /* 传入的option数组中,要作为最终选择项的键值key */\n valueKey: {\n type: String,\n default: 'value'\n },\n /* 传入的option数组中,要作为显示项的键值名称 */\n labelKey: {\n type: String,\n default: 'label'\n }\n },\n methods: {\n tagsClose(checked) {\n const selectChecked = this.selectChecked.filter(node => node[this.valueKey] !== checked);\n this.$emit('update:tagsInput', selectChecked);\n }\n }\n});\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
8420
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ \"./node_modules/core-js/modules/es.iterator.constructor.js\");\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ \"./node_modules/core-js/modules/es.iterator.filter.js\");\n/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ant_design_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ant-design-vue */ \"./node_modules/ant-design-vue/es/tag/index.js\");\n/* harmony import */ var ant_design_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ant-design-vue */ \"./node_modules/ant-design-vue/es/tooltip/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'TAntdTags',\n components: {\n Tag: ant_design_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n Tooltip: ant_design_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n model: {\n prop: 'value',\n event: 'update:tagsInput'\n },\n data() {\n return {};\n },\n computed: {\n selectChecked: {\n get() {\n return this.value;\n },\n set(val) {\n this.$emit('update:tagsInput', val);\n }\n }\n },\n props: {\n value: {\n type: Array,\n default: () => {\n return [];\n }\n },\n /* 传入的option数组中,要作为最终选择项的键值key */\n valueKey: {\n type: String,\n default: 'value'\n },\n /* 传入的option数组中,要作为显示项的键值名称 */\n labelKey: {\n type: String,\n default: 'label'\n }\n },\n methods: {\n tagsClose(checked) {\n const selectChecked = this.selectChecked.filter(node => node[this.valueKey] !== checked);\n this.$emit('update:tagsInput', selectChecked);\n }\n }\n});\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
8432
8421
|
|
|
8433
8422
|
/***/ }),
|
|
8434
8423
|
|
|
@@ -8593,7 +8582,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
8593
8582
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8594
8583
|
|
|
8595
8584
|
"use strict";
|
|
8596
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", _vm._g({\n staticClass: \"ant-input TAntdTags\"\n }, _vm.$listeners), [_vm._l(_vm.selectChecked, function (child, i) {\n return _c(\"
|
|
8585
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", _vm._g({\n staticClass: \"ant-input TAntdTags\"\n }, _vm.$listeners), [_vm._l(_vm.selectChecked, function (child, i) {\n return _c(\"Tooltip\", {\n key: i,\n attrs: {\n title: child[_vm.labelKey]\n }\n }, [_c(\"Tag\", {\n attrs: {\n closable: \"\"\n },\n on: {\n close: () => _vm.tagsClose(child[_vm.valueKey])\n }\n }, [_c(\"span\", [_vm._v(_vm._s(child[_vm.labelKey]))])])], 1);\n }), _vm._v(\" \"), !_vm.selectChecked.length ? _c(\"span\", [_vm._v(\"请点击进行选择\")]) : _vm._e()], 2);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
8597
8586
|
|
|
8598
8587
|
/***/ }),
|
|
8599
8588
|
|
|
@@ -9033,7 +9022,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
9033
9022
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
9034
9023
|
|
|
9035
9024
|
"use strict";
|
|
9036
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ getAMapInstance: () => (/* binding */ getAMapInstance),\n/* harmony export */ setAMapSecurity: () => (/* binding */ setAMapSecurity)\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ \"./node_modules/core-js/modules/es.iterator.constructor.js\");\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ \"./node_modules/core-js/modules/es.iterator.for-each.js\");\n/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ \"./node_modules/core-js/modules/es.iterator.map.js\");\n/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _amap_amap_jsapi_loader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @amap/amap-jsapi-loader */ \"./node_modules/@amap/amap-jsapi-loader/dist/index.js\");\n/* harmony import */ var _amap_amap_jsapi_loader__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_amap_amap_jsapi_loader__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n// amap-plugin.js\n\n\n/** 入口文件不同 作用域不同 */\nlet AMapKey = null;\nlet AMapStyle = null;\nlet AMapInstance = null;\n/** 默认地图key、样式及安全解码 */\nlet AMapConfig = {\n key: '722d07dd44d442d72a25a1304bac7743',\n style: 'amap://styles/ff26c7ed32880397f692f5b69b1c1f9f',\n securityJsCode: '90366326a87f1d0e3ddb43e05cc021b1'\n};\n\n// 安全配置 / 地图样式配置\nconst setAMapSecurity = (config = AMapConfig) => {\n const {\n key,\n style,\n securityJsCode\n } = config;\n AMapKey = key;\n AMapStyle = style;\n /** 设置高德地图密钥 */\n window.forceWebGL = true;\n window._AMapSecurityConfig = {\n securityJsCode\n };\n};\n\n// 核心地图服务类\nclass AMapService {\n constructor(AMap) {\n this.AMap = AMap;\n this._iconCache = new Map(); // 图标缓存\n\n /** 常用覆盖物 */\n this.layers = {\n setIcon: this.setIcon.bind(this),\n setMarker: this.setMarker.bind(this),\n setInfoWindow: this._createInfoWindowHandler()\n };\n\n /** 抛出地图常用方法 */\n this.methods = {\n getMapAddress: this.getMapAddress.bind(this),\n getMapSearch: this.getMapSearch.bind(this),\n setMapDriving: this.setMapDriving.bind(this),\n drawMapAnimation,\n parseRouteToPath,\n getOverlayPos\n };\n }\n\n /** 初始化地图 */\n initMap(container, options = {}) {\n const map = new this.AMap.Map(container, {\n zoom: 13,\n zooms: [3, 20],\n pitch: 30,\n rotation: -15,\n viewMode: '3D',\n mapStyle: AMapStyle,\n ...options\n });\n options.zoomTool && map.addControl(new this.AMap.ToolBar());\n options.directionTool && map.addControl(new this.AMap.ControlBar());\n return map;\n }\n\n /** 格式化地图经纬度 */\n setLngLat(position) {\n return new this.AMap.LngLat(position[0], position[1]);\n }\n\n /** 创建信息窗口处理器(柯里化函数) */\n _createInfoWindowHandler() {\n return Vue => {\n if (!Vue || !Vue.extend) {\n throw new Error('必须传入有效的Vue构造函数');\n }\n return ({\n component,\n props,\n options = {}\n }) => {\n if (!component) throw new Error('component参数必填');\n const InfoWindowComponent = Vue.extend(component);\n const instance = new InfoWindowComponent({\n propsData: props\n }).$mount(document.createElement('div'));\n return new this.AMap.InfoWindow({\n isCustom: true,\n content: instance.$el,\n ...options\n });\n };\n };\n }\n\n /** 带缓存的图标创建方法 */\n async setIcon(iconUrl) {\n if (this._iconCache.has(iconUrl)) {\n return this._iconCache.get(iconUrl);\n }\n return new Promise((resolve, reject) => {\n const icon = new this.AMap.Icon({\n image: iconUrl,\n imageOffset: new this.AMap.Pixel(0, 0)\n });\n const img = new Image();\n img.onload = () => {\n const size = new this.AMap.Size(img.width, img.height);\n icon.setSize(size);\n icon.setImageSize(size);\n this._iconCache.set(iconUrl, icon);\n resolve(icon);\n };\n img.onerror = () => reject(new Error(`图标加载失败: ${iconUrl}`));\n img.src = iconUrl;\n });\n }\n\n /** 增强的标记点创建方法 */\n async setMarker(iconUrl, options = {}) {\n try {\n const icon = await this.setIcon(iconUrl);\n const marker = new this.AMap.Marker({\n anchor: 'bottom-center',\n ...options,\n icon\n });\n return marker;\n } catch (error) {\n console.error('创建标记点失败:', error);\n throw error;\n }\n }\n\n /** 地图逆地理编码 */\n getMapAddress({\n longitude,\n latitude\n }, callBack) {\n return new Promise((resolve, reject) => {\n const geocoder = new this.AMap.Geocoder({\n city: '全国',\n extensions: 'all'\n });\n geocoder.getAddress([longitude, latitude], (status, result) => {\n if (status === 'complete' && result.info === 'OK') {\n const {\n formattedAddress,\n pois\n } = result.regeocode;\n const {\n district,\n township\n } = result.regeocode.addressComponent;\n const division = township && formattedAddress.includes(township) ? formattedAddress.indexOf(township) + township.length : formattedAddress.indexOf(district) + district.length;\n const addressMsg = {\n address: formattedAddress.slice(0, division) + (pois[0]?.address || ''),\n addressInfo: result.regeocode.addressComponent\n };\n callBack?.(addressMsg);\n resolve(addressMsg);\n } else {\n reject(new Error('转换失败'));\n }\n });\n });\n }\n\n /** 根据地址搜索地图poi点及其他信息 */\n /**\r\n * \r\n * @param {*} keywords 根据关键字搜索\r\n * @param {*} callBack 查询成功后过滤信息及转换格式 传递回调函数 兼容老版本代码\r\n */\n getMapSearch(keywords, callBack) {\n return new Promise(resolve => {\n const placeSearch = new this.AMap.PlaceSearch();\n placeSearch.search(keywords, (status, searchList) => {\n const options = searchList?.poiList?.pois?.map(node => ({\n ...node,\n label: `${node.name}(${node.address})`\n })) || [];\n callBack?.(options);\n resolve(options);\n });\n });\n }\n\n /** 道路规划 */\n /**\r\n * \r\n * @param {*} AMapInit 当前地图实例\r\n * @param {*} paths 需查询的路径起始点及途径点集合\r\n * @param {*} roadOptions 路线规划的其他参数\r\n * { paths: 需查询的路径起始点及途径点集合, options: 为查询路线配置项 }\r\n * @param {*} callBack 查询成功后回调函数 兼容老版本代码\r\n */\n async setMapDriving(mapInstance, roadOptions, callBack) {\n const {\n paths,\n options = {}\n } = roadOptions;\n return new Promise(resolve => {\n mapInstance.plugin(\"AMap.Driving\", () => {\n const driving = new this.AMap.Driving({\n map: mapInstance,\n ...options\n });\n driving.search(this.setLngLat(paths[0]), this.setLngLat(paths[paths.length - 1]), {\n waypoints: paths.slice(1, -1).map(path => this.setLngLat(path))\n }, (status, {\n routes\n }) => status === 'complete' && (callBack?.(roadDriving, routes), resolve({\n driving,\n routes\n })));\n });\n });\n }\n\n // 其他方法保持类似改造...\n}\n\n// 获取AMap实例(组件内使用)\nconst getAMapInstance = async (options = {}) => {\n if (AMapInstance) return AMapInstance;\n\n // 确保key存在\n if (!AMapKey) {\n try {\n setAMapSecurity();\n } catch (e) {\n throw new Error('请先设置地图Key!');\n }\n }\n try {\n const AMap = await _amap_amap_jsapi_loader__WEBPACK_IMPORTED_MODULE_4___default().load({\n key: AMapKey,\n version: '2.0',\n plugins: ['AMap.Geocoder', 'AMap.PlaceSearch',\n // 搜索\n 'AMap.MouseTool',\n // 鼠标\n 'AMap.ControlBar',\n // 方向盘\n 'AMap.ToolBar',\n // 缩放\n ...(options.plugins || [])]\n });\n AMapInstance = new AMapService(AMap);\n return AMapInstance;\n } catch (e) {\n throw new Error(`高德地图加载失败: ${e.message}`);\n }\n};\n\n// 在 Vue 插件中封装高德地图的初始化和常用方法 \n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n async install(Vue, options = {}) {\n const amap = await getAMapInstance(options);\n const {\n AMap,\n methods,\n layers\n } = amap;\n Vue.prototype.$amap = AMap;\n\n /** 初始化地图 */\n Vue.prototype.$initAMap = (mapOptions, callBack) => {\n const amapInit = amap.initMap(mapOptions.el, mapOptions.options || {});\n /** 兼容之前版本代码 */\n callBack?.(amapInit);\n return amapInit;\n };\n\n /** 地图加载完成 */\n Vue.prototype.$amapBus.$emit('onAMapMounted');\n\n /** 常用覆盖物 */\n Vue.prototype.$amapLayers = {\n ...layers,\n setInfoWindow: layers.setInfoWindow(Vue)\n };\n\n /** 抛出地图常用方法 */\n Vue.prototype.$amapMethods = methods || {};\n }\n});\n\n/** \r\n * 安全获取覆盖物坐标信息 \r\n * @param {AMap.Overlay} overlay 地图覆盖物实例\r\n * @returns {Array<Array<number>>} 坐标点数组\r\n */\nfunction getOverlayPos(overlay) {\n if (!overlay) throw new Error('覆盖物实例不存在');\n try {\n return overlay.type === 'AMap.Marker' ? [overlay.getPosition().lng, overlay.getPosition().lat] : overlay.getPath().map(({\n lng,\n lat\n }) => [lng, lat]);\n } catch (e) {\n console.error('转换失败', e);\n return [];\n }\n}\n\n/**\r\n * 轨迹动画执行器\r\n * @param {AMap.Map} AMapInit 地图实例\r\n * @param {AMap.Marker} animationMarker 动画标记物\r\n * @param {Array<Array<number>>} paths 路径坐标数组\r\n * @param {Object} [options] 动画配置\r\n * @param {Function} [callBack] 动画完成回调\r\n */\nfunction drawMapAnimation(AMapInit, animationMarker, paths, options = {}, callBack) {\n if (!AMapInit || !animationMarker || !paths?.length) {\n return console.error('缺少参数信息');\n }\n AMapInit.plugin('AMap.MoveAnimation', () => {\n const defaultOptions = {\n duration: 500,\n autoRotation: true,\n ...options\n };\n animationMarker.moveAlong(paths, defaultOptions);\n callBack?.(animationMarker);\n });\n}\n\n/**\r\n * 转换导航路线为可绘制路径\r\n * @param {AMap.DrivingRoute} route 导航路线对象\r\n * @returns {{\r\n* path: Array<Array<number>>,\r\n* approachPoints: Array<number>\r\n* }}\r\n*/\nfunction parseRouteToPath(route) {\n if (!route?.steps) return {\n path: [],\n approachPoints: []\n };\n const result = {\n path: [],\n approachPoints: []\n };\n route.steps.forEach((step, stepIndex) => {\n step.path.forEach((point, pointIndex) => {\n result.path.push([point.lng, point.lat]);\n if (step.assistant_action === \"到达途经地\" && pointIndex === step.path.length - 1) {\n result.approachPoints.push(result.path.length - 1);\n }\n });\n });\n return result;\n}\n\n//# sourceURL=webpack://mui/./plugins/method/AMap.js?");
|
|
9025
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ getAMapInstance: () => (/* binding */ getAMapInstance),\n/* harmony export */ setAMapSecurity: () => (/* binding */ setAMapSecurity)\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ \"./node_modules/core-js/modules/es.iterator.constructor.js\");\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ \"./node_modules/core-js/modules/es.iterator.for-each.js\");\n/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ \"./node_modules/core-js/modules/es.iterator.map.js\");\n/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n\n// amap-plugin.js\n// import AMapLoader from '@amap/amap-jsapi-loader'\n\n/** 入口文件不同 作用域不同 */\nlet AMapKey = null;\nlet AMapStyle = null;\nlet AMapInstance = null;\n/** 默认地图key、样式及安全解码 */\nlet AMapConfig = {\n key: '722d07dd44d442d72a25a1304bac7743',\n style: 'amap://styles/ff26c7ed32880397f692f5b69b1c1f9f',\n securityJsCode: '90366326a87f1d0e3ddb43e05cc021b1'\n};\n\n// 安全配置 / 地图样式配置\nconst setAMapSecurity = (config = AMapConfig) => {\n const {\n key,\n style,\n securityJsCode\n } = config;\n AMapKey = key;\n AMapStyle = style;\n /** 设置高德地图密钥 */\n window.forceWebGL = true;\n window._AMapSecurityConfig = {\n securityJsCode\n };\n};\n\n// 核心地图服务类\nclass AMapService {\n constructor(AMap) {\n this.AMap = AMap;\n this._iconCache = new Map(); // 图标缓存\n\n /** 常用覆盖物 */\n this.layers = {\n setIcon: this.setIcon.bind(this),\n setMarker: this.setMarker.bind(this),\n setInfoWindow: this._createInfoWindowHandler()\n };\n\n /** 抛出地图常用方法 */\n this.methods = {\n getMapAddress: this.getMapAddress.bind(this),\n getMapSearch: this.getMapSearch.bind(this),\n setMapDriving: this.setMapDriving.bind(this),\n drawMapAnimation,\n parseRouteToPath,\n getOverlayPos\n };\n }\n\n /** 初始化地图 */\n initMap(container, options = {}) {\n const map = new this.AMap.Map(container, {\n zoom: 13,\n zooms: [3, 20],\n pitch: 30,\n rotation: -15,\n viewMode: '3D',\n center: [118.868228, 28.892844],\n mapStyle: AMapStyle,\n ...options\n });\n options.zoomTool && map.addControl(new this.AMap.ToolBar());\n options.directionTool && map.addControl(new this.AMap.ControlBar());\n return map;\n }\n\n /** 格式化地图经纬度 */\n setLngLat(position) {\n return new this.AMap.LngLat(position[0], position[1]);\n }\n\n /** 创建信息窗口处理器(柯里化函数) */\n _createInfoWindowHandler() {\n return Vue => {\n if (!Vue || !Vue.extend) {\n throw new Error('必须传入有效的Vue构造函数');\n }\n return ({\n component,\n props,\n options = {}\n }) => {\n if (!component) throw new Error('component参数必填');\n const InfoWindowComponent = Vue.extend(component);\n const instance = new InfoWindowComponent({\n propsData: props\n }).$mount(document.createElement('div'));\n return new this.AMap.InfoWindow({\n isCustom: true,\n content: instance.$el,\n ...options\n });\n };\n };\n }\n\n /** 带缓存的图标创建方法 */\n async setIcon(iconUrl) {\n if (this._iconCache.has(iconUrl)) {\n return this._iconCache.get(iconUrl);\n }\n return new Promise((resolve, reject) => {\n const icon = new this.AMap.Icon({\n image: iconUrl,\n imageOffset: new this.AMap.Pixel(0, 0)\n });\n const img = new Image();\n img.onload = () => {\n const size = new this.AMap.Size(img.width, img.height);\n icon.setSize(size);\n icon.setImageSize(size);\n this._iconCache.set(iconUrl, icon);\n resolve(icon);\n };\n img.onerror = () => reject(new Error(`图标加载失败: ${iconUrl}`));\n img.src = iconUrl;\n });\n }\n\n /** 增强的标记点创建方法 */\n async setMarker(iconUrl, options = {}) {\n try {\n const icon = await this.setIcon(iconUrl);\n const marker = new this.AMap.Marker({\n anchor: 'bottom-center',\n ...options,\n icon\n });\n return marker;\n } catch (error) {\n console.error('创建标记点失败:', error);\n throw error;\n }\n }\n\n /** 地图逆地理编码 */\n getMapAddress({\n longitude,\n latitude\n }, callBack) {\n return new Promise((resolve, reject) => {\n const geocoder = new this.AMap.Geocoder({\n city: '全国',\n extensions: 'all'\n });\n geocoder.getAddress([longitude, latitude], (status, result) => {\n if (status === 'complete' && result.info === 'OK') {\n const {\n formattedAddress,\n pois\n } = result.regeocode;\n const {\n district,\n township\n } = result.regeocode.addressComponent;\n const division = township && formattedAddress.includes(township) ? formattedAddress.indexOf(township) + township.length : formattedAddress.indexOf(district) + district.length;\n const addressMsg = {\n address: formattedAddress.slice(0, division) + (pois[0]?.address || ''),\n addressInfo: result.regeocode.addressComponent\n };\n callBack?.(addressMsg);\n resolve(addressMsg);\n } else {\n reject(new Error('转换失败'));\n }\n });\n });\n }\n\n /** 根据地址搜索地图poi点及其他信息 */\n /**\r\n * \r\n * @param {*} keywords 根据关键字搜索\r\n * @param {*} callBack 查询成功后过滤信息及转换格式 传递回调函数 兼容老版本代码\r\n */\n getMapSearch(keywords, callBack) {\n return new Promise(resolve => {\n const placeSearch = new this.AMap.PlaceSearch();\n placeSearch.search(keywords, (status, searchList) => {\n const options = searchList?.poiList?.pois?.map(node => ({\n ...node,\n label: `${node.name}(${node.address})`\n })) || [];\n callBack?.(options);\n resolve(options);\n });\n });\n }\n\n /** 道路规划 */\n /**\r\n * \r\n * @param {*} AMapInit 当前地图实例\r\n * @param {*} paths 需查询的路径起始点及途径点集合\r\n * @param {*} roadOptions 路线规划的其他参数\r\n * { paths: 需查询的路径起始点及途径点集合, options: 为查询路线配置项 }\r\n * @param {*} callBack 查询成功后回调函数 兼容老版本代码\r\n */\n async setMapDriving(mapInstance, roadOptions, callBack) {\n const {\n paths,\n options = {}\n } = roadOptions;\n return new Promise(resolve => {\n mapInstance.plugin(\"AMap.Driving\", () => {\n const driving = new this.AMap.Driving({\n map: mapInstance,\n ...options\n });\n driving.search(this.setLngLat(paths[0]), this.setLngLat(paths[paths.length - 1]), {\n waypoints: paths.slice(1, -1).map(path => this.setLngLat(path))\n }, (status, {\n routes\n }) => status === 'complete' && (callBack?.(roadDriving, routes), resolve({\n driving,\n routes\n })));\n });\n });\n }\n\n // 其他方法保持类似改造...\n}\n\n// 获取AMap实例(组件内使用)\nconst getAMapInstance = async (options = {}) => {\n if (AMapInstance) return AMapInstance;\n\n // 确保key存在\n if (!AMapKey) {\n try {\n setAMapSecurity();\n } catch (e) {\n throw new Error('请先设置地图Key!');\n }\n }\n const AMapLoader = await __webpack_require__.e(/*! import() */ \"node_modules_amap_amap-jsapi-loader_dist_index_js\").then(__webpack_require__.t.bind(__webpack_require__, /*! @amap/amap-jsapi-loader */ \"./node_modules/@amap/amap-jsapi-loader/dist/index.js\", 23));\n try {\n const AMap = await AMapLoader.load({\n key: AMapKey,\n version: '2.0',\n plugins: ['AMap.Geocoder', 'AMap.PlaceSearch',\n // 搜索\n 'AMap.MouseTool',\n // 鼠标\n 'AMap.ControlBar',\n // 方向盘\n 'AMap.ToolBar',\n // 缩放\n ...(options.plugins || [])]\n });\n AMapInstance = new AMapService(AMap);\n return AMapInstance;\n } catch (e) {\n throw new Error(`高德地图加载失败: ${e.message}`);\n }\n};\n\n// 在 Vue 插件中封装高德地图的初始化和常用方法 \n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n async install(Vue, options = {}) {\n const amap = await getAMapInstance(options);\n const {\n AMap,\n methods,\n layers\n } = amap;\n Vue.prototype.$amap = AMap;\n\n /** 初始化地图 */\n Vue.prototype.$initAMap = (mapOptions, callBack) => {\n const amapInit = amap.initMap(mapOptions.el, mapOptions.options || {});\n /** 兼容之前版本代码 */\n callBack?.(amapInit);\n return amapInit;\n };\n\n /** 地图加载完成 */\n Vue.prototype.$amapBus.$emit('onAMapMounted');\n\n /** 常用覆盖物 */\n Vue.prototype.$amapLayers = {\n ...layers,\n setInfoWindow: layers.setInfoWindow(Vue)\n };\n\n /** 抛出地图常用方法 */\n Vue.prototype.$amapMethods = methods || {};\n }\n});\n\n/** \r\n * 安全获取覆盖物坐标信息 \r\n * @param {AMap.Overlay} overlay 地图覆盖物实例\r\n * @returns {Array<Array<number>>} 坐标点数组\r\n */\nfunction getOverlayPos(overlay) {\n if (!overlay) throw new Error('覆盖物实例不存在');\n try {\n return overlay.type === 'AMap.Marker' ? [overlay.getPosition().lng, overlay.getPosition().lat] : overlay.getPath().map(({\n lng,\n lat\n }) => [lng, lat]);\n } catch (e) {\n console.error('转换失败', e);\n return [];\n }\n}\n\n/**\r\n * 轨迹动画执行器\r\n * @param {AMap.Map} AMapInit 地图实例\r\n * @param {AMap.Marker} animationMarker 动画标记物\r\n * @param {Array<Array<number>>} paths 路径坐标数组\r\n * @param {Object} [options] 动画配置\r\n * @param {Function} [callBack] 动画完成回调\r\n */\nfunction drawMapAnimation(AMapInit, animationMarker, paths, options = {}, callBack) {\n if (!AMapInit || !animationMarker || !paths?.length) {\n return console.error('缺少参数信息');\n }\n AMapInit.plugin('AMap.MoveAnimation', () => {\n const defaultOptions = {\n duration: 500,\n autoRotation: true,\n ...options\n };\n animationMarker.moveAlong(paths, defaultOptions);\n callBack?.(animationMarker);\n });\n}\n\n/**\r\n * 转换导航路线为可绘制路径\r\n * @param {AMap.DrivingRoute} route 导航路线对象\r\n * @returns {{\r\n* path: Array<Array<number>>,\r\n* approachPoints: Array<number>\r\n* }}\r\n*/\nfunction parseRouteToPath(route) {\n if (!route?.steps) return {\n path: [],\n approachPoints: []\n };\n const result = {\n path: [],\n approachPoints: []\n };\n route.steps.forEach((step, stepIndex) => {\n step.path.forEach((point, pointIndex) => {\n result.path.push([point.lng, point.lat]);\n if (step.assistant_action === \"到达途经地\" && pointIndex === step.path.length - 1) {\n result.approachPoints.push(result.path.length - 1);\n }\n });\n });\n return result;\n}\n\n//# sourceURL=webpack://mui/./plugins/method/AMap.js?");
|
|
9037
9026
|
|
|
9038
9027
|
/***/ }),
|
|
9039
9028
|
|
|
@@ -9252,7 +9241,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
9252
9241
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
9253
9242
|
|
|
9254
9243
|
"use strict";
|
|
9255
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);\n// Imports\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".TAntdTags[data-v-8ed8b9b6] {\\n width: 100%;\\n height: auto;\\n cursor: pointer;\\n min-height: 32px;\\n}\\n\", \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-2.use%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
9244
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);\n// Imports\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"/* 布局( 纯为了不想多写一行 */\\n/* 正方体盒子 */\\n/* 滚动条样式 */\\n/* 文字换行省略(默认1行)*/\\n/* flex布局 */\\n/* flex排版方式 */\\n.TAntdTags[data-v-8ed8b9b6] {\\n width: 100%;\\n height: auto;\\n cursor: pointer;\\n min-height: 32px;\\n}\\n.TAntdTags[data-v-8ed8b9b6] .ant-tag {\\n cursor: pointer;\\n display: flex;\\n align-items: center;\\n}\\n.TAntdTags[data-v-8ed8b9b6] .ant-tag span {\\n display: inline-block;\\n max-width: 100px;\\n overflow-x: hidden;\\n text-overflow: -o-ellipsis-lastline;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n display: -webkit-box;\\n -webkit-line-clamp: 1;\\n line-clamp: 1;\\n -webkit-box-orient: vertical;\\n}\\n\", \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-2.use%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
9256
9245
|
|
|
9257
9246
|
/***/ }),
|
|
9258
9247
|
|
|
@@ -12142,6 +12131,9 @@ eval("__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modul
|
|
|
12142
12131
|
/******/ return module.exports;
|
|
12143
12132
|
/******/ }
|
|
12144
12133
|
/******/
|
|
12134
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
12135
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
12136
|
+
/******/
|
|
12145
12137
|
/************************************************************************/
|
|
12146
12138
|
/******/ /* webpack/runtime/compat get default export */
|
|
12147
12139
|
/******/ (() => {
|
|
@@ -12155,6 +12147,36 @@ eval("__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modul
|
|
|
12155
12147
|
/******/ };
|
|
12156
12148
|
/******/ })();
|
|
12157
12149
|
/******/
|
|
12150
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
12151
|
+
/******/ (() => {
|
|
12152
|
+
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
|
12153
|
+
/******/ var leafPrototypes;
|
|
12154
|
+
/******/ // create a fake namespace object
|
|
12155
|
+
/******/ // mode & 1: value is a module id, require it
|
|
12156
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
12157
|
+
/******/ // mode & 4: return value when already ns object
|
|
12158
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
12159
|
+
/******/ // mode & 8|1: behave like require
|
|
12160
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
12161
|
+
/******/ if(mode & 1) value = this(value);
|
|
12162
|
+
/******/ if(mode & 8) return value;
|
|
12163
|
+
/******/ if(typeof value === 'object' && value) {
|
|
12164
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
12165
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
12166
|
+
/******/ }
|
|
12167
|
+
/******/ var ns = Object.create(null);
|
|
12168
|
+
/******/ __webpack_require__.r(ns);
|
|
12169
|
+
/******/ var def = {};
|
|
12170
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
12171
|
+
/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
12172
|
+
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
|
12173
|
+
/******/ }
|
|
12174
|
+
/******/ def['default'] = () => (value);
|
|
12175
|
+
/******/ __webpack_require__.d(ns, def);
|
|
12176
|
+
/******/ return ns;
|
|
12177
|
+
/******/ };
|
|
12178
|
+
/******/ })();
|
|
12179
|
+
/******/
|
|
12158
12180
|
/******/ /* webpack/runtime/define property getters */
|
|
12159
12181
|
/******/ (() => {
|
|
12160
12182
|
/******/ // define getter functions for harmony exports
|
|
@@ -12167,6 +12189,28 @@ eval("__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modul
|
|
|
12167
12189
|
/******/ };
|
|
12168
12190
|
/******/ })();
|
|
12169
12191
|
/******/
|
|
12192
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
12193
|
+
/******/ (() => {
|
|
12194
|
+
/******/ __webpack_require__.f = {};
|
|
12195
|
+
/******/ // This file contains only the entry chunk.
|
|
12196
|
+
/******/ // The chunk loading function for additional chunks
|
|
12197
|
+
/******/ __webpack_require__.e = (chunkId) => {
|
|
12198
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
|
|
12199
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
12200
|
+
/******/ return promises;
|
|
12201
|
+
/******/ }, []));
|
|
12202
|
+
/******/ };
|
|
12203
|
+
/******/ })();
|
|
12204
|
+
/******/
|
|
12205
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
12206
|
+
/******/ (() => {
|
|
12207
|
+
/******/ // This function allow to reference async chunks
|
|
12208
|
+
/******/ __webpack_require__.u = (chunkId) => {
|
|
12209
|
+
/******/ // return url for filenames based on template
|
|
12210
|
+
/******/ return "" + chunkId + ".umd.js";
|
|
12211
|
+
/******/ };
|
|
12212
|
+
/******/ })();
|
|
12213
|
+
/******/
|
|
12170
12214
|
/******/ /* webpack/runtime/global */
|
|
12171
12215
|
/******/ (() => {
|
|
12172
12216
|
/******/ __webpack_require__.g = (function() {
|
|
@@ -12184,6 +12228,52 @@ eval("__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modul
|
|
|
12184
12228
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
12185
12229
|
/******/ })();
|
|
12186
12230
|
/******/
|
|
12231
|
+
/******/ /* webpack/runtime/load script */
|
|
12232
|
+
/******/ (() => {
|
|
12233
|
+
/******/ var inProgress = {};
|
|
12234
|
+
/******/ var dataWebpackPrefix = "mui:";
|
|
12235
|
+
/******/ // loadScript function to load a script via script tag
|
|
12236
|
+
/******/ __webpack_require__.l = (url, done, key, chunkId) => {
|
|
12237
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
12238
|
+
/******/ var script, needAttach;
|
|
12239
|
+
/******/ if(key !== undefined) {
|
|
12240
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
12241
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
12242
|
+
/******/ var s = scripts[i];
|
|
12243
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
12244
|
+
/******/ }
|
|
12245
|
+
/******/ }
|
|
12246
|
+
/******/ if(!script) {
|
|
12247
|
+
/******/ needAttach = true;
|
|
12248
|
+
/******/ script = document.createElement('script');
|
|
12249
|
+
/******/
|
|
12250
|
+
/******/ script.charset = 'utf-8';
|
|
12251
|
+
/******/ script.timeout = 120;
|
|
12252
|
+
/******/ if (__webpack_require__.nc) {
|
|
12253
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
12254
|
+
/******/ }
|
|
12255
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
12256
|
+
/******/
|
|
12257
|
+
/******/ script.src = url;
|
|
12258
|
+
/******/ }
|
|
12259
|
+
/******/ inProgress[url] = [done];
|
|
12260
|
+
/******/ var onScriptComplete = (prev, event) => {
|
|
12261
|
+
/******/ // avoid mem leaks in IE.
|
|
12262
|
+
/******/ script.onerror = script.onload = null;
|
|
12263
|
+
/******/ clearTimeout(timeout);
|
|
12264
|
+
/******/ var doneFns = inProgress[url];
|
|
12265
|
+
/******/ delete inProgress[url];
|
|
12266
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
12267
|
+
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
|
|
12268
|
+
/******/ if(prev) return prev(event);
|
|
12269
|
+
/******/ }
|
|
12270
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
12271
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
12272
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
12273
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
12274
|
+
/******/ };
|
|
12275
|
+
/******/ })();
|
|
12276
|
+
/******/
|
|
12187
12277
|
/******/ /* webpack/runtime/make namespace object */
|
|
12188
12278
|
/******/ (() => {
|
|
12189
12279
|
/******/ // define __esModule on exports
|
|
@@ -12204,6 +12294,119 @@ eval("__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modul
|
|
|
12204
12294
|
/******/ };
|
|
12205
12295
|
/******/ })();
|
|
12206
12296
|
/******/
|
|
12297
|
+
/******/ /* webpack/runtime/publicPath */
|
|
12298
|
+
/******/ (() => {
|
|
12299
|
+
/******/ var scriptUrl;
|
|
12300
|
+
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
12301
|
+
/******/ var document = __webpack_require__.g.document;
|
|
12302
|
+
/******/ if (!scriptUrl && document) {
|
|
12303
|
+
/******/ if (document.currentScript)
|
|
12304
|
+
/******/ scriptUrl = document.currentScript.src;
|
|
12305
|
+
/******/ if (!scriptUrl) {
|
|
12306
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
12307
|
+
/******/ if(scripts.length) {
|
|
12308
|
+
/******/ var i = scripts.length - 1;
|
|
12309
|
+
/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
|
|
12310
|
+
/******/ }
|
|
12311
|
+
/******/ }
|
|
12312
|
+
/******/ }
|
|
12313
|
+
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
12314
|
+
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
12315
|
+
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
12316
|
+
/******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
12317
|
+
/******/ __webpack_require__.p = scriptUrl;
|
|
12318
|
+
/******/ })();
|
|
12319
|
+
/******/
|
|
12320
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
12321
|
+
/******/ (() => {
|
|
12322
|
+
/******/ // no baseURI
|
|
12323
|
+
/******/
|
|
12324
|
+
/******/ // object to store loaded and loading chunks
|
|
12325
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
12326
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
12327
|
+
/******/ var installedChunks = {
|
|
12328
|
+
/******/ "amap": 0
|
|
12329
|
+
/******/ };
|
|
12330
|
+
/******/
|
|
12331
|
+
/******/ __webpack_require__.f.j = (chunkId, promises) => {
|
|
12332
|
+
/******/ // JSONP chunk loading for javascript
|
|
12333
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
12334
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
12335
|
+
/******/
|
|
12336
|
+
/******/ // a Promise means "currently loading".
|
|
12337
|
+
/******/ if(installedChunkData) {
|
|
12338
|
+
/******/ promises.push(installedChunkData[2]);
|
|
12339
|
+
/******/ } else {
|
|
12340
|
+
/******/ if(true) { // all chunks have JS
|
|
12341
|
+
/******/ // setup Promise in chunk cache
|
|
12342
|
+
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
12343
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
12344
|
+
/******/
|
|
12345
|
+
/******/ // start chunk loading
|
|
12346
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
12347
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
12348
|
+
/******/ var error = new Error();
|
|
12349
|
+
/******/ var loadingEnded = (event) => {
|
|
12350
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
12351
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
12352
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
12353
|
+
/******/ if(installedChunkData) {
|
|
12354
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
12355
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
12356
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
12357
|
+
/******/ error.name = 'ChunkLoadError';
|
|
12358
|
+
/******/ error.type = errorType;
|
|
12359
|
+
/******/ error.request = realSrc;
|
|
12360
|
+
/******/ installedChunkData[1](error);
|
|
12361
|
+
/******/ }
|
|
12362
|
+
/******/ }
|
|
12363
|
+
/******/ };
|
|
12364
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
12365
|
+
/******/ }
|
|
12366
|
+
/******/ }
|
|
12367
|
+
/******/ }
|
|
12368
|
+
/******/ };
|
|
12369
|
+
/******/
|
|
12370
|
+
/******/ // no prefetching
|
|
12371
|
+
/******/
|
|
12372
|
+
/******/ // no preloaded
|
|
12373
|
+
/******/
|
|
12374
|
+
/******/ // no HMR
|
|
12375
|
+
/******/
|
|
12376
|
+
/******/ // no HMR manifest
|
|
12377
|
+
/******/
|
|
12378
|
+
/******/ // no on chunks loaded
|
|
12379
|
+
/******/
|
|
12380
|
+
/******/ // install a JSONP callback for chunk loading
|
|
12381
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
12382
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
12383
|
+
/******/ // add "moreModules" to the modules object,
|
|
12384
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
12385
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
12386
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
12387
|
+
/******/ for(moduleId in moreModules) {
|
|
12388
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
12389
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
12390
|
+
/******/ }
|
|
12391
|
+
/******/ }
|
|
12392
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
12393
|
+
/******/ }
|
|
12394
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
12395
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
12396
|
+
/******/ chunkId = chunkIds[i];
|
|
12397
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
12398
|
+
/******/ installedChunks[chunkId][0]();
|
|
12399
|
+
/******/ }
|
|
12400
|
+
/******/ installedChunks[chunkId] = 0;
|
|
12401
|
+
/******/ }
|
|
12402
|
+
/******/
|
|
12403
|
+
/******/ }
|
|
12404
|
+
/******/
|
|
12405
|
+
/******/ var chunkLoadingGlobal = self["webpackChunkmui"] = self["webpackChunkmui"] || [];
|
|
12406
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
12407
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
12408
|
+
/******/ })();
|
|
12409
|
+
/******/
|
|
12207
12410
|
/******/ /* webpack/runtime/nonce */
|
|
12208
12411
|
/******/ (() => {
|
|
12209
12412
|
/******/ __webpack_require__.nc = undefined;
|
package/dist/form.umd.js
CHANGED
|
@@ -7264,7 +7264,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
7264
7264
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7265
7265
|
|
|
7266
7266
|
"use strict";
|
|
7267
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ \"./node_modules/core-js/modules/es.iterator.constructor.js\");\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ \"./node_modules/core-js/modules/es.iterator.filter.js\");\n/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ant_design_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ant-design-vue */ \"./node_modules/ant-design-vue/es/tag/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'TAntdTags',\n components: {\n Tag: ant_design_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n model: {\n prop: 'value',\n event: 'update:tagsInput'\n },\n data() {\n return {};\n },\n computed: {\n selectChecked: {\n get() {\n return this.value;\n },\n set(val) {\n this.$emit('update:tagsInput', val);\n }\n }\n },\n props: {\n value: {\n type: Array,\n default: () => {\n return [];\n }\n },\n /* 传入的option数组中,要作为最终选择项的键值key */\n valueKey: {\n type: String,\n default: 'value'\n },\n /* 传入的option数组中,要作为显示项的键值名称 */\n labelKey: {\n type: String,\n default: 'label'\n }\n },\n methods: {\n tagsClose(checked) {\n const selectChecked = this.selectChecked.filter(node => node[this.valueKey] !== checked);\n this.$emit('update:tagsInput', selectChecked);\n }\n }\n});\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
7267
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ \"./node_modules/core-js/modules/es.iterator.constructor.js\");\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ \"./node_modules/core-js/modules/es.iterator.filter.js\");\n/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ant_design_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ant-design-vue */ \"./node_modules/ant-design-vue/es/tag/index.js\");\n/* harmony import */ var ant_design_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ant-design-vue */ \"./node_modules/ant-design-vue/es/tooltip/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'TAntdTags',\n components: {\n Tag: ant_design_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n Tooltip: ant_design_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n model: {\n prop: 'value',\n event: 'update:tagsInput'\n },\n data() {\n return {};\n },\n computed: {\n selectChecked: {\n get() {\n return this.value;\n },\n set(val) {\n this.$emit('update:tagsInput', val);\n }\n }\n },\n props: {\n value: {\n type: Array,\n default: () => {\n return [];\n }\n },\n /* 传入的option数组中,要作为最终选择项的键值key */\n valueKey: {\n type: String,\n default: 'value'\n },\n /* 传入的option数组中,要作为显示项的键值名称 */\n labelKey: {\n type: String,\n default: 'label'\n }\n },\n methods: {\n tagsClose(checked) {\n const selectChecked = this.selectChecked.filter(node => node[this.valueKey] !== checked);\n this.$emit('update:tagsInput', selectChecked);\n }\n }\n});\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
7268
7268
|
|
|
7269
7269
|
/***/ }),
|
|
7270
7270
|
|
|
@@ -7363,7 +7363,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
7363
7363
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7364
7364
|
|
|
7365
7365
|
"use strict";
|
|
7366
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", _vm._g({\n staticClass: \"ant-input TAntdTags\"\n }, _vm.$listeners), [_vm._l(_vm.selectChecked, function (child, i) {\n return _c(\"
|
|
7366
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", _vm._g({\n staticClass: \"ant-input TAntdTags\"\n }, _vm.$listeners), [_vm._l(_vm.selectChecked, function (child, i) {\n return _c(\"Tooltip\", {\n key: i,\n attrs: {\n title: child[_vm.labelKey]\n }\n }, [_c(\"Tag\", {\n attrs: {\n closable: \"\"\n },\n on: {\n close: () => _vm.tagsClose(child[_vm.valueKey])\n }\n }, [_c(\"span\", [_vm._v(_vm._s(child[_vm.labelKey]))])])], 1);\n }), _vm._v(\" \"), !_vm.selectChecked.length ? _c(\"span\", [_vm._v(\"请点击进行选择\")]) : _vm._e()], 2);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
7367
7367
|
|
|
7368
7368
|
/***/ }),
|
|
7369
7369
|
|
|
@@ -7550,7 +7550,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
7550
7550
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
7551
7551
|
|
|
7552
7552
|
"use strict";
|
|
7553
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);\n// Imports\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".TAntdTags[data-v-8ed8b9b6] {\\n width: 100%;\\n height: auto;\\n cursor: pointer;\\n min-height: 32px;\\n}\\n\", \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-2.use%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
7553
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);\n// Imports\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"/* 布局( 纯为了不想多写一行 */\\n/* 正方体盒子 */\\n/* 滚动条样式 */\\n/* 文字换行省略(默认1行)*/\\n/* flex布局 */\\n/* flex排版方式 */\\n.TAntdTags[data-v-8ed8b9b6] {\\n width: 100%;\\n height: auto;\\n cursor: pointer;\\n min-height: 32px;\\n}\\n.TAntdTags[data-v-8ed8b9b6] .ant-tag {\\n cursor: pointer;\\n display: flex;\\n align-items: center;\\n}\\n.TAntdTags[data-v-8ed8b9b6] .ant-tag span {\\n display: inline-block;\\n max-width: 100px;\\n overflow-x: hidden;\\n text-overflow: -o-ellipsis-lastline;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n display: -webkit-box;\\n -webkit-line-clamp: 1;\\n line-clamp: 1;\\n -webkit-box-orient: vertical;\\n}\\n\", \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-2.use%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
7554
7554
|
|
|
7555
7555
|
/***/ }),
|
|
7556
7556
|
|
package/dist/index.umd.js
CHANGED
|
@@ -19,17 +19,6 @@
|
|
|
19
19
|
return /******/ (() => { // webpackBootstrap
|
|
20
20
|
/******/ var __webpack_modules__ = ({
|
|
21
21
|
|
|
22
|
-
/***/ "./node_modules/@amap/amap-jsapi-loader/dist/index.js":
|
|
23
|
-
/*!************************************************************!*\
|
|
24
|
-
!*** ./node_modules/@amap/amap-jsapi-loader/dist/index.js ***!
|
|
25
|
-
\************************************************************/
|
|
26
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
27
|
-
|
|
28
|
-
"use strict";
|
|
29
|
-
eval("\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n(function (m, p) {\n true ? module.exports = p() : 0;\n})(this, function () {\n function m(a) {\n var b = [];\n a.AMapUI && b.push(p(a.AMapUI));\n a.Loca && b.push(r(a.Loca));\n return Promise.all(b);\n }\n function p(a) {\n return new Promise(function (h, c) {\n var f = [];\n if (a.plugins) for (var e = 0; e < a.plugins.length; e += 1) -1 == d.AMapUI.plugins.indexOf(a.plugins[e]) && f.push(a.plugins[e]);\n if (g.AMapUI === b.failed) c(\"\\u524d\\u6b21\\u8bf7\\u6c42 AMapUI \\u5931\\u8d25\");else if (g.AMapUI === b.notload) {\n g.AMapUI = b.loading;\n d.AMapUI.version = a.version || d.AMapUI.version;\n e = d.AMapUI.version;\n var l = document.body || document.head,\n k = document.createElement(\"script\");\n k.type = \"text/javascript\";\n k.src = \"https://webapi.amap.com/ui/\" + e + \"/main.js\";\n k.onerror = function (a) {\n g.AMapUI = b.failed;\n c(\"\\u8bf7\\u6c42 AMapUI \\u5931\\u8d25\");\n };\n k.onload = function () {\n g.AMapUI = b.loaded;\n if (f.length) window.AMapUI.loadUI(f, function () {\n for (var a = 0, b = f.length; a < b; a++) {\n var c = f[a].split(\"/\").slice(-1)[0];\n window.AMapUI[c] = arguments[a];\n }\n for (h(); n.AMapUI.length;) n.AMapUI.splice(0, 1)[0]();\n });else for (h(); n.AMapUI.length;) n.AMapUI.splice(0, 1)[0]();\n };\n l.appendChild(k);\n } else g.AMapUI === b.loaded ? a.version && a.version !== d.AMapUI.version ? c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c AMapUI \\u6df7\\u7528\") : f.length ? window.AMapUI.loadUI(f, function () {\n for (var a = 0, b = f.length; a < b; a++) {\n var c = f[a].split(\"/\").slice(-1)[0];\n window.AMapUI[c] = arguments[a];\n }\n h();\n }) : h() : a.version && a.version !== d.AMapUI.version ? c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c AMapUI \\u6df7\\u7528\") : n.AMapUI.push(function (a) {\n a ? c(a) : f.length ? window.AMapUI.loadUI(f, function () {\n for (var a = 0, b = f.length; a < b; a++) {\n var c = f[a].split(\"/\").slice(-1)[0];\n window.AMapUI[c] = arguments[a];\n }\n h();\n }) : h();\n });\n });\n }\n function r(a) {\n return new Promise(function (h, c) {\n if (g.Loca === b.failed) c(\"\\u524d\\u6b21\\u8bf7\\u6c42 Loca \\u5931\\u8d25\");else if (g.Loca === b.notload) {\n g.Loca = b.loading;\n d.Loca.version = a.version || d.Loca.version;\n var f = d.Loca.version,\n e = d.AMap.version.startsWith(\"2\"),\n l = f.startsWith(\"2\");\n if (e && !l || !e && l) c(\"JSAPI \\u4e0e Loca \\u7248\\u672c\\u4e0d\\u5bf9\\u5e94\\uff01\\uff01\");else {\n e = d.key;\n l = document.body || document.head;\n var k = document.createElement(\"script\");\n k.type = \"text/javascript\";\n k.src = \"https://webapi.amap.com/loca?v=\" + f + \"&key=\" + e;\n k.onerror = function (a) {\n g.Loca = b.failed;\n c(\"\\u8bf7\\u6c42 AMapUI \\u5931\\u8d25\");\n };\n k.onload = function () {\n g.Loca = b.loaded;\n for (h(); n.Loca.length;) n.Loca.splice(0, 1)[0]();\n };\n l.appendChild(k);\n }\n } else g.Loca === b.loaded ? a.version && a.version !== d.Loca.version ? c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c Loca \\u6df7\\u7528\") : h() : a.version && a.version !== d.Loca.version ? c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c Loca \\u6df7\\u7528\") : n.Loca.push(function (a) {\n a ? c(a) : c();\n });\n });\n }\n if (!window) throw Error(\"AMap JSAPI can only be used in Browser.\");\n var b;\n (function (a) {\n a.notload = \"notload\";\n a.loading = \"loading\";\n a.loaded = \"loaded\";\n a.failed = \"failed\";\n })(b || (b = {}));\n var d = {\n key: \"\",\n AMap: {\n version: \"1.4.15\",\n plugins: []\n },\n AMapUI: {\n version: \"1.1\",\n plugins: []\n },\n Loca: {\n version: \"1.3.2\"\n }\n },\n g = {\n AMap: b.notload,\n AMapUI: b.notload,\n Loca: b.notload\n },\n n = {\n AMap: [],\n AMapUI: [],\n Loca: []\n },\n q = [],\n t = function (a) {\n \"function\" == typeof a && (g.AMap === b.loaded ? a(window.AMap) : q.push(a));\n };\n return {\n load: function (a) {\n return new Promise(function (h, c) {\n if (g.AMap == b.failed) c(\"\");else if (g.AMap == b.notload) {\n var f = a.key,\n e = a.version,\n l = a.plugins;\n f ? (window.AMap && \"lbs.amap.com\" !== location.host && c(\"\\u7981\\u6b62\\u591a\\u79cdAPI\\u52a0\\u8f7d\\u65b9\\u5f0f\\u6df7\\u7528\"), d.key = f, d.AMap.version = e || d.AMap.version, d.AMap.plugins = l || d.AMap.plugins, g.AMap = b.loading, e = document.body || document.head, window.___onAPILoaded = function (d) {\n delete window.___onAPILoaded;\n if (d) g.AMap = b.failed, c(d);else for (g.AMap = b.loaded, m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c); q.length;) q.splice(0, 1)[0]();\n }, l = document.createElement(\"script\"), l.type = \"text/javascript\", l.src = \"https://webapi.amap.com/maps?callback=___onAPILoaded&v=\" + d.AMap.version + \"&key=\" + f + \"&plugin=\" + d.AMap.plugins.join(\",\"), l.onerror = function (a) {\n g.AMap = b.failed;\n c(a);\n }, e.appendChild(l)) : c(\"\\u8bf7\\u586b\\u5199key\");\n } else if (g.AMap == b.loaded) {\n if (a.key && a.key !== d.key) c(\"\\u591a\\u4e2a\\u4e0d\\u4e00\\u81f4\\u7684 key\");else if (a.version && a.version !== d.AMap.version) c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c JSAPI \\u6df7\\u7528\");else {\n f = [];\n if (a.plugins) for (e = 0; e < a.plugins.length; e += 1) -1 == d.AMap.plugins.indexOf(a.plugins[e]) && f.push(a.plugins[e]);\n if (f.length) window.AMap.plugin(f, function () {\n m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c);\n });else m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c);\n }\n } else if (a.key && a.key !== d.key) c(\"\\u591a\\u4e2a\\u4e0d\\u4e00\\u81f4\\u7684 key\");else if (a.version && a.version !== d.AMap.version) c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c JSAPI \\u6df7\\u7528\");else {\n var k = [];\n if (a.plugins) for (e = 0; e < a.plugins.length; e += 1) -1 == d.AMap.plugins.indexOf(a.plugins[e]) && k.push(a.plugins[e]);\n t(function () {\n if (k.length) window.AMap.plugin(k, function () {\n m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c);\n });else m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c);\n });\n }\n });\n },\n reset: function () {\n delete window.AMap;\n delete window.AMapUI;\n delete window.Loca;\n d = {\n key: \"\",\n AMap: {\n version: \"1.4.15\",\n plugins: []\n },\n AMapUI: {\n version: \"1.1\",\n plugins: []\n },\n Loca: {\n version: \"1.3.2\"\n }\n };\n g = {\n AMap: b.notload,\n AMapUI: b.notload,\n Loca: b.notload\n };\n n = {\n AMap: [],\n AMapUI: [],\n Loca: []\n };\n }\n };\n});\n\n//# sourceURL=webpack://mui/./node_modules/@amap/amap-jsapi-loader/dist/index.js?");
|
|
30
|
-
|
|
31
|
-
/***/ }),
|
|
32
|
-
|
|
33
22
|
/***/ "./node_modules/@ant-design/colors/lib/generate.js":
|
|
34
23
|
/*!*********************************************************!*\
|
|
35
24
|
!*** ./node_modules/@ant-design/colors/lib/generate.js ***!
|
|
@@ -8428,7 +8417,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
8428
8417
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8429
8418
|
|
|
8430
8419
|
"use strict";
|
|
8431
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ \"./node_modules/core-js/modules/es.iterator.constructor.js\");\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ \"./node_modules/core-js/modules/es.iterator.filter.js\");\n/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ant_design_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ant-design-vue */ \"./node_modules/ant-design-vue/es/tag/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'TAntdTags',\n components: {\n Tag: ant_design_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n model: {\n prop: 'value',\n event: 'update:tagsInput'\n },\n data() {\n return {};\n },\n computed: {\n selectChecked: {\n get() {\n return this.value;\n },\n set(val) {\n this.$emit('update:tagsInput', val);\n }\n }\n },\n props: {\n value: {\n type: Array,\n default: () => {\n return [];\n }\n },\n /* 传入的option数组中,要作为最终选择项的键值key */\n valueKey: {\n type: String,\n default: 'value'\n },\n /* 传入的option数组中,要作为显示项的键值名称 */\n labelKey: {\n type: String,\n default: 'label'\n }\n },\n methods: {\n tagsClose(checked) {\n const selectChecked = this.selectChecked.filter(node => node[this.valueKey] !== checked);\n this.$emit('update:tagsInput', selectChecked);\n }\n }\n});\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
8420
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ \"./node_modules/core-js/modules/es.iterator.constructor.js\");\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.filter.js */ \"./node_modules/core-js/modules/es.iterator.filter.js\");\n/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ant_design_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ant-design-vue */ \"./node_modules/ant-design-vue/es/tag/index.js\");\n/* harmony import */ var ant_design_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ant-design-vue */ \"./node_modules/ant-design-vue/es/tooltip/index.js\");\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'TAntdTags',\n components: {\n Tag: ant_design_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n Tooltip: ant_design_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n model: {\n prop: 'value',\n event: 'update:tagsInput'\n },\n data() {\n return {};\n },\n computed: {\n selectChecked: {\n get() {\n return this.value;\n },\n set(val) {\n this.$emit('update:tagsInput', val);\n }\n }\n },\n props: {\n value: {\n type: Array,\n default: () => {\n return [];\n }\n },\n /* 传入的option数组中,要作为最终选择项的键值key */\n valueKey: {\n type: String,\n default: 'value'\n },\n /* 传入的option数组中,要作为显示项的键值名称 */\n labelKey: {\n type: String,\n default: 'label'\n }\n },\n methods: {\n tagsClose(checked) {\n const selectChecked = this.selectChecked.filter(node => node[this.valueKey] !== checked);\n this.$emit('update:tagsInput', selectChecked);\n }\n }\n});\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
8432
8421
|
|
|
8433
8422
|
/***/ }),
|
|
8434
8423
|
|
|
@@ -8593,7 +8582,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
8593
8582
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8594
8583
|
|
|
8595
8584
|
"use strict";
|
|
8596
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", _vm._g({\n staticClass: \"ant-input TAntdTags\"\n }, _vm.$listeners), [_vm._l(_vm.selectChecked, function (child, i) {\n return _c(\"
|
|
8585
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ render: () => (/* binding */ render),\n/* harmony export */ staticRenderFns: () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", _vm._g({\n staticClass: \"ant-input TAntdTags\"\n }, _vm.$listeners), [_vm._l(_vm.selectChecked, function (child, i) {\n return _c(\"Tooltip\", {\n key: i,\n attrs: {\n title: child[_vm.labelKey]\n }\n }, [_c(\"Tag\", {\n attrs: {\n closable: \"\"\n },\n on: {\n close: () => _vm.tagsClose(child[_vm.valueKey])\n }\n }, [_c(\"span\", [_vm._v(_vm._s(child[_vm.labelKey]))])])], 1);\n }), _vm._v(\" \"), !_vm.selectChecked.length ? _c(\"span\", [_vm._v(\"请点击进行选择\")]) : _vm._e()], 2);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
8597
8586
|
|
|
8598
8587
|
/***/ }),
|
|
8599
8588
|
|
|
@@ -9033,7 +9022,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
9033
9022
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
9034
9023
|
|
|
9035
9024
|
"use strict";
|
|
9036
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ getAMapInstance: () => (/* binding */ getAMapInstance),\n/* harmony export */ setAMapSecurity: () => (/* binding */ setAMapSecurity)\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ \"./node_modules/core-js/modules/es.iterator.constructor.js\");\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ \"./node_modules/core-js/modules/es.iterator.for-each.js\");\n/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ \"./node_modules/core-js/modules/es.iterator.map.js\");\n/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _amap_amap_jsapi_loader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @amap/amap-jsapi-loader */ \"./node_modules/@amap/amap-jsapi-loader/dist/index.js\");\n/* harmony import */ var _amap_amap_jsapi_loader__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_amap_amap_jsapi_loader__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n// amap-plugin.js\n\n\n/** 入口文件不同 作用域不同 */\nlet AMapKey = null;\nlet AMapStyle = null;\nlet AMapInstance = null;\n/** 默认地图key、样式及安全解码 */\nlet AMapConfig = {\n key: '722d07dd44d442d72a25a1304bac7743',\n style: 'amap://styles/ff26c7ed32880397f692f5b69b1c1f9f',\n securityJsCode: '90366326a87f1d0e3ddb43e05cc021b1'\n};\n\n// 安全配置 / 地图样式配置\nconst setAMapSecurity = (config = AMapConfig) => {\n const {\n key,\n style,\n securityJsCode\n } = config;\n AMapKey = key;\n AMapStyle = style;\n /** 设置高德地图密钥 */\n window.forceWebGL = true;\n window._AMapSecurityConfig = {\n securityJsCode\n };\n};\n\n// 核心地图服务类\nclass AMapService {\n constructor(AMap) {\n this.AMap = AMap;\n this._iconCache = new Map(); // 图标缓存\n\n /** 常用覆盖物 */\n this.layers = {\n setIcon: this.setIcon.bind(this),\n setMarker: this.setMarker.bind(this),\n setInfoWindow: this._createInfoWindowHandler()\n };\n\n /** 抛出地图常用方法 */\n this.methods = {\n getMapAddress: this.getMapAddress.bind(this),\n getMapSearch: this.getMapSearch.bind(this),\n setMapDriving: this.setMapDriving.bind(this),\n drawMapAnimation,\n parseRouteToPath,\n getOverlayPos\n };\n }\n\n /** 初始化地图 */\n initMap(container, options = {}) {\n const map = new this.AMap.Map(container, {\n zoom: 13,\n zooms: [3, 20],\n pitch: 30,\n rotation: -15,\n viewMode: '3D',\n mapStyle: AMapStyle,\n ...options\n });\n options.zoomTool && map.addControl(new this.AMap.ToolBar());\n options.directionTool && map.addControl(new this.AMap.ControlBar());\n return map;\n }\n\n /** 格式化地图经纬度 */\n setLngLat(position) {\n return new this.AMap.LngLat(position[0], position[1]);\n }\n\n /** 创建信息窗口处理器(柯里化函数) */\n _createInfoWindowHandler() {\n return Vue => {\n if (!Vue || !Vue.extend) {\n throw new Error('必须传入有效的Vue构造函数');\n }\n return ({\n component,\n props,\n options = {}\n }) => {\n if (!component) throw new Error('component参数必填');\n const InfoWindowComponent = Vue.extend(component);\n const instance = new InfoWindowComponent({\n propsData: props\n }).$mount(document.createElement('div'));\n return new this.AMap.InfoWindow({\n isCustom: true,\n content: instance.$el,\n ...options\n });\n };\n };\n }\n\n /** 带缓存的图标创建方法 */\n async setIcon(iconUrl) {\n if (this._iconCache.has(iconUrl)) {\n return this._iconCache.get(iconUrl);\n }\n return new Promise((resolve, reject) => {\n const icon = new this.AMap.Icon({\n image: iconUrl,\n imageOffset: new this.AMap.Pixel(0, 0)\n });\n const img = new Image();\n img.onload = () => {\n const size = new this.AMap.Size(img.width, img.height);\n icon.setSize(size);\n icon.setImageSize(size);\n this._iconCache.set(iconUrl, icon);\n resolve(icon);\n };\n img.onerror = () => reject(new Error(`图标加载失败: ${iconUrl}`));\n img.src = iconUrl;\n });\n }\n\n /** 增强的标记点创建方法 */\n async setMarker(iconUrl, options = {}) {\n try {\n const icon = await this.setIcon(iconUrl);\n const marker = new this.AMap.Marker({\n anchor: 'bottom-center',\n ...options,\n icon\n });\n return marker;\n } catch (error) {\n console.error('创建标记点失败:', error);\n throw error;\n }\n }\n\n /** 地图逆地理编码 */\n getMapAddress({\n longitude,\n latitude\n }, callBack) {\n return new Promise((resolve, reject) => {\n const geocoder = new this.AMap.Geocoder({\n city: '全国',\n extensions: 'all'\n });\n geocoder.getAddress([longitude, latitude], (status, result) => {\n if (status === 'complete' && result.info === 'OK') {\n const {\n formattedAddress,\n pois\n } = result.regeocode;\n const {\n district,\n township\n } = result.regeocode.addressComponent;\n const division = township && formattedAddress.includes(township) ? formattedAddress.indexOf(township) + township.length : formattedAddress.indexOf(district) + district.length;\n const addressMsg = {\n address: formattedAddress.slice(0, division) + (pois[0]?.address || ''),\n addressInfo: result.regeocode.addressComponent\n };\n callBack?.(addressMsg);\n resolve(addressMsg);\n } else {\n reject(new Error('转换失败'));\n }\n });\n });\n }\n\n /** 根据地址搜索地图poi点及其他信息 */\n /**\r\n * \r\n * @param {*} keywords 根据关键字搜索\r\n * @param {*} callBack 查询成功后过滤信息及转换格式 传递回调函数 兼容老版本代码\r\n */\n getMapSearch(keywords, callBack) {\n return new Promise(resolve => {\n const placeSearch = new this.AMap.PlaceSearch();\n placeSearch.search(keywords, (status, searchList) => {\n const options = searchList?.poiList?.pois?.map(node => ({\n ...node,\n label: `${node.name}(${node.address})`\n })) || [];\n callBack?.(options);\n resolve(options);\n });\n });\n }\n\n /** 道路规划 */\n /**\r\n * \r\n * @param {*} AMapInit 当前地图实例\r\n * @param {*} paths 需查询的路径起始点及途径点集合\r\n * @param {*} roadOptions 路线规划的其他参数\r\n * { paths: 需查询的路径起始点及途径点集合, options: 为查询路线配置项 }\r\n * @param {*} callBack 查询成功后回调函数 兼容老版本代码\r\n */\n async setMapDriving(mapInstance, roadOptions, callBack) {\n const {\n paths,\n options = {}\n } = roadOptions;\n return new Promise(resolve => {\n mapInstance.plugin(\"AMap.Driving\", () => {\n const driving = new this.AMap.Driving({\n map: mapInstance,\n ...options\n });\n driving.search(this.setLngLat(paths[0]), this.setLngLat(paths[paths.length - 1]), {\n waypoints: paths.slice(1, -1).map(path => this.setLngLat(path))\n }, (status, {\n routes\n }) => status === 'complete' && (callBack?.(roadDriving, routes), resolve({\n driving,\n routes\n })));\n });\n });\n }\n\n // 其他方法保持类似改造...\n}\n\n// 获取AMap实例(组件内使用)\nconst getAMapInstance = async (options = {}) => {\n if (AMapInstance) return AMapInstance;\n\n // 确保key存在\n if (!AMapKey) {\n try {\n setAMapSecurity();\n } catch (e) {\n throw new Error('请先设置地图Key!');\n }\n }\n try {\n const AMap = await _amap_amap_jsapi_loader__WEBPACK_IMPORTED_MODULE_4___default().load({\n key: AMapKey,\n version: '2.0',\n plugins: ['AMap.Geocoder', 'AMap.PlaceSearch',\n // 搜索\n 'AMap.MouseTool',\n // 鼠标\n 'AMap.ControlBar',\n // 方向盘\n 'AMap.ToolBar',\n // 缩放\n ...(options.plugins || [])]\n });\n AMapInstance = new AMapService(AMap);\n return AMapInstance;\n } catch (e) {\n throw new Error(`高德地图加载失败: ${e.message}`);\n }\n};\n\n// 在 Vue 插件中封装高德地图的初始化和常用方法 \n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n async install(Vue, options = {}) {\n const amap = await getAMapInstance(options);\n const {\n AMap,\n methods,\n layers\n } = amap;\n Vue.prototype.$amap = AMap;\n\n /** 初始化地图 */\n Vue.prototype.$initAMap = (mapOptions, callBack) => {\n const amapInit = amap.initMap(mapOptions.el, mapOptions.options || {});\n /** 兼容之前版本代码 */\n callBack?.(amapInit);\n return amapInit;\n };\n\n /** 地图加载完成 */\n Vue.prototype.$amapBus.$emit('onAMapMounted');\n\n /** 常用覆盖物 */\n Vue.prototype.$amapLayers = {\n ...layers,\n setInfoWindow: layers.setInfoWindow(Vue)\n };\n\n /** 抛出地图常用方法 */\n Vue.prototype.$amapMethods = methods || {};\n }\n});\n\n/** \r\n * 安全获取覆盖物坐标信息 \r\n * @param {AMap.Overlay} overlay 地图覆盖物实例\r\n * @returns {Array<Array<number>>} 坐标点数组\r\n */\nfunction getOverlayPos(overlay) {\n if (!overlay) throw new Error('覆盖物实例不存在');\n try {\n return overlay.type === 'AMap.Marker' ? [overlay.getPosition().lng, overlay.getPosition().lat] : overlay.getPath().map(({\n lng,\n lat\n }) => [lng, lat]);\n } catch (e) {\n console.error('转换失败', e);\n return [];\n }\n}\n\n/**\r\n * 轨迹动画执行器\r\n * @param {AMap.Map} AMapInit 地图实例\r\n * @param {AMap.Marker} animationMarker 动画标记物\r\n * @param {Array<Array<number>>} paths 路径坐标数组\r\n * @param {Object} [options] 动画配置\r\n * @param {Function} [callBack] 动画完成回调\r\n */\nfunction drawMapAnimation(AMapInit, animationMarker, paths, options = {}, callBack) {\n if (!AMapInit || !animationMarker || !paths?.length) {\n return console.error('缺少参数信息');\n }\n AMapInit.plugin('AMap.MoveAnimation', () => {\n const defaultOptions = {\n duration: 500,\n autoRotation: true,\n ...options\n };\n animationMarker.moveAlong(paths, defaultOptions);\n callBack?.(animationMarker);\n });\n}\n\n/**\r\n * 转换导航路线为可绘制路径\r\n * @param {AMap.DrivingRoute} route 导航路线对象\r\n * @returns {{\r\n* path: Array<Array<number>>,\r\n* approachPoints: Array<number>\r\n* }}\r\n*/\nfunction parseRouteToPath(route) {\n if (!route?.steps) return {\n path: [],\n approachPoints: []\n };\n const result = {\n path: [],\n approachPoints: []\n };\n route.steps.forEach((step, stepIndex) => {\n step.path.forEach((point, pointIndex) => {\n result.path.push([point.lng, point.lat]);\n if (step.assistant_action === \"到达途经地\" && pointIndex === step.path.length - 1) {\n result.approachPoints.push(result.path.length - 1);\n }\n });\n });\n return result;\n}\n\n//# sourceURL=webpack://mui/./plugins/method/AMap.js?");
|
|
9025
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ getAMapInstance: () => (/* binding */ getAMapInstance),\n/* harmony export */ setAMapSecurity: () => (/* binding */ setAMapSecurity)\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.iterator.constructor.js */ \"./node_modules/core-js/modules/es.iterator.constructor.js\");\n/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.iterator.for-each.js */ \"./node_modules/core-js/modules/es.iterator.for-each.js\");\n/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.iterator.map.js */ \"./node_modules/core-js/modules/es.iterator.map.js\");\n/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n\n// amap-plugin.js\n// import AMapLoader from '@amap/amap-jsapi-loader'\n\n/** 入口文件不同 作用域不同 */\nlet AMapKey = null;\nlet AMapStyle = null;\nlet AMapInstance = null;\n/** 默认地图key、样式及安全解码 */\nlet AMapConfig = {\n key: '722d07dd44d442d72a25a1304bac7743',\n style: 'amap://styles/ff26c7ed32880397f692f5b69b1c1f9f',\n securityJsCode: '90366326a87f1d0e3ddb43e05cc021b1'\n};\n\n// 安全配置 / 地图样式配置\nconst setAMapSecurity = (config = AMapConfig) => {\n const {\n key,\n style,\n securityJsCode\n } = config;\n AMapKey = key;\n AMapStyle = style;\n /** 设置高德地图密钥 */\n window.forceWebGL = true;\n window._AMapSecurityConfig = {\n securityJsCode\n };\n};\n\n// 核心地图服务类\nclass AMapService {\n constructor(AMap) {\n this.AMap = AMap;\n this._iconCache = new Map(); // 图标缓存\n\n /** 常用覆盖物 */\n this.layers = {\n setIcon: this.setIcon.bind(this),\n setMarker: this.setMarker.bind(this),\n setInfoWindow: this._createInfoWindowHandler()\n };\n\n /** 抛出地图常用方法 */\n this.methods = {\n getMapAddress: this.getMapAddress.bind(this),\n getMapSearch: this.getMapSearch.bind(this),\n setMapDriving: this.setMapDriving.bind(this),\n drawMapAnimation,\n parseRouteToPath,\n getOverlayPos\n };\n }\n\n /** 初始化地图 */\n initMap(container, options = {}) {\n const map = new this.AMap.Map(container, {\n zoom: 13,\n zooms: [3, 20],\n pitch: 30,\n rotation: -15,\n viewMode: '3D',\n center: [118.868228, 28.892844],\n mapStyle: AMapStyle,\n ...options\n });\n options.zoomTool && map.addControl(new this.AMap.ToolBar());\n options.directionTool && map.addControl(new this.AMap.ControlBar());\n return map;\n }\n\n /** 格式化地图经纬度 */\n setLngLat(position) {\n return new this.AMap.LngLat(position[0], position[1]);\n }\n\n /** 创建信息窗口处理器(柯里化函数) */\n _createInfoWindowHandler() {\n return Vue => {\n if (!Vue || !Vue.extend) {\n throw new Error('必须传入有效的Vue构造函数');\n }\n return ({\n component,\n props,\n options = {}\n }) => {\n if (!component) throw new Error('component参数必填');\n const InfoWindowComponent = Vue.extend(component);\n const instance = new InfoWindowComponent({\n propsData: props\n }).$mount(document.createElement('div'));\n return new this.AMap.InfoWindow({\n isCustom: true,\n content: instance.$el,\n ...options\n });\n };\n };\n }\n\n /** 带缓存的图标创建方法 */\n async setIcon(iconUrl) {\n if (this._iconCache.has(iconUrl)) {\n return this._iconCache.get(iconUrl);\n }\n return new Promise((resolve, reject) => {\n const icon = new this.AMap.Icon({\n image: iconUrl,\n imageOffset: new this.AMap.Pixel(0, 0)\n });\n const img = new Image();\n img.onload = () => {\n const size = new this.AMap.Size(img.width, img.height);\n icon.setSize(size);\n icon.setImageSize(size);\n this._iconCache.set(iconUrl, icon);\n resolve(icon);\n };\n img.onerror = () => reject(new Error(`图标加载失败: ${iconUrl}`));\n img.src = iconUrl;\n });\n }\n\n /** 增强的标记点创建方法 */\n async setMarker(iconUrl, options = {}) {\n try {\n const icon = await this.setIcon(iconUrl);\n const marker = new this.AMap.Marker({\n anchor: 'bottom-center',\n ...options,\n icon\n });\n return marker;\n } catch (error) {\n console.error('创建标记点失败:', error);\n throw error;\n }\n }\n\n /** 地图逆地理编码 */\n getMapAddress({\n longitude,\n latitude\n }, callBack) {\n return new Promise((resolve, reject) => {\n const geocoder = new this.AMap.Geocoder({\n city: '全国',\n extensions: 'all'\n });\n geocoder.getAddress([longitude, latitude], (status, result) => {\n if (status === 'complete' && result.info === 'OK') {\n const {\n formattedAddress,\n pois\n } = result.regeocode;\n const {\n district,\n township\n } = result.regeocode.addressComponent;\n const division = township && formattedAddress.includes(township) ? formattedAddress.indexOf(township) + township.length : formattedAddress.indexOf(district) + district.length;\n const addressMsg = {\n address: formattedAddress.slice(0, division) + (pois[0]?.address || ''),\n addressInfo: result.regeocode.addressComponent\n };\n callBack?.(addressMsg);\n resolve(addressMsg);\n } else {\n reject(new Error('转换失败'));\n }\n });\n });\n }\n\n /** 根据地址搜索地图poi点及其他信息 */\n /**\r\n * \r\n * @param {*} keywords 根据关键字搜索\r\n * @param {*} callBack 查询成功后过滤信息及转换格式 传递回调函数 兼容老版本代码\r\n */\n getMapSearch(keywords, callBack) {\n return new Promise(resolve => {\n const placeSearch = new this.AMap.PlaceSearch();\n placeSearch.search(keywords, (status, searchList) => {\n const options = searchList?.poiList?.pois?.map(node => ({\n ...node,\n label: `${node.name}(${node.address})`\n })) || [];\n callBack?.(options);\n resolve(options);\n });\n });\n }\n\n /** 道路规划 */\n /**\r\n * \r\n * @param {*} AMapInit 当前地图实例\r\n * @param {*} paths 需查询的路径起始点及途径点集合\r\n * @param {*} roadOptions 路线规划的其他参数\r\n * { paths: 需查询的路径起始点及途径点集合, options: 为查询路线配置项 }\r\n * @param {*} callBack 查询成功后回调函数 兼容老版本代码\r\n */\n async setMapDriving(mapInstance, roadOptions, callBack) {\n const {\n paths,\n options = {}\n } = roadOptions;\n return new Promise(resolve => {\n mapInstance.plugin(\"AMap.Driving\", () => {\n const driving = new this.AMap.Driving({\n map: mapInstance,\n ...options\n });\n driving.search(this.setLngLat(paths[0]), this.setLngLat(paths[paths.length - 1]), {\n waypoints: paths.slice(1, -1).map(path => this.setLngLat(path))\n }, (status, {\n routes\n }) => status === 'complete' && (callBack?.(roadDriving, routes), resolve({\n driving,\n routes\n })));\n });\n });\n }\n\n // 其他方法保持类似改造...\n}\n\n// 获取AMap实例(组件内使用)\nconst getAMapInstance = async (options = {}) => {\n if (AMapInstance) return AMapInstance;\n\n // 确保key存在\n if (!AMapKey) {\n try {\n setAMapSecurity();\n } catch (e) {\n throw new Error('请先设置地图Key!');\n }\n }\n const AMapLoader = await __webpack_require__.e(/*! import() */ \"node_modules_amap_amap-jsapi-loader_dist_index_js\").then(__webpack_require__.t.bind(__webpack_require__, /*! @amap/amap-jsapi-loader */ \"./node_modules/@amap/amap-jsapi-loader/dist/index.js\", 23));\n try {\n const AMap = await AMapLoader.load({\n key: AMapKey,\n version: '2.0',\n plugins: ['AMap.Geocoder', 'AMap.PlaceSearch',\n // 搜索\n 'AMap.MouseTool',\n // 鼠标\n 'AMap.ControlBar',\n // 方向盘\n 'AMap.ToolBar',\n // 缩放\n ...(options.plugins || [])]\n });\n AMapInstance = new AMapService(AMap);\n return AMapInstance;\n } catch (e) {\n throw new Error(`高德地图加载失败: ${e.message}`);\n }\n};\n\n// 在 Vue 插件中封装高德地图的初始化和常用方法 \n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n async install(Vue, options = {}) {\n const amap = await getAMapInstance(options);\n const {\n AMap,\n methods,\n layers\n } = amap;\n Vue.prototype.$amap = AMap;\n\n /** 初始化地图 */\n Vue.prototype.$initAMap = (mapOptions, callBack) => {\n const amapInit = amap.initMap(mapOptions.el, mapOptions.options || {});\n /** 兼容之前版本代码 */\n callBack?.(amapInit);\n return amapInit;\n };\n\n /** 地图加载完成 */\n Vue.prototype.$amapBus.$emit('onAMapMounted');\n\n /** 常用覆盖物 */\n Vue.prototype.$amapLayers = {\n ...layers,\n setInfoWindow: layers.setInfoWindow(Vue)\n };\n\n /** 抛出地图常用方法 */\n Vue.prototype.$amapMethods = methods || {};\n }\n});\n\n/** \r\n * 安全获取覆盖物坐标信息 \r\n * @param {AMap.Overlay} overlay 地图覆盖物实例\r\n * @returns {Array<Array<number>>} 坐标点数组\r\n */\nfunction getOverlayPos(overlay) {\n if (!overlay) throw new Error('覆盖物实例不存在');\n try {\n return overlay.type === 'AMap.Marker' ? [overlay.getPosition().lng, overlay.getPosition().lat] : overlay.getPath().map(({\n lng,\n lat\n }) => [lng, lat]);\n } catch (e) {\n console.error('转换失败', e);\n return [];\n }\n}\n\n/**\r\n * 轨迹动画执行器\r\n * @param {AMap.Map} AMapInit 地图实例\r\n * @param {AMap.Marker} animationMarker 动画标记物\r\n * @param {Array<Array<number>>} paths 路径坐标数组\r\n * @param {Object} [options] 动画配置\r\n * @param {Function} [callBack] 动画完成回调\r\n */\nfunction drawMapAnimation(AMapInit, animationMarker, paths, options = {}, callBack) {\n if (!AMapInit || !animationMarker || !paths?.length) {\n return console.error('缺少参数信息');\n }\n AMapInit.plugin('AMap.MoveAnimation', () => {\n const defaultOptions = {\n duration: 500,\n autoRotation: true,\n ...options\n };\n animationMarker.moveAlong(paths, defaultOptions);\n callBack?.(animationMarker);\n });\n}\n\n/**\r\n * 转换导航路线为可绘制路径\r\n * @param {AMap.DrivingRoute} route 导航路线对象\r\n * @returns {{\r\n* path: Array<Array<number>>,\r\n* approachPoints: Array<number>\r\n* }}\r\n*/\nfunction parseRouteToPath(route) {\n if (!route?.steps) return {\n path: [],\n approachPoints: []\n };\n const result = {\n path: [],\n approachPoints: []\n };\n route.steps.forEach((step, stepIndex) => {\n step.path.forEach((point, pointIndex) => {\n result.path.push([point.lng, point.lat]);\n if (step.assistant_action === \"到达途经地\" && pointIndex === step.path.length - 1) {\n result.approachPoints.push(result.path.length - 1);\n }\n });\n });\n return result;\n}\n\n//# sourceURL=webpack://mui/./plugins/method/AMap.js?");
|
|
9037
9026
|
|
|
9038
9027
|
/***/ }),
|
|
9039
9028
|
|
|
@@ -9252,7 +9241,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
9252
9241
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
9253
9242
|
|
|
9254
9243
|
"use strict";
|
|
9255
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);\n// Imports\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".TAntdTags[data-v-8ed8b9b6] {\\n width: 100%;\\n height: auto;\\n cursor: pointer;\\n min-height: 32px;\\n}\\n\", \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-2.use%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
9244
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);\n// Imports\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"/* 布局( 纯为了不想多写一行 */\\n/* 正方体盒子 */\\n/* 滚动条样式 */\\n/* 文字换行省略(默认1行)*/\\n/* flex布局 */\\n/* flex排版方式 */\\n.TAntdTags[data-v-8ed8b9b6] {\\n width: 100%;\\n height: auto;\\n cursor: pointer;\\n min-height: 32px;\\n}\\n.TAntdTags[data-v-8ed8b9b6] .ant-tag {\\n cursor: pointer;\\n display: flex;\\n align-items: center;\\n}\\n.TAntdTags[data-v-8ed8b9b6] .ant-tag span {\\n display: inline-block;\\n max-width: 100px;\\n overflow-x: hidden;\\n text-overflow: -o-ellipsis-lastline;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n display: -webkit-box;\\n -webkit-line-clamp: 1;\\n line-clamp: 1;\\n -webkit-box-orient: vertical;\\n}\\n\", \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://mui/./plugins/lib/form/components/ATagsInput.vue?./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-2.use%5B2%5D!./node_modules/vue-loader/lib/index.js??vue-loader-options");
|
|
9256
9245
|
|
|
9257
9246
|
/***/ }),
|
|
9258
9247
|
|
|
@@ -12142,6 +12131,9 @@ eval("__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modul
|
|
|
12142
12131
|
/******/ return module.exports;
|
|
12143
12132
|
/******/ }
|
|
12144
12133
|
/******/
|
|
12134
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
12135
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
12136
|
+
/******/
|
|
12145
12137
|
/************************************************************************/
|
|
12146
12138
|
/******/ /* webpack/runtime/compat get default export */
|
|
12147
12139
|
/******/ (() => {
|
|
@@ -12155,6 +12147,36 @@ eval("__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modul
|
|
|
12155
12147
|
/******/ };
|
|
12156
12148
|
/******/ })();
|
|
12157
12149
|
/******/
|
|
12150
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
12151
|
+
/******/ (() => {
|
|
12152
|
+
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
|
12153
|
+
/******/ var leafPrototypes;
|
|
12154
|
+
/******/ // create a fake namespace object
|
|
12155
|
+
/******/ // mode & 1: value is a module id, require it
|
|
12156
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
12157
|
+
/******/ // mode & 4: return value when already ns object
|
|
12158
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
12159
|
+
/******/ // mode & 8|1: behave like require
|
|
12160
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
12161
|
+
/******/ if(mode & 1) value = this(value);
|
|
12162
|
+
/******/ if(mode & 8) return value;
|
|
12163
|
+
/******/ if(typeof value === 'object' && value) {
|
|
12164
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
12165
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
12166
|
+
/******/ }
|
|
12167
|
+
/******/ var ns = Object.create(null);
|
|
12168
|
+
/******/ __webpack_require__.r(ns);
|
|
12169
|
+
/******/ var def = {};
|
|
12170
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
12171
|
+
/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
12172
|
+
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
|
12173
|
+
/******/ }
|
|
12174
|
+
/******/ def['default'] = () => (value);
|
|
12175
|
+
/******/ __webpack_require__.d(ns, def);
|
|
12176
|
+
/******/ return ns;
|
|
12177
|
+
/******/ };
|
|
12178
|
+
/******/ })();
|
|
12179
|
+
/******/
|
|
12158
12180
|
/******/ /* webpack/runtime/define property getters */
|
|
12159
12181
|
/******/ (() => {
|
|
12160
12182
|
/******/ // define getter functions for harmony exports
|
|
@@ -12167,6 +12189,28 @@ eval("__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modul
|
|
|
12167
12189
|
/******/ };
|
|
12168
12190
|
/******/ })();
|
|
12169
12191
|
/******/
|
|
12192
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
12193
|
+
/******/ (() => {
|
|
12194
|
+
/******/ __webpack_require__.f = {};
|
|
12195
|
+
/******/ // This file contains only the entry chunk.
|
|
12196
|
+
/******/ // The chunk loading function for additional chunks
|
|
12197
|
+
/******/ __webpack_require__.e = (chunkId) => {
|
|
12198
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
|
|
12199
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
12200
|
+
/******/ return promises;
|
|
12201
|
+
/******/ }, []));
|
|
12202
|
+
/******/ };
|
|
12203
|
+
/******/ })();
|
|
12204
|
+
/******/
|
|
12205
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
12206
|
+
/******/ (() => {
|
|
12207
|
+
/******/ // This function allow to reference async chunks
|
|
12208
|
+
/******/ __webpack_require__.u = (chunkId) => {
|
|
12209
|
+
/******/ // return url for filenames based on template
|
|
12210
|
+
/******/ return "" + chunkId + ".umd.js";
|
|
12211
|
+
/******/ };
|
|
12212
|
+
/******/ })();
|
|
12213
|
+
/******/
|
|
12170
12214
|
/******/ /* webpack/runtime/global */
|
|
12171
12215
|
/******/ (() => {
|
|
12172
12216
|
/******/ __webpack_require__.g = (function() {
|
|
@@ -12184,6 +12228,52 @@ eval("__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modul
|
|
|
12184
12228
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
12185
12229
|
/******/ })();
|
|
12186
12230
|
/******/
|
|
12231
|
+
/******/ /* webpack/runtime/load script */
|
|
12232
|
+
/******/ (() => {
|
|
12233
|
+
/******/ var inProgress = {};
|
|
12234
|
+
/******/ var dataWebpackPrefix = "mui:";
|
|
12235
|
+
/******/ // loadScript function to load a script via script tag
|
|
12236
|
+
/******/ __webpack_require__.l = (url, done, key, chunkId) => {
|
|
12237
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
12238
|
+
/******/ var script, needAttach;
|
|
12239
|
+
/******/ if(key !== undefined) {
|
|
12240
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
12241
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
12242
|
+
/******/ var s = scripts[i];
|
|
12243
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
12244
|
+
/******/ }
|
|
12245
|
+
/******/ }
|
|
12246
|
+
/******/ if(!script) {
|
|
12247
|
+
/******/ needAttach = true;
|
|
12248
|
+
/******/ script = document.createElement('script');
|
|
12249
|
+
/******/
|
|
12250
|
+
/******/ script.charset = 'utf-8';
|
|
12251
|
+
/******/ script.timeout = 120;
|
|
12252
|
+
/******/ if (__webpack_require__.nc) {
|
|
12253
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
12254
|
+
/******/ }
|
|
12255
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
12256
|
+
/******/
|
|
12257
|
+
/******/ script.src = url;
|
|
12258
|
+
/******/ }
|
|
12259
|
+
/******/ inProgress[url] = [done];
|
|
12260
|
+
/******/ var onScriptComplete = (prev, event) => {
|
|
12261
|
+
/******/ // avoid mem leaks in IE.
|
|
12262
|
+
/******/ script.onerror = script.onload = null;
|
|
12263
|
+
/******/ clearTimeout(timeout);
|
|
12264
|
+
/******/ var doneFns = inProgress[url];
|
|
12265
|
+
/******/ delete inProgress[url];
|
|
12266
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
12267
|
+
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
|
|
12268
|
+
/******/ if(prev) return prev(event);
|
|
12269
|
+
/******/ }
|
|
12270
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
12271
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
12272
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
12273
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
12274
|
+
/******/ };
|
|
12275
|
+
/******/ })();
|
|
12276
|
+
/******/
|
|
12187
12277
|
/******/ /* webpack/runtime/make namespace object */
|
|
12188
12278
|
/******/ (() => {
|
|
12189
12279
|
/******/ // define __esModule on exports
|
|
@@ -12204,6 +12294,119 @@ eval("__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modul
|
|
|
12204
12294
|
/******/ };
|
|
12205
12295
|
/******/ })();
|
|
12206
12296
|
/******/
|
|
12297
|
+
/******/ /* webpack/runtime/publicPath */
|
|
12298
|
+
/******/ (() => {
|
|
12299
|
+
/******/ var scriptUrl;
|
|
12300
|
+
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
12301
|
+
/******/ var document = __webpack_require__.g.document;
|
|
12302
|
+
/******/ if (!scriptUrl && document) {
|
|
12303
|
+
/******/ if (document.currentScript)
|
|
12304
|
+
/******/ scriptUrl = document.currentScript.src;
|
|
12305
|
+
/******/ if (!scriptUrl) {
|
|
12306
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
12307
|
+
/******/ if(scripts.length) {
|
|
12308
|
+
/******/ var i = scripts.length - 1;
|
|
12309
|
+
/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
|
|
12310
|
+
/******/ }
|
|
12311
|
+
/******/ }
|
|
12312
|
+
/******/ }
|
|
12313
|
+
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
12314
|
+
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
12315
|
+
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
12316
|
+
/******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
12317
|
+
/******/ __webpack_require__.p = scriptUrl;
|
|
12318
|
+
/******/ })();
|
|
12319
|
+
/******/
|
|
12320
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
12321
|
+
/******/ (() => {
|
|
12322
|
+
/******/ // no baseURI
|
|
12323
|
+
/******/
|
|
12324
|
+
/******/ // object to store loaded and loading chunks
|
|
12325
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
12326
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
12327
|
+
/******/ var installedChunks = {
|
|
12328
|
+
/******/ "index": 0
|
|
12329
|
+
/******/ };
|
|
12330
|
+
/******/
|
|
12331
|
+
/******/ __webpack_require__.f.j = (chunkId, promises) => {
|
|
12332
|
+
/******/ // JSONP chunk loading for javascript
|
|
12333
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
12334
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
12335
|
+
/******/
|
|
12336
|
+
/******/ // a Promise means "currently loading".
|
|
12337
|
+
/******/ if(installedChunkData) {
|
|
12338
|
+
/******/ promises.push(installedChunkData[2]);
|
|
12339
|
+
/******/ } else {
|
|
12340
|
+
/******/ if(true) { // all chunks have JS
|
|
12341
|
+
/******/ // setup Promise in chunk cache
|
|
12342
|
+
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
12343
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
12344
|
+
/******/
|
|
12345
|
+
/******/ // start chunk loading
|
|
12346
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
12347
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
12348
|
+
/******/ var error = new Error();
|
|
12349
|
+
/******/ var loadingEnded = (event) => {
|
|
12350
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
12351
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
12352
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
12353
|
+
/******/ if(installedChunkData) {
|
|
12354
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
12355
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
12356
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
12357
|
+
/******/ error.name = 'ChunkLoadError';
|
|
12358
|
+
/******/ error.type = errorType;
|
|
12359
|
+
/******/ error.request = realSrc;
|
|
12360
|
+
/******/ installedChunkData[1](error);
|
|
12361
|
+
/******/ }
|
|
12362
|
+
/******/ }
|
|
12363
|
+
/******/ };
|
|
12364
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
12365
|
+
/******/ }
|
|
12366
|
+
/******/ }
|
|
12367
|
+
/******/ }
|
|
12368
|
+
/******/ };
|
|
12369
|
+
/******/
|
|
12370
|
+
/******/ // no prefetching
|
|
12371
|
+
/******/
|
|
12372
|
+
/******/ // no preloaded
|
|
12373
|
+
/******/
|
|
12374
|
+
/******/ // no HMR
|
|
12375
|
+
/******/
|
|
12376
|
+
/******/ // no HMR manifest
|
|
12377
|
+
/******/
|
|
12378
|
+
/******/ // no on chunks loaded
|
|
12379
|
+
/******/
|
|
12380
|
+
/******/ // install a JSONP callback for chunk loading
|
|
12381
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
12382
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
12383
|
+
/******/ // add "moreModules" to the modules object,
|
|
12384
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
12385
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
12386
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
12387
|
+
/******/ for(moduleId in moreModules) {
|
|
12388
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
12389
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
12390
|
+
/******/ }
|
|
12391
|
+
/******/ }
|
|
12392
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
12393
|
+
/******/ }
|
|
12394
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
12395
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
12396
|
+
/******/ chunkId = chunkIds[i];
|
|
12397
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
12398
|
+
/******/ installedChunks[chunkId][0]();
|
|
12399
|
+
/******/ }
|
|
12400
|
+
/******/ installedChunks[chunkId] = 0;
|
|
12401
|
+
/******/ }
|
|
12402
|
+
/******/
|
|
12403
|
+
/******/ }
|
|
12404
|
+
/******/
|
|
12405
|
+
/******/ var chunkLoadingGlobal = self["webpackChunkmui"] = self["webpackChunkmui"] || [];
|
|
12406
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
12407
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
12408
|
+
/******/ })();
|
|
12409
|
+
/******/
|
|
12207
12410
|
/******/ /* webpack/runtime/nonce */
|
|
12208
12411
|
/******/ (() => {
|
|
12209
12412
|
/******/ __webpack_require__.nc = undefined;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
4
|
+
* This devtool is neither made for production nor for readable output files.
|
|
5
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
6
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
7
|
+
* or disable the default devtool with "devtool: false".
|
|
8
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
9
|
+
*/
|
|
10
|
+
(self["webpackChunkmui"] = self["webpackChunkmui"] || []).push([["node_modules_amap_amap-jsapi-loader_dist_index_js"],{
|
|
11
|
+
|
|
12
|
+
/***/ "./node_modules/@amap/amap-jsapi-loader/dist/index.js":
|
|
13
|
+
/*!************************************************************!*\
|
|
14
|
+
!*** ./node_modules/@amap/amap-jsapi-loader/dist/index.js ***!
|
|
15
|
+
\************************************************************/
|
|
16
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
17
|
+
|
|
18
|
+
eval("\n\n__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n(function (m, p) {\n true ? module.exports = p() : 0;\n})(this, function () {\n function m(a) {\n var b = [];\n a.AMapUI && b.push(p(a.AMapUI));\n a.Loca && b.push(r(a.Loca));\n return Promise.all(b);\n }\n function p(a) {\n return new Promise(function (h, c) {\n var f = [];\n if (a.plugins) for (var e = 0; e < a.plugins.length; e += 1) -1 == d.AMapUI.plugins.indexOf(a.plugins[e]) && f.push(a.plugins[e]);\n if (g.AMapUI === b.failed) c(\"\\u524d\\u6b21\\u8bf7\\u6c42 AMapUI \\u5931\\u8d25\");else if (g.AMapUI === b.notload) {\n g.AMapUI = b.loading;\n d.AMapUI.version = a.version || d.AMapUI.version;\n e = d.AMapUI.version;\n var l = document.body || document.head,\n k = document.createElement(\"script\");\n k.type = \"text/javascript\";\n k.src = \"https://webapi.amap.com/ui/\" + e + \"/main.js\";\n k.onerror = function (a) {\n g.AMapUI = b.failed;\n c(\"\\u8bf7\\u6c42 AMapUI \\u5931\\u8d25\");\n };\n k.onload = function () {\n g.AMapUI = b.loaded;\n if (f.length) window.AMapUI.loadUI(f, function () {\n for (var a = 0, b = f.length; a < b; a++) {\n var c = f[a].split(\"/\").slice(-1)[0];\n window.AMapUI[c] = arguments[a];\n }\n for (h(); n.AMapUI.length;) n.AMapUI.splice(0, 1)[0]();\n });else for (h(); n.AMapUI.length;) n.AMapUI.splice(0, 1)[0]();\n };\n l.appendChild(k);\n } else g.AMapUI === b.loaded ? a.version && a.version !== d.AMapUI.version ? c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c AMapUI \\u6df7\\u7528\") : f.length ? window.AMapUI.loadUI(f, function () {\n for (var a = 0, b = f.length; a < b; a++) {\n var c = f[a].split(\"/\").slice(-1)[0];\n window.AMapUI[c] = arguments[a];\n }\n h();\n }) : h() : a.version && a.version !== d.AMapUI.version ? c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c AMapUI \\u6df7\\u7528\") : n.AMapUI.push(function (a) {\n a ? c(a) : f.length ? window.AMapUI.loadUI(f, function () {\n for (var a = 0, b = f.length; a < b; a++) {\n var c = f[a].split(\"/\").slice(-1)[0];\n window.AMapUI[c] = arguments[a];\n }\n h();\n }) : h();\n });\n });\n }\n function r(a) {\n return new Promise(function (h, c) {\n if (g.Loca === b.failed) c(\"\\u524d\\u6b21\\u8bf7\\u6c42 Loca \\u5931\\u8d25\");else if (g.Loca === b.notload) {\n g.Loca = b.loading;\n d.Loca.version = a.version || d.Loca.version;\n var f = d.Loca.version,\n e = d.AMap.version.startsWith(\"2\"),\n l = f.startsWith(\"2\");\n if (e && !l || !e && l) c(\"JSAPI \\u4e0e Loca \\u7248\\u672c\\u4e0d\\u5bf9\\u5e94\\uff01\\uff01\");else {\n e = d.key;\n l = document.body || document.head;\n var k = document.createElement(\"script\");\n k.type = \"text/javascript\";\n k.src = \"https://webapi.amap.com/loca?v=\" + f + \"&key=\" + e;\n k.onerror = function (a) {\n g.Loca = b.failed;\n c(\"\\u8bf7\\u6c42 AMapUI \\u5931\\u8d25\");\n };\n k.onload = function () {\n g.Loca = b.loaded;\n for (h(); n.Loca.length;) n.Loca.splice(0, 1)[0]();\n };\n l.appendChild(k);\n }\n } else g.Loca === b.loaded ? a.version && a.version !== d.Loca.version ? c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c Loca \\u6df7\\u7528\") : h() : a.version && a.version !== d.Loca.version ? c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c Loca \\u6df7\\u7528\") : n.Loca.push(function (a) {\n a ? c(a) : c();\n });\n });\n }\n if (!window) throw Error(\"AMap JSAPI can only be used in Browser.\");\n var b;\n (function (a) {\n a.notload = \"notload\";\n a.loading = \"loading\";\n a.loaded = \"loaded\";\n a.failed = \"failed\";\n })(b || (b = {}));\n var d = {\n key: \"\",\n AMap: {\n version: \"1.4.15\",\n plugins: []\n },\n AMapUI: {\n version: \"1.1\",\n plugins: []\n },\n Loca: {\n version: \"1.3.2\"\n }\n },\n g = {\n AMap: b.notload,\n AMapUI: b.notload,\n Loca: b.notload\n },\n n = {\n AMap: [],\n AMapUI: [],\n Loca: []\n },\n q = [],\n t = function (a) {\n \"function\" == typeof a && (g.AMap === b.loaded ? a(window.AMap) : q.push(a));\n };\n return {\n load: function (a) {\n return new Promise(function (h, c) {\n if (g.AMap == b.failed) c(\"\");else if (g.AMap == b.notload) {\n var f = a.key,\n e = a.version,\n l = a.plugins;\n f ? (window.AMap && \"lbs.amap.com\" !== location.host && c(\"\\u7981\\u6b62\\u591a\\u79cdAPI\\u52a0\\u8f7d\\u65b9\\u5f0f\\u6df7\\u7528\"), d.key = f, d.AMap.version = e || d.AMap.version, d.AMap.plugins = l || d.AMap.plugins, g.AMap = b.loading, e = document.body || document.head, window.___onAPILoaded = function (d) {\n delete window.___onAPILoaded;\n if (d) g.AMap = b.failed, c(d);else for (g.AMap = b.loaded, m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c); q.length;) q.splice(0, 1)[0]();\n }, l = document.createElement(\"script\"), l.type = \"text/javascript\", l.src = \"https://webapi.amap.com/maps?callback=___onAPILoaded&v=\" + d.AMap.version + \"&key=\" + f + \"&plugin=\" + d.AMap.plugins.join(\",\"), l.onerror = function (a) {\n g.AMap = b.failed;\n c(a);\n }, e.appendChild(l)) : c(\"\\u8bf7\\u586b\\u5199key\");\n } else if (g.AMap == b.loaded) {\n if (a.key && a.key !== d.key) c(\"\\u591a\\u4e2a\\u4e0d\\u4e00\\u81f4\\u7684 key\");else if (a.version && a.version !== d.AMap.version) c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c JSAPI \\u6df7\\u7528\");else {\n f = [];\n if (a.plugins) for (e = 0; e < a.plugins.length; e += 1) -1 == d.AMap.plugins.indexOf(a.plugins[e]) && f.push(a.plugins[e]);\n if (f.length) window.AMap.plugin(f, function () {\n m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c);\n });else m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c);\n }\n } else if (a.key && a.key !== d.key) c(\"\\u591a\\u4e2a\\u4e0d\\u4e00\\u81f4\\u7684 key\");else if (a.version && a.version !== d.AMap.version) c(\"\\u4e0d\\u5141\\u8bb8\\u591a\\u4e2a\\u7248\\u672c JSAPI \\u6df7\\u7528\");else {\n var k = [];\n if (a.plugins) for (e = 0; e < a.plugins.length; e += 1) -1 == d.AMap.plugins.indexOf(a.plugins[e]) && k.push(a.plugins[e]);\n t(function () {\n if (k.length) window.AMap.plugin(k, function () {\n m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c);\n });else m(a).then(function () {\n h(window.AMap);\n })[\"catch\"](c);\n });\n }\n });\n },\n reset: function () {\n delete window.AMap;\n delete window.AMapUI;\n delete window.Loca;\n d = {\n key: \"\",\n AMap: {\n version: \"1.4.15\",\n plugins: []\n },\n AMapUI: {\n version: \"1.1\",\n plugins: []\n },\n Loca: {\n version: \"1.3.2\"\n }\n };\n g = {\n AMap: b.notload,\n AMapUI: b.notload,\n Loca: b.notload\n };\n n = {\n AMap: [],\n AMapUI: [],\n Loca: []\n };\n }\n };\n});\n\n//# sourceURL=webpack://mui/./node_modules/@amap/amap-jsapi-loader/dist/index.js?");
|
|
19
|
+
|
|
20
|
+
/***/ })
|
|
21
|
+
|
|
22
|
+
}]);
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="ant-input TAntdTags" v-on="$listeners">
|
|
3
|
-
<
|
|
4
|
-
:key="i"
|
|
5
|
-
|
|
3
|
+
<Tooltip
|
|
4
|
+
:key="i"
|
|
5
|
+
:title="child[labelKey]"
|
|
6
6
|
v-for="(child, i) in selectChecked"
|
|
7
|
-
@close="() => tagsClose(child[valueKey])"
|
|
8
7
|
>
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
<Tag
|
|
9
|
+
closable
|
|
10
|
+
@close="() => tagsClose(child[valueKey])"
|
|
11
|
+
>
|
|
12
|
+
<span>{{ child[labelKey] }}</span>
|
|
13
|
+
</Tag>
|
|
14
|
+
</Tooltip>
|
|
11
15
|
<span v-if="!selectChecked.length">请点击进行选择</span>
|
|
12
16
|
</div>
|
|
13
17
|
</template>
|
|
14
18
|
|
|
15
|
-
<script>
|
|
16
|
-
|
|
19
|
+
<script>
|
|
20
|
+
|
|
21
|
+
import { Tag, Tooltip } from 'ant-design-vue'
|
|
17
22
|
|
|
18
23
|
export default {
|
|
19
24
|
name: 'TAntdTags',
|
|
20
|
-
components: { Tag },
|
|
25
|
+
components: { Tag, Tooltip },
|
|
21
26
|
model: {
|
|
22
27
|
prop: 'value',
|
|
23
28
|
event: 'update:tagsInput'
|
|
@@ -66,10 +71,24 @@ export default {
|
|
|
66
71
|
</script>
|
|
67
72
|
|
|
68
73
|
<style lang="less" scoped>
|
|
74
|
+
@import url('../../style/mixins.less');
|
|
69
75
|
.TAntdTags {
|
|
70
76
|
width: 100%;
|
|
71
77
|
height: auto;
|
|
72
|
-
cursor: pointer;
|
|
78
|
+
cursor: pointer;
|
|
73
79
|
min-height: 32px;
|
|
80
|
+
|
|
81
|
+
:deep(.ant-tag) {
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
|
|
86
|
+
span {
|
|
87
|
+
display: inline-block;
|
|
88
|
+
max-width: 100px;
|
|
89
|
+
overflow-x: hidden;
|
|
90
|
+
.ellipsis();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
74
93
|
}
|
|
75
94
|
</style>
|
package/method/AMap.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// amap-plugin.js
|
|
2
|
-
import AMapLoader from '@amap/amap-jsapi-loader'
|
|
2
|
+
// import AMapLoader from '@amap/amap-jsapi-loader'
|
|
3
3
|
|
|
4
4
|
/** 入口文件不同 作用域不同 */
|
|
5
5
|
let AMapKey = null
|
|
@@ -56,6 +56,7 @@ class AMapService {
|
|
|
56
56
|
pitch: 30,
|
|
57
57
|
rotation: -15,
|
|
58
58
|
viewMode: '3D',
|
|
59
|
+
center: [118.868228, 28.892844],
|
|
59
60
|
mapStyle: AMapStyle,
|
|
60
61
|
...options
|
|
61
62
|
})
|
|
@@ -235,6 +236,8 @@ export const getAMapInstance = async (options = {}) => {
|
|
|
235
236
|
}
|
|
236
237
|
}
|
|
237
238
|
|
|
239
|
+
const AMapLoader = await import('@amap/amap-jsapi-loader')
|
|
240
|
+
|
|
238
241
|
try {
|
|
239
242
|
const AMap = await AMapLoader.load({
|
|
240
243
|
key: AMapKey,
|
package/package.json
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="ant-input TAntdTags" v-on="$listeners">
|
|
3
|
-
<
|
|
4
|
-
:key="i"
|
|
5
|
-
|
|
3
|
+
<Tooltip
|
|
4
|
+
:key="i"
|
|
5
|
+
:title="child[labelKey]"
|
|
6
6
|
v-for="(child, i) in selectChecked"
|
|
7
|
-
@close="() => tagsClose(child[valueKey])"
|
|
8
7
|
>
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
<Tag
|
|
9
|
+
closable
|
|
10
|
+
@close="() => tagsClose(child[valueKey])"
|
|
11
|
+
>
|
|
12
|
+
<span>{{ child[labelKey] }}</span>
|
|
13
|
+
</Tag>
|
|
14
|
+
</Tooltip>
|
|
11
15
|
<span v-if="!selectChecked.length">请点击进行选择</span>
|
|
12
16
|
</div>
|
|
13
17
|
</template>
|
|
14
18
|
|
|
15
|
-
<script>
|
|
16
|
-
|
|
19
|
+
<script>
|
|
20
|
+
|
|
21
|
+
import { Tag, Tooltip } from 'ant-design-vue'
|
|
17
22
|
|
|
18
23
|
export default {
|
|
19
24
|
name: 'TAntdTags',
|
|
20
|
-
components: { Tag },
|
|
25
|
+
components: { Tag, Tooltip },
|
|
21
26
|
model: {
|
|
22
27
|
prop: 'value',
|
|
23
28
|
event: 'update:tagsInput'
|
|
@@ -66,10 +71,24 @@ export default {
|
|
|
66
71
|
</script>
|
|
67
72
|
|
|
68
73
|
<style lang="less" scoped>
|
|
74
|
+
@import url('../../style/mixins.less');
|
|
69
75
|
.TAntdTags {
|
|
70
76
|
width: 100%;
|
|
71
77
|
height: auto;
|
|
72
|
-
cursor: pointer;
|
|
78
|
+
cursor: pointer;
|
|
73
79
|
min-height: 32px;
|
|
80
|
+
|
|
81
|
+
:deep(.ant-tag) {
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
|
|
86
|
+
span {
|
|
87
|
+
display: inline-block;
|
|
88
|
+
max-width: 100px;
|
|
89
|
+
overflow-x: hidden;
|
|
90
|
+
.ellipsis();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
74
93
|
}
|
|
75
94
|
</style>
|
package/plugins/method/AMap.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// amap-plugin.js
|
|
2
|
-
import AMapLoader from '@amap/amap-jsapi-loader'
|
|
2
|
+
// import AMapLoader from '@amap/amap-jsapi-loader'
|
|
3
3
|
|
|
4
4
|
/** 入口文件不同 作用域不同 */
|
|
5
5
|
let AMapKey = null
|
|
@@ -56,6 +56,7 @@ class AMapService {
|
|
|
56
56
|
pitch: 30,
|
|
57
57
|
rotation: -15,
|
|
58
58
|
viewMode: '3D',
|
|
59
|
+
center: [118.868228, 28.892844],
|
|
59
60
|
mapStyle: AMapStyle,
|
|
60
61
|
...options
|
|
61
62
|
})
|
|
@@ -235,6 +236,8 @@ export const getAMapInstance = async (options = {}) => {
|
|
|
235
236
|
}
|
|
236
237
|
}
|
|
237
238
|
|
|
239
|
+
const AMapLoader = await import('@amap/amap-jsapi-loader')
|
|
240
|
+
|
|
238
241
|
try {
|
|
239
242
|
const AMap = await AMapLoader.load({
|
|
240
243
|
key: AMapKey,
|