eoss-ui 0.5.81-beta20 → 0.5.81-beta22

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.
package/lib/data-table.js CHANGED
@@ -4320,8 +4320,8 @@ childrenvue_type_template_id_44b7ff61_render._withStripped = true
4320
4320
 
4321
4321
  // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=44b7ff61&
4322
4322
 
4323
- // 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=00a637ce&
4324
- var columnvue_type_template_id_00a637ce_render = function () {
4323
+ // 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=7bee268b&
4324
+ var columnvue_type_template_id_7bee268b_render = function () {
4325
4325
  var _vm = this
4326
4326
  var _h = _vm.$createElement
4327
4327
  var _c = _vm._self._c || _h
@@ -4401,7 +4401,7 @@ var columnvue_type_template_id_00a637ce_render = function () {
4401
4401
  },
4402
4402
  },
4403
4403
  "component",
4404
- _vm.formOption,
4404
+ _vm.getOptions(scope.row.formConfigs),
4405
4405
  false
4406
4406
  )
4407
4407
  )
@@ -4457,7 +4457,7 @@ var columnvue_type_template_id_00a637ce_render = function () {
4457
4457
  },
4458
4458
  },
4459
4459
  "es-select",
4460
- _vm.formOption,
4460
+ _vm.getOptions(scope.row.formConfigs),
4461
4461
  false
4462
4462
  )
4463
4463
  )
@@ -4513,7 +4513,7 @@ var columnvue_type_template_id_00a637ce_render = function () {
4513
4513
  },
4514
4514
  },
4515
4515
  "es-cascader",
4516
- _vm.formOption,
4516
+ _vm.getOptions(scope.row.formConfigs),
4517
4517
  false
4518
4518
  )
4519
4519
  )
@@ -4553,7 +4553,7 @@ var columnvue_type_template_id_00a637ce_render = function () {
4553
4553
  },
4554
4554
  },
4555
4555
  "es-select-ganged",
4556
- _vm.formOption,
4556
+ _vm.getOptions(scope.row.formConfigs),
4557
4557
  false
4558
4558
  )
4559
4559
  )
@@ -4592,7 +4592,7 @@ var columnvue_type_template_id_00a637ce_render = function () {
4592
4592
  },
4593
4593
  },
4594
4594
  "es-radio-group",
4595
- _vm.formOption,
4595
+ _vm.getOptions(scope.row.formConfigs),
4596
4596
  false
4597
4597
  )
4598
4598
  )
@@ -4631,7 +4631,7 @@ var columnvue_type_template_id_00a637ce_render = function () {
4631
4631
  },
4632
4632
  },
4633
4633
  "es-checkbox-group",
4634
- _vm.formOption,
4634
+ _vm.getOptions(scope.row.formConfigs),
4635
4635
  false
4636
4636
  )
4637
4637
  )
@@ -4670,7 +4670,7 @@ var columnvue_type_template_id_00a637ce_render = function () {
4670
4670
  },
4671
4671
  },
4672
4672
  "es-switch",
4673
- _vm.formOption,
4673
+ _vm.getOptions(scope.row.formConfigs),
4674
4674
  false
4675
4675
  )
4676
4676
  )
@@ -4736,7 +4736,7 @@ var columnvue_type_template_id_00a637ce_render = function () {
4736
4736
  },
4737
4737
  },
4738
4738
  "es-date-picker",
4739
- _vm.formOption,
4739
+ _vm.getOptions(scope.row.formConfigs),
4740
4740
  false
4741
4741
  )
4742
4742
  )
@@ -4787,7 +4787,7 @@ var columnvue_type_template_id_00a637ce_render = function () {
4787
4787
  },
4788
4788
  },
4789
4789
  "es-input-number",
4790
- _vm.formOption,
4790
+ _vm.getOptions(scope.row.formConfigs),
4791
4791
  false
4792
4792
  )
4793
4793
  )
@@ -4822,7 +4822,7 @@ var columnvue_type_template_id_00a637ce_render = function () {
4822
4822
  },
4823
4823
  },
4824
4824
  "es-selector",
4825
- _vm.formOption,
4825
+ _vm.getOptions(scope.row.formConfigs),
4826
4826
  false
4827
4827
  ),
4828
4828
  _vm.exclAttribute({
@@ -4906,7 +4906,9 @@ var columnvue_type_template_id_00a637ce_render = function () {
4906
4906
  },
4907
4907
  },
4908
4908
  "input",
4909
- _vm.formOption,
4909
+ _vm.getOptions(
4910
+ scope.row.formConfigs
4911
+ ),
4910
4912
  false
4911
4913
  )
4912
4914
  )
@@ -4973,7 +4975,9 @@ var columnvue_type_template_id_00a637ce_render = function () {
4973
4975
  },
4974
4976
  },
4975
4977
  "textarea",
4976
- _vm.formOption,
4978
+ _vm.getOptions(
4979
+ scope.row.formConfigs
4980
+ ),
4977
4981
  false
4978
4982
  )
4979
4983
  ),
