eoss-ui 0.8.21 → 0.8.22

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.
Files changed (70) hide show
  1. package/lib/eoss-ui.common.js +158 -20
  2. package/lib/index.js +1 -1
  3. package/lib/main.js +157 -19
  4. package/package.json +1 -1
  5. package/packages/main/src/simplicity/index.vue +66 -4
  6. package/packages/main/src/simplicityTop/index.vue +65 -3
  7. package/packages/theme-chalk/lib/base.css +1 -0
  8. package/packages/theme-chalk/lib/button-group.css +1 -0
  9. package/packages/theme-chalk/lib/button.css +1 -0
  10. package/packages/theme-chalk/lib/calendar.css +1 -0
  11. package/packages/theme-chalk/lib/calogin.css +0 -0
  12. package/packages/theme-chalk/lib/card.css +1 -0
  13. package/packages/theme-chalk/lib/cascader.css +0 -0
  14. package/packages/theme-chalk/lib/checkbox-group.css +1 -0
  15. package/packages/theme-chalk/lib/clients.css +1 -0
  16. package/packages/theme-chalk/lib/data-table-form.css +1 -0
  17. package/packages/theme-chalk/lib/data-table.css +1 -0
  18. package/packages/theme-chalk/lib/date-picker.css +1 -0
  19. package/packages/theme-chalk/lib/dialog.css +1 -0
  20. package/packages/theme-chalk/lib/enable-drag.css +1 -0
  21. package/packages/theme-chalk/lib/enterprise.css +1 -0
  22. package/packages/theme-chalk/lib/error-page.css +1 -0
  23. package/packages/theme-chalk/lib/flow-chart.css +0 -0
  24. package/packages/theme-chalk/lib/flow-group.css +1 -0
  25. package/packages/theme-chalk/lib/flow-list.css +1 -0
  26. package/packages/theme-chalk/lib/flow.css +1 -0
  27. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  28. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  29. package/packages/theme-chalk/lib/form.css +1 -0
  30. package/packages/theme-chalk/lib/handle-user.css +1 -0
  31. package/packages/theme-chalk/lib/handler.css +1 -0
  32. package/packages/theme-chalk/lib/icon.css +1 -0
  33. package/packages/theme-chalk/lib/icons.css +1 -0
  34. package/packages/theme-chalk/lib/index.css +1 -0
  35. package/packages/theme-chalk/lib/input-number.css +0 -0
  36. package/packages/theme-chalk/lib/input.css +1 -0
  37. package/packages/theme-chalk/lib/label.css +1 -0
  38. package/packages/theme-chalk/lib/layout.css +1 -0
  39. package/packages/theme-chalk/lib/login.css +1 -0
  40. package/packages/theme-chalk/lib/main.css +1 -0
  41. package/packages/theme-chalk/lib/menu.css +1 -0
  42. package/packages/theme-chalk/lib/nav.css +1 -0
  43. package/packages/theme-chalk/lib/notify.css +0 -0
  44. package/packages/theme-chalk/lib/page.css +1 -0
  45. package/packages/theme-chalk/lib/pagination.css +1 -0
  46. package/packages/theme-chalk/lib/player.css +1 -0
  47. package/packages/theme-chalk/lib/qr-code.css +1 -0
  48. package/packages/theme-chalk/lib/radio-group.css +1 -0
  49. package/packages/theme-chalk/lib/retrial-auth.css +1 -0
  50. package/packages/theme-chalk/lib/select-ganged.css +1 -0
  51. package/packages/theme-chalk/lib/select.css +1 -0
  52. package/packages/theme-chalk/lib/selector-panel.css +1 -0
  53. package/packages/theme-chalk/lib/selector.css +1 -0
  54. package/packages/theme-chalk/lib/simplicity-top.css +1 -0
  55. package/packages/theme-chalk/lib/simplicity.css +1 -0
  56. package/packages/theme-chalk/lib/sizer.css +1 -0
  57. package/packages/theme-chalk/lib/steps.css +1 -0
  58. package/packages/theme-chalk/lib/switch.css +1 -0
  59. package/packages/theme-chalk/lib/table-form.css +0 -0
  60. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  61. package/packages/theme-chalk/lib/tabs.css +1 -0
  62. package/packages/theme-chalk/lib/tips.css +1 -0
  63. package/packages/theme-chalk/lib/toolbar.css +1 -0
  64. package/packages/theme-chalk/lib/tree-group.css +1 -0
  65. package/packages/theme-chalk/lib/tree.css +1 -0
  66. package/packages/theme-chalk/lib/upload.css +1 -0
  67. package/packages/theme-chalk/lib/wujie.css +0 -0
  68. package/packages/theme-chalk/lib/wxlogin.css +1 -0
  69. package/src/index.js +1 -1
  70. package/packages/theme-chalk/gulpfile.js +0 -25
