eoss-ui 0.4.62 → 0.4.64

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 (78) hide show
  1. package/README.md +0 -2
  2. package/lib/button-group.js +11 -11
  3. package/lib/button.js +11 -11
  4. package/lib/checkbox-group.js +27 -37
  5. package/lib/data-table-form.js +11 -11
  6. package/lib/data-table.js +72 -57
  7. package/lib/date-picker.js +11 -11
  8. package/lib/dialog.js +10 -10
  9. package/lib/eoss-ui.common.js +1806 -749
  10. package/lib/flow-group.js +89 -29
  11. package/lib/flow-list.js +1122 -427
  12. package/lib/flow.js +19 -20
  13. package/lib/form.js +222 -40
  14. package/lib/handle-user.js +12 -12
  15. package/lib/handler.js +15 -15
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +11 -11
  18. package/lib/input.js +36 -36
  19. package/lib/login.js +41 -41
  20. package/lib/main.js +211 -104
  21. package/lib/menu.js +5 -3
  22. package/lib/nav.js +13 -15
  23. package/lib/notify.js +2 -2
  24. package/lib/page.js +11 -11
  25. package/lib/player.js +18 -18
  26. package/lib/qr-code.js +11 -11
  27. package/lib/radio-group.js +15 -15
  28. package/lib/retrial-auth.js +12 -12
  29. package/lib/select-ganged.js +11 -11
  30. package/lib/select.js +13 -13
  31. package/lib/selector-panel.js +12 -12
  32. package/lib/selector.js +29 -18
  33. package/lib/sizer.js +12 -12
  34. package/lib/steps.js +11 -11
  35. package/lib/switch.js +11 -11
  36. package/lib/table-form.js +36 -36
  37. package/lib/tabs.js +11 -11
  38. package/lib/theme-chalk/data-table.css +1 -1
  39. package/lib/theme-chalk/flow-list.css +1 -1
  40. package/lib/theme-chalk/index.css +1 -1
  41. package/lib/theme-chalk/menu.css +1 -1
  42. package/lib/tips.js +12 -12
  43. package/lib/toolbar.js +1 -3
  44. package/lib/tree-group.js +11 -11
  45. package/lib/tree.js +12 -12
  46. package/lib/upload.js +18 -18
  47. package/lib/utils/util.js +2 -2
  48. package/lib/wujie.js +11 -11
  49. package/lib/wxlogin.js +11 -11
  50. package/package.json +2 -2
  51. package/packages/checkbox-group/src/main.vue +16 -25
  52. package/packages/data-table/src/column.vue +15 -1
  53. package/packages/data-table/src/main.vue +58 -47
  54. package/packages/flow/src/component/taskUnionExamine.vue +0 -1
  55. package/packages/flow-group/src/main.vue +31 -14
  56. package/packages/flow-list/src/flow-table.vue +5 -1
  57. package/packages/flow-list/src/main.vue +780 -43
  58. package/packages/form/src/main.vue +63 -1
  59. package/packages/handler/src/main.vue +1 -1
  60. package/packages/login/src/main.vue +11 -2
  61. package/packages/main/src/main.vue +177 -58
  62. package/packages/main/src/userinfo.vue +10 -4
  63. package/packages/menu/src/main.vue +5 -3
  64. package/packages/nav/src/main.vue +0 -2
  65. package/packages/radio-group/src/main.vue +9 -5
  66. package/packages/select/src/main.vue +1 -1
  67. package/packages/selector/src/main.vue +12 -4
  68. package/packages/theme-chalk/lib/data-table.css +1 -1
  69. package/packages/theme-chalk/lib/flow-list.css +1 -1
  70. package/packages/theme-chalk/lib/index.css +1 -1
  71. package/packages/theme-chalk/lib/menu.css +1 -1
  72. package/packages/theme-chalk/src/data-table.scss +10 -17
  73. package/packages/theme-chalk/src/flow-list.scss +29 -34
  74. package/packages/theme-chalk/src/menu.scss +3 -0
  75. package/packages/toolbar/src/main.vue +1 -3
  76. package/packages/upload/src/main.vue +1 -1
  77. package/src/index.js +1 -1
  78. package/src/utils/util.js +2 -2
package/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  eoss-ui will stay with Vue 2.x
4
4
 
5
- npm publish —registry=https://repo.wisesoft.net.cn/repository/sge-hosted-npm/
6
-
7
5
  ## Install
