eoss-ui 0.5.14 → 0.5.15

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.
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
package/lib/button.js CHANGED
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
package/lib/data-table.js CHANGED
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
@@ -4154,8 +4158,8 @@ childrenvue_type_template_id_29bcbc72_render._withStripped = true
4154
4158
 
4155
4159
  // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
4156
4160
 
4157
- // 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=7363f6a6&
4158
- var columnvue_type_template_id_7363f6a6_render = function () {
4161
+ // 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=cd703de2&
4162
+ var columnvue_type_template_id_cd703de2_render = function () {
4159
4163
  var _vm = this
4160
4164
  var _h = _vm.$createElement
4161
4165
  var _c = _vm._self._c || _h
@@ -4768,10 +4772,7 @@ var columnvue_type_template_id_7363f6a6_render = function () {
4768
4772
  },
4769
4773
  "es-button-group",
4770
4774
  _vm.exclAttribute({
4771
- data: Object.assign({}, _vm.config, {
4772
- prop: this.prop,
4773
- field: this.field,
4774
- }),
4775
+ data: _vm.config,
4775
4776
  attrs: [
4776
4777
  "contents",
4777
4778
  "events",
@@ -4787,10 +4788,7 @@ var columnvue_type_template_id_7363f6a6_render = function () {
4787
4788
  : _vm.render
4788
4789
  ? _c("expand-dom", {
4789
4790
  attrs: {
4790
- column: Object.assign({}, _vm.config, {
4791
- prop: this.prop,
4792
- field: this.field,
4793
- }),
4791
+ column: _vm.config,
4794
4792
  row: scope.row,
4795
4793
  render: _vm.render,
4796
4794
  index: _vm.indexs,
@@ -4831,11 +4829,11 @@ var columnvue_type_template_id_7363f6a6_render = function () {
4831
4829
  2
4832
4830
  )
4833
4831
  }
4834
- var columnvue_type_template_id_7363f6a6_staticRenderFns = []
4835
- columnvue_type_template_id_7363f6a6_render._withStripped = true
4832
+ var columnvue_type_template_id_cd703de2_staticRenderFns = []
4833
+ columnvue_type_template_id_cd703de2_render._withStripped = true
4836
4834
 
4837
4835
 
4838
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=7363f6a6&
4836
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=cd703de2&
4839
4837
 
4840
4838
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
4841
4839
  var regenerator_ = __webpack_require__(12);
@@ -5380,9 +5378,11 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5380
5378
  sortable: this.sortable || this.sort,
5381
5379
  minWidth: this.minWidth || this.table.minWidth || minWidth,
5382
5380
  className: [this.className ? this.className : '', this.type ? ' es-table-' + this.type + '-box' : '', this.showOverflowTooltip ? ' es-text-ellipsis' : ''].join(' '),
5383
- labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' ')
5381
+ labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' '),
5382
+ prop: this.field || this.prop,
5383
+ field: this.field
5384
5384
  }, this.$attrs);
5385
- return _extends({}, config, { prop: this.field || this.prop, field: this.field });
5385
+ return config;
5386
5386
  },
5387
5387
  formOption: function formOption() {
5388
5388
  return _extends({
@@ -5664,8 +5664,8 @@ var componentNormalizer = __webpack_require__(3);
5664
5664
 
5665
5665
  var component = Object(componentNormalizer["a" /* default */])(
5666
5666
  src_columnvue_type_script_lang_js_,
5667
- columnvue_type_template_id_7363f6a6_render,
5668
- columnvue_type_template_id_7363f6a6_staticRenderFns,
5667
+ columnvue_type_template_id_cd703de2_render,
5668
+ columnvue_type_template_id_cd703de2_staticRenderFns,
5669
5669
  false,
5670
5670
  null,
5671
5671
  null,
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
package/lib/dialog.js CHANGED
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
@@ -5825,8 +5829,8 @@ childrenvue_type_template_id_29bcbc72_render._withStripped = true
5825
5829
 
5826
5830
  // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
5827
5831
 
5828
- // 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=7363f6a6&
5829
- var columnvue_type_template_id_7363f6a6_render = function () {
5832
+ // 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=cd703de2&
5833
+ var columnvue_type_template_id_cd703de2_render = function () {
5830
5834
  var _vm = this
5831
5835
  var _h = _vm.$createElement
5832
5836
  var _c = _vm._self._c || _h
@@ -6439,10 +6443,7 @@ var columnvue_type_template_id_7363f6a6_render = function () {
6439
6443
  },
6440
6444
  "es-button-group",
6441
6445
  _vm.exclAttribute({
6442
- data: Object.assign({}, _vm.config, {
6443
- prop: this.prop,
6444
- field: this.field,
6445
- }),
6446
+ data: _vm.config,
6446
6447
  attrs: [
6447
6448
  "contents",
6448
6449
  "events",
@@ -6458,10 +6459,7 @@ var columnvue_type_template_id_7363f6a6_render = function () {
6458
6459
  : _vm.render
6459
6460
  ? _c("expand-dom", {
6460
6461
  attrs: {
6461
- column: Object.assign({}, _vm.config, {
6462
- prop: this.prop,
6463
- field: this.field,
6464
- }),
6462
+ column: _vm.config,
6465
6463
  row: scope.row,
6466
6464
  render: _vm.render,
6467
6465
  index: _vm.indexs,
@@ -6502,11 +6500,11 @@ var columnvue_type_template_id_7363f6a6_render = function () {
6502
6500
  2
6503
6501
  )
6504
6502
  }
6505
- var columnvue_type_template_id_7363f6a6_staticRenderFns = []
6506
- columnvue_type_template_id_7363f6a6_render._withStripped = true
6503
+ var columnvue_type_template_id_cd703de2_staticRenderFns = []
6504
+ columnvue_type_template_id_cd703de2_render._withStripped = true
6507
6505
 
6508
6506
 
6509
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=7363f6a6&
6507
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=cd703de2&
6510
6508
 
6511
6509
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
6512
6510
  var regenerator_ = __webpack_require__(2);
@@ -7048,9 +7046,11 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7048
7046
  sortable: this.sortable || this.sort,
7049
7047
  minWidth: this.minWidth || this.table.minWidth || minWidth,
7050
7048
  className: [this.className ? this.className : '', this.type ? ' es-table-' + this.type + '-box' : '', this.showOverflowTooltip ? ' es-text-ellipsis' : ''].join(' '),
7051
- labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' ')
7049
+ labelClassName: [this.labelClassName ? this.labelClassName : '', this.required ? 'es-required' : ''].join(' '),
7050
+ prop: this.field || this.prop,
7051
+ field: this.field
7052
7052
  }, this.$attrs);
7053
- return columnvue_type_script_lang_js_extends({}, config, { prop: this.field || this.prop, field: this.field });
7053
+ return config;
7054
7054
  },
7055
7055
  formOption: function formOption() {
7056
7056
  return columnvue_type_script_lang_js_extends({
@@ -7329,8 +7329,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
7329
7329
 
7330
7330
  var column_component = normalizeComponent(
7331
7331
  src_columnvue_type_script_lang_js_,
7332
- columnvue_type_template_id_7363f6a6_render,
7333
- columnvue_type_template_id_7363f6a6_staticRenderFns,
7332
+ columnvue_type_template_id_cd703de2_render,
7333
+ columnvue_type_template_id_cd703de2_staticRenderFns,
7334
7334
  false,
7335
7335
  null,
7336
7336
  null,
@@ -70589,7 +70589,7 @@ if (typeof window !== 'undefined' && window.Vue) {
70589
70589
  }
70590
70590
 
70591
70591
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
70592
- version: '0.5.14',
70592
+ version: '0.5.15',
70593
70593
  install: install,
70594
70594
  Button: packages_button,
70595
70595
  ButtonGroup: button_group,
package/lib/flow-group.js CHANGED
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
package/lib/flow-list.js CHANGED
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
package/lib/flow.js CHANGED
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
package/lib/form.js CHANGED
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
package/lib/handler.js CHANGED
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({