ecinc-cloud-moabase 9.7.3 → 9.7.4

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.
@@ -1131,7 +1131,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".clendar_out[data-v-41fad3a2]{width:10
1131
1131
 
1132
1132
  /***/ }),
1133
1133
 
1134
- /***/ 2731:
1134
+ /***/ 3581:
1135
1135
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1136
1136
 
1137
1137
  "use strict";
@@ -1145,7 +1145,7 @@ __webpack_require__.r(__webpack_exports__);
1145
1145
 
1146
1146
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
1147
1147
  // Module
1148
- ___CSS_LOADER_EXPORT___.push([module.id, ".applet-wrap[data-v-9bb86398]{width:100%;height:100%}[data-v-9bb86398] .el-table--border:after,[data-v-9bb86398] .el-table:before{background-color:#fff;border:none!important}[data-v-9bb86398] .el-table--border{background-color:#fff!important;border-color:#fff!important}", ""]);
1148
+ ___CSS_LOADER_EXPORT___.push([module.id, ".applet-wrap[data-v-fe319652]{width:100%;height:100%}[data-v-fe319652] .el-table--border:after,[data-v-fe319652] .el-table:before{background-color:#fff;border:none!important}[data-v-fe319652] .el-table--border{background-color:#fff!important;border-color:#fff!important}", ""]);
1149
1149
  // Exports
1150
1150
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
1151
1151
 
@@ -25940,19 +25940,19 @@ var update = add("e40d2a08", content, true, {"sourceMap":false,"shadowMode":fals
25940
25940
 
25941
25941
  /***/ }),
25942
25942
 
25943
- /***/ 2077:
25943
+ /***/ 4991:
25944
25944
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
25945
25945
 
25946
25946
  // style-loader: Adds some css to the DOM by adding a <style> tag
25947
25947
 
25948
25948
  // load the styles
25949
- var content = __webpack_require__(2731);
25949
+ var content = __webpack_require__(3581);
25950
25950
  if(content.__esModule) content = content.default;
25951
25951
  if(typeof content === 'string') content = [[module.id, content, '']];
25952
25952
  if(content.locals) module.exports = content.locals;
25953
25953
  // add the styles to the DOM
25954
25954
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
25955
- var update = add("f8dd5fa4", content, true, {"sourceMap":false,"shadowMode":false});
25955
+ var update = add("664ab56c", content, true, {"sourceMap":false,"shadowMode":false});
25956
25956
 
25957
25957
  /***/ }),
25958
25958
 
@@ -136887,22 +136887,29 @@ var DragAppletvue_type_template_id_cd089ff2_scoped_true_render = function render
136887
136887
  };
136888
136888
  var DragAppletvue_type_template_id_cd089ff2_scoped_true_staticRenderFns = [];
136889
136889
 
136890
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=template&id=9bb86398&scoped=true
136891
- var Appletvue_type_template_id_9bb86398_scoped_true_render = function render() {
136890
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=template&id=fe319652&scoped=true
136891
+ var Appletvue_type_template_id_fe319652_scoped_true_render = function render() {
136892
136892
  var _vm = this,
136893
136893
  _c = _vm._self._c;
136894
136894
  return _c('div', {
136895
136895
  staticClass: "applet-wrap el-table"
136896
- }, [_c(_vm.applet, {
136897
- tag: "components",
136896
+ }, [_vm.componentName ? _c(_vm.componentName, {
136897
+ tag: "component",
136898
136898
  attrs: {
136899
136899
  "applet-data": _vm.appletData
136900
136900
  }
136901
- })], 1);
136901
+ }) : _vm._e()], 1);
136902
136902
  };
136903
- var Appletvue_type_template_id_9bb86398_scoped_true_staticRenderFns = [];
136903
+ var Appletvue_type_template_id_fe319652_scoped_true_staticRenderFns = [];
136904
136904
 
