eoss-ui 0.5.81-beta1 → 0.5.81-beta2

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/data-table.js CHANGED
@@ -3929,8 +3929,8 @@ module.exports = require("vue");
3929
3929
  // ESM COMPAT FLAG
3930
3930
  __webpack_require__.r(__webpack_exports__);
3931
3931
 
3932
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=825eabd0&
3933
- var mainvue_type_template_id_825eabd0_render = function () {
3932
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=04c7a78c&
3933
+ var mainvue_type_template_id_04c7a78c_render = function () {
3934
3934
  var _vm = this
3935
3935
  var _h = _vm.$createElement
3936
3936
  var _c = _vm._self._c || _h
@@ -4241,10 +4241,10 @@ var mainvue_type_template_id_825eabd0_render = function () {
4241
4241
  )
4242
4242
  }
4243
4243
  var staticRenderFns = []
4244
- mainvue_type_template_id_825eabd0_render._withStripped = true
4244
+ mainvue_type_template_id_04c7a78c_render._withStripped = true
4245
4245
 
4246
4246
 
4247
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=825eabd0&
4247
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=04c7a78c&
4248
4248
 
4249
4249
  // EXTERNAL MODULE: ./src/config/api.js
4250
4250
  var api = __webpack_require__(1);
@@ -7217,8 +7217,8 @@ var mainvue_type_script_lang_js_components, _watch;
7217
7217
  _this9.list = _this9.list.concat(results.data || results.records || results.list);
7218
7218
  _this9.config.pageNum += 1;
7219
7219
  } else {
7220
+ _this9.list = results.data || results.records || results.list;
7220
7221
  _this9.$nextTick(function () {
7221
- _this9.list = results.data || results.records || results.list || [];
7222
7222
  _this9.$refs.oaTable && _this9.$refs.oaTable.resetScroll && _this9.$refs.oaTable.resetScroll(0, 0);
7223
7223
  });
7224
7224
  }
@@ -7722,7 +7722,7 @@ var mainvue_type_script_lang_js_components, _watch;
7722
7722
 
