eoss-ui 0.5.56 → 0.5.58

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 (72) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/lib/button-group.js +19 -9
  3. package/lib/button.js +4 -4
  4. package/lib/cascader.js +2 -2
  5. package/lib/checkbox-group.js +2 -2
  6. package/lib/data-table-form.js +2 -2
  7. package/lib/data-table.js +32 -19
  8. package/lib/date-picker.js +4 -4
  9. package/lib/dialog.js +2 -2
  10. package/lib/eoss-ui.common.js +184 -69
  11. package/lib/flow-group.js +2 -2
  12. package/lib/flow-list.js +2 -2
  13. package/lib/flow.js +2 -2
  14. package/lib/form.js +2 -2
  15. package/lib/handle-user.js +2 -2
  16. package/lib/handler.js +2 -2
  17. package/lib/icon.js +3841 -0
  18. package/lib/icons.js +2 -2
  19. package/lib/index.js +1 -1
  20. package/lib/input-number.js +4 -4
  21. package/lib/input.js +4 -4
  22. package/lib/label.js +2 -2
  23. package/lib/login.js +2 -2
  24. package/lib/main.js +4 -5
  25. package/lib/menu.js +2 -3
  26. package/lib/nav.js +4 -4
  27. package/lib/notify.js +2 -2
  28. package/lib/page.js +4 -4
  29. package/lib/pagination.js +2 -2
  30. package/lib/player.js +4 -4
  31. package/lib/qr-code.js +4 -4
  32. package/lib/radio-group.js +4 -4
  33. package/lib/retrial-auth.js +4 -4
  34. package/lib/select-ganged.js +4 -4
  35. package/lib/select.js +4 -4
  36. package/lib/selector-panel.js +2 -2
  37. package/lib/selector.js +11 -11
  38. package/lib/sizer.js +4 -4
  39. package/lib/steps.js +4 -4
  40. package/lib/switch.js +11 -11
  41. package/lib/table-form.js +4 -4
  42. package/lib/tabs-panel.js +2 -2
  43. package/lib/tabs.js +4 -4
  44. package/lib/theme-chalk/data-table.css +1 -1
  45. package/lib/theme-chalk/index.css +1 -1
  46. package/lib/theme-chalk/menu.css +1 -1
  47. package/lib/tips.js +4 -4
  48. package/lib/toolbar.js +2 -3
  49. package/lib/tree-group.js +4 -4
  50. package/lib/tree.js +10 -8
  51. package/lib/upload.js +7 -8
  52. package/lib/utils/util.js +2 -2
  53. package/lib/wujie.js +4 -4
  54. package/lib/wxlogin.js +137 -137
  55. package/package.json +1 -1
  56. package/packages/button-group/src/main.vue +5 -5
  57. package/packages/data-table/src/column.vue +1 -1
  58. package/packages/data-table/src/main.vue +14 -4
  59. package/packages/icon/index.js +5 -0
  60. package/packages/icon/src/main.vue +43 -0
  61. package/packages/main/src/main.vue +0 -1
  62. package/packages/menu/src/main.vue +0 -1
  63. package/packages/theme-chalk/lib/data-table.css +1 -1
  64. package/packages/theme-chalk/lib/index.css +1 -1
  65. package/packages/theme-chalk/lib/menu.css +1 -1
  66. package/packages/theme-chalk/src/data-table.scss +17 -0
  67. package/packages/theme-chalk/src/menu.scss +3 -5
  68. package/packages/toolbar/src/main.vue +0 -1
  69. package/packages/tree/src/main.vue +14 -2
  70. package/packages/upload/src/main.vue +0 -1
  71. package/src/index.js +4 -1
  72. package/src/utils/util.js +2 -1
@@ -2005,7 +2005,7 @@ var isFunction = function isFunction(obj) {
2005
2005
  * @param {object} [to] - 路由跳转信息
2006
2006
  * @param {object} [from] - 路由来源信息
2007
2007
  * @param {function} [next] - 跳转函数
2008
- * @param {array} [exclude] - 不拦截的路由
2008
+ * @param {array/boolean} [exclude] - 不拦截的路由
2009
2009
  * @param {boolean} [open] - 是否新窗口打开
2010
2010
  * @param {boolean} [cookie] - 是否尝试采用
2011
2011
  * @param {sting} [loginPage] - 第三方登录页面地址
@@ -2158,7 +2158,7 @@ var isLogined = function isLogined(_ref8) {
2158
2158
  });