136905
+ ;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
136906
+ var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
136907
+ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
136905
136908
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=script&lang=js
136909
+
136910
+
136911
+ // 计数器,确保同一组件名多次注册时不冲突
136912
+ var asyncCounter = 0;
136906
136913
  /* harmony default export */ var Appletvue_type_script_lang_js = ({
136907
136914
  name: 'Applet',
136908
136915
  components: {},
@@ -136913,47 +136920,76 @@ var Appletvue_type_template_id_9bb86398_scoped_true_staticRenderFns = [];
136913
136920
  default: function _default() {
136914
136921
  return {};
136915
136922
  }
136916
- },
136917
- allcomps: {
136918
- type: Object,
136919
- required: true,
136920
- default: function _default() {
136921
- return {};
136922
- }
136923
136923
  }
136924
136924
  },
136925
136925
  data: function data() {
136926
136926
  return {
136927
- applet: null
136927
+ // 使用字符串组件名引用,而非直接赋值组件对象/工厂函数
136928
+ // 这是 Vue 2 异步组件能正确解析的关键:
136929
+ // <component :is="factoryFn"> → Vue 把 factoryFn 当函数式组件处理(错误)
136930
+ // <component :is="'CompName'"> → Vue 从 components 注册表查找,正确识别异步工厂
136931
+ componentName: null
136928
136932
  };
136929
136933
  },
136930
- computed: {},
136931
- watch: {},
136932
136934
  created: function created() {
136933
136935
  this.initPortalApplet();
136934
136936
  },