@@ -63515,8 +63515,8 @@ mainvue_type_template_id_b3cc50dc_render._withStripped = true
63515
63515
 
63516
63516
  // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=b3cc50dc&
63517
63517
 
63518
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=8605940a&scoped=true&
63519
- var simplicityvue_type_template_id_8605940a_scoped_true_render = function () {
63518
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=65535c71&scoped=true&
63519
+ var simplicityvue_type_template_id_65535c71_scoped_true_render = function () {
63520
63520
  var _vm = this
63521
63521
  var _h = _vm.$createElement
63522
63522
  var _c = _vm._self._c || _h
@@ -64282,11 +64282,11 @@ var simplicityvue_type_template_id_8605940a_scoped_true_render = function () {
64282
64282
  ),
64283
64283
  ])
64284
64284
  }
64285
- var simplicityvue_type_template_id_8605940a_scoped_true_staticRenderFns = []
64286
- simplicityvue_type_template_id_8605940a_scoped_true_render._withStripped = true
64285
+ var simplicityvue_type_template_id_65535c71_scoped_true_staticRenderFns = []
64286
+ simplicityvue_type_template_id_65535c71_scoped_true_render._withStripped = true
64287
64287
 
64288
64288
 
64289
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=8605940a&scoped=true&
64289
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=65535c71&scoped=true&
64290
64290
 
64291
64291
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/avatar.vue?vue&type=template&id=e722b45c&scoped=true&
64292
64292
  var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