2159
2159
  }
2160
2160
  }).catch(function (e) {});
2161
- } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2161
+ } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2162
2162
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2163
2163
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2164
2164
  } else {
@@ -3569,7 +3569,7 @@ function normalizeComponent(
3569
3569
  // ESM COMPAT FLAG
3570
3570
  __webpack_require__.r(__webpack_exports__);
3571
3571
 
3572
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=10c7630a&
3572
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=619ac538&
3573
3573
  var render = function () {
3574
3574
  var _vm = this
3575
3575
  var _h = _vm.$createElement
@@ -3589,7 +3589,9 @@ var render = function () {
3589
3589
  attrs: { stop: _vm.stop, size: _vm.size, type: item.type },
3590
3590
  on: {
3591
3591
  click: function ($event) {
3592
- _vm.handleClick({ row: _vm.data, handle: item })
3592
+ _vm.handleClick(
3593
+ Object.assign({}, _vm.data, { handle: item })
3594
+ )
3593
3595
  },
3594
3596
  },
3595
3597
  },
@@ -3602,7 +3604,9 @@ var render = function () {
3602
3604
  "\n " +
3603
3605
  _vm._s(
3604
3606
  item.template
3605
- ? item.template({ row: _vm.data, config: item })
3607
+ ? item.template(
3608
+ Object.assign({}, _vm.data, { config: item })
3609
+ )
3606
3610
  : item.text
3607
3611
  ) +
3608
3612
  "\n "
@@ -3633,7 +3637,11 @@ var render = function () {
3633
3637
  _vm._v(
3634
3638
  _vm._s(
3635
3639
  item.template
3636
- ? item.template({ row: _vm.data, config: item })
3640
+ ? item.template(
3641
+ Object.assign({}, _vm.data, {
3642
+ config: item,
3643
+ })
3644
+ )
3637
3645
  : item.text
3638
3646
  )
3639
3647
  ),
@@ -3656,12 +3664,14 @@ var staticRenderFns = []
3656
3664
  render._withStripped = true
3657
3665
 
3658
3666
 
3659
- // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=10c7630a&
3667
+ // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=619ac538&
3660
3668
 
3661
3669
  // EXTERNAL MODULE: ./src/utils/util.js
3662
3670
  var util = __webpack_require__(0);
3663
3671
 
3664
3672
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=script&lang=js&
3673
+ var _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; };
3674
+
3665
3675
  //
3666
3676
  //
3667
3677
  //
@@ -3777,8 +3787,8 @@ var util = __webpack_require__(0);
3777
3787
  this.$emit('handle-click', obj);
3778
3788
  },
3779
3789
  handleCommand: function handleCommand(res) {
3780
- this.$emit('handleClick', { row: this.data, handle: res });
3781
- this.$emit('handle-click', { row: this.data, handle: res });
3790
+ this.$emit('handleClick', _extends({}, this.data, { handle: res }));
3791
+ this.$emit('handle-click', _extends({}, this.data, { handle: res }));
3782
3792
  },
3783
3793
  resetWidth: function resetWidth() {
3784
3794
  var _this2 = this;
package/lib/button.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 70);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 71);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -2005,7 +2005,7 @@ var isFunction = function isFunction(obj) {
2005
2005
  * @param {object} [to] - 路由跳转信息
2006
2006
  * @param {object} [from] - 路由来源信息
2007
2007
  * @param {function} [next] - 跳转函数
2008
- * @param {array} [exclude] - 不拦截的路由
2008
+ * @param {array/boolean} [exclude] - 不拦截的路由
2009
2009
  * @param {boolean} [open] - 是否新窗口打开
2010
2010
  * @param {boolean} [cookie] - 是否尝试采用
2011
2011
  * @param {sting} [loginPage] - 第三方登录页面地址
@@ -2158,7 +2158,7 @@ var isLogined = function isLogined(_ref8) {
2158
2158
  });
2159
2159
  }
2160
2160
  }).catch(function (e) {});
