ecinc-cloud-moabase 9.7.4 → 9.7.5
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/lib/ecmoabase.common.js +45 -81
- package/lib/ecmoabase.umd.js +49 -93
- package/lib/ecmoabase.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecmoabase.common.js
CHANGED
|
@@ -1131,7 +1131,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".clendar_out[data-v-41fad3a2]{width:10
|
|
|
1131
1131
|
|
|
1132
1132
|
/***/ }),
|
|
1133
1133
|
|
|
1134
|
-
/***/
|
|
1134
|
+
/***/ 2731:
|
|
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-
|
|
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}", ""]);
|
|
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
|
-
/***/
|
|
25943
|
+
/***/ 2077:
|
|
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__(
|
|
25949
|
+
var content = __webpack_require__(2731);
|
|
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("
|
|
25955
|
+
var update = add("f8dd5fa4", content, true, {"sourceMap":false,"shadowMode":false});
|
|
25956
25956
|
|
|
25957
25957
|
/***/ }),
|
|
25958
25958
|
|
|
@@ -136887,29 +136887,22 @@ 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=
|
|
136891
|
-
var
|
|
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() {
|
|
136892
136892
|
var _vm = this,
|
|
136893
136893
|
_c = _vm._self._c;
|
|
136894
136894
|
return _c('div', {
|
|
136895
136895
|
staticClass: "applet-wrap el-table"
|
|
136896
|
-
}, [
|
|
136897
|
-
tag: "
|
|
136896
|
+
}, [_c(_vm.applet, {
|
|
136897
|
+
tag: "components",
|
|
136898
136898
|
attrs: {
|
|
136899
136899
|
"applet-data": _vm.appletData
|
|
136900
136900
|
}
|
|
136901
|
-
})
|
|
136901
|
+
})], 1);
|
|
136902
136902
|
};
|
|
136903
|
-
var
|
|
136903
|
+
var Appletvue_type_template_id_9bb86398_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);
|
|
136908
136905
|
;// 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;
|
|
136913
136906
|
/* harmony default export */ var Appletvue_type_script_lang_js = ({
|
|
136914
136907
|
name: 'Applet',
|
|
136915
136908
|
components: {},
|
|
@@ -136920,76 +136913,47 @@ var asyncCounter = 0;
|
|
|
136920
136913
|
default: function _default() {
|
|
136921
136914
|
return {};
|
|
136922
136915
|
}
|
|
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
|
-
|
|
136928
|
-
// 这是 Vue 2 异步组件能正确解析的关键:
|
|
136929
|
-
// <component :is="factoryFn"> → Vue 把 factoryFn 当函数式组件处理(错误)
|
|
136930
|
-
// <component :is="'CompName'"> → Vue 从 components 注册表查找,正确识别异步工厂
|
|
136931
|
-
componentName: null
|
|
136927
|
+
applet: null
|
|
136932
136928
|
};
|
|
136933
136929
|
},
|
|
136930
|
+
computed: {},
|
|
136931
|
+
watch: {},
|
|
136934
136932
|
created: function created() {
|
|
136935
136933
|
this.initPortalApplet();
|
|
136936
136934
|
},
|
|
136935
|
+
mounted: function mounted() {},
|
|
136937
136936
|
methods: {
|
|
136938
136937
|
initPortalApplet: function initPortalApplet() {
|
|
136939
|
-
|
|
136940
|
-
|
|
136941
|
-
|
|
136942
|
-
|
|
136943
|
-
|
|
136944
|
-
|
|
136945
|
-
|
|
136946
|
-
|
|
136947
|
-
|
|
136948
|
-
|
|
136949
|
-
|
|
136950
|
-
|
|
136951
|
-
|
|
136952
|
-
|
|
136953
|
-
|
|
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=', '');
|
|
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);
|
|
136958
136953
|
} else {
|
|
136959
|
-
|
|
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;
|
|
136954
|
+
appPath = url;
|
|
136992
136955
|
}
|
|
136956
|
+
this.applet = this.$loadComponent(appPath);
|
|
136993
136957
|
}
|
|
136994
136958
|
},
|
|
136995
136959
|
getQueryVariable: function getQueryVariable(query, variable) {
|
|
@@ -137006,9 +136970,9 @@ var asyncCounter = 0;
|
|
|
137006
136970
|
});
|
|
137007
136971
|
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=script&lang=js
|
|
137008
136972
|
/* harmony default export */ var DragApplet_Appletvue_type_script_lang_js = (Appletvue_type_script_lang_js);
|
|
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=
|
|
137010
|
-
var
|
|
137011
|
-
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=style&index=0&id=
|
|
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
|
|
137012
136976
|
|
|
137013
136977
|
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue
|
|
137014
136978
|
|
|
@@ -137021,11 +136985,11 @@ var Appletvue_type_style_index_0_id_fe319652_prod_scoped_true_lang_scss = __webp
|
|
|
137021
136985
|
|
|
137022
136986
|
var Applet_component = normalizeComponent(
|
|
137023
136987
|
DragApplet_Appletvue_type_script_lang_js,
|
|
137024
|
-
|
|
137025
|
-
|
|
136988
|
+
Appletvue_type_template_id_9bb86398_scoped_true_render,
|
|
136989
|
+
Appletvue_type_template_id_9bb86398_scoped_true_staticRenderFns,
|
|
137026
136990
|
false,
|
|
137027
136991
|
null,
|
|
137028
|
-
"
|
|
136992
|
+
"9bb86398",
|
|
137029
136993
|
null
|
|
137030
136994
|
|
|
137031
136995
|
)
|
package/lib/ecmoabase.umd.js
CHANGED
|
@@ -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();
|
|
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();
|
|
8
8
|
else
|
|
9
|
-
root["ecmoabase"] = factory(
|
|
10
|
-
})((typeof self !== 'undefined' ? self : this), function(
|
|
9
|
+
root["ecmoabase"] = factory();
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function() {
|
|
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
|
-
/***/
|
|
1144
|
+
/***/ 8745:
|
|
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-
|
|
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}", ""]);
|
|
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
|
-
/***/
|
|
25953
|
+
/***/ 3674:
|
|
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__(
|
|
25959
|
+
var content = __webpack_require__(8745);
|
|
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("
|
|
25965
|
+
var update = add("865bc1a4", content, true, {"sourceMap":false,"shadowMode":false});
|
|
25966
25966
|
|
|
25967
25967
|
/***/ }),
|
|
25968
25968
|
|
|
@@ -26534,14 +26534,6 @@ 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
|
-
|
|
26545
26537
|
/***/ }),
|
|
26546
26538
|
|
|
26547
26539
|
/***/ 2634:
|
|
@@ -136905,29 +136897,22 @@ var DragAppletvue_type_template_id_cd089ff2_scoped_true_render = function render
|
|
|
136905
136897
|
};
|
|
136906
136898
|
var DragAppletvue_type_template_id_cd089ff2_scoped_true_staticRenderFns = [];
|
|
136907
136899
|
|
|
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=
|
|
136909
|
-
var
|
|
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() {
|
|
136910
136902
|
var _vm = this,
|
|
136911
136903
|
_c = _vm._self._c;
|
|
136912
136904
|
return _c('div', {
|
|
136913
136905
|
staticClass: "applet-wrap el-table"
|
|
136914
|
-
}, [
|
|
136915
|
-
tag: "
|
|
136906
|
+
}, [_c(_vm.applet, {
|
|
136907
|
+
tag: "components",
|
|
136916
136908
|
attrs: {
|
|
136917
136909
|
"applet-data": _vm.appletData
|
|
136918
136910
|
}
|
|
136919
|
-
})
|
|
136911
|
+
})], 1);
|
|
136920
136912
|
};
|
|
136921
|
-
var
|
|
136913
|
+
var Appletvue_type_template_id_9bb86398_scoped_true_staticRenderFns = [];
|
|
136922
136914
|
|
|
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_);
|
|
136926
136915
|
;// 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;
|
|
136931
136916
|
/* harmony default export */ var Appletvue_type_script_lang_js = ({
|
|
136932
136917
|
name: 'Applet',
|
|
136933
136918
|
components: {},
|
|
@@ -136938,76 +136923,47 @@ var asyncCounter = 0;
|
|
|
136938
136923
|
default: function _default() {
|
|
136939
136924
|
return {};
|
|
136940
136925
|
}
|
|
136926
|
+
},
|
|
136927
|
+
allcomps: {
|
|
136928
|
+
type: Object,
|
|
136929
|
+
required: true,
|
|
136930
|
+
default: function _default() {
|
|
136931
|
+
return {};
|
|
136932
|
+
}
|
|
136941
136933
|
}
|
|
136942
136934
|
},
|
|
136943
136935
|
data: function data() {
|
|
136944
136936
|
return {
|
|
136945
|
-
|
|
136946
|
-
// 这是 Vue 2 异步组件能正确解析的关键:
|
|
136947
|
-
// <component :is="factoryFn"> → Vue 把 factoryFn 当函数式组件处理(错误)
|
|
136948
|
-
// <component :is="'CompName'"> → Vue 从 components 注册表查找,正确识别异步工厂
|
|
136949
|
-
componentName: null
|
|
136937
|
+
applet: null
|
|
136950
136938
|
};
|
|
136951
136939
|
},
|
|
136940
|
+
computed: {},
|
|
136941
|
+
watch: {},
|
|
136952
136942
|
created: function created() {
|
|
136953
136943
|
this.initPortalApplet();
|
|
136954
136944
|
},
|
|
136945
|
+
mounted: function mounted() {},
|
|
136955
136946
|
methods: {
|
|
136956
136947
|
initPortalApplet: function initPortalApplet() {
|
|
136957
|
-
|
|
136958
|
-
|
|
136959
|
-
|
|
136960
|
-
|
|
136961
|
-
|
|
136962
|
-
|
|
136963
|
-
|
|
136964
|
-
|
|
136965
|
-
|
|
136966
|
-
|
|
136967
|
-
|
|
136968
|
-
|
|
136969
|
-
|
|
136970
|
-
|
|
136971
|
-
|
|
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=', '');
|
|
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);
|
|
136976
136963
|
} else {
|
|
136977
|
-
|
|
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;
|
|
136964
|
+
appPath = url;
|
|
137010
136965
|
}
|
|
136966
|
+
this.applet = this.$loadComponent(appPath);
|
|
137011
136967
|
}
|
|
137012
136968
|
},
|
|
137013
136969
|
getQueryVariable: function getQueryVariable(query, variable) {
|
|
@@ -137024,9 +136980,9 @@ var asyncCounter = 0;
|
|
|
137024
136980
|
});
|
|
137025
136981
|
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=script&lang=js
|
|
137026
136982
|
/* harmony default export */ var DragApplet_Appletvue_type_script_lang_js = (Appletvue_type_script_lang_js);
|
|
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=
|
|
137028
|
-
var
|
|
137029
|
-
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue?vue&type=style&index=0&id=
|
|
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
|
|
137030
136986
|
|
|
137031
136987
|
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/DragApplet/Applet.vue
|
|
137032
136988
|
|
|
@@ -137039,11 +136995,11 @@ var Appletvue_type_style_index_0_id_fe319652_prod_scoped_true_lang_scss = __webp
|
|
|
137039
136995
|
|
|
137040
136996
|
var Applet_component = normalizeComponent(
|
|
137041
136997
|
DragApplet_Appletvue_type_script_lang_js,
|
|
137042
|
-
|
|
137043
|
-
|
|
136998
|
+
Appletvue_type_template_id_9bb86398_scoped_true_render,
|
|
136999
|
+
Appletvue_type_template_id_9bb86398_scoped_true_staticRenderFns,
|
|
137044
137000
|
false,
|
|
137045
137001
|
null,
|
|
137046
|
-
"
|
|
137002
|
+
"9bb86398",
|
|
137047
137003
|
null
|
|
137048
137004
|
|
|
137049
137005
|
)
|