136935
- mounted: function mounted() {},
136936
136937
  methods: {
136937
136938
  initPortalApplet: function initPortalApplet() {
136938
- if (!this.appletData.url || this.appletData.url.indexOf('@/') !== 0) {
136939
- this.applet = this.allcomps[this.appletData.code];
136940
- } else {
136941
- var url = this.appletData.url;
136942
- var index = url.lastIndexOf('/?');
136943
- var appPath = null;
136944
- if (index !== -1) {
136945
- var str = url.substring(index + 1, url.length);
136946
- var searchIndex = str.indexOf('&');
136947
- if (searchIndex === -1) {
136948
- this.searchType = url.substring(index + 1, url.length).replace('?type=', '');
136949
- } else {
136950
- this.searchType = this.getQueryVariable(str.replace('?', ''), 'type');
136951
- }
136952
- appPath = url.substring(0, index);
136939
+ var url = this.appletData.url || '';
136940
+ var code = this.appletData.code || '';
136941
+
136942
+ // ========== 路径1: 无 URL 或非 @/、#/ 开头 → 按 code 从全局组件查找 ==========
136943
+ if (!url || url.indexOf('@/') !== 0 && url.indexOf('#/') !== 0) {
136944
+ if (code && (external_commonjs_vue_commonjs2_vue_root_Vue_default()).options.components[code]) {
136945
+ this.componentName = code;
136946
+ }
136947
+ return;
136948
+ }
136949
+
136950
+ // ========== 路径2: 解析 URL,提取路径和查询参数 ==========
136951
+ var appPath = url;
136952
+ var queryIndex = url.lastIndexOf('/?');
136953
+ if (queryIndex !== -1) {
136954
+ var str = url.substring(queryIndex + 1);
136955
+ var searchIndex = str.indexOf('&');
136956
+ if (searchIndex === -1) {
136957
+ this.searchType = url.substring(queryIndex + 1).replace('?type=', '');
136953
136958
  } else {
136954
- appPath = url;
136959
+ this.searchType = this.getQueryVariable(str.replace('?', ''), 'type');
136960
+ }
136961
+ appPath = url.substring(0, queryIndex);
136962
+ }
136963
+
136964
+ // ========== 路径3: @/ 开头 → 优先全局组件,否则异步加载 ==========
136965
+ if (url.indexOf('@/') === 0) {
136966
+ // 从路径提取组件名(如 @/mapp/desktop/workTodo → workTodo)
136967
+ var baseName = appPath.substring(appPath.lastIndexOf('/') + 1).split('.')[0].split('?')[0];
136968
+
136969
+ // 3a. 已全局注册(含同步/异步),直接用字符串名引用
136970
+ if ((external_commonjs_vue_commonjs2_vue_root_Vue_default()).options.components[baseName]) {
136971
+ this.componentName = baseName;
136972
+ return;
136973
+ }
136974
+
136975
+ // 3b. 未全局注册 → 通过 $loadComponent 获取工厂,注册为本地异步组件
136976
+ var factory = this.$loadComponent(appPath);
136977
+ if (factory) {
136978
+ var localName = 'AsyncApplet_' + baseName + '_' + ++asyncCounter;
136979
+ this.$options.components[localName] = factory;
136980
+ this.componentName = localName;
136981
+ }
136982
+ return;
136983
+ }
136984
+
136985
+ // ========== 路径4: #/dcontent/ 开头 → HTTP 远程组件 ==========
136986
+ if (url.indexOf('#/') === 0) {
136987
+ var _factory = this.$loadComponent(appPath);
136988
+ if (_factory) {
136989
+ var _localName = 'HttpApplet_' + ++asyncCounter;
136990
+ this.$options.components[_localName] = _factory;
136991
+ this.componentName = _localName;
136955
136992
  }
136956
- this.applet = this.$loadComponent(appPath);
136957
136993
  }
136958
136994
  },
136959
136995
  getQueryVariable: function getQueryVariable(query, variable) {
@@ -136970,9 +137006,9 @@ var Appletvue_type_template_id_9bb86398_scoped_true_staticRenderFns = [];
136970
137006
  });
136971
137007
  ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=script&lang=js
136972
137008
  /* harmony default export */ var DragApplet_Appletvue_type_script_lang_js = (Appletvue_type_script_lang_js);
136973
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=style&index=0&id=9bb86398&prod&scoped=true&lang=scss
136974
- var Appletvue_type_style_index_0_id_9bb86398_prod_scoped_true_lang_scss = __webpack_require__(2077);
136975
- ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=style&index=0&id=9bb86398&prod&scoped=true&lang=scss
137009
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=style&index=0&id=fe319652&prod&scoped=true&lang=scss
137010
+ var Appletvue_type_style_index_0_id_fe319652_prod_scoped_true_lang_scss = __webpack_require__(4991);
137011
+ ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=style&index=0&id=fe319652&prod&scoped=true&lang=scss
136976
137012
 
136977
137013
  ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue
136978
137014
 
@@ -136985,11 +137021,11 @@ var Appletvue_type_style_index_0_id_9bb86398_prod_scoped_true_lang_scss = __webp
136985
137021
 
136986
137022
  var Applet_component = normalizeComponent(
136987
137023
  DragApplet_Appletvue_type_script_lang_js,
136988
- Appletvue_type_template_id_9bb86398_scoped_true_render,
136989
- Appletvue_type_template_id_9bb86398_scoped_true_staticRenderFns,
137024
+ Appletvue_type_template_id_fe319652_scoped_true_render,
137025
+ Appletvue_type_template_id_fe319652_scoped_true_staticRenderFns,
136990
137026
  false,
136991
137027
  null,
136992
- "9bb86398",
137028
+ "fe319652",
136993
137029
  null
136994
137030
 
136995
137031
  )
@@ -1,13 +1,13 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
3
+ module.exports = factory(require("vue"));
4
4
  else if(typeof define === 'function' && define.amd)
5
5
  define([], factory);
6
6
  else if(typeof exports === 'object')
7
- exports["ecmoabase"] = factory();
7
+ exports["ecmoabase"] = factory(require("vue"));
8
8
  else
9
- root["ecmoabase"] = factory();
10
- })((typeof self !== 'undefined' ? self : this), function() {
9
+ root["ecmoabase"] = factory(root["Vue"]);
10
+ })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__9274__) {
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
@@ -1141,7 +1141,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".clendar_out[data-v-41fad3a2]{width:10
1141
1141
 
1142
1142
  /***/ }),