2161
- } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2161
+ } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2162
2162
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2163
2163
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2164
2164
  } else {
@@ -3716,7 +3716,7 @@ var WebSocket = function () {
3716
3716
 
3717
3717
  /***/ }),
3718
3718
 
3719
- /***/ 70:
3719
+ /***/ 71:
3720
3720
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3721
3721
 
3722
3722
  "use strict";
package/lib/cascader.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 71);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 72);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 71:
195
+ /***/ 72:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
@@ -2004,7 +2004,7 @@ var isFunction = function isFunction(obj) {
2004
2004
  * @param {object} [to] - 路由跳转信息
2005
2005
  * @param {object} [from] - 路由来源信息
2006
2006
  * @param {function} [next] - 跳转函数
2007
- * @param {array} [exclude] - 不拦截的路由
2007
+ * @param {array/boolean} [exclude] - 不拦截的路由
2008
2008
  * @param {boolean} [open] - 是否新窗口打开
2009
2009
  * @param {boolean} [cookie] - 是否尝试采用
2010
2010
  * @param {sting} [loginPage] - 第三方登录页面地址
@@ -2157,7 +2157,7 @@ var isLogined = function isLogined(_ref8) {
2157
2157
  });
2158
2158
  }
2159
2159
  }).catch(function (e) {});
2160
- } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2160
+ } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2161
2161
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2162
2162
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2163
2163
  } else {
@@ -2004,7 +2004,7 @@ var isFunction = function isFunction(obj) {
2004
2004
  * @param {object} [to] - 路由跳转信息
2005
2005
  * @param {object} [from] - 路由来源信息
2006
2006
  * @param {function} [next] - 跳转函数
2007
- * @param {array} [exclude] - 不拦截的路由
2007
+ * @param {array/boolean} [exclude] - 不拦截的路由
2008
2008
  * @param {boolean} [open] - 是否新窗口打开
2009
2009
  * @param {boolean} [cookie] - 是否尝试采用
2010
2010
  * @param {sting} [loginPage] - 第三方登录页面地址
@@ -2157,7 +2157,7 @@ var isLogined = function isLogined(_ref8) {
2157
2157
  });
2158
2158
  }
2159
2159
  }).catch(function (e) {});
2160
- } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2160
+ } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2161
2161
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2162
2162
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2163
2163
  } else {
package/lib/data-table.js CHANGED
@@ -2004,7 +2004,7 @@ var isFunction = function isFunction(obj) {
2004
2004
  * @param {object} [to] - 路由跳转信息
2005
2005
  * @param {object} [from] - 路由来源信息
2006
2006
  * @param {function} [next] - 跳转函数
2007
- * @param {array} [exclude] - 不拦截的路由
2007
+ * @param {array/boolean} [exclude] - 不拦截的路由
2008
2008
  * @param {boolean} [open] - 是否新窗口打开
2009
2009
  * @param {boolean} [cookie] - 是否尝试采用
2010
2010
  * @param {sting} [loginPage] - 第三方登录页面地址
@@ -2157,7 +2157,7 @@ var isLogined = function isLogined(_ref8) {
2157
2157
  });
2158
2158
  }
2159
2159
  }).catch(function (e) {});