@@ -69893,6 +69893,8 @@ var search_component = normalizeComponent(
69893
69893
 
69894
69894
  /* harmony default export */ var public_search = (search_component.exports);
69895
69895
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=script&lang=js&
69896
+ var simplicityvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
69897
+
69896
69898
  var simplicityvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
69897
69899
 
69898
69900
  //
@@ -71681,7 +71683,7 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
71681
71683
  * @date 2024年9月7日
71682
71684
  **/
71683
71685
  handleRefresh: function handleRefresh(arg) {
71684
- var i = arg && arg != true && arg !== 'pageData' ? utils_util.indexOfObj(this.tabs, arg, 'appCode,code,id,url') : utils_util.indexOfObj(this.tabs, this.activeName, 'id');
71686
+ var i = arg && arg != true && arg !== 'pageData' && !((typeof arg === 'undefined' ? 'undefined' : simplicityvue_type_script_lang_js_typeof(arg)) === 'object' && arg.path) ? utils_util.indexOfObj(this.tabs, arg, 'appCode,code,id,url') : utils_util.indexOfObj(this.tabs, this.activeName, 'id');
71685
71687
  var tab = this.tabs[i];
71686
71688
  if (simplicityvue_type_script_lang_js_isIE || tab.method === 'iframe') {
71687
71689
  if (arg && arg === 'pageData') {
@@ -71701,7 +71703,19 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
71701
71703
  if (arg && arg === 'pageData') {
71702
71704
  external_wujie_vue2_default.a.$emit('pageData', tab);
71703
71705
  } else {
71704
- window.document.querySelector('iframe[name=' + tab.appCode + ']').contentWindow.location.reload(true);
71706
+ // window.document
71707
+ // .querySelector(`iframe[name=${tab.appCode}]`)
71708
+ // .contentWindow.location.reload(true);
71709
+ var url = tab.url;
71710
+ // 如果传入了路由参数,需要更新 URL
71711
+ if (arg && (typeof arg === 'undefined' ? 'undefined' : simplicityvue_type_script_lang_js_typeof(arg)) === 'object' && arg.path) {
71712
+ url = this.buildWujieUrl(tab.url, arg);
71713
+ }
71714
+
71715
+ tab.url = '';
71716
+ this.$nextTick(function () {
71717
+ tab.url = utils_util.handlerUrl(url);
71718
+ });
71705
71719
  }
71706
71720
  return;
71707
71721
  }
@@ -71715,6 +71729,61 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
71715
71729
  }
71716
71730
  },
71717
71731
 
71732
+ /**
71733
+ * @desc:构建 Wujie 子应用 URL(处理路由参数)
71734
+ * @param {String} baseUrl - 基础 URL
71735
+ * @param {Object} routeInfo - 路由信息 { path, params, query }
71736
+ * @returns {String} 拼接后的完整 URL
71737
+ **/
71738
+ buildWujieUrl: function buildWujieUrl(baseUrl, routeInfo) {
71739
+ var path = routeInfo.path,
71740
+ _routeInfo$params = routeInfo.params,
71741
+ params = _routeInfo$params === undefined ? {} : _routeInfo$params,
71742
+ _routeInfo$query = routeInfo.query,
71743
+ query = _routeInfo$query === undefined ? {} : _routeInfo$query;
71744
+
71745
+
71746
+ if (!path) {
71747
+ return baseUrl;
71748
+ }
71749
+
71750
+ // 1. 处理 path + params(Vue Router 风格:params 作为路径参数)
71751
+ var fullPath = path;
71752
+
71753
+ // 如果 params 中有值,将其拼接到 path 后面
71754
+ // 例如:path='/aa/bb', params={action:'action', id:'ddd', did:'33333'}
71755
+ // 结果:'/aa/bb/action/ddd/33333'
71756
+ var paramValues = Object.values(params).filter(function (val) {
71757
+ return val !== undefined && val !== null;
71758
+ });
71759
+ if (paramValues.length > 0) {
71760
+ // 确保 path 不以 / 结尾
71761
+ var cleanPath = path.endsWith('/') ? path.slice(0, -1) : path;
71762
+ fullPath = cleanPath + '/' + paramValues.join('/');
71763
+ }
71764
+
71765
+ // 2. 处理 query 参数
71766
+ var queryKeys = Object.keys(query);
71767
+ if (queryKeys.length > 0) {
71768
+ var queryString = queryKeys.map(function (key) {
71769
+ return encodeURIComponent(key) + '=' + encodeURIComponent(query[key]);
71770
+ }).join('&');
71771
+ fullPath += '?' + queryString;
71772
+ }
71773
+
71774
+ // 3. 从 baseUrl 中提取基础部分(去掉 hash 路由部分)
71775
+ // 例如:baseUrl = 'http://example.com/app#/old/path'
71776
+ // 提取:'http://example.com/app#'
71777
+ var baseUrlPrefix = baseUrl;
71778
+ var hashIndex = baseUrl.indexOf('#');
71779
+ if (hashIndex > -1) {
71780
+ baseUrlPrefix = baseUrl.substring(0, hashIndex + 1); // 保留 #
71781
+ }
71782
+
71783
+ // 4. 拼接最终 URL
71784
+ return baseUrlPrefix + fullPath;
71785
+ },
71786
+
71718
71787
  /**
71719
71788
  * @desc:删除iframe
71720
71789
  * @author huangbo
@@ -72146,18 +72215,18 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
72146
72215
 
72147
72216
  var simplicity_component = normalizeComponent(
72148
72217
  src_simplicityvue_type_script_lang_js_,
72149
- simplicityvue_type_template_id_8605940a_scoped_true_render,
72150
- simplicityvue_type_template_id_8605940a_scoped_true_staticRenderFns,
72218
+ simplicityvue_type_template_id_65535c71_scoped_true_render,
72219
+ simplicityvue_type_template_id_65535c71_scoped_true_staticRenderFns,
72151
72220
  false,
72152
72221
  null,
72153
- "8605940a",
72222
+ "65535c71",
72154
72223
  null
72155
72224
 
72156
72225
  )
72157
72226
 
72158
72227
  /* harmony default export */ var simplicity = (simplicity_component.exports);
72159
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/index.vue?vue&type=template&id=bb63a666&scoped=true&
72160
- var simplicityTopvue_type_template_id_bb63a666_scoped_true_render = function () {
72228
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/index.vue?vue&type=template&id=c03e4732&scoped=true&
72229
+ var simplicityTopvue_type_template_id_c03e4732_scoped_true_render = function () {
72161
72230
  var _vm = this
72162
72231
  var _h = _vm.$createElement
72163
72232
  var _c = _vm._self._c || _h
@@ -72724,11 +72793,11 @@ var simplicityTopvue_type_template_id_bb63a666_scoped_true_render = function ()
72724
72793
  1
72725
72794
  )
72726
72795
  }
72727
- var simplicityTopvue_type_template_id_bb63a666_scoped_true_staticRenderFns = []
72728
- simplicityTopvue_type_template_id_bb63a666_scoped_true_render._withStripped = true
72796
+ var simplicityTopvue_type_template_id_c03e4732_scoped_true_staticRenderFns = []
72797
+ simplicityTopvue_type_template_id_c03e4732_scoped_true_render._withStripped = true
72729
72798
 
72730
72799
 
72731
- // CONCATENATED MODULE: ./packages/main/src/simplicityTop/index.vue?vue&type=template&id=bb63a666&scoped=true&
72800
+ // CONCATENATED MODULE: ./packages/main/src/simplicityTop/index.vue?vue&type=template&id=c03e4732&scoped=true&
72732
72801
 
72733
72802
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/avatar.vue?vue&type=template&id=30391b69&scoped=true&
72734
72803
  var avatarvue_type_template_id_30391b69_scoped_true_render = function () {
@@ -75014,6 +75083,8 @@ var simplicityTop_router_page_component = normalizeComponent(
75014
75083
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicityTop/index.vue?vue&type=script&lang=js&
75015
75084
 
75016
75085
 
75086
+ var simplicityTopvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
75087
+
75017
75088
  var simplicityTopvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
75018
75089
 
75019
75090
  function simplicityTopvue_type_script_lang_js_asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
@@ -77094,7 +77165,19 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.getWinTopProper
77094
77165
  if (arg && arg === 'pageData') {
77095
77166
  external_wujie_vue2_default.a.$emit('pageData', tab);
77096
77167
  } else {
77097
- window.document.querySelector('iframe[name=' + tab.appCode + ']').contentWindow.location.reload(true);
77168
+ // window.document
77169
+ // .querySelector(`iframe[name=${tab.appCode}]`)
77170
+ // .contentWindow.location.reload(true);
77171
+ var url = tab.url;
77172
+ // 如果传入了路由参数,需要更新 URL
77173
+ if (arg && (typeof arg === 'undefined' ? 'undefined' : simplicityTopvue_type_script_lang_js_typeof(arg)) === 'object' && arg.path) {
77174
+ url = this.buildWujieUrl(tab.url, arg);
77175
+ }
77176
+
77177
+ tab.url = '';
77178
+ this.$nextTick(function () {
77179
+ tab.url = utils_util.handlerUrl(url);
77180
+ });
77098
77181
  }
77099
77182
  return;
77100
77183
  }
@@ -77109,6 +77192,61 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.getWinTopProper
77109
77192
  }
77110
77193
  },