@@ -5030,7 +5034,9 @@ var columnvue_type_template_id_00a637ce_render = function () {
5030
5034
  },
5031
5035
  },
5032
5036
  "es-input",
5033
- _vm.formOption,
5037
+ _vm.getOptions(
5038
+ scope.row.formConfigs
5039
+ ),
5034
5040
  false
5035
5041
  )
5036
5042
  ),
@@ -5128,11 +5134,11 @@ var columnvue_type_template_id_00a637ce_render = function () {
5128
5134
  2
5129
5135
  )
5130
5136
  }
5131
- var columnvue_type_template_id_00a637ce_staticRenderFns = []
5132
- columnvue_type_template_id_00a637ce_render._withStripped = true
5137
+ var columnvue_type_template_id_7bee268b_staticRenderFns = []
5138
+ columnvue_type_template_id_7bee268b_render._withStripped = true
5133
5139
 
5134
5140
 
5135
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=00a637ce&
5141
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=7bee268b&
5136
5142
 
5137
5143
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
5138
5144
  var regenerator_ = __webpack_require__(13);
@@ -5144,6 +5150,8 @@ var util = __webpack_require__(0);
5144
5150
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/column.vue?vue&type=script&lang=js&
5145
5151
 
5146
5152
 
5153
+ 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; };
5154
+
5147
5155
  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; };
5148
5156
 
5149
5157
  function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
@@ -5897,9 +5905,13 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
5897
5905
  return data;
5898
5906
  },
5899
5907
  getType: function getType(config, types) {
5900
- var type = config && config[this.field || this.prop] ? config[this.field || this.prop] : this.type;
5908
+ var type = config && config[this.field || this.prop] ? config[this.field || this.prop]['type'] || config[this.field || this.prop] : this.type;
5901
5909
  return Array.isArray(types) ? types.includes(type) : type == types;
5902
5910
  },
5911
+ getOptions: function getOptions(config) {
5912
+ var option = config && config[this.field || this.prop];
5913
+ return option && (typeof option === 'undefined' ? 'undefined' : _typeof(option)) == 'object' ? _extends({}, this.formOption, option) : this.formOption;
5914
+ },
5903
5915
  getData: function getData(res) {
5904
5916
  return res && res[this.field || this.prop] ? res[this.field || this.prop] : this.option;
5905
5917
  },
@@ -6066,8 +6078,8 @@ var componentNormalizer = __webpack_require__(3);
6066
6078
 
6067
6079
  var component = Object(componentNormalizer["a" /* default */])(
6068
6080
  src_columnvue_type_script_lang_js_,
6069
- columnvue_type_template_id_00a637ce_render,
6070
- columnvue_type_template_id_00a637ce_staticRenderFns,
6081
+ columnvue_type_template_id_7bee268b_render,
6082
+ columnvue_type_template_id_7bee268b_staticRenderFns,
6071
6083
  false,
6072
6084
  null,
6073
6085
  null,
@@ -6383,7 +6395,7 @@ var external_qs_ = __webpack_require__(4);
6383
6395
  var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
6384
6396
 
6385
6397
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=script&lang=js&
6386
- 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; };
6398
+ var mainvue_type_script_lang_js_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; };
6387
6399
 
6388
6400
  var mainvue_type_script_lang_js_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; };
6389
6401
 
@@ -6955,7 +6967,7 @@ var dataTableMode = util["a" /* default */].win.top.dataTableMode || util["a" /*
6955
6967
  if (this.list && this.list.length) {
6956
6968
  return this.list;
6957
6969
  }
6958
- if (this.page && (_typeof(this.page) === 'object' && (!Object.prototype.hasOwnProperty.call(this.page, 'totalCount') || this.page.totalCount == 0) || this.page === true)) {
6970
+ if (this.page && (mainvue_type_script_lang_js_typeof(this.page) === 'object' && (!Object.prototype.hasOwnProperty.call(this.page, 'totalCount') || this.page.totalCount == 0) || this.page === true)) {
6959
6971
  this.config.totalCount = this.data.length - this.lose;
6960
6972
  }
6961
6973
  if (this.page && this.data.length > this.config.pageSize) {
@@ -7089,7 +7101,7 @@ var dataTableMode = util["a" /* default */].win.top.dataTableMode || util["a" /*
7089
7101
  immediate: true,
7090
7102
  deep: true,
7091
7103
  handler: function handler(val) {
7092
- if ((typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object') {
7104
+ if ((typeof val === 'undefined' ? 'undefined' : mainvue_type_script_lang_js_typeof(val)) === 'object') {
7093
7105
  this.config = util["a" /* default */].extend({}, this.config, val);
7094
7106
  }
7095
7107
  }