2160
- } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2160
+ } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2161
2161
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2162
2162
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2163
2163
  } else {
@@ -3766,8 +3766,8 @@ module.exports = require("vue");
3766
3766
  // ESM COMPAT FLAG
3767
3767
  __webpack_require__.r(__webpack_exports__);
3768
3768
 
3769
- // 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=fa664770&
3770
- var mainvue_type_template_id_fa664770_render = function () {
3769
+ // 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=6d62957e&
3770
+ var mainvue_type_template_id_6d62957e_render = function () {
3771
3771
  var _vm = this
3772
3772
  var _h = _vm.$createElement
3773
3773
  var _c = _vm._self._c || _h
@@ -3839,6 +3839,7 @@ var mainvue_type_template_id_fa664770_render = function () {
3839
3839
  {
3840
3840
  ref: "esTableContent",
3841
3841
  staticClass: "es-data-table-content",
3842
+ class: _vm.border == "none" ? "es-table-border-none" : "",
3842
3843
  staticStyle: {},
3843
3844
  },
3844
3845
  [
@@ -3850,7 +3851,9 @@ var mainvue_type_template_id_fa664770_render = function () {
3850
3851
  ref: "oaTable",
3851
3852
  class:
3852
3853
  "es-table" +
3853
- (_vm.theadBorder ? " es-thead-border" : ""),
3854
+ (_vm.theadBorder && _vm.border != "none"
3855
+ ? " es-thead-border"
3856
+ : ""),
3854
3857
  },
3855
3858
  "el-table",
3856
3859
  Object.assign({}, _vm.$attrs, {
@@ -3863,7 +3866,7 @@ var mainvue_type_template_id_fa664770_render = function () {
3863
3866
  _vm.tableHeight !== "auto" && _vm.tableHeight !== false
3864
3867
  ? _vm.tableHeight
3865
3868
  : undefined,
3866
- border: _vm.border,
3869
+ border: _vm._border,
3867
3870
  infiniteScroll: _vm.getTableData,
3868
3871
  infiniteScrollDisabled: _vm.infiniteDisabled,
3869
3872
  }),
@@ -4033,10 +4036,10 @@ var mainvue_type_template_id_fa664770_render = function () {
4033
4036
  )
4034
4037
  }
4035
4038
  var staticRenderFns = []
4036
- mainvue_type_template_id_fa664770_render._withStripped = true
4039
+ mainvue_type_template_id_6d62957e_render._withStripped = true
4037
4040
 
4038
4041
 
4039
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=fa664770&
4042
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=6d62957e&
4040
4043
 
4041
4044
  // EXTERNAL MODULE: ./src/config/api.js
4042
4045
  var api = __webpack_require__(1);
@@ -4084,8 +4087,8 @@ childrenvue_type_template_id_29bcbc72_render._withStripped = true
4084
4087
 
4085
4088
  // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
4086
4089
 
4087
- // 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=66569ceb&
4088
- var columnvue_type_template_id_66569ceb_render = function () {
4090
+ // 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=449ae3d7&
4091
+ var columnvue_type_template_id_449ae3d7_render = function () {
4089
4092
  var _vm = this
4090
4093
  var _h = _vm.$createElement
4091
4094
  var _c = _vm._self._c || _h
@@ -4763,7 +4766,7 @@ var columnvue_type_template_id_66569ceb_render = function () {
4763
4766
  attrs: {
4764
4767
  stop: "",
4765
4768
  contents: _vm.contents || _vm.events,
4766
- data: scope.row,
4769
+ data: scope,
4767
4770
  },
4768
4771
  on: { handleClick: _vm.handleClick },
4769
4772
  model: {
@@ -4803,11 +4806,11 @@ var columnvue_type_template_id_66569ceb_render = function () {
4803
4806
  2
4804
4807
  )
4805
4808
  }
4806
- var columnvue_type_template_id_66569ceb_staticRenderFns = []
4807
- columnvue_type_template_id_66569ceb_render._withStripped = true
4809
+ var columnvue_type_template_id_449ae3d7_staticRenderFns = []
4810
+ columnvue_type_template_id_449ae3d7_render._withStripped = true
4808
4811
 
4809
4812
 
4810
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=66569ceb&
4813
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=449ae3d7&
4811
4814
 
4812
4815
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
4813
4816
  var regenerator_ = __webpack_require__(12);
@@ -5677,8 +5680,8 @@ var componentNormalizer = __webpack_require__(3);
5677
5680
 
5678
5681
  var component = Object(componentNormalizer["a" /* default */])(
5679
5682
  src_columnvue_type_script_lang_js_,
5680
- columnvue_type_template_id_66569ceb_render,
5681
- columnvue_type_template_id_66569ceb_staticRenderFns,
5683
+ columnvue_type_template_id_449ae3d7_render,
5684
+ columnvue_type_template_id_449ae3d7_staticRenderFns,
5682
5685
  false,
5683
5686
  null,
5684
5687
  null,
@@ -6141,6 +6144,10 @@ var mainvue_type_script_lang_js_components, _watch;
6141
6144
  //
6142
6145
  //
6143
6146
  //
6147
+ //
6148
+ //
6149
+ //
6150
+ //
6144
6151
 
6145
6152
 
6146
6153
 
@@ -6342,8 +6349,11 @@ var mainvue_type_script_lang_js_components, _watch;
6342
6349
  response: Function,
6343
6350
  minWidth: [Number, String],
6344
6351
  border: {
6345
- type: Boolean,
6346
- default: false
6352
+ type: [Boolean, String],
6353
+ default: false,
6354
+ validator: function validator(value) {
6355
+ return [true, false, 'none'].includes(value);
6356
+ }
6347
6357
  },
6348
6358
  theadBorder: {
6349
6359
  type: Boolean,
@@ -6427,6 +6437,9 @@ var mainvue_type_script_lang_js_components, _watch;
6427
6437
  tag: function tag() {
6428
6438
  return this.form && this.elForm == '' ? 'el-form' : 'div';
6429
6439
  },
6440
+ _border: function _border() {
6441
+ return this.border === true ? true : false;
6442
+ },
6430
6443
 
6431
6444
  theads: {
6432
6445
  get: function get() {
@@ -7391,7 +7404,7 @@ var mainvue_type_script_lang_js_components, _watch;
7391
7404
 
7392
7405
  var main_component = Object(componentNormalizer["a" /* default */])(
7393
7406
  src_mainvue_type_script_lang_js_,
7394
- mainvue_type_template_id_fa664770_render,
7407
+ mainvue_type_template_id_6d62957e_render,
7395
7408
  staticRenderFns,
7396
7409
  false,
7397
7410
  null,
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 72);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 73);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -2005,7 +2005,7 @@ var isFunction = function isFunction(obj) {
2005
2005
  * @param {object} [to] - 路由跳转信息
2006
2006
  * @param {object} [from] - 路由来源信息
2007
2007
  * @param {function} [next] - 跳转函数
2008
- * @param {array} [exclude] - 不拦截的路由
2008
+ * @param {array/boolean} [exclude] - 不拦截的路由
2009
2009
  * @param {boolean} [open] - 是否新窗口打开
2010
2010
  * @param {boolean} [cookie] - 是否尝试采用
2011
2011
  * @param {sting} [loginPage] - 第三方登录页面地址
@@ -2158,7 +2158,7 @@ var isLogined = function isLogined(_ref8) {
2158
2158
  });
2159
2159
  }
2160
2160
  }).catch(function (e) {});
2161
- } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2161
+ } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2162
2162
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2163
2163
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2164
2164
  } else {
@@ -3716,7 +3716,7 @@ var WebSocket = function () {
3716
3716
 
3717
3717
  /***/ }),
3718
3718
 
3719
- /***/ 72:
3719
+ /***/ 73:
3720
3720
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3721
3721
 
3722
3722
  "use strict";
package/lib/dialog.js CHANGED
@@ -2004,7 +2004,7 @@ var isFunction = function isFunction(obj) {
2004
2004
  * @param {object} [to] - 路由跳转信息
2005
2005
  * @param {object} [from] - 路由来源信息
2006
2006
  * @param {function} [next] - 跳转函数
2007
- * @param {array} [exclude] - 不拦截的路由
2007
+ * @param {array/boolean} [exclude] - 不拦截的路由
2008
2008
  * @param {boolean} [open] - 是否新窗口打开
2009
2009
  * @param {boolean} [cookie] - 是否尝试采用
2010
2010
  * @param {sting} [loginPage] - 第三方登录页面地址
@@ -2157,7 +2157,7 @@ var isLogined = function isLogined(_ref8) {
2157
2157
  });
2158
2158
  }
2159
2159
  }).catch(function (e) {});
2160
- } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2160
+ } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2161
2161
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2162
2162
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2163
2163
  } else {