eoss-ui 0.5.84 → 0.5.85

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 (77) hide show
  1. package/lib/button-group.js +17 -16
  2. package/lib/button.js +17 -16
  3. package/lib/checkbox-group.js +17 -16
  4. package/lib/config/api.js +3 -2
  5. package/lib/data-table-form.js +17 -16
  6. package/lib/data-table.js +417 -262
  7. package/lib/date-picker.js +17 -16
  8. package/lib/dialog.js +17 -16
  9. package/lib/eoss-ui.common.js +6189 -13674
  10. package/lib/flow-group.js +17 -16
  11. package/lib/flow-list.js +17 -16
  12. package/lib/flow.js +17 -16
  13. package/lib/form.js +5647 -13458
  14. package/lib/handle-user.js +17 -16
  15. package/lib/handler.js +23 -18
  16. package/lib/icon.js +17 -16
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +17 -16
  19. package/lib/input.js +17 -16
  20. package/lib/login.js +28 -19
  21. package/lib/main.js +579 -418
  22. package/lib/nav.js +17 -16
  23. package/lib/notify.js +3 -2
  24. package/lib/page.js +17 -16
  25. package/lib/pagination.js +17 -16
  26. package/lib/player.js +17 -16
  27. package/lib/qr-code.js +17 -16
  28. package/lib/radio-group.js +17 -16
  29. package/lib/retrial-auth.js +17 -16
  30. package/lib/select-ganged.js +17 -16
  31. package/lib/select.js +18 -17
  32. package/lib/selector-panel.js +17 -16
  33. package/lib/selector.js +17 -16
  34. package/lib/sizer.js +17 -16
  35. package/lib/steps.js +17 -16
  36. package/lib/switch.js +17 -16
  37. package/lib/table-form.js +17 -16
  38. package/lib/tabs.js +17 -16
  39. package/lib/theme-chalk/calendar.css +1 -1
  40. package/lib/theme-chalk/data-table.css +1 -1
  41. package/lib/theme-chalk/index.css +1 -1
  42. package/lib/theme-chalk/main.css +1 -1
  43. package/lib/theme-chalk/simplicity.css +1 -1
  44. package/lib/tips.js +17 -16
  45. package/lib/tree-group.js +17 -16
  46. package/lib/tree.js +17 -16
  47. package/lib/upload.js +30 -29
  48. package/lib/utils/util.js +14 -14
  49. package/lib/wujie.js +17 -16
  50. package/lib/wxlogin.js +17 -16
  51. package/package.json +2 -2
  52. package/packages/data-table/src/children.vue +3 -2
  53. package/packages/data-table/src/column.vue +2 -4
  54. package/packages/data-table/src/main.vue +150 -66
  55. package/packages/data-table/src/sizer.vue +51 -22
  56. package/packages/form/src/main.vue +119 -2103
  57. package/packages/handler/src/main.vue +5 -0
  58. package/packages/login/src/main.vue +12 -1
  59. package/packages/main/src/default/index.vue +35 -54
  60. package/packages/main/src/public/search.vue +138 -31
  61. package/packages/main/src/simplicity/apps.vue +12 -0
  62. package/packages/main/src/simplicity/handler.vue +0 -2
  63. package/packages/main/src/simplicity/index.vue +68 -32
  64. package/packages/select/src/main.vue +1 -1
  65. package/packages/theme-chalk/lib/calendar.css +1 -1
  66. package/packages/theme-chalk/lib/data-table.css +1 -1
  67. package/packages/theme-chalk/lib/index.css +1 -1
  68. package/packages/theme-chalk/lib/main.css +1 -1
  69. package/packages/theme-chalk/lib/simplicity.css +1 -1
  70. package/packages/theme-chalk/src/calendar.scss +3 -3
  71. package/packages/theme-chalk/src/data-table.scss +12 -0
  72. package/packages/theme-chalk/src/main.scss +2 -1
  73. package/packages/theme-chalk/src/simplicity.scss +15 -2
  74. package/packages/upload/src/main.vue +16 -12
  75. package/src/config/api.js +3 -2
  76. package/src/index.js +1 -1
  77. package/src/utils/util.js +2 -2