1143
1143
 
1144
- /***/ 8745:
1144
+ /***/ 2131:
1145
1145
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1146
1146
 
1147
1147
  "use strict";
@@ -1155,7 +1155,7 @@ __webpack_require__.r(__webpack_exports__);
1155
1155
 
1156
1156
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
1157
1157
  // Module
1158
- ___CSS_LOADER_EXPORT___.push([module.id, ".applet-wrap[data-v-9bb86398]{width:100%;height:100%}[data-v-9bb86398] .el-table--border:after,[data-v-9bb86398] .el-table:before{background-color:#fff;border:none!important}[data-v-9bb86398] .el-table--border{background-color:#fff!important;border-color:#fff!important}", ""]);
1158
+ ___CSS_LOADER_EXPORT___.push([module.id, ".applet-wrap[data-v-fe319652]{width:100%;height:100%}[data-v-fe319652] .el-table--border:after,[data-v-fe319652] .el-table:before{background-color:#fff;border:none!important}[data-v-fe319652] .el-table--border{background-color:#fff!important;border-color:#fff!important}", ""]);
1159
1159
  // Exports
1160
1160
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
1161
1161
 
@@ -25950,19 +25950,19 @@ var update = add("6df9b9fc", content, true, {"sourceMap":false,"shadowMode":fals
25950
25950
 
25951
25951
  /***/ }),
25952
25952
 
25953
- /***/ 3674:
25953
+ /***/ 8912:
25954
25954
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
25955
25955
 
25956
25956
  // style-loader: Adds some css to the DOM by adding a <style> tag
25957
25957
 
25958
25958
  // load the styles
25959
- var content = __webpack_require__(8745);
25959
+ var content = __webpack_require__(2131);
25960
25960
  if(content.__esModule) content = content.default;
25961
25961
  if(typeof content === 'string') content = [[module.id, content, '']];
25962
25962
  if(content.locals) module.exports = content.locals;
25963
25963
  // add the styles to the DOM
25964
25964
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
25965
- var update = add("865bc1a4", content, true, {"sourceMap":false,"shadowMode":false});
25965
+ var update = add("061b744a", content, true, {"sourceMap":false,"shadowMode":false});
25966
25966
 
25967
25967
  /***/ }),
25968
25968
 
@@ -26534,6 +26534,14 @@ function applyToTag (styleElement, obj) {
26534
26534
  }
26535
26535
 
26536
26536
 
26537
+ /***/ }),
26538
+
26539
+ /***/ 9274:
26540
+ /***/ (function(module) {
26541
+
26542
+ "use strict";
26543
+ module.exports = __WEBPACK_EXTERNAL_MODULE__9274__;
26544
+
26537
26545
  /***/ }),
26538
26546
 
26539
26547
  /***/ 2634:
@@ -136897,22 +136905,29 @@ var DragAppletvue_type_template_id_cd089ff2_scoped_true_render = function render
136897
136905
  };
136898
136906
  var DragAppletvue_type_template_id_cd089ff2_scoped_true_staticRenderFns = [];
136899
136907
 
136900
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=template&id=9bb86398&scoped=true
136901
- var Appletvue_type_template_id_9bb86398_scoped_true_render = function render() {
136908
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=template&id=fe319652&scoped=true
136909
+ var Appletvue_type_template_id_fe319652_scoped_true_render = function render() {
136902
136910
  var _vm = this,
136903
136911
  _c = _vm._self._c;
136904
136912
  return _c('div', {
136905
136913
  staticClass: "applet-wrap el-table"
136906
- }, [_c(_vm.applet, {
136907
- tag: "components",
136914
+ }, [_vm.componentName ? _c(_vm.componentName, {
136915
+ tag: "component",
136908
136916
  attrs: {
136909
136917
  "applet-data": _vm.appletData
136910
136918
  }
136911
- })], 1);
136919
+ }) : _vm._e()], 1);
136912
136920
  };