77111
77194
 
77195
+ /**
77196
+ * @desc:构建 Wujie 子应用 URL(处理路由参数)
77197
+ * @param {String} baseUrl - 基础 URL
77198
+ * @param {Object} routeInfo - 路由信息 { path, params, query }
77199
+ * @returns {String} 拼接后的完整 URL
77200
+ **/
77201
+ buildWujieUrl: function buildWujieUrl(baseUrl, routeInfo) {
77202
+ var path = routeInfo.path,
77203
+ _routeInfo$params = routeInfo.params,
77204
+ params = _routeInfo$params === undefined ? {} : _routeInfo$params,
77205
+ _routeInfo$query = routeInfo.query,
77206
+ query = _routeInfo$query === undefined ? {} : _routeInfo$query;
77207
+
77208
+
77209
+ if (!path) {
77210
+ return baseUrl;
77211
+ }
77212
+
77213
+ // 1. 处理 path + params(Vue Router 风格:params 作为路径参数)
77214
+ var fullPath = path;
77215
+
77216
+ // 如果 params 中有值,将其拼接到 path 后面
77217
+ // 例如:path='/aa/bb', params={action:'action', id:'ddd', did:'33333'}
77218
+ // 结果:'/aa/bb/action/ddd/33333'
77219
+ var paramValues = Object.values(params).filter(function (val) {
77220
+ return val !== undefined && val !== null;
77221
+ });
77222
+ if (paramValues.length > 0) {
77223
+ // 确保 path 不以 / 结尾
77224
+ var cleanPath = path.endsWith('/') ? path.slice(0, -1) : path;
77225
+ fullPath = cleanPath + '/' + paramValues.join('/');
77226
+ }
77227
+
77228
+ // 2. 处理 query 参数
77229
+ var queryKeys = Object.keys(query);
77230
+ if (queryKeys.length > 0) {
77231
+ var queryString = queryKeys.map(function (key) {
77232
+ return encodeURIComponent(key) + '=' + encodeURIComponent(query[key]);
77233
+ }).join('&');
77234
+ fullPath += '?' + queryString;
77235
+ }
77236
+
77237
+ // 3. 从 baseUrl 中提取基础部分(去掉 hash 路由部分)
77238
+ // 例如:baseUrl = 'http://example.com/app#/old/path'
77239
+ // 提取:'http://example.com/app#'
77240
+ var baseUrlPrefix = baseUrl;
77241
+ var hashIndex = baseUrl.indexOf('#');
77242
+ if (hashIndex > -1) {
77243
+ baseUrlPrefix = baseUrl.substring(0, hashIndex + 1); // 保留 #
77244
+ }
77245
+
77246
+ // 4. 拼接最终 URL
77247
+ return baseUrlPrefix + fullPath;
77248
+ },
77249
+
77112
77250
  /**
77113
77251
  * @desc:删除iframe
77114
77252
  * @author huangbo
@@ -77600,11 +77738,11 @@ var simplicityTopvue_type_script_lang_js_systemMode = utils_util.getWinTopProper
77600
77738
 
77601
77739
  var simplicityTop_component = normalizeComponent(
77602
77740
  src_simplicityTopvue_type_script_lang_js_,
77603
- simplicityTopvue_type_template_id_bb63a666_scoped_true_render,
77604
- simplicityTopvue_type_template_id_bb63a666_scoped_true_staticRenderFns,
77741
+ simplicityTopvue_type_template_id_c03e4732_scoped_true_render,
77742
+ simplicityTopvue_type_template_id_c03e4732_scoped_true_staticRenderFns,
77605
77743
  false,
77606
77744
  null,
77607
- "bb63a666",
77745
+ "c03e4732",
77608
77746
  null
77609
77747
 
77610
77748
  )
@@ -103076,7 +103214,7 @@ if (typeof window !== 'undefined' && window.Vue) {
103076
103214
  }
103077
103215
 
103078
103216
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
103079
- version: '0.8.21',
103217
+ version: '0.8.22',
103080
103218
  install: install,
103081
103219
  Button: packages_button,
103082
103220
  ButtonGroup: button_group,