eoss-ui 0.4.28 → 0.4.29

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.
@@ -2682,7 +2682,7 @@ module.exports = require("qs");
2682
2682
  // ESM COMPAT FLAG
2683
2683
  __webpack_require__.r(__webpack_exports__);
2684
2684
 
2685
- // 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=332093dd&
2685
+ // 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=0753b411&
2686
2686
  var render = function () {
2687
2687
  var _vm = this
2688
2688
  var _h = _vm.$createElement
@@ -2699,7 +2699,7 @@ var render = function () {
2699
2699
  _vm._b(
2700
2700
  {
2701
2701
  key: index,
2702
- attrs: { size: _vm.size, type: item.type },
2702
+ attrs: { stop: _vm.stop, size: _vm.size, type: item.type },
2703
2703
  on: {
2704
2704
  click: function ($event) {
2705
2705
  _vm.handleClick({ row: _vm.data, handle: item })
@@ -2753,7 +2753,7 @@ var staticRenderFns = []
2753
2753
  render._withStripped = true
2754
2754
 
2755
2755
 
2756
- // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=332093dd&
2756
+ // CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=0753b411&
2757
2757
 
2758
2758
  // EXTERNAL MODULE: ./src/utils/util.js
2759
2759
  var util = __webpack_require__(0);
@@ -2794,6 +2794,7 @@ var util = __webpack_require__(0);
2794
2794
  //
2795
2795
  //
2796
2796
  //
2797
+ //
2797
2798
 
2798
2799
 
2799
2800
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
@@ -2813,6 +2814,7 @@ var util = __webpack_require__(0);
2813
2814
  default: 3
2814
2815
  },
2815
2816
  rules: Function,
2817
+ stop: Boolean,
2816
2818
  trigger: {
2817
2819
  type: String,
2818
2820
  default: 'click'
package/lib/button.js CHANGED
@@ -2747,7 +2747,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2747
2747
  message: [Object, Boolean],
2748
2748
  alert: [Object, Boolean],
2749
2749
  mapFields: Object,
2750
- useCaseCode: String
2750
+ useCaseCode: String,
2751
+ closed: Function,
2752
+ stop: Boolean,
2753
+ syncKeys: Object
2751
2754
  },
2752
2755
  data: function data() {
2753
2756
  return {};
@@ -2760,21 +2763,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2760
2763
  if (this.open && this.link) {
2761
2764
  var windows = void 0;
2762
2765
  var fields = [];
2763
- var param = {};
2766
+ var param = this.param ? this.param : {};
2764
2767
  evt.stopPropagation();
2765
2768
  evt.preventDefault();
2766
2769
  var width = util["a" /* default */].win.top.screen.availWidth - 10;
2767
2770
  var height = util["a" /* default */].win.top.screen.availHeight - 60;
2771
+ var flag = true;
2768
2772
  if (this.esForm) {
2769
2773
  var params = util["a" /* default */].getParams({ url: this.link });
2770
2774
  var modal = this.esForm.models;
2771
2775
  var models = util["a" /* default */].extend({}, params || {}, modal);
2772
- var flag = true;
2773
2776
  if (this.required) {
2774
2777
  if (Array.isArray(this.required)) {
2775
2778
  this.esForm.validateField(this.required, function (res) {
2776
2779
  if (res) {
2777
2780
  flag = false;
2781
+ } else {
2782
+ flag = true;
2778
2783
  }
2779
2784
  });
2780
2785
  if (flag) {
@@ -2791,12 +2796,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2791
2796
  this.esForm.validateField(fields, function (res) {
2792
2797
  if (res) {
2793
2798
  flag = false;
2799
+ } else {
2800
+ flag = true;
2794
2801
  }
2795
2802
  });
2796
2803
  } else {
2797
2804
  this.esForm.validateField(this.required, function (res) {
2798
2805
  if (res) {
2799
2806
  flag = false;
2807
+ } else {
2808
+ flag = true;
2800
2809
  }
2801
2810
  });
2802
2811
  if (flag) {
@@ -2868,39 +2877,41 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2868
2877
  }
2869
2878
  }
2870
2879
  }
2871
- if (flag) {
2872
- if (this.specs) {
2873
- if (typeof this.specs === 'boolean') {
2874
- windows = util["a" /* default */].win.top.open(util["a" /* default */].urlJoinParams({ url: this.link, param: param }), this.name, 'width=' + width + 'px,height=' + height + 'px,resizable=yes,status=yes,menubar=no,scrollbars=yes');
2875
- } else {
2876
- windows = util["a" /* default */].win.top.open(util["a" /* default */].urlJoinParams({ url: this.link, param: param }), this.name, this.specs);
2877
- }
2878
- } else {
2879
- windows = util["a" /* default */].win.top.open(util["a" /* default */].urlJoinParams({ url: this.link, param: param }));
2880
+ }
2881
+ if (this.btnGroup && this.syncKeys) {
2882
+ var data = this.btnGroup.data;
2883
+ if (data && Object.keys(data).length && Object.keys(this.syncKeys).length) {
2884
+ for (var _i2 in this.syncKeys) {
2885
+ param[_i2] = data[this.syncKeys[_i2]];
2880
2886
  }
2881
2887
  }
2882
- } else {
2888
+ }
2889
+ if (flag) {
2883
2890
  if (this.specs) {
2884
2891
  if (typeof this.specs === 'boolean') {
2885
- windows = util["a" /* default */].win.top.open(this.link, this.name, 'width=' + width + 'px,height=' + height + 'px,resizable=yes,status=yes,menubar=no,scrollbars=yes');
2892
+ windows = util["a" /* default */].win.top.open(util["a" /* default */].urlJoinParams({ url: this.link, param: param }), this.name, 'width=' + width + 'px,height=' + height + 'px,resizable=yes,status=yes,menubar=no,scrollbars=yes');
2886
2893
  } else {
2887
- windows = util["a" /* default */].win.top.open(this.link, this.name, this.specs);
2894
+ windows = util["a" /* default */].win.top.open(util["a" /* default */].urlJoinParams({ url: this.link, param: param }), this.name, this.specs);
2888
2895
  }
2889
2896
  } else {
2890
- windows = util["a" /* default */].win.top.open(this.link);
2897
+ windows = util["a" /* default */].win.top.open(util["a" /* default */].urlJoinParams({ url: this.link, param: param }));
2891
2898
  }
2892
2899
  }
2893
2900
  if (windows) {
2894
- if (this.reload) {
2895
- var times = setInterval(function () {
2896
- if (windows.closed) {
2897
- clearInterval(times);
2901
+ var times = setInterval(function () {
2902
+ if (windows.closed) {
2903
+ clearInterval(times);
2904
+ _this.closed && _this.closed(param);
2905
+ if (_this.reload) {
2898
2906
  _this.esSelect && _this.esSelect.reload(null, param, true);
2899
2907
  _this.esTable && _this.esTable.reload(param);
2900
2908
  }
2901
- }, 1000);
2902
- }
2909
+ }
2910
+ }, 1000);
2903
2911
  }
2912
+ } else if (this.stop) {
2913
+ evt.stopPropagation();
2914
+ evt.preventDefault();
2904
2915
  }
2905
2916
  this.$emit('click', evt);
2906
2917
  }
package/lib/data-table.js CHANGED
@@ -2742,8 +2742,8 @@ module.exports = require("vue");
2742
2742
  // ESM COMPAT FLAG
2743
2743
  __webpack_require__.r(__webpack_exports__);
2744
2744
 
2745
- // 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=02ca227b&
2746
- var mainvue_type_template_id_02ca227b_render = function () {
2745
+ // 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=ac61a5d4&
2746
+ var mainvue_type_template_id_ac61a5d4_render = function () {
2747
2747
  var _vm = this
2748
2748
  var _h = _vm.$createElement
2749
2749
  var _c = _vm._self._c || _h
@@ -2824,7 +2824,7 @@ var mainvue_type_template_id_02ca227b_render = function () {
2824
2824
  "el-table",
2825
2825
  Object.assign({}, _vm.$attrs, {
2826
2826
  data: _vm.datas,
2827
- emptyText: _vm.text || _vm.emptyText,
2827
+ emptyText: _vm.emptyText,
2828
2828
  showSummary: _vm.showTotal,
2829
2829
  sumText: _vm.sumText || _vm.totalText,
2830
2830
  totalRow: _vm.restotalRow || _vm.totalRow,
@@ -3077,10 +3077,10 @@ var mainvue_type_template_id_02ca227b_render = function () {
3077
3077
  )
3078
3078
  }
3079
3079
  var staticRenderFns = []
3080
- mainvue_type_template_id_02ca227b_render._withStripped = true
3080
+ mainvue_type_template_id_ac61a5d4_render._withStripped = true
3081
3081
 
3082
3082
 
3083
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=02ca227b&
3083
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=ac61a5d4&
3084
3084
 
3085
3085
  // EXTERNAL MODULE: ./src/config/api.js
3086
3086
  var api = __webpack_require__(1);
@@ -3133,8 +3133,8 @@ childrenvue_type_template_id_796433ee_render._withStripped = true
3133
3133
 
3134
3134
  // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=796433ee&
3135
3135
 
3136
- // 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=1f31fcc6&
3137
- var columnvue_type_template_id_1f31fcc6_render = function () {
3136
+ // 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=5fcbf848&
3137
+ var columnvue_type_template_id_5fcbf848_render = function () {
3138
3138
  var _vm = this
3139
3139
  var _h = _vm.$createElement
3140
3140
  var _c = _vm._self._c || _h
@@ -3995,6 +3995,7 @@ var columnvue_type_template_id_1f31fcc6_render = function () {
3995
3995
  _vm.item.type === "handle" && !scope.row.hideHandle
3996
3996
  ? _c("es-button-group", {
3997
3997
  attrs: {
3998
+ stop: "",
3998
3999
  contents: _vm.item.contents || _vm.item.events,
3999
4000
  data: scope.row,
4000
4001
  },
@@ -4094,11 +4095,11 @@ var columnvue_type_template_id_1f31fcc6_render = function () {
4094
4095
  2
4095
4096
  )
4096
4097
  }
4097
- var columnvue_type_template_id_1f31fcc6_staticRenderFns = []
4098
- columnvue_type_template_id_1f31fcc6_render._withStripped = true
4098
+ var columnvue_type_template_id_5fcbf848_staticRenderFns = []
4099
+ columnvue_type_template_id_5fcbf848_render._withStripped = true
4099
4100
 
4100
4101
 
4101
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=1f31fcc6&
4102
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=5fcbf848&
4102
4103
 
4103
4104
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
4104
4105
  var regenerator_ = __webpack_require__(9);
@@ -4666,6 +4667,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
4666
4667
  //
4667
4668
  //
4668
4669
  //
4670
+ //
4669
4671
 
4670
4672
 
4671
4673
 
@@ -5000,8 +5002,8 @@ var componentNormalizer = __webpack_require__(2);
5000
5002
 
5001
5003
  var component = Object(componentNormalizer["a" /* default */])(
5002
5004
  src_columnvue_type_script_lang_js_,
5003
- columnvue_type_template_id_1f31fcc6_render,
5004
- columnvue_type_template_id_1f31fcc6_staticRenderFns,
5005
+ columnvue_type_template_id_5fcbf848_render,
5006
+ columnvue_type_template_id_5fcbf848_staticRenderFns,
5005
5007
  false,
5006
5008
  null,
5007
5009
  null,
@@ -5618,11 +5620,6 @@ var mainvue_type_script_lang_js_components;
5618
5620
  default: true
5619
5621
  },
5620
5622
  // 无数据时显示的文本
5621
- text: {
5622
- type: String,
5623
- default: ''
5624
- },
5625
- // 无数据时显示的文本
5626
5623
  emptyText: {
5627
5624
  type: String,
5628
5625
  default: ''
@@ -6509,7 +6506,7 @@ var mainvue_type_script_lang_js_components;
6509
6506
 
6510
6507
  var main_component = Object(componentNormalizer["a" /* default */])(
6511
6508
  src_mainvue_type_script_lang_js_,
6512
- mainvue_type_template_id_02ca227b_render,
6509
+ mainvue_type_template_id_ac61a5d4_render,
6513
6510
  staticRenderFns,
6514
6511
  false,
6515
6512
  null,