136913
- var Appletvue_type_template_id_9bb86398_scoped_true_staticRenderFns = [];
136921
+ var Appletvue_type_template_id_fe319652_scoped_true_staticRenderFns = [];
136914
136922
 
136923
+ // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
136924
+ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
136925
+ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
136915
136926
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=script&lang=js
136927
+
136928
+
136929
+ // 计数器,确保同一组件名多次注册时不冲突
136930
+ var asyncCounter = 0;
136916
136931
  /* harmony default export */ var Appletvue_type_script_lang_js = ({
136917
136932
  name: 'Applet',
136918
136933
  components: {},
@@ -136923,47 +136938,76 @@ var Appletvue_type_template_id_9bb86398_scoped_true_staticRenderFns = [];
136923
136938
  default: function _default() {
136924
136939
  return {};
136925
136940
  }
136926
- },
136927
- allcomps: {
136928
- type: Object,
136929
- required: true,
136930
- default: function _default() {
136931
- return {};
136932
- }
136933
136941
  }
136934
136942
  },
136935
136943
  data: function data() {
136936
136944
  return {
136937
- applet: null
136945
+ // 使用字符串组件名引用,而非直接赋值组件对象/工厂函数
136946
+ // 这是 Vue 2 异步组件能正确解析的关键:
136947
+ // <component :is="factoryFn"> → Vue 把 factoryFn 当函数式组件处理(错误)
136948
+ // <component :is="'CompName'"> → Vue 从 components 注册表查找,正确识别异步工厂
136949
+ componentName: null
136938
136950
  };
136939
136951
  },
136940
- computed: {},
136941
- watch: {},
136942
136952
  created: function created() {
136943
136953
  this.initPortalApplet();
136944
136954
  },