8
6
 
9
7
  ```shell
@@ -91,14 +91,14 @@ module.exports =
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
94
- /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
94
+ /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
95
95
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
96
96
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
97
97
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
98
98
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
99
99
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
100
100
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
101
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
101
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
102
102
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
103
103
  var _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; };
104
104
 
@@ -266,7 +266,7 @@ var ajax = function ajax(_ref) {
266
266
  var loginPage = getStorage('login') || getStorage('loginPage');
267
267
  if (loginPage) {
268
268
  var src = void 0;
269
- if (!startWith(loginPage, ['http', '/'])) {
269
+ if (!startWith(loginPage, ['http', '/'], true)) {
270
270
  var pathname = win.top.location.pathname;
271
271
  if (pathname !== '/') {
272
272
  pathname = pathname.split('/');
@@ -2084,7 +2084,7 @@ var setStorage = function setStorage(_ref14) {
2084
2084
  * @param {boolean} [or] - 或者(等同于||)
2085
2085
  **/
2086
2086
  var startWith = function startWith(value, reg) {
2087
- var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2087
+ var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
2088
2088
 
2089
2089
  if (Array.isArray(reg)) {
2090
2090
  var flag = true;
@@ -2392,13 +2392,6 @@ var watermark = function watermark(option) {
2392
2392
  /***/ }),
2393
2393
 
2394
2394
  /***/ 1:
2395
- /***/ (function(module, exports) {
2396
-
2397
- module.exports = require("eoss-element");
2398
-
2399
- /***/ }),
2400
-
2401
- /***/ 2:
2402
2395
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2403
2396
 
2404
2397
  "use strict";
@@ -2738,6 +2731,13 @@ var formContents = '/config/admin/online/onlineForm/render';
2738
2731
 
2739
2732
  /***/ }),
2740
2733
 
2734
+ /***/ 2:
2735
+ /***/ (function(module, exports) {
2736
+
2737
+ module.exports = require("eoss-element");
2738
+
2739
+ /***/ }),
2740
+
2741
2741
  /***/ 3:
2742
2742
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2743
2743
 
package/lib/button.js CHANGED
@@ -91,14 +91,14 @@ module.exports =
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
94
- /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
94
+ /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
95
95
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
96
96
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
97
97
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
98
98
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
99
99
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
100
100
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
101
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
101
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
102
102
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
103
103
  var _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; };
104
104
 
@@ -266,7 +266,7 @@ var ajax = function ajax(_ref) {
266
266
  var loginPage = getStorage('login') || getStorage('loginPage');
267
267
  if (loginPage) {
268
268
  var src = void 0;
269
- if (!startWith(loginPage, ['http', '/'])) {
269
+ if (!startWith(loginPage, ['http', '/'], true)) {
270
270
  var pathname = win.top.location.pathname;
271
271
  if (pathname !== '/') {
272
272
  pathname = pathname.split('/');
@@ -2084,7 +2084,7 @@ var setStorage = function setStorage(_ref14) {
2084
2084
  * @param {boolean} [or] - 或者(等同于||)
2085
2085
  **/
2086
2086
  var startWith = function startWith(value, reg) {
2087
- var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2087
+ var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
2088
2088
 
2089
2089
  if (Array.isArray(reg)) {
2090
2090
  var flag = true;
@@ -2392,13 +2392,6 @@ var watermark = function watermark(option) {
2392
2392
  /***/ }),
2393
2393
 
2394
2394
  /***/ 1:
2395
- /***/ (function(module, exports) {
2396
-
2397
- module.exports = require("eoss-element");
2398
-
2399
- /***/ }),
2400
-
2401
- /***/ 2:
2402
2395
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2403
2396
 
2404
2397
  "use strict";
@@ -2738,6 +2731,13 @@ var formContents = '/config/admin/online/onlineForm/render';
2738
2731
 
2739
2732
  /***/ }),
2740
2733
 
2734
+ /***/ 2:
2735
+ /***/ (function(module, exports) {
2736
+
2737
+ module.exports = require("eoss-element");
2738
+
2739
+ /***/ }),
2740
+
2741
2741
  /***/ 3:
2742
2742
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2743
2743
 
@@ -91,14 +91,14 @@ module.exports =
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
94
- /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
94
+ /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
95
95
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
96
96
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
97
97
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
98
98
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
99
99
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
100
100
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
101
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
101
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
102
102
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
103
103
  var _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; };
104
104
 
@@ -266,7 +266,7 @@ var ajax = function ajax(_ref) {
266
266
  var loginPage = getStorage('login') || getStorage('loginPage');
267
267
  if (loginPage) {
268
268
  var src = void 0;
269
- if (!startWith(loginPage, ['http', '/'])) {
269
+ if (!startWith(loginPage, ['http', '/'], true)) {
270
270
  var pathname = win.top.location.pathname;
271
271
  if (pathname !== '/') {
272
272
  pathname = pathname.split('/');
@@ -2084,7 +2084,7 @@ var setStorage = function setStorage(_ref14) {
2084
2084
  * @param {boolean} [or] - 或者(等同于||)
2085
2085
  **/
2086
2086
  var startWith = function startWith(value, reg) {
2087
- var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2087
+ var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
2088
2088
 
2089
2089
  if (Array.isArray(reg)) {
2090
2090
  var flag = true;
@@ -2392,13 +2392,6 @@ var watermark = function watermark(option) {
2392
2392
  /***/ }),
2393
2393
 
2394
2394
  /***/ 1:
2395
- /***/ (function(module, exports) {
2396
-
2397
- module.exports = require("eoss-element");
2398
-
2399
- /***/ }),
2400
-
2401
- /***/ 2:
2402
2395
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2403
2396
 
2404
2397
  "use strict";
@@ -2738,6 +2731,13 @@ var formContents = '/config/admin/online/onlineForm/render';
2738
2731
 
2739
2732
  /***/ }),
2740
2733
 
2734
+ /***/ 2:
2735
+ /***/ (function(module, exports) {
2736
+
2737
+ module.exports = require("eoss-element");
2738
+
2739
+ /***/ }),
2740
+
2741
2741
  /***/ 3:
2742
2742
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2743
2743
 
@@ -2850,7 +2850,7 @@ function normalizeComponent(
2850
2850
  // ESM COMPAT FLAG
2851
2851
  __webpack_require__.r(__webpack_exports__);
2852
2852
 
2853
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=template&id=5e926836&
2853
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox-group/src/main.vue?vue&type=template&id=d474eac6&
2854
2854
  var render = function () {
2855
2855
  var _vm = this
2856
2856
  var _h = _vm.$createElement
@@ -2983,10 +2983,10 @@ var staticRenderFns = []
2983
2983
  render._withStripped = true
2984
2984
 
2985
2985
 
2986
- // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=5e926836&
2986
+ // CONCATENATED MODULE: ./packages/checkbox-group/src/main.vue?vue&type=template&id=d474eac6&
2987
2987
 
2988
2988
  // EXTERNAL MODULE: ./src/config/api.js
2989
- var api = __webpack_require__(2);
2989
+ var api = __webpack_require__(1);
2990
2990
 
2991
2991
  // EXTERNAL MODULE: ./src/utils/store.js
2992
2992
  var store = __webpack_require__(8);
@@ -3167,31 +3167,21 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3167
3167
  labelVal: function labelVal() {
3168
3168
  var _this = this;
3169
3169
 
3170
- if (typeof this.model === 'string') {
3171
- if (util["a" /* default */].isObject(this.results[0])) {
3172
- return this.results.map(function (item) {
3173
- if (item[_this.valueKey] === _this.model) {
3174
- return item[_this.label] || _this.model;
3170
+ var model = typeof this.model === 'string' ? this.model.split(',') : this.model;
3171
+ var label = model.map(function (item) {
3172
+ if (util["a" /* default */].isObject(item)) {
3173
+ return item[_this.label];
3174
+ }
3175
+ if (util["a" /* default */].isObject(_this.results[0])) {
3176
+ return _this.results.map(function (ele) {
3177
+ if (ele[_this.valueKey] === item) {
3178
+ return ele[_this.label];
3175
3179
  }
3176
- });
3180
+ }).join(' ');
3177
3181
  }
3178
- return this.model;
3179
- } else {
3180
- var label = this.model.map(function (item) {
3181
- if (util["a" /* default */].isObject(item)) {
3182
- return item[_this.label];
3183
- }
3184
- if (util["a" /* default */].isObject(_this.results[0])) {
3185
- return _this.results.map(function (ele) {
3186
- if (ele[_this.valueKey] === item) {
3187
- return ele[_this.label];
3188
- }
3189
- }).join(' ');
3190
- }
3191
- return item;
3192
- });
3193
- return label.join(' ');
3194
- }
3182
+ return item;
3183
+ });
3184
+ return label.join(' ');
3195
3185
  }
3196
3186
  },
3197
3187
  watch: {
@@ -90,14 +90,14 @@ module.exports =
90
90
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
91
91
 
92
92
  "use strict";
93
- /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
93
+ /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
94
94
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
95
95
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
96
96
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
97
97
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
98
98
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
99
99
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
100
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
100
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
101
101
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
102
102
  var _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; };
103
103
 
@@ -265,7 +265,7 @@ var ajax = function ajax(_ref) {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
267
  var src = void 0;
268
- if (!startWith(loginPage, ['http', '/'])) {
268
+ if (!startWith(loginPage, ['http', '/'], true)) {
269
269
  var pathname = win.top.location.pathname;
270
270
  if (pathname !== '/') {
271
271
  pathname = pathname.split('/');
@@ -2083,7 +2083,7 @@ var setStorage = function setStorage(_ref14) {
2083
2083
  * @param {boolean} [or] - 或者(等同于||)
2084
2084
  **/
2085
2085
  var startWith = function startWith(value, reg) {
2086
- var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2086
+ var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
2087
2087
 
2088
2088
  if (Array.isArray(reg)) {
2089
2089
  var flag = true;
@@ -2390,12 +2390,6 @@ var watermark = function watermark(option) {
2390
2390
 
2391
2391
  /***/ }),
2392
2392
  /* 1 */
2393
- /***/ (function(module, exports) {
2394
-
2395
- module.exports = require("eoss-element");
2396
-
2397
- /***/ }),
2398
- /* 2 */
2399
2393
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2400
2394
 
2401
2395
  "use strict";
@@ -2733,6 +2727,12 @@ var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
2733
2727
  // 表单结构
2734
2728
  var formContents = '/config/admin/online/onlineForm/render';
2735
2729
 
2730
+ /***/ }),
2731
+ /* 2 */
2732
+ /***/ (function(module, exports) {
2733
+
2734
+ module.exports = require("eoss-element");
2735
+
2736
2736
  /***/ }),
2737
2737
  /* 3 */
2738
2738
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -2919,7 +2919,7 @@ __webpack_require__.r(__webpack_exports__);
2919
2919
  var utils_util = __webpack_require__(0);
2920
2920
 
2921
2921
  // EXTERNAL MODULE: ./src/config/api.js
2922
- var api = __webpack_require__(2);
2922
+ var api = __webpack_require__(1);
2923
2923
 
2924
2924
  // EXTERNAL MODULE: ./src/utils/store.js
2925
2925
  var store = __webpack_require__(8);
package/lib/data-table.js CHANGED
@@ -90,14 +90,14 @@ module.exports =
90
90
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
91
91
 
92
92
  "use strict";
93
- /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
93
+ /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
94
94
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
95
95
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
96
96
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
97
97
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
98
98
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
99
99
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
100
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
100
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
101
101
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
102
102
  var _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; };
103
103
 
@@ -265,7 +265,7 @@ var ajax = function ajax(_ref) {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
267
  var src = void 0;
268
- if (!startWith(loginPage, ['http', '/'])) {
268
+ if (!startWith(loginPage, ['http', '/'], true)) {
269
269
  var pathname = win.top.location.pathname;
270
270
  if (pathname !== '/') {
271
271
  pathname = pathname.split('/');
@@ -2083,7 +2083,7 @@ var setStorage = function setStorage(_ref14) {
2083
2083
  * @param {boolean} [or] - 或者(等同于||)
2084
2084
  **/
2085
2085
  var startWith = function startWith(value, reg) {
2086
- var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2086
+ var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
2087
2087
 
2088
2088
  if (Array.isArray(reg)) {
2089
2089
  var flag = true;
@@ -2390,12 +2390,6 @@ var watermark = function watermark(option) {
2390
2390
 
2391
2391
  /***/ }),
2392
2392
  /* 1 */
2393
- /***/ (function(module, exports) {
2394
-
2395
- module.exports = require("eoss-element");
2396
-
2397
- /***/ }),
2398
- /* 2 */
2399
2393
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2400
2394
 
2401
2395
  "use strict";
@@ -2733,6 +2727,12 @@ var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
2733
2727
  // 表单结构
2734
2728
  var formContents = '/config/admin/online/onlineForm/render';
2735
2729
 
2730
+ /***/ }),
2731
+ /* 2 */
2732
+ /***/ (function(module, exports) {
2733
+
2734
+ module.exports = require("eoss-element");
2735
+
2736
2736
  /***/ }),
2737
2737
  /* 3 */
2738
2738
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -2911,8 +2911,8 @@ module.exports = require("vue");
2911
2911
  // ESM COMPAT FLAG
2912
2912
  __webpack_require__.r(__webpack_exports__);
2913
2913
 
2914
- // 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=59cbc514&
2915
- var mainvue_type_template_id_59cbc514_render = function () {
2914
+ // 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=0cfc4a8c&
2915
+ var mainvue_type_template_id_0cfc4a8c_render = function () {
2916
2916
  var _vm = this
2917
2917
  var _h = _vm.$createElement
2918
2918
  var _c = _vm._self._c || _h
@@ -2967,6 +2967,7 @@ var mainvue_type_template_id_59cbc514_render = function () {
2967
2967
  : _vm._e(),
2968
2968
  _vm.title
2969
2969
  ? _c("p", {
2970
+ ref: "title",
2970
2971
  staticClass: "es-table-title",
2971
2972
  domProps: { innerHTML: _vm._s(_vm.title) },
2972
2973
  })
@@ -2998,7 +2999,7 @@ var mainvue_type_template_id_59cbc514_render = function () {
2998
2999
  sumText: _vm.sumText || _vm.totalText,
2999
3000
  totalRow: _vm.restotalRow || _vm.totalRow,
3000
3001
  height:
3001
- _vm.tableHeight !== "auto"
3002
+ _vm.tableHeight !== "auto" && _vm.tableHeight !== false
3002
3003
  ? _vm.tableHeight
3003
3004
  : undefined,
3004
3005
  border: _vm.border,
@@ -3247,13 +3248,13 @@ var mainvue_type_template_id_59cbc514_render = function () {
3247
3248
  )
3248
3249
  }
3249
3250
  var staticRenderFns = []
3250
- mainvue_type_template_id_59cbc514_render._withStripped = true
3251
+ mainvue_type_template_id_0cfc4a8c_render._withStripped = true
3251
3252
 
3252
3253
 
3253
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=59cbc514&
3254
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=0cfc4a8c&
3254
3255
 
3255
3256
  // EXTERNAL MODULE: ./src/config/api.js
3256
- var api = __webpack_require__(2);
3257
+ var api = __webpack_require__(1);
3257
3258
 
3258
3259
  // 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=796433ee&
3259
3260
  var childrenvue_type_template_id_796433ee_render = function () {
@@ -3303,8 +3304,8 @@ childrenvue_type_template_id_796433ee_render._withStripped = true
3303
3304
 
3304
3305
  // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=796433ee&
3305
3306
 
3306
- // 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/column.vue?vue&type=template&id=256206e7&
3307
- var columnvue_type_template_id_256206e7_render = function () {
3307
+ // 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/column.vue?vue&type=template&id=4ca382cb&
3308
+ var columnvue_type_template_id_4ca382cb_render = function () {
3308
3309
  var _vm = this
3309
3310
  var _h = _vm.$createElement
3310
3311
  var _c = _vm._self._c || _h
@@ -3393,7 +3394,9 @@ var columnvue_type_template_id_256206e7_render = function () {
3393
3394
  attrs: {
3394
3395
  name: _vm.name,
3395
3396
  prop: _vm.item.field,
3396
- rules: _vm.item.rules,
3397
+ rules: _vm.isNotRule(_vm.item, scope)
3398
+ ? []
3399
+ : _vm.item.rules,
3397
3400
  index: scope.$index,
3398
3401
  },
3399
3402
  },
@@ -4284,11 +4287,11 @@ var columnvue_type_template_id_256206e7_render = function () {
4284
4287
  2
4285
4288
  )
4286
4289
  }
4287
- var columnvue_type_template_id_256206e7_staticRenderFns = []
4288
- columnvue_type_template_id_256206e7_render._withStripped = true
4290
+ var columnvue_type_template_id_4ca382cb_staticRenderFns = []
4291
+ columnvue_type_template_id_4ca382cb_render._withStripped = true
4289
4292
 
4290
4293
 
4291
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=256206e7&
4294
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=4ca382cb&
4292
4295
 
4293
4296
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
4294
4297
  var regenerator_ = __webpack_require__(9);
@@ -4902,6 +4905,9 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
4902
4905
  }
4903
4906
  },
4904
4907
  inject: {
4908
+ elForm: {
4909
+ default: ''
4910
+ },
4905
4911
  tableReload: {
4906
4912
  default: ''
4907
4913
  }
@@ -5107,6 +5113,13 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5107
5113
  isReadOnly: function isReadOnly(item, scope) {
5108
5114
  return scope.row.canEdit === false || this.readonly || item.editable === false || scope.row.cantEditKey && scope.row.cantEditKey.indexOf(item.field || item.prop) > -1 || item.readonly;
5109
5115
  },
5116
+ isNotRule: function isNotRule(item, scope) {
5117
+ if (scope.row.canRule === false || scope.row.notRules && scope.row.notRules.indexOf(item.field || item.prop) > -1) {
5118
+ this.elForm && this.elForm.clearValidate(item.field || item.prop);
5119
+ return true;
5120
+ }
5121
+ return false;
5122
+ },
5110
5123
  handleBlur: function handleBlur(data) {
5111
5124
  var item = data.item;
5112
5125
 
@@ -5198,8 +5211,8 @@ var componentNormalizer = __webpack_require__(3);
5198
5211
 
5199
5212
  var component = Object(componentNormalizer["a" /* default */])(
5200
5213
  src_columnvue_type_script_lang_js_,
5201
- columnvue_type_template_id_256206e7_render,
5202
- columnvue_type_template_id_256206e7_staticRenderFns,
5214
+ columnvue_type_template_id_4ca382cb_render,
5215
+ columnvue_type_template_id_4ca382cb_staticRenderFns,
5203
5216
  false,
5204
5217
  null,
5205
5218
  null,
@@ -5709,6 +5722,9 @@ var mainvue_type_script_lang_js_components;
5709
5722
  //
5710
5723
  //
5711
5724
  //
5725
+ //
5726
+ //
5727
+ //
5712
5728
 
5713
5729
 
5714
5730
 
@@ -6020,7 +6036,7 @@ var mainvue_type_script_lang_js_components;
6020
6036
  scale: {
6021
6037
  deep: true,
6022
6038
  handler: function handler(val) {
6023
- if (this.tableHeight != 'auto' && this.display) {
6039
+ if (this.tableHeight != 'auto' && this.tableHeight !== false && this.display) {
6024
6040
  this.resetHeight();
6025
6041
  this.doLayout();
6026
6042
  }
@@ -6028,7 +6044,7 @@ var mainvue_type_script_lang_js_components;
6028
6044
  },
6029
6045
  zoom: {
6030
6046
  handler: function handler(val) {
6031
- if (this.tableHeight != 'auto' && this.display) {
6047
+ if (this.tableHeight != 'auto' && this.tableHeight !== false && this.display) {
6032
6048
  this.resetHeight();
6033
6049
  this.doLayout();
6034
6050
  }
@@ -6281,11 +6297,13 @@ var mainvue_type_script_lang_js_components;
6281
6297
  });
6282
6298
  } else {
6283
6299
  _this6.list = [];
6300
+ _this6.tableHeight = false;
6284
6301
  var msg = res.msg || '系统错误,请联系管理员!';
6285
6302
  _this6.$message.error(msg);
6286
6303
  }
6287
6304
  _this6.$emit('success', res);
6288
6305
  }).catch(function (err) {
6306
+ _this6.tableHeight = false;
6289
6307
  if (err.message && err.message !== 'canceled') {
6290
6308
  _this6.$message.error(err.message);
6291
6309
  }
@@ -6664,36 +6682,33 @@ var mainvue_type_script_lang_js_components;
6664
6682
  }
6665
6683
  },
6666
6684
  resetHeight: function resetHeight() {
6667
- var _this9 = this;
6668
-
6669
- this.$nextTick(function () {
6670
- if (_this9.full && !_this9.height && !_this9.maxHeight) {
6671
- var height = _this9.$el.parentNode.offsetHeight - parseInt(util["a" /* default */].getStyle(_this9.$el.parentNode, 'paddingTop'), 10) - parseInt(util["a" /* default */].getStyle(_this9.$el.parentNode, 'paddingBottom'), 10);
6672
- for (var i = 0; i < _this9.$el.parentNode.childNodes.length; i++) {
6673
- var ele = _this9.$el.parentNode.childNodes[i];
6674
- if (ele !== _this9.$el) {
6675
- height -= ele.offsetHeight === undefined ? 0 : ele.offsetHeight;
6676
- }
6677
- }
6678
- for (var _i3 = 0; _i3 < _this9.$el.childNodes.length; _i3++) {
6679
- var _ele = _this9.$el.childNodes[_i3];
6680
- if (_ele !== _this9.$refs.esTableContent) {
6681
- height -= _ele.offsetHeight === undefined ? 0 : _ele.offsetHeight;
6682
- }
6683
- }
6684
- _this9.styles = { height: height + 'px' };
6685
- var loadingDom = _this9.$refs.esTableContent.querySelector('.el-loading-mask');
6686
- for (var _i4 = 0; _i4 < _this9.$refs.esTableContent.childNodes.length; _i4++) {
6687
- var _ele2 = _this9.$refs.esTableContent.childNodes[_i4];
6688
- if (_ele2 !== _this9.$refs.oaTable.$el && (!loadingDom || _ele2 !== loadingDom)) {
6689
- height -= _ele2.offsetHeight === undefined ? 0 : _ele2.offsetHeight;
6690
- }
6685
+ //this.$nextTick(() => {
6686
+ if (this.full && !this.height && !this.maxHeight) {
6687
+ var height = this.$el.parentNode.offsetHeight - parseInt(util["a" /* default */].getStyle(this.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(this.$el.parentNode, 'padding-bottom'), 10);
6688
+ for (var i = 0; i < this.$el.parentNode.childNodes.length; i++) {
6689
+ var ele = this.$el.parentNode.childNodes[i];
6690
+ if (ele !== this.$el && ele.offsetHeight !== undefined) {
6691
+ height = height - ele.offsetHeight - parseInt(util["a" /* default */].getStyle(ele, 'margin-top'), 10) - parseInt(util["a" /* default */].getStyle(ele, 'margin-bottom'), 10);
6691
6692
  }
6692
- var pt = parseInt(util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'paddingTop'), 10);
6693
- var pb = parseInt(util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'paddingBottom'), 10);
6694
- _this9.tableHeight = height - pt - pb + (_this9.page ? 2 : 1) + 'px';
6695
6693
  }
6696
- });
6694
+ height -= this.showToolbar ? 45 : 0;
6695
+ height -= this.page === false ? 0 : 46;
6696
+ height -= this.title ? this.$refs.title.offsetHeight : 0;
6697
+ height -= parseInt(util["a" /* default */].getStyle(this.$refs.esTableContent, 'padding-top'), 10);
6698
+ height -= parseInt(util["a" /* default */].getStyle(this.$refs.esTableContent, 'padding-bottom'), 10);
6699
+ var emptyText = this.$refs.esTableContent.querySelector('.el-table__empty-text');
6700
+ var eht = 0;
6701
+ if (emptyText) {
6702
+ eht = emptyText.offsetHeight;
6703
+ var thead = this.$refs.esTableContent.querySelector('.el-table__header');
6704
+ thead && (eht += thead.offsetHeight);
6705
+ }
6706
+ if (height > 1 && height - eht > 1) {
6707
+ this.tableHeight = height;
6708
+ } else {
6709
+ console.warn(this.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
6710
+ }
6711
+ }
6697
6712
  },
6698
6713
  validate: function validate(callback) {
6699
6714
  var form = this.elForm || this.$refs.esTableForm;
@@ -6717,12 +6732,12 @@ var mainvue_type_script_lang_js_components;
6717
6732
  this.$emit('sort-change', res);
6718
6733
  },
6719
6734
  mergeThead: function mergeThead(res) {
6720
- var _this10 = this;
6735
+ var _this9 = this;
6721
6736
 
6722
6737
  this.theadData = res;
6723
6738
  this.icon = true;
6724
6739
  setTimeout(function () {
6725
- _this10.show = true;
6740
+ _this9.show = true;
6726
6741
  }, 100);
6727
6742
  }
6728
6743
  }
@@ -6739,7 +6754,7 @@ var mainvue_type_script_lang_js_components;
6739
6754
 
6740
6755
  var main_component = Object(componentNormalizer["a" /* default */])(
6741
6756
  src_mainvue_type_script_lang_js_,
6742
- mainvue_type_template_id_59cbc514_render,
6757
+ mainvue_type_template_id_0cfc4a8c_render,
6743
6758
  staticRenderFns,
6744
6759
  false,
6745
6760
  null,