7723
7723
  var main_component = Object(componentNormalizer["a" /* default */])(
7724
7724
  src_mainvue_type_script_lang_js_,
7725
- mainvue_type_template_id_825eabd0_render,
7725
+ mainvue_type_template_id_04c7a78c_render,
7726
7726
  staticRenderFns,
7727
7727
  false,
7728
7728
  null,
@@ -6879,8 +6879,8 @@ clients_src_main.install = function (Vue) {
6879
6879
  };
6880
6880
 
6881
6881
  /* harmony default export */ var clients = (clients_src_main);
6882
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=825eabd0&
6883
- var mainvue_type_template_id_825eabd0_render = function () {
6882
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=04c7a78c&
6883
+ var mainvue_type_template_id_04c7a78c_render = function () {
6884
6884
  var _vm = this
6885
6885
  var _h = _vm.$createElement
6886
6886
  var _c = _vm._self._c || _h
@@ -7190,11 +7190,11 @@ var mainvue_type_template_id_825eabd0_render = function () {
7190
7190
  1
7191
7191
  )
7192
7192
  }
7193
- var mainvue_type_template_id_825eabd0_staticRenderFns = []
7194
- mainvue_type_template_id_825eabd0_render._withStripped = true
7193
+ var mainvue_type_template_id_04c7a78c_staticRenderFns = []
7194
+ mainvue_type_template_id_04c7a78c_render._withStripped = true
7195
7195
 
7196
7196
 
7197
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=825eabd0&
7197
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=04c7a78c&
7198
7198
 
7199
7199
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=template&id=44b7ff61&
7200
7200
  var childrenvue_type_template_id_44b7ff61_render = function () {
@@ -10152,8 +10152,8 @@ var mainvue_type_script_lang_js_components, _watch;
10152
10152
  _this9.list = _this9.list.concat(results.data || results.records || results.list);
10153
10153
  _this9.config.pageNum += 1;
10154
10154
  } else {
10155
+ _this9.list = results.data || results.records || results.list;
10155
10156
  _this9.$nextTick(function () {
10156
- _this9.list = results.data || results.records || results.list || [];
10157
10157
  _this9.$refs.oaTable && _this9.$refs.oaTable.resetScroll && _this9.$refs.oaTable.resetScroll(0, 0);
10158
10158
  });
10159
10159
  }
@@ -10657,8 +10657,8 @@ var mainvue_type_script_lang_js_components, _watch;
10657
10657
 
10658
10658
  var data_table_src_main_component = normalizeComponent(
10659
10659
  packages_data_table_src_mainvue_type_script_lang_js_,
10660
- mainvue_type_template_id_825eabd0_render,
10661
- mainvue_type_template_id_825eabd0_staticRenderFns,
10660
+ mainvue_type_template_id_04c7a78c_render,
10661
+ mainvue_type_template_id_04c7a78c_staticRenderFns,
10662
10662
  false,
10663
10663
  null,
10664
10664
  null,
@@ -46292,8 +46292,8 @@ handler_src_main.install = function (Vue) {
46292
46292
  };
46293
46293
 
46294
46294
  /* harmony default export */ var packages_handler = (handler_src_main);
46295
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/icon/src/main.vue?vue&type=template&id=a33503bc&
46296
- var mainvue_type_template_id_a33503bc_render = function () {
46295
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/icon/src/main.vue?vue&type=template&id=446be86a&
46296
+ var mainvue_type_template_id_446be86a_render = function () {
46297
46297
  var _vm = this
46298
46298
  var _h = _vm.$createElement
46299
46299
  var _c = _vm._self._c || _h
@@ -46316,11 +46316,11 @@ var mainvue_type_template_id_a33503bc_render = function () {
46316
46316
  )
46317
46317
  )
46318
46318
  }
46319
- var mainvue_type_template_id_a33503bc_staticRenderFns = []
46320
- mainvue_type_template_id_a33503bc_render._withStripped = true
46319
+ var mainvue_type_template_id_446be86a_staticRenderFns = []
46320
+ mainvue_type_template_id_446be86a_render._withStripped = true
46321
46321
 
46322
46322
 
46323
- // CONCATENATED MODULE: ./packages/icon/src/main.vue?vue&type=template&id=a33503bc&
46323
+ // CONCATENATED MODULE: ./packages/icon/src/main.vue?vue&type=template&id=446be86a&
46324
46324
 
46325
46325
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/icon/src/main.vue?vue&type=script&lang=js&
46326
46326
  //
@@ -46363,12 +46363,12 @@ mainvue_type_template_id_a33503bc_render._withStripped = true
46363
46363
  if (this.unicode(val)) {
46364
46364
  this.code = '';
46365
46365
  this.className = val;
46366
- } else if (utils_util["a" /* default */].startWith(val, '&#')) {
46367
- this.code = val;
46368
- this.className = 'es-icon';
46369
- } else {
46366
+ } else if (this.isId(val)) {
46370
46367
  this.tag = 'img';
46371
46368
  this.url = this.preview + val;
46369
+ } else {
46370
+ this.code = val;
46371
+ this.className = 'es-icon';
46372
46372
  }
46373
46373
  }
46374
46374
  } else {
@@ -46396,7 +46396,14 @@ mainvue_type_template_id_a33503bc_render._withStripped = true
46396
46396
  if (!res) {
46397
46397
  return false;
46398
46398
  }
46399
- var reg = new RegExp(/^[es-|el-]\S+/, 'g');
46399
+ var reg = new RegExp(/^(es-|el-)\S+/, 'g');
46400
+ return res.match(reg) ? res.match(reg).length : 0;
46401
+ },
46402
+ isId: function isId(res) {
46403
+ if (!res) {
46404
+ return false;
46405
+ }
46406
+ var reg = new RegExp(/[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+\S+/, 'g');
46400
46407
  return res.match(reg) ? res.match(reg).length : 0;
46401
46408
  }
46402
46409
  }
@@ -46413,8 +46420,8 @@ mainvue_type_template_id_a33503bc_render._withStripped = true
46413
46420
 
46414
46421
  var icon_src_main_component = normalizeComponent(
46415
46422
  packages_icon_src_mainvue_type_script_lang_js_,
46416
- mainvue_type_template_id_a33503bc_render,
46417
- mainvue_type_template_id_a33503bc_staticRenderFns,
46423
+ mainvue_type_template_id_446be86a_render,
46424
+ mainvue_type_template_id_446be86a_staticRenderFns,
46418
46425
  false,
46419
46426
  null,
46420
46427
  null,
@@ -50881,8 +50888,8 @@ login_src_main.install = function (Vue) {
50881
50888
  };
50882
50889
 
50883
50890
  /* harmony default export */ var login = (login_src_main);
50884
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=25558994&
50885
- var mainvue_type_template_id_25558994_render = function () {
50891
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=6007ce2f&
50892
+ var mainvue_type_template_id_6007ce2f_render = function () {
50886
50893
  var _vm = this
50887
50894
  var _h = _vm.$createElement
50888
50895
  var _c = _vm._self._c || _h
@@ -50894,7 +50901,12 @@ var mainvue_type_template_id_25558994_render = function () {
50894
50901
  ? _c(
50895
50902
  "es-main-simplicity",
50896
50903
  _vm._g(
50897
- _vm._b({ ref: "main" }, "es-main-simplicity", _vm.$attrs, false),
50904
+ _vm._b(
50905
+ { ref: "main", attrs: { appCode: _vm.appCode } },
50906
+ "es-main-simplicity",
50907
+ _vm.$attrs,
50908
+ false
50909
+ ),
50898
50910
  _vm.$listeners
50899
50911
  )
50900
50912
  )
@@ -50909,14 +50921,14 @@ var mainvue_type_template_id_25558994_render = function () {
50909
50921
  1
50910
50922
  )
50911
50923
  }
50912
- var mainvue_type_template_id_25558994_staticRenderFns = []
50913
- mainvue_type_template_id_25558994_render._withStripped = true
50924
+ var mainvue_type_template_id_6007ce2f_staticRenderFns = []
50925
+ mainvue_type_template_id_6007ce2f_render._withStripped = true
50914
50926
 
50915
50927
 
50916
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=25558994&
50928
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=6007ce2f&
50917
50929
 
50918
- // 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=36f16569&scoped=true&
50919
- var simplicityvue_type_template_id_36f16569_scoped_true_render = function () {
50930
+ // 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=d70a9674&scoped=true&
50931
+ var simplicityvue_type_template_id_d70a9674_scoped_true_render = function () {
50920
50932
  var _vm = this
50921
50933
  var _h = _vm.$createElement
50922
50934
  var _c = _vm._self._c || _h
@@ -50969,6 +50981,7 @@ var simplicityvue_type_template_id_36f16569_scoped_true_render = function () {
50969
50981
  {
50970
50982
  key: item.id,
50971
50983
  staticClass: "es-simplicity-side-app",
50984
+ class: { "is-active": _vm.active == item.id },
50972
50985
  attrs: { title: item.text || item.name },
50973
50986
  on: {
50974
50987
  click: function ($event) {
@@ -51486,11 +51499,11 @@ var simplicityvue_type_template_id_36f16569_scoped_true_render = function () {
51486
51499
  ),
51487
51500
  ])
51488
51501
  }
51489
- var simplicityvue_type_template_id_36f16569_scoped_true_staticRenderFns = []
51490
- simplicityvue_type_template_id_36f16569_scoped_true_render._withStripped = true
51502
+ var simplicityvue_type_template_id_d70a9674_scoped_true_staticRenderFns = []
51503
+ simplicityvue_type_template_id_d70a9674_scoped_true_render._withStripped = true
51491
51504
 
51492
51505
 
51493
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=36f16569&scoped=true&
51506
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=d70a9674&scoped=true&
51494
51507
 
51495
51508
  // 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=7a5313dd&scoped=true&
51496
51509
  var avatarvue_type_template_id_7a5313dd_scoped_true_render = function () {
@@ -54907,6 +54920,7 @@ var simplicityvue_type_script_lang_js_this = undefined;
54907
54920
  //
54908
54921
  //
54909
54922
  //
54923
+ //
54910
54924
 
54911
54925
 
54912
54926
 
@@ -54977,6 +54991,7 @@ var events = [function (tabs, index) {
54977
54991
  settings: settings
54978
54992
  },
54979
54993
  props: {
54994
+ appCode: String,
54980
54995
  //logo
54981
54996
  logo: String,
54982
54997
  //菜单、应用默认图标
@@ -55130,7 +55145,9 @@ var events = [function (tabs, index) {
55130
55145
  //显示页签操作
55131
55146
  showTabsHandler: false,
55132
55147
  //页签对象
55133
- pane: null
55148
+ pane: null,
55149
+ //选中菜单
55150
+ active: ''
55134
55151
  };
55135
55152
  },
55136
55153
 
@@ -55701,6 +55718,7 @@ var events = [function (tabs, index) {
55701
55718
  }
55702
55719
  }
55703
55720
  }
55721
+ this.active = res.id;
55704
55722
  } else {
55705
55723
  this.showMenu = false;
55706
55724
  this.showApps = !this.showApps;
@@ -56176,11 +56194,11 @@ var events = [function (tabs, index) {
56176
56194
 
56177
56195
  var simplicity_component = normalizeComponent(
56178
56196
  src_simplicityvue_type_script_lang_js_,
56179
- simplicityvue_type_template_id_36f16569_scoped_true_render,
56180
- simplicityvue_type_template_id_36f16569_scoped_true_staticRenderFns,
56197
+ simplicityvue_type_template_id_d70a9674_scoped_true_render,
56198
+ simplicityvue_type_template_id_d70a9674_scoped_true_staticRenderFns,
56181
56199
  false,
56182
56200
  null,
56183
- "36f16569",
56201
+ "d70a9674",
56184
56202
  null
56185
56203
 
56186
56204
  )
@@ -60320,6 +60338,7 @@ var default_component = normalizeComponent(
60320
60338
  //
60321
60339
  //
60322
60340
  //
60341
+ //
60323
60342
 
60324
60343
 
60325
60344
 
@@ -60343,10 +60362,13 @@ var default_component = normalizeComponent(
60343
60362
  computed: {},
60344
60363
  watch: {},
60345
60364
  data: function data() {
60346
- return {};
60365
+ return {
60366
+ appCode: ''
60367
+ };
60347
60368
  },
60348
60369
  created: function created() {
60349
60370
  var params = utils_util["a" /* default */].getParams() || {};
60371
+ this.appCode = params.appCode;
60350
60372
  this.getConfig(params);
60351
60373
  },
60352
60374
  mounted: function mounted() {},
@@ -60386,8 +60408,8 @@ var default_component = normalizeComponent(
60386
60408
 
60387
60409
  var main_src_main_component = normalizeComponent(
60388
60410
  packages_main_src_mainvue_type_script_lang_js_,
60389
- mainvue_type_template_id_25558994_render,
60390
- mainvue_type_template_id_25558994_staticRenderFns,
60411
+ mainvue_type_template_id_6007ce2f_render,
60412
+ mainvue_type_template_id_6007ce2f_staticRenderFns,
60391
60413
  false,
60392
60414
  null,
60393
60415
  null,
@@ -80574,7 +80596,7 @@ if (typeof window !== 'undefined' && window.Vue) {
80574
80596
  }
80575
80597
 
80576
80598
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
80577
- version: '0.5.81-beta1',
80599
+ version: '0.5.81-beta2',
80578
80600
  install: install,
80579
80601
  Button: packages_button,
80580
80602
  ButtonGroup: button_group,
package/lib/icon.js CHANGED
@@ -3725,7 +3725,7 @@ module.exports = require("qs");
3725
3725
  // ESM COMPAT FLAG
3726
3726
  __webpack_require__.r(__webpack_exports__);
3727
3727
 
3728
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/icon/src/main.vue?vue&type=template&id=a33503bc&
3728
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/icon/src/main.vue?vue&type=template&id=446be86a&
3729
3729
  var render = function () {
3730
3730
  var _vm = this
3731
3731
  var _h = _vm.$createElement
@@ -3753,7 +3753,7 @@ var staticRenderFns = []
3753
3753
  render._withStripped = true
3754
3754
 
3755
3755
 
3756
- // CONCATENATED MODULE: ./packages/icon/src/main.vue?vue&type=template&id=a33503bc&
3756
+ // CONCATENATED MODULE: ./packages/icon/src/main.vue?vue&type=template&id=446be86a&
3757
3757
 
3758
3758
  // EXTERNAL MODULE: ./src/utils/util.js
3759
3759
  var util = __webpack_require__(0);
@@ -3802,12 +3802,12 @@ var api = __webpack_require__(1);
3802
3802
  if (this.unicode(val)) {
3803
3803
  this.code = '';
3804
3804
  this.className = val;
3805
- } else if (util["a" /* default */].startWith(val, '&#')) {
3806
- this.code = val;
3807
- this.className = 'es-icon';
3808
- } else {
3805
+ } else if (this.isId(val)) {
3809
3806
  this.tag = 'img';
3810
3807
  this.url = this.preview + val;
3808
+ } else {
3809
+ this.code = val;
3810
+ this.className = 'es-icon';
3811
3811
  }
3812
3812
  }
3813
3813
  } else {
@@ -3835,7 +3835,14 @@ var api = __webpack_require__(1);
3835
3835
  if (!res) {
3836
3836
  return false;
3837
3837
  }
3838
- var reg = new RegExp(/^[es-|el-]\S+/, 'g');
3838
+ var reg = new RegExp(/^(es-|el-)\S+/, 'g');
3839
+ return res.match(reg) ? res.match(reg).length : 0;
3840
+ },
3841
+ isId: function isId(res) {
3842
+ if (!res) {
3843
+ return false;
3844
+ }
3845
+ var reg = new RegExp(/[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+\S+/, 'g');
3839
3846
  return res.match(reg) ? res.match(reg).length : 0;
3840
3847
  }
3841
3848
  }