eoss-mobiles 0.1.88 → 0.1.91

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/CHANGELOG.md CHANGED
@@ -1,7 +1,10 @@
1
1
  ## 更新日志
2
2
 
3
- ### 0.1.84
3
+ ### 0.1.90
4
4
 
5
+ - 2023-12-08
6
+ - fix:<br/>1. input 组件新增属性required-position必填图标展示的位置<br/>2. form 组件优化验证表格<br/>2. table 组件样式优化
7
+ - 版本号:0.1.90
5
8
  - 2023-12-05
6
9
  - fix:<br/>1. input 组件新增属性show-password是否显示切换密码图标<br/>2. form 组件优化验证表格<br/>3. flow 组件优化
7
10
  - 版本号:0.1.84
@@ -4273,8 +4273,8 @@ selector_src_main.install = function (Vue) {
4273
4273
  };
4274
4274
 
4275
4275
  /* harmony default export */ var selector = (selector_src_main);
4276
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/field/src/main.vue?vue&type=template&id=4bdc96b0&
4277
- var mainvue_type_template_id_4bdc96b0_render = function () {
4276
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/field/src/main.vue?vue&type=template&id=653b46a0&
4277
+ var mainvue_type_template_id_653b46a0_render = function () {
4278
4278
  var _vm = this
4279
4279
  var _h = _vm.$createElement
4280
4280
  var _c = _vm._self._c || _h
@@ -4290,6 +4290,14 @@ var mainvue_type_template_id_4bdc96b0_render = function () {
4290
4290
  class: {
4291
4291
  "hide-label": _vm.hideLabel,
4292
4292
  "input-wrap": _vm.labelPosition == "top",
4293
+ "required-right": _vm.requiredPosition == "right",
4294
+ isRequired:
4295
+ (_vm.required ||
4296
+ (Array.isArray(_vm.rules)
4297
+ ? _vm.rules[0].required
4298
+ : _vm.rules.required)) &&
4299
+ _vm.requiredPosition != "right",
4300
+ "is-left-icon": _vm.$attrs["left-icon"],
4293
4301
  },
4294
4302
  attrs: {
4295
4303
  autocomplete: "new-password",
@@ -4312,7 +4320,8 @@ var mainvue_type_template_id_4bdc96b0_render = function () {
4312
4320
  : _vm.rules.required) &&
4313
4321
  _vm.isBlur) ||
4314
4322
  _vm.$attrs.error,
4315
- "right-icon": _vm.$attrs.rightIcon || _vm.getRightIcon,
4323
+ "right-icon": _vm.$attrs["right-icon"] || _vm.getRightIcon,
4324
+ "label-align": _vm.labelAlign,
4316
4325
  type: _vm.newType,
4317
4326
  rules: Array.isArray(_vm.rules) ? _vm.rules : [],
4318
4327
  },
@@ -4337,6 +4346,24 @@ var mainvue_type_template_id_4bdc96b0_render = function () {
4337
4346
  _vm.$listeners
4338
4347
  ),
4339
4348
  [
4349
+ !_vm.$slots.label
4350
+ ? _c("template", { slot: "label" }, [
4351
+ _c(
4352
+ "span",
4353
+ {
4354
+ class: {
4355
+ "em-cell--required":
4356
+ (_vm.required ||
4357
+ (Array.isArray(_vm.rules)
4358
+ ? _vm.rules[0].required
4359
+ : _vm.rules.required)) &&
4360
+ _vm.requiredPosition == "right",
4361
+ },
4362
+ },
4363
+ [_vm._v(_vm._s(_vm.label))]
4364
+ ),
4365
+ ])
4366
+ : _vm._e(),
4340
4367
  _vm._l(_vm.$slots, function (index, name) {
4341
4368
  return _c("template", { slot: name }, [_vm._t(name)], 2)
4342
4369
  }),
@@ -4347,11 +4374,11 @@ var mainvue_type_template_id_4bdc96b0_render = function () {
4347
4374
  1
4348
4375
  )
4349
4376
  }
4350
- var mainvue_type_template_id_4bdc96b0_staticRenderFns = []
4351
- mainvue_type_template_id_4bdc96b0_render._withStripped = true
4377
+ var mainvue_type_template_id_653b46a0_staticRenderFns = []
4378
+ mainvue_type_template_id_653b46a0_render._withStripped = true
4352
4379
 
4353
4380
 
4354
- // CONCATENATED MODULE: ./packages/field/src/main.vue?vue&type=template&id=4bdc96b0&
4381
+ // CONCATENATED MODULE: ./packages/field/src/main.vue?vue&type=template&id=653b46a0&
4355
4382
 
4356
4383
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/field/src/main.vue?vue&type=script&lang=js&
4357
4384
  //
@@ -4391,6 +4418,18 @@ mainvue_type_template_id_4bdc96b0_render._withStripped = true
4391
4418
  //
4392
4419
  //
4393
4420
  //
4421
+ //
4422
+ //
4423
+ //
4424
+ //
4425
+ //
4426
+ //
4427
+ //
4428
+ //
4429
+ //
4430
+ //
4431
+ //
4432
+ //
4394
4433
 
4395
4434
  /* harmony default export */ var field_src_mainvue_type_script_lang_js_ = ({
4396
4435
  name: 'EmInput',
@@ -4400,6 +4439,14 @@ mainvue_type_template_id_4bdc96b0_render._withStripped = true
4400
4439
  type: [String, Array, Number],
4401
4440
  default: ''
4402
4441
  },
4442
+ label: {
4443
+ type: String,
4444
+ default: ''
4445
+ },
4446
+ labelAlign: {
4447
+ type: String,
4448
+ default: 'left'
4449
+ },
4403
4450
  required: {
4404
4451
  type: Boolean,
4405
4452
  default: false
@@ -4437,6 +4484,10 @@ mainvue_type_template_id_4bdc96b0_render._withStripped = true
4437
4484
  type: {
4438
4485
  type: String,
4439
4486
  default: 'text'
4487
+ },
4488
+ requiredPosition: {
4489
+ type: String,
4490
+ default: 'left'
4440
4491
  }
4441
4492
  },
4442
4493
  data: function data() {
@@ -4449,7 +4500,6 @@ mainvue_type_template_id_4bdc96b0_render._withStripped = true
4449
4500
  },
4450
4501
 
4451
4502
  computed: {
4452
-
4453
4503
  getRightIcon: {
4454
4504
  get: function get() {
4455
4505
  var icon = undefined;
@@ -4477,6 +4527,7 @@ mainvue_type_template_id_4bdc96b0_render._withStripped = true
4477
4527
  }
4478
4528
  },
4479
4529
  mounted: function mounted() {
4530
+ console.log(this.$slots, 's');
4480
4531
  this.newType = this.type;
4481
4532
  this.newPlaceholder = this.$attrs.placeholder;
4482
4533
  this.newErrorMessage = this.errorMessage;
@@ -4547,8 +4598,8 @@ mainvue_type_template_id_4bdc96b0_render._withStripped = true
4547
4598
 
4548
4599
  var field_src_main_component = normalizeComponent(
4549
4600
  packages_field_src_mainvue_type_script_lang_js_,
4550
- mainvue_type_template_id_4bdc96b0_render,
4551
- mainvue_type_template_id_4bdc96b0_staticRenderFns,
4601
+ mainvue_type_template_id_653b46a0_render,
4602
+ mainvue_type_template_id_653b46a0_staticRenderFns,
4552
4603
  false,
4553
4604
  null,
4554
4605
  null,
@@ -7601,6 +7652,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7601
7652
  selected: null,
7602
7653
  pageChange: false,
7603
7654
  tableHeight: 'auto',
7655
+ tableClientHeight: '',
7604
7656
  validateSuccess: true,
7605
7657
  options: {},
7606
7658
  theadData: [],
@@ -7654,9 +7706,14 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7654
7706
  }
7655
7707
  },
7656
7708
  mounted: function mounted() {
7709
+ var _this = this;
7710
+
7657
7711
  // this.resetHeight();
7658
7712
  this.getTableData();
7659
7713
  this.checkSelect(this.checked);
7714
+ this.$nextTick(function () {
7715
+ _this.tableClientHeight = _this.$refs.emTable.clientHeight;
7716
+ });
7660
7717
  },
7661
7718
 
7662
7719
  computed: {
@@ -7669,7 +7726,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7669
7726
 
7670
7727
  datas: {
7671
7728
  get: function get() {
7672
- var _this = this;
7729
+ var _this2 = this;
7673
7730
 
7674
7731
  if (this.list) {
7675
7732
  return this.list;
@@ -7677,7 +7734,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7677
7734
  if (this.page && this.data && this.data.length && this.config.totalCount < this.data.length + 1) {
7678
7735
  this.config.totalCount = this.data.length - this.lose;
7679
7736
  return this.data.filter(function (item, index) {
7680
- return index > (_this.config.pageNum - 1) * _this.config.pageSize - 1 && index < _this.config.pageNum * _this.config.pageSize;
7737
+ return index > (_this2.config.pageNum - 1) * _this2.config.pageSize - 1 && index < _this2.config.pageNum * _this2.config.pageSize;
7681
7738
  });
7682
7739
  }
7683
7740
 
@@ -7694,14 +7751,14 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7694
7751
  this.validateSuccess = !val;
7695
7752
  },
7696
7753
  validate: function validate() {
7697
- var _this2 = this;
7754
+ var _this3 = this;
7698
7755
 
7699
7756
  var success = true;
7700
7757
  var _that = this;
7701
7758
  if (_that.form) {
7702
7759
  _that.theads.map(function (item) {
7703
7760
  if (item.rules && item.rules.required) {
7704
- _this2.datas.map(function (x) {
7761
+ _this3.datas.map(function (x) {
7705
7762
  if (!x[item.field] && !item.rules.validator) {
7706
7763
  _that.$toast(item.rules.message);
7707
7764
  success = false;
@@ -7719,19 +7776,19 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7719
7776
  this.$refs.oaTable.toggleAllSelection();
7720
7777
  },
7721
7778
  toggleRowSelection: function toggleRowSelection(newVal) {
7722
- var _this3 = this;
7779
+ var _this4 = this;
7723
7780
 
7724
7781
  newVal.forEach(function (row) {
7725
- _this3.$refs.oaTable.toggleRowSelection(row, true);
7782
+ _this4.$refs.oaTable.toggleRowSelection(row, true);
7726
7783
  });
7727
7784
  },
7728
7785
  checkSelect: function checkSelect(newVal) {
7729
- var _this4 = this;
7786
+ var _this5 = this;
7730
7787
 
7731
7788
  if (!this.isFirsetCheck && newVal) {
7732
7789
  if (util.getObjectType(newVal) === 'array') {
7733
7790
  newVal.forEach(function (row) {
7734
- _this4.$refs.oaTable.toggleRowSelection(row, true);
7791
+ _this5.$refs.oaTable.toggleRowSelection(row, true);
7735
7792
  });
7736
7793
  } else if (newVal === true) {
7737
7794
  this.toggleAllSelection();
@@ -7740,7 +7797,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7740
7797
  }
7741
7798
  },
7742
7799
  getTableData: function getTableData(res) {
7743
- var _this5 = this;
7800
+ var _this6 = this;
7744
7801
 
7745
7802
  var where = void 0;
7746
7803
  var first = void 0;
@@ -7776,32 +7833,32 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7776
7833
  data: reqData
7777
7834
  }).then(function (res) {
7778
7835
  if (res.rCode === 0 || res.status === 'success') {
7779
- var results = _this5.parseData !== undefined ? _this5.parseData(res.results || res.data || res) : res.results || res.data;
7780
- _this5.list = results.data || results.records || results.list || [];
7781
- _this5.config.totalCount = results.count || results.total || results.totalCount;
7836
+ var results = _this6.parseData !== undefined ? _this6.parseData(res.results || res.data || res) : res.results || res.data;
7837
+ _this6.list = results.data || results.records || results.list || [];
7838
+ _this6.config.totalCount = results.count || results.total || results.totalCount;
7782
7839
  } else {
7783
- _this5.list = [];
7840
+ _this6.list = [];
7784
7841
  }
7785
- _this5.$toast.clear();
7786
- _this5.$emit('success', res);
7842
+ _this6.$toast.clear();
7843
+ _this6.$emit('success', res);
7787
7844
  }).catch(function (err) {
7788
- _this5.$toast.clear();
7845
+ _this6.$toast.clear();
7789
7846
  if (err && err.code && [64, 65, 67].indexOf(err.code) > -1) {
7790
7847
  return;
7791
7848
  }
7792
7849
  if (util.getObjectType(err) === 'string') {
7793
- _this5.$toast(err);
7850
+ _this6.$toast(err);
7794
7851
  } else {
7795
- _this5.$toast(err.message || '数据加载失败,请联系管理员!');
7852
+ _this6.$toast(err.message || '数据加载失败,请联系管理员!');
7796
7853
  }
7797
7854
  });
7798
7855
  },
7799
7856
  currentChange: function currentChange(res) {
7800
- var _this6 = this;
7857
+ var _this7 = this;
7801
7858
 
7802
7859
  this.pageChange = true;
7803
7860
  setTimeout(function () {
7804
- _this6.pageChange = false;
7861
+ _this7.pageChange = false;
7805
7862
  }, 10);
7806
7863
  this.config.pageNum = res;
7807
7864
  this.$emit('page-current-change', res);
@@ -7810,7 +7867,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7810
7867
  }
7811
7868
  },
7812
7869
  getTheads: function getTheads() {
7813
- var _this7 = this;
7870
+ var _this8 = this;
7814
7871
 
7815
7872
  util.ajax({
7816
7873
  url: this.thead,
@@ -7822,24 +7879,24 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7822
7879
  if (res.rCode === 0) {
7823
7880
  var results = res.results;
7824
7881
  if (Array.isArray(results)) {
7825
- _this7.theadData = results;
7882
+ _this8.theadData = results;
7826
7883
  } else {
7827
- _this7.theadData = results.theadData || [];
7828
- _this7.list = results.data || results.records || [];
7829
- _this7.config.totalCount = results.count || results.total || results.totalCount;
7884
+ _this8.theadData = results.theadData || [];
7885
+ _this8.list = results.data || results.records || [];
7886
+ _this8.config.totalCount = results.count || results.total || results.totalCount;
7830
7887
  }
7831
7888
  } else {
7832
- _this7.theadData = [];
7889
+ _this8.theadData = [];
7833
7890
  }
7834
- _this7.$emit('success', res);
7891
+ _this8.$emit('success', res);
7835
7892
  }).catch(function (err) {
7836
7893
  if (err && err.code && [64, 65, 67].indexOf(err.code) > -1) {
7837
7894
  return;
7838
7895
  }
7839
7896
  if (util.getObjectType(err) === 'string') {
7840
- _this7.$message.error(err);
7897
+ _this8.$message.error(err);
7841
7898
  } else {
7842
- _this7.$message.error(err.message || '数据加载失败,请联系管理员!');
7899
+ _this8.$message.error(err.message || '数据加载失败,请联系管理员!');
7843
7900
  }
7844
7901
  });
7845
7902
  },
@@ -7853,51 +7910,51 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7853
7910
  this.$emit('focus', data, this.datas);
7854
7911
  },
7855
7912
  formChange: function formChange(data) {
7856
- var _this8 = this;
7913
+ var _this9 = this;
7857
7914
 
7858
7915
  if (this.pageChange) return;
7859
7916
  if (data.type) {
7860
7917
  this.pageChange = true;
7861
7918
  setTimeout(function () {
7862
- _this8.pageChange = false;
7919
+ _this9.pageChange = false;
7863
7920
  }, 20);
7864
7921
  }
7865
7922
  this.$emit('edit', data, this.datas);
7866
7923
  },
7867
7924
  resetHeight: function resetHeight() {
7868
- var _this9 = this;
7925
+ var _this10 = this;
7869
7926
 
7870
7927
  this.$nextTick(function () {
7871
- if (_this9.full && !_this9.height && !_this9.maxHeight) {
7872
- var height = _this9.$el.parentNode.offsetHeight - parseInt(util.getStyle(_this9.$el.parentNode, 'paddingTop'), 10) - parseInt(util.getStyle(_this9.$el.parentNode, 'paddingBottom'), 10);
7873
- for (var i = 0; i < _this9.$el.parentNode.childNodes.length; i++) {
7874
- var ele = _this9.$el.parentNode.childNodes[i];
7875
- if (ele !== _this9.$el) {
7928
+ if (_this10.full && !_this10.height && !_this10.maxHeight) {
7929
+ var height = _this10.$el.parentNode.offsetHeight - parseInt(util.getStyle(_this10.$el.parentNode, 'paddingTop'), 10) - parseInt(util.getStyle(_this10.$el.parentNode, 'paddingBottom'), 10);
7930
+ for (var i = 0; i < _this10.$el.parentNode.childNodes.length; i++) {
7931
+ var ele = _this10.$el.parentNode.childNodes[i];
7932
+ if (ele !== _this10.$el) {
7876
7933
  height -= ele.offsetHeight === undefined ? 0 : ele.offsetHeight;
7877
7934
  }
7878
7935
  }
7879
- for (var _i = 0; _i < _this9.$el.childNodes.length; _i++) {
7880
- var _ele = _this9.$el.childNodes[_i];
7881
- if (_ele !== _this9.$refs.esTableContent) {
7936
+ for (var _i = 0; _i < _this10.$el.childNodes.length; _i++) {
7937
+ var _ele = _this10.$el.childNodes[_i];
7938
+ if (_ele !== _this10.$refs.esTableContent) {
7882
7939
  height -= _ele.offsetHeight === undefined ? 0 : _ele.offsetHeight;
7883
7940
  }
7884
7941
  }
7885
- _this9.styles = { height: height + 'px' };
7886
- var loadingDom = _this9.$refs.esTableContent.querySelector('.el-loading-mask');
7887
- for (var _i2 = 0; _i2 < _this9.$refs.esTableContent.childNodes.length; _i2++) {
7888
- var _ele2 = _this9.$refs.esTableContent.childNodes[_i2];
7889
- if (_ele2 !== _this9.$refs.oaTable.$el && (!loadingDom || _ele2 !== loadingDom)) {
7942
+ _this10.styles = { height: height + 'px' };
7943
+ var loadingDom = _this10.$refs.esTableContent.querySelector('.el-loading-mask');
7944
+ for (var _i2 = 0; _i2 < _this10.$refs.esTableContent.childNodes.length; _i2++) {
7945
+ var _ele2 = _this10.$refs.esTableContent.childNodes[_i2];
7946
+ if (_ele2 !== _this10.$refs.oaTable.$el && (!loadingDom || _ele2 !== loadingDom)) {
7890
7947
  height -= _ele2.offsetHeight === undefined ? 0 : _ele2.offsetHeight;
7891
7948
  }
7892
7949
  }
7893
- var pt = parseInt(util.getStyle(_this9.$refs.esTableContent, 'paddingTop'), 10);
7894
- var pb = parseInt(util.getStyle(_this9.$refs.esTableContent, 'paddingBottom'), 10);
7895
- _this9.tableHeight = height - pt - pb + (_this9.page ? 2 : 1) + 'px';
7950
+ var pt = parseInt(util.getStyle(_this10.$refs.esTableContent, 'paddingTop'), 10);
7951
+ var pb = parseInt(util.getStyle(_this10.$refs.esTableContent, 'paddingBottom'), 10);
7952
+ _this10.tableHeight = height - pt - pb + (_this10.page ? 2 : 1) + 'px';
7896
7953
  }
7897
7954
  });
7898
7955
  },
7899
7956
  handleAjax: function handleAjax(handle, row) {
7900
- var _this10 = this;
7957
+ var _this11 = this;
7901
7958
 
7902
7959
  this.$toast.loading({
7903
7960
  message: '加载中...',
@@ -7959,9 +8016,9 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7959
8016
  method: handle.method,
7960
8017
  format: handle.format
7961
8018
  }).then(function (res) {
7962
- _this10.$toast.clear();
8019
+ _this11.$toast.clear();
7963
8020
  if (res.rCode === 0) {
7964
- _this10.$message({
8021
+ _this11.$message({
7965
8022
  message: handle.text + '\u6210\u529F',
7966
8023
  duration: 2000,
7967
8024
  type: 'success',
@@ -7969,17 +8026,17 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7969
8026
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
7970
8027
  var reload = handle.reload || true;
7971
8028
  if (reload) {
7972
- _this10.reload({}, first);
8029
+ _this11.reload({}, first);
7973
8030
  }
7974
8031
  }
7975
8032
  });
7976
8033
  } else {
7977
- _this10.$toast(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
8034
+ _this11.$toast(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7978
8035
  }
7979
8036
  }).catch(function () {});
7980
8037
  },
7981
8038
  handleClick: function handleClick(res) {
7982
- var _this11 = this;
8039
+ var _this12 = this;
7983
8040
 
7984
8041
  var row = res.row,
7985
8042
  handle = res.handle;
@@ -8017,7 +8074,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
8017
8074
  cancelButtonText: '取消',
8018
8075
  type: 'warning'
8019
8076
  }).then(function () {
8020
- _this11.handleAjax(handle, rows);
8077
+ _this12.handleAjax(handle, rows);
8021
8078
  }).catch(function () {});
8022
8079
  } else {
8023
8080
  this.handleAjax(handle, rows);
@@ -8124,35 +8181,35 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
8124
8181
  this.$emit('row-click', row, column, event);
8125
8182
  },
8126
8183
  getChildrens: function getChildrens(h, items) {
8127
- var _this12 = this;
8184
+ var _this13 = this;
8128
8185
 
8129
8186
  var doms = [];
8130
8187
  items.childHead.forEach(function (item, index) {
8131
8188
  if (!item.hide) {
8132
8189
  var childs = [];
8133
8190
  if (item.childHead && item.childHead.length) {
8134
- childs = _this12.getChildrens(h, item);
8191
+ childs = _this13.getChildrens(h, item);
8135
8192
  }
8136
8193
  doms.push(h('em-table-column', {
8137
8194
  ref: 'emTableColum',
8138
8195
  props: {
8139
- name: _this12.name,
8196
+ name: _this13.name,
8140
8197
  item: item,
8141
- prop: item[_this12.valueKey],
8142
- label: item[_this12.labelKey],
8198
+ prop: item[_this13.valueKey],
8199
+ label: item[_this13.labelKey],
8143
8200
  width: item.width,
8144
8201
  index: index + 1000,
8145
- readonly: _this12.readonly,
8146
- optionData: _this12.optionDatas,
8147
- form: _this12.form,
8148
- minWidth: _this12.minWidth
8202
+ readonly: _this13.readonly,
8203
+ optionData: _this13.optionDatas,
8204
+ form: _this13.form,
8205
+ minWidth: _this13.minWidth
8149
8206
  },
8150
8207
  on: {
8151
- handleClick: _this12.handleClick,
8152
- formBlur: _this12.formBlur,
8153
- formFocus: _this12.formFocus,
8154
- tableColumns: _this12.getTableColumns,
8155
- formChange: _this12.formChange
8208
+ handleClick: _this13.handleClick,
8209
+ formBlur: _this13.formBlur,
8210
+ formFocus: _this13.formFocus,
8211
+ tableColumns: _this13.getTableColumns,
8212
+ formChange: _this13.formChange
8156
8213
  }
8157
8214
  }, childs));
8158
8215
  }
@@ -8173,7 +8230,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
8173
8230
  }
8174
8231
  },
8175
8232
  render: function render(h) {
8176
- var _this13 = this;
8233
+ var _this14 = this;
8177
8234
 
8178
8235
  var tag = 'div';
8179
8236
  var dom = [];
@@ -8239,28 +8296,28 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
8239
8296
  } else if (!items.hide) {
8240
8297
  var tds = [];
8241
8298
  if (items.childHead && items.childHead.length) {
8242
- tds = _this13.getChildrens(h, items);
8299
+ tds = _this14.getChildrens(h, items);
8243
8300
  }
8244
8301
  dom.push(h('em-table-column', {
8245
8302
  ref: 'emTableColum',
8246
8303
  props: {
8247
- name: _this13.name,
8248
- prop: items[_this13.valueKey],
8249
- label: items[_this13.labelKey],
8304
+ name: _this14.name,
8305
+ prop: items[_this14.valueKey],
8306
+ label: items[_this14.labelKey],
8250
8307
  item: items,
8251
8308
  width: items.width,
8252
8309
  index: indexs,
8253
- readonly: _this13.readonly,
8254
- optionData: _this13.optionDatas,
8255
- form: _this13.form,
8256
- minWidth: _this13.minWidth
8310
+ readonly: _this14.readonly,
8311
+ optionData: _this14.optionDatas,
8312
+ form: _this14.form,
8313
+ minWidth: _this14.minWidth
8257
8314
  },
8258
8315
  on: {
8259
- handleClick: _this13.handleClick,
8260
- formBlur: _this13.formBlur,
8261
- formFocus: _this13.formFocus,
8262
- tableColumns: _this13.getTableColumns,
8263
- formChange: _this13.formChange
8316
+ handleClick: _this14.handleClick,
8317
+ formBlur: _this14.formBlur,
8318
+ formFocus: _this14.formFocus,
8319
+ tableColumns: _this14.getTableColumns,
8320
+ formChange: _this14.formChange
8264
8321
  },
8265
8322
  key: indexs
8266
8323
  }, tds));
@@ -8275,7 +8332,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
8275
8332
  'header-row-class-name': this.tableHeader,
8276
8333
  data: this.datas
8277
8334
  }, this.$attrs, {
8278
- height: this.tableHeight !== 'auto' ? this.tableHeight : undefined
8335
+ height: this.tableHeight !== 'auto' ? this.tableHeight : this.tableClientHeight
8279
8336
  }),
8280
8337
  on: table_src_mainvue_type_script_lang_js_extends({}, this.$listeners, {
8281
8338
  'row-click': this.rowClick,
@@ -8284,13 +8341,9 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
8284
8341
  ref: 'oaTable'
8285
8342
  }, dom));
8286
8343
  if (this.page) {
8344
+ console.log(this.config, 'this.configpage');
8287
8345
  tableContents.push(h('em-pagination', {
8288
- attrs: {
8289
- // ...this.config,
8290
- pageNum: this.config.pageNum,
8291
- pageSize: this.config.pageSize,
8292
- totalCount: this.config.totalCount
8293
- },
8346
+ attrs: table_src_mainvue_type_script_lang_js_extends({}, this.config),
8294
8347
  class: 'em-table-page',
8295
8348
  style: { 'text-align': this.page.position || 'center' },
8296
8349
  on: {
@@ -8299,19 +8352,10 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
8299
8352
  }));
8300
8353
  }
8301
8354
  return h('div', {
8302
- // ref: ref,
8303
- // attrs: {
8304
- // 'row-class-name': this.tableRowClassName,
8305
- // 'header-row-class-name': this.tableHeader,
8306
- // data: this.data,
8307
- // ...this.$attrs,
8308
- // height: this.tableHeight !== 'auto' ? this.tableHeight : undefined
8309
- // },
8310
- // on: {
8311
- // ...this.$listeners,
8312
- // 'row-click': this.rowClick,
8313
- // 'selection-change': this.selectionChange
8314
- // }
8355
+ ref: 'emTable',
8356
+ style: {
8357
+ height: '100%'
8358
+ }
8315
8359
  }, tableContents);
8316
8360
  }
8317
8361
  });
@@ -18003,7 +18047,7 @@ if (typeof window !== 'undefined' && window.Vue) {
18003
18047
  }
18004
18048
 
18005
18049
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
18006
- version: '0.1.88',
18050
+ version: '0.1.91',
18007
18051
  install: install,
18008
18052
  Button: packages_button,
18009
18053
  ButtonGroup: button_group,