136945
- mounted: function mounted() {},
136946
136955
  methods: {
136947
136956
  initPortalApplet: function initPortalApplet() {
136948
- if (!this.appletData.url || this.appletData.url.indexOf('@/') !== 0) {
136949
- this.applet = this.allcomps[this.appletData.code];
136950
- } else {
136951
- var url = this.appletData.url;
136952
- var index = url.lastIndexOf('/?');
136953
- var appPath = null;
136954
- if (index !== -1) {
136955
- var str = url.substring(index + 1, url.length);
136956
- var searchIndex = str.indexOf('&');
136957
- if (searchIndex === -1) {
136958
- this.searchType = url.substring(index + 1, url.length).replace('?type=', '');
136959
- } else {
136960
- this.searchType = this.getQueryVariable(str.replace('?', ''), 'type');
136961
- }
136962
- appPath = url.substring(0, index);
136957
+ var url = this.appletData.url || '';
136958
+ var code = this.appletData.code || '';
136959
+
136960
+ // ========== 路径1: 无 URL 或非 @/、#/ 开头 → 按 code 从全局组件查找 ==========
136961
+ if (!url || url.indexOf('@/') !== 0 && url.indexOf('#/') !== 0) {
136962
+ if (code && (external_commonjs_vue_commonjs2_vue_root_Vue_default()).options.components[code]) {
136963
+ this.componentName = code;
136964
+ }
136965
+ return;
136966
+ }
136967
+
136968
+ // ========== 路径2: 解析 URL,提取路径和查询参数 ==========
136969
+ var appPath = url;
136970
+ var queryIndex = url.lastIndexOf('/?');
136971
+ if (queryIndex !== -1) {
136972
+ var str = url.substring(queryIndex + 1);
136973
+ var searchIndex = str.indexOf('&');
136974
+ if (searchIndex === -1) {
136975
+ this.searchType = url.substring(queryIndex + 1).replace('?type=', '');
136963
136976
  } else {
136964
- appPath = url;
136977
+ this.searchType = this.getQueryVariable(str.replace('?', ''), 'type');
136978
+ }
136979
+ appPath = url.substring(0, queryIndex);
136980
+ }
136981
+
136982
+ // ========== 路径3: @/ 开头 → 优先全局组件,否则异步加载 ==========
136983
+ if (url.indexOf('@/') === 0) {
136984
+ // 从路径提取组件名(如 @/mapp/desktop/workTodo → workTodo)
136985
+ var baseName = appPath.substring(appPath.lastIndexOf('/') + 1).split('.')[0].split('?')[0];
136986
+
136987
+ // 3a. 已全局注册(含同步/异步),直接用字符串名引用
136988
+ if ((external_commonjs_vue_commonjs2_vue_root_Vue_default()).options.components[baseName]) {
136989
+ this.componentName = baseName;
136990
+ return;
136991
+ }
136992
+
136993
+ // 3b. 未全局注册 → 通过 $loadComponent 获取工厂,注册为本地异步组件
136994
+ var factory = this.$loadComponent(appPath);
136995
+ if (factory) {
136996
+ var localName = 'AsyncApplet_' + baseName + '_' + ++asyncCounter;
136997
+ this.$options.components[localName] = factory;
136998
+ this.componentName = localName;
136999
+ }
137000
+ return;
137001
+ }
137002
+
137003
+ // ========== 路径4: #/dcontent/ 开头 → HTTP 远程组件 ==========
137004
+ if (url.indexOf('#/') === 0) {
137005
+ var _factory = this.$loadComponent(appPath);
137006
+ if (_factory) {
137007
+ var _localName = 'HttpApplet_' + ++asyncCounter;
137008
+ this.$options.components[_localName] = _factory;
137009
+ this.componentName = _localName;
136965
137010
  }
136966
- this.applet = this.$loadComponent(appPath);
136967
137011
  }
136968
137012
  },
136969
137013
  getQueryVariable: function getQueryVariable(query, variable) {
@@ -136980,9 +137024,9 @@ var Appletvue_type_template_id_9bb86398_scoped_true_staticRenderFns = [];
136980
137024
  });
136981
137025
  ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=script&lang=js
136982
137026
  /* harmony default export */ var DragApplet_Appletvue_type_script_lang_js = (Appletvue_type_script_lang_js);
136983
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=style&index=0&id=9bb86398&prod&scoped=true&lang=scss
136984
- var Appletvue_type_style_index_0_id_9bb86398_prod_scoped_true_lang_scss = __webpack_require__(3674);
136985
- ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=style&index=0&id=9bb86398&prod&scoped=true&lang=scss
137027
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=style&index=0&id=fe319652&prod&scoped=true&lang=scss
137028
+ var Appletvue_type_style_index_0_id_fe319652_prod_scoped_true_lang_scss = __webpack_require__(8912);
137029
+ ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=style&index=0&id=fe319652&prod&scoped=true&lang=scss
136986
137030
 
136987
137031
  ;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue
136988
137032
 
@@ -136995,11 +137039,11 @@ var Appletvue_type_style_index_0_id_9bb86398_prod_scoped_true_lang_scss = __webp
136995
137039
 
136996
137040
  var Applet_component = normalizeComponent(
136997
137041
  DragApplet_Appletvue_type_script_lang_js,
136998
- Appletvue_type_template_id_9bb86398_scoped_true_render,
136999
- Appletvue_type_template_id_9bb86398_scoped_true_staticRenderFns,
137042
+ Appletvue_type_template_id_fe319652_scoped_true_render,
137043
+ Appletvue_type_template_id_fe319652_scoped_true_staticRenderFns,
137000
137044
  false,
137001
137045
  null,
137002
- "9bb86398",
137046
+ "fe319652",
137003
137047
  null
137004
137048
 
137005
137049
  )