@@ -7147,7 +7159,7 @@ var dataTableMode = util["a" /* default */].win.top.dataTableMode || util["a" /*
7147
7159
  setData: function setData() {
7148
7160
  var _this5 = this;
7149
7161
 
7150
- if (this.page && (_typeof(this.page) === 'object' && (!Object.prototype.hasOwnProperty.call(this.page, 'totalCount') || this.page.totalCount == 0) || this.page === true)) {
7162
+ if (this.page && (mainvue_type_script_lang_js_typeof(this.page) === 'object' && (!Object.prototype.hasOwnProperty.call(this.page, 'totalCount') || this.page.totalCount == 0) || this.page === true)) {
7151
7163
  this.config.totalCount = this.data.length - this.lose;
7152
7164
  }
7153
7165
  if (this.page && this.data.length > this.config.pageSize) {
@@ -7271,7 +7283,7 @@ var dataTableMode = util["a" /* default */].win.top.dataTableMode || util["a" /*
7271
7283
  _index += (this.config.pageNum - 1) * this.config.pageSize;
7272
7284
  }
7273
7285
  var rows = {};
7274
- if (this.rowData && _typeof(this.rowData) == 'object') {
7286
+ if (this.rowData && mainvue_type_script_lang_js_typeof(this.rowData) == 'object') {
7275
7287
  rows = this.rowData;
7276
7288
  } else if (_index && this.rowData === true) {
7277
7289
  rows = JSON.parse(JSON.stringify(this.data[_index - 1]));
package/lib/dialog.js CHANGED
@@ -3943,7 +3943,7 @@ module.exports = require("wujie-vue2");
3943
3943
  // ESM COMPAT FLAG
3944
3944
  __webpack_require__.r(__webpack_exports__);
3945
3945
 
3946
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=template&id=b9446116&
3946
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=template&id=2c75b6d0&
3947
3947
  var render = function () {
3948
3948
  var _vm = this
3949
3949
  var _h = _vm.$createElement
@@ -3959,8 +3959,8 @@ var render = function () {
3959
3959
  attrs: {
3960
3960
  title: _vm.titles,
3961
3961
  visible: _vm.show,
3962
- width: _vm.wd,
3963
- height: _vm.ht,
3962
+ width: _vm._width,
3963
+ height: _vm._height,
3964
3964
  "close-on-click-modal": _vm.shadeClose,
3965
3965
  showScale: _vm.showScale,
3966
3966
  drag: _vm.drag,
@@ -4458,7 +4458,7 @@ var staticRenderFns = []
4458
4458
  render._withStripped = true
4459
4459
 
4460
4460
 
4461
- // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=b9446116&
4461
+ // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=2c75b6d0&
4462
4462
 
4463
4463
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
4464
4464
  var regenerator_ = __webpack_require__(13);
@@ -4748,6 +4748,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
4748
4748
 
4749
4749
  var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
4750
4750
 
4751
+ var availWidth = 0;
4752
+ var availHeight = 0;
4753
+ availWidth = util["a" /* default */].win.top.document.body.offsetWidth - 260;
4754
+ availHeight = util["a" /* default */].win.top.document.body.offsetHeight - 60;
4751
4755
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
4752
4756
  name: 'EsDialog',
4753
4757
  inheritAttrs: false,
@@ -4829,6 +4833,12 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
4829
4833
  computed: {
4830
4834
  wujieName: function wujieName() {
4831
4835
  return this.name ? this.name : util["a" /* default */].uuid(16);
4836
+ },
4837
+ _width: function _width() {
4838
+ return this.width ? this.width : this.sizes[this.size]['width'];
4839
+ },
4840
+ _height: function _height() {
4841
+ return this.height ? this.height : this.sizes[this.size]['height'];
4832
4842
  }
4833
4843
  },
4834
4844
  watch: {
@@ -4852,12 +4862,11 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
4852
4862
  sm: { width: '960px', height: '500px' },
4853
4863
  md: { width: '1060px', height: '600px' },
4854
4864
  lg: { width: '1200px', height: '800px' },
4865
+ max: { width: availWidth + 'px', height: availHeight + 'px' },
4855
4866
  full: { width: '100%', height: '100%' }
4856
4867
  },
4857
4868
  show: this.visible,
4858
4869
  defaultProps: {},
4859
- wd: '',
4860
- ht: '',
4861
4870
  zoom: 1,
4862
4871
  scales: { zoom: 1 }
4863
4872
  };
@@ -4865,19 +4874,6 @@ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
4865
4874
  created: function created() {
4866
4875
  var _this = this;
4867
4876
 
4868
- var availWidth = 0;
4869
- var availHeight = 0;
4870
- availWidth = util["a" /* default */].win.top.document.body.offsetWidth - 260;
4871
- availHeight = util["a" /* default */].win.top.document.body.offsetHeight - 60;
4872
- this.sizes.max = { width: availWidth + 'px', height: availHeight + 'px' };
4873
- if (this.size === 'full' || this.width == '100%' && this.height == '100%') {
4874
- this.full = true;
4875
- this.wd = '100%';
4876
- this.ht = '100%';
4877
- } else {
4878
- this.wd = this.width ? this.width : this.sizes[this.size]['width'];
4879
- this.ht = this.height ? this.height : this.sizes[this.size]['height'];
4880
- }
4881
4877
  if (this.busEvent) {
4882
4878
  bus["a" /* default */].$on(this.busEvent, function () {
4883
4879
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee(res) {