package/lib/upload.js CHANGED
@@ -2022,13 +2022,13 @@ var indexOfObj = function indexOfObj(arry, target, key) {
2022
2022
  if (key) {
2023
2023
  if (key.indexOf(',') > -1) {
2024
2024
  var keys = key.split(',');
2025
- for (var _i7 = 0; _i7 < keys.length; _i7++) {
2026
- var k = keys[_i7];
2027
- if (typeof target === 'string' && arry[_i7][k] === target) {
2028
- return _i7;
2025
+ for (var n = 0; n < keys.length; n++) {
2026
+ var k = keys[n];
2027
+ if (typeof target === 'string' && arry[i][k] === target) {
2028
+ return i;
2029
2029
  }
2030
- if (target[k] === arry[_i7][k]) {
2031
- return _i7;
2030
+ if (target[k] === arry[i][k]) {
2031
+ return i;
2032
2032
  }
2033
2033
  }
2034
2034
  } else {
@@ -2771,22 +2771,22 @@ var setStorage = function setStorage(_ref14) {
2771
2771
  localStorage.setItem(key[i], value);
2772
2772
  }
2773
2773
  } else {
2774
- for (var _i8 in key) {
2775
- var val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
2776
- localStorage.setItem(_i8, val);
2774
+ for (var _i7 in key) {
2775
+ var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
2776
+ localStorage.setItem(_i7, val);
2777
2777
  }
2778
2778
  }
2779
2779
  } else {
2780
2780
  if (typeof key === 'string') {
2781
2781
  sessionStorage.setItem(key, value);
2782
2782
  } else if (Array.isArray(key)) {
2783
- for (var _i9 in key) {
2784
- sessionStorage.setItem(key[_i9], value);
2783
+ for (var _i8 in key) {
2784
+ sessionStorage.setItem(key[_i8], value);
2785
2785
  }
2786
2786
  } else {
2787
- for (var _i10 in key) {
2788
- var _val = _typeof(key[_i10]) === 'object' ? JSON.stringify(key[_i10]) : key[_i10];
2789
- sessionStorage.setItem(_i10, _val);
2787
+ for (var _i9 in key) {
2788
+ var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
2789
+ sessionStorage.setItem(_i9, _val);
2790
2790
  }
2791
2791
  }
2792
2792
  }
@@ -3435,7 +3435,7 @@ var sysMsgPage = '/main2/notify/sysMsgPage'; // 获取系统消息
3435
3435
  var ignoreSysMsg = '/main2/notify/ignoreSysMsg'; // 忽略系统消息
3436
3436
  var ignoreAllSysMsg = '/main2/notify/ignoreAllSysMsg'; // 忽略全部系统消息
3437
3437
  // 框架 - 搜索
3438
- var searchType = '/oceanSearch/v2/search/catalog'; // 搜索分类类型
3438
+ var searchType = '/oceansearch/v2/search/catalog'; // 搜索分类类型
3439
3439
 
3440
3440
  // 附件相关
3441
3441
  var getAdjunctProperties = '/main2/mecpfileManagement/getAdjunctProperties'; // 获取附件扩展类型大小
@@ -3611,7 +3611,8 @@ var sendDelete = '/notify2/notifySendRecord/deleteById';
3611
3611
  var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
3612
3612
 
3613
3613
  // 表单结构
3614
- var formContents = '/config/admin/online/onlineForm/render';
3614
+
3615
+ var formContents = '/lowcode/admin/online/onlineForm/getOnlineFormFromCache';
3615
3616
 
3616
3617
  /***/ }),
3617
3618
  /* 2 */
@@ -3969,12 +3970,12 @@ module.exports = require("js-base64");
3969
3970
  // ESM COMPAT FLAG
3970
3971
  __webpack_require__.r(__webpack_exports__);
3971
3972
 
3972
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=59ee0492&
3973
- var mainvue_type_template_id_59ee0492_render = function () {
3973
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=c2a45c7a&
3974
+ var mainvue_type_template_id_c2a45c7a_render = function () {
3974
3975
  var _vm = this
3975
3976
  var _h = _vm.$createElement
3976
3977
  var _c = _vm._self._c || _h
3977
- return _vm.isRender && _vm.url
3978
+ return _vm.isRender && _vm.uploadUrl
3978
3979
  ? _c(
3979
3980
  "el-upload",
3980
3981
  _vm._b(
@@ -3993,7 +3994,7 @@ var mainvue_type_template_id_59ee0492_render = function () {
3993
3994
  wait: 1000,
3994
3995
  height: _vm.boxHeight,
3995
3996
  multiple: _vm.portrait ? false : _vm.multiple,
3996
- action: _vm.url,
3997
+ action: _vm.uploadUrl,
3997
3998
  "show-file-list": _vm.showList,
3998
3999
  "file-list": _vm.lists,
3999
4000
  "result-file": _vm.resultFile,
@@ -4351,10 +4352,10 @@ var mainvue_type_template_id_59ee0492_render = function () {
4351
4352
  : _vm._e()
4352
4353
  }
4353
4354
  var staticRenderFns = []
4354
- mainvue_type_template_id_59ee0492_render._withStripped = true
4355
+ mainvue_type_template_id_c2a45c7a_render._withStripped = true
4355
4356
 
4356
4357
 
4357
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=59ee0492&
4358
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=c2a45c7a&
4358
4359
 
4359
4360
  // EXTERNAL MODULE: ./src/config/api.js
4360
4361
  var api = __webpack_require__(1);
@@ -4787,7 +4788,7 @@ var _props;
4787
4788
  }, _props.useCaseCode = String, _props),
4788
4789
  data: function data() {
4789
4790
  return {
4790
- url: this.action,
4791
+ uploadUrl: '',
4791
4792
  lists: [],
4792
4793
  image: '',
4793
4794
  fileAccept: '',
@@ -5052,8 +5053,8 @@ var _props;
5052
5053
  this.fileTotalSize = config.totalSize;
5053
5054
  this.dochubConfig = config.dochubConfig || {};
5054
5055
 
5055
- var url = this.portrait ? this.dochubConfig.reuploadDocument || api["bc" /* uploadOnlyOne */] : this.dochubConfig.uploadDocument || api["dc" /* uploads */];
5056
- this.url = url.indexOf(this.host) > -1 ? url : this.host + url;
5056
+ var url = this.action ? this.action : this.portrait ? this.dochubConfig.reuploadDocumentUrl || api["bc" /* uploadOnlyOne */] : this.dochubConfig.uploadDocumentUrl || api["dc" /* uploads */];
5057
+ this.uploadUrl = url.indexOf(this.host) > -1 ? url : this.host + url;
5057
5058
  } else {
5058
5059
  util["a" /* default */].ajax({
5059
5060
  method: this.method,
@@ -5071,8 +5072,8 @@ var _props;
5071
5072
  }).join(',');
5072
5073
  }
5073
5074
  _this3.dochubConfig = res.results.dochubConfig || {};
5074
- var _url = _this3.portrait ? _this3.dochubConfig.reuploadDocument || api["bc" /* uploadOnlyOne */] : _this3.dochubConfig.uploadDocument || api["dc" /* uploads */];
5075
- _this3.url = _url.indexOf(_this3.host) > -1 ? _url : _this3.host + _url;
5075
+ var _url = _this3.action ? _this3.action : _this3.portrait ? _this3.dochubConfig.reuploadDocumentUrl || api["bc" /* uploadOnlyOne */] : _this3.dochubConfig.uploadDocumentUrl || api["dc" /* uploads */];
5076
+ _this3.uploadUrl = _url.indexOf(_this3.host) > -1 ? _url : _this3.host + _url;
5076
5077
  if (res.results.kkViewRootPath) {
5077
5078
  _this3.kkfileview = res.results.kkViewRootPath;
5078
5079
  }
@@ -5355,7 +5356,7 @@ var _props;
5355
5356
  }
5356
5357
  },
5357
5358
  handleDownloads: function handleDownloads() {
5358
- var url = typeof this.downloads === 'string' ? this.downloads : this.dochubConfig.compressDownloadDocument || api["ac" /* uploadDownloads */];
5359
+ var url = typeof this.downloads === 'string' ? this.downloads : this.dochubConfig.compressDownloadDocumentUrl || api["ac" /* uploadDownloads */];
5359
5360
  util["a" /* default */].win.open(this.host + url + '?ownId=' + this.ownId + '&code=' + this.code + (this.extendCode ? '&extendCode=' + this.extendCode : ''));
5360
5361
  },
5361
5362
  handleDownload: function handleDownload(file) {
@@ -5497,7 +5498,7 @@ var componentNormalizer = __webpack_require__(3);
5497
5498
 
5498
5499
  var component = Object(componentNormalizer["a" /* default */])(
5499
5500
  src_mainvue_type_script_lang_js_,
5500
- mainvue_type_template_id_59ee0492_render,
5501
+ mainvue_type_template_id_c2a45c7a_render,
5501
5502
  staticRenderFns,
5502
5503
  false,
5503
5504
  null,
package/lib/utils/util.js CHANGED
@@ -1940,13 +1940,13 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1940
1940
  if (key) {
1941
1941
  if (key.indexOf(',') > -1) {
1942
1942
  var keys = key.split(',');
1943
- for (var _i7 = 0; _i7 < keys.length; _i7++) {
1944
- var k = keys[_i7];
1945
- if (typeof target === 'string' && arry[_i7][k] === target) {
1946
- return _i7;
1943
+ for (var n = 0; n < keys.length; n++) {
1944
+ var k = keys[n];
1945
+ if (typeof target === 'string' && arry[i][k] === target) {
1946
+ return i;
1947
1947
  }
1948
- if (target[k] === arry[_i7][k]) {
1949
- return _i7;
1948
+ if (target[k] === arry[i][k]) {
1949
+ return i;
1950
1950
  }
1951
1951
  }
1952
1952
  } else {
@@ -2689,22 +2689,22 @@ var setStorage = function setStorage(_ref14) {
2689
2689
  localStorage.setItem(key[i], value);
2690
2690
  }
2691
2691
  } else {
2692
- for (var _i8 in key) {
2693
- var val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
2694
- localStorage.setItem(_i8, val);
2692
+ for (var _i7 in key) {
2693
+ var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
2694
+ localStorage.setItem(_i7, val);
2695
2695
  }
2696
2696
  }
2697
2697
  } else {
2698
2698
  if (typeof key === 'string') {
2699
2699
  sessionStorage.setItem(key, value);
2700
2700
  } else if (Array.isArray(key)) {
2701
- for (var _i9 in key) {
2702
- sessionStorage.setItem(key[_i9], value);
2701
+ for (var _i8 in key) {
2702
+ sessionStorage.setItem(key[_i8], value);
2703
2703
  }
2704
2704
  } else {
2705
- for (var _i10 in key) {
2706
- var _val = _typeof(key[_i10]) === 'object' ? JSON.stringify(key[_i10]) : key[_i10];
2707
- sessionStorage.setItem(_i10, _val);
2705
+ for (var _i9 in key) {
2706
+ var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
2707
+ sessionStorage.setItem(_i9, _val);
2708
2708
  }
2709
2709
  }
2710
2710
  }
package/lib/wujie.js CHANGED
@@ -2023,13 +2023,13 @@ var indexOfObj = function indexOfObj(arry, target, key) {
2023
2023
  if (key) {
2024
2024
  if (key.indexOf(',') > -1) {
2025
2025
  var keys = key.split(',');
2026
- for (var _i7 = 0; _i7 < keys.length; _i7++) {
2027
- var k = keys[_i7];
2028
- if (typeof target === 'string' && arry[_i7][k] === target) {
2029
- return _i7;
2026
+ for (var n = 0; n < keys.length; n++) {
2027
+ var k = keys[n];
2028
+ if (typeof target === 'string' && arry[i][k] === target) {
2029
+ return i;
2030
2030
  }
2031
- if (target[k] === arry[_i7][k]) {
2032
- return _i7;
2031
+ if (target[k] === arry[i][k]) {
2032
+ return i;
2033
2033
  }
2034
2034
  }
2035
2035
  } else {
@@ -2772,22 +2772,22 @@ var setStorage = function setStorage(_ref14) {
2772
2772
  localStorage.setItem(key[i], value);
2773
2773
  }
2774
2774
  } else {
2775
- for (var _i8 in key) {
2776
- var val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
2777
- localStorage.setItem(_i8, val);
2775
+ for (var _i7 in key) {
2776
+ var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
2777
+ localStorage.setItem(_i7, val);
2778
2778
  }
2779
2779
  }
2780
2780
  } else {
2781
2781
  if (typeof key === 'string') {
2782
2782
  sessionStorage.setItem(key, value);
2783
2783
  } else if (Array.isArray(key)) {
2784
- for (var _i9 in key) {
2785
- sessionStorage.setItem(key[_i9], value);
2784
+ for (var _i8 in key) {
2785
+ sessionStorage.setItem(key[_i8], value);
2786
2786
  }
2787
2787
  } else {
2788
- for (var _i10 in key) {
2789
- var _val = _typeof(key[_i10]) === 'object' ? JSON.stringify(key[_i10]) : key[_i10];
2790
- sessionStorage.setItem(_i10, _val);
2788
+ for (var _i9 in key) {
2789
+ var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
2790
+ sessionStorage.setItem(_i9, _val);
2791
2791
  }
2792
2792
  }
2793
2793
  }
@@ -3437,7 +3437,7 @@ var sysMsgPage = '/main2/notify/sysMsgPage'; // 获取系统消息
3437
3437
  var ignoreSysMsg = '/main2/notify/ignoreSysMsg'; // 忽略系统消息
3438
3438
  var ignoreAllSysMsg = '/main2/notify/ignoreAllSysMsg'; // 忽略全部系统消息
3439
3439
  // 框架 - 搜索
3440
- var searchType = '/oceanSearch/v2/search/catalog'; // 搜索分类类型
3440
+ var searchType = '/oceansearch/v2/search/catalog'; // 搜索分类类型
3441
3441
 
3442
3442
  // 附件相关
3443
3443
  var getAdjunctProperties = '/main2/mecpfileManagement/getAdjunctProperties'; // 获取附件扩展类型大小
@@ -3613,7 +3613,8 @@ var sendDelete = '/notify2/notifySendRecord/deleteById';
3613
3613
  var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
3614
3614
 
3615
3615
  // 表单结构
3616
- var formContents = '/config/admin/online/onlineForm/render';
3616
+
3617
+ var formContents = '/lowcode/admin/online/onlineForm/getOnlineFormFromCache';
3617
3618
 
3618
3619
  /***/ }),
3619
3620
 
package/lib/wxlogin.js CHANGED
@@ -2023,13 +2023,13 @@ var indexOfObj = function indexOfObj(arry, target, key) {
2023
2023
  if (key) {
2024
2024
  if (key.indexOf(',') > -1) {
2025
2025
  var keys = key.split(',');
2026
- for (var _i7 = 0; _i7 < keys.length; _i7++) {
2027
- var k = keys[_i7];
2028
- if (typeof target === 'string' && arry[_i7][k] === target) {
2029
- return _i7;
2026
+ for (var n = 0; n < keys.length; n++) {
2027
+ var k = keys[n];
2028
+ if (typeof target === 'string' && arry[i][k] === target) {
2029
+ return i;
2030
2030
  }
2031
- if (target[k] === arry[_i7][k]) {
2032
- return _i7;
2031
+ if (target[k] === arry[i][k]) {
2032
+ return i;
2033
2033
  }
2034
2034
  }
2035
2035
  } else {
@@ -2772,22 +2772,22 @@ var setStorage = function setStorage(_ref14) {
2772
2772
  localStorage.setItem(key[i], value);
2773
2773
  }
2774
2774
  } else {
2775
- for (var _i8 in key) {
2776
- var val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
2777
- localStorage.setItem(_i8, val);
2775
+ for (var _i7 in key) {
2776
+ var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
2777
+ localStorage.setItem(_i7, val);
2778
2778
  }
2779
2779
  }
2780
2780
  } else {
2781
2781
  if (typeof key === 'string') {
2782
2782
  sessionStorage.setItem(key, value);
2783
2783
  } else if (Array.isArray(key)) {
2784
- for (var _i9 in key) {
2785
- sessionStorage.setItem(key[_i9], value);
2784
+ for (var _i8 in key) {
2785
+ sessionStorage.setItem(key[_i8], value);
2786
2786
  }
2787
2787
  } else {
2788
- for (var _i10 in key) {
2789
- var _val = _typeof(key[_i10]) === 'object' ? JSON.stringify(key[_i10]) : key[_i10];
2790
- sessionStorage.setItem(_i10, _val);
2788
+ for (var _i9 in key) {
2789
+ var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
2790
+ sessionStorage.setItem(_i9, _val);
2791
2791
  }
2792
2792
  }
2793
2793
  }
@@ -3437,7 +3437,7 @@ var sysMsgPage = '/main2/notify/sysMsgPage'; // 获取系统消息
3437
3437
  var ignoreSysMsg = '/main2/notify/ignoreSysMsg'; // 忽略系统消息
3438
3438
  var ignoreAllSysMsg = '/main2/notify/ignoreAllSysMsg'; // 忽略全部系统消息
3439
3439
  // 框架 - 搜索
3440
- var searchType = '/oceanSearch/v2/search/catalog'; // 搜索分类类型
3440
+ var searchType = '/oceansearch/v2/search/catalog'; // 搜索分类类型
3441
3441
 
3442
3442
  // 附件相关
3443
3443
  var getAdjunctProperties = '/main2/mecpfileManagement/getAdjunctProperties'; // 获取附件扩展类型大小
@@ -3613,7 +3613,8 @@ var sendDelete = '/notify2/notifySendRecord/deleteById';
3613
3613
  var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
3614
3614
 
3615
3615
  // 表单结构
3616
- var formContents = '/config/admin/online/onlineForm/render';
3616
+
3617
+ var formContents = '/lowcode/admin/online/onlineForm/getOnlineFormFromCache';
3617
3618
 
3618
3619
  /***/ }),
3619
3620
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.84",
3
+ "version": "0.5.85",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -97,7 +97,7 @@
97
97
  "cp-cli": "^1.0.2",
98
98
  "cross-env": "^3.1.3",
99
99
  "css-loader": "^2.1.0",
100
- "eoss-element": "^0.3.24",
100
+ "eoss-element": "^0.3.25",
101
101
  "es6-promise": "^4.0.5",
102
102
  "eslint": "4.18.2",
103
103
  "eslint-config-elemefe": "0.1.1",
@@ -4,7 +4,7 @@
4
4
  <template v-for="(item, index) in childrens">
5
5
  <children
6
6
  v-if="item.hide !== true"
7
- :key="index"
7
+ :key="item.key || item.id || item.label || item.title || index"
8
8
  v-bind="{
9
9
  ...$attrs,
10
10
  ...item,
@@ -22,13 +22,14 @@ import column from './column.vue';
22
22
  export default {
23
23
  name: 'Children',
24
24
  components: {
25
- [column.name]: column
25
+ column
26
26
  },
27
27
  props: {
28
28
  dragSort: Boolean,
29
29
  children: Array,
30
30
  childHead: Array
31
31
  },
32
+ created() {},
32
33
  computed: {
33
34
  childrens() {
34
35
  return this.children || this.childHead || [];
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <el-table-column v-bind="config">
2
+ <el-table-column v-bind="config" :key="field">
3
3
  <slot> </slot>
4
4
  <template slot-scope="scope">
5
5
  <template v-if="isForm && !isReadOnly(scope)">
@@ -585,7 +585,6 @@ export default {
585
585
  label: this.label || this.title,
586
586
  width: this.btnWidth || this.width
587
587
  };
588
-
589
588
  if (this.type === 'expand') {
590
589
  config = { type: this.type, ...config, ...this.$attrs };
591
590
  return config;
@@ -612,7 +611,7 @@ export default {
612
611
  : this.width
613
612
  ? ''
614
613
  : '180px';
615
- config = {
614
+ return {
616
615
  ...config,
617
616
  filterIcon: this.icon,
618
617
  sortable: this.sortable || this.sort,
@@ -631,7 +630,6 @@ export default {
631
630
  field: this.field,
632
631
  ...this.$attrs
633
632
  };
634
- return config;
635
633
  },
636
634
  formOption() {
637
635
  let config = {