eoss-ui 0.4.43 → 0.4.44

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
@@ -2748,8 +2748,8 @@ module.exports = require("vue");
2748
2748
  // ESM COMPAT FLAG
2749
2749
  __webpack_require__.r(__webpack_exports__);
2750
2750
 
2751
- // 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=48ba2bb5&
2752
- var mainvue_type_template_id_48ba2bb5_render = function () {
2751
+ // 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=40654102&
2752
+ var mainvue_type_template_id_40654102_render = function () {
2753
2753
  var _vm = this
2754
2754
  var _h = _vm.$createElement
2755
2755
  var _c = _vm._self._c || _h
@@ -3084,10 +3084,10 @@ var mainvue_type_template_id_48ba2bb5_render = function () {
3084
3084
  )
3085
3085
  }
3086
3086
  var staticRenderFns = []
3087
- mainvue_type_template_id_48ba2bb5_render._withStripped = true
3087
+ mainvue_type_template_id_40654102_render._withStripped = true
3088
3088
 
3089
3089
 
3090
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=48ba2bb5&
3090
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=40654102&
3091
3091
 
3092
3092
  // EXTERNAL MODULE: ./src/config/api.js
3093
3093
  var api = __webpack_require__(1);
@@ -5848,7 +5848,6 @@ var mainvue_type_script_lang_js_components;
5848
5848
  scale: {
5849
5849
  deep: true,
5850
5850
  handler: function handler(val) {
5851
- console.log(val, 999);
5852
5851
  if (this.tableHeight != 'auto' && this.display) {
5853
5852
  this.resetHeight();
5854
5853
  }
@@ -6556,7 +6555,7 @@ var mainvue_type_script_lang_js_components;
6556
6555
 
6557
6556
  var main_component = Object(componentNormalizer["a" /* default */])(
6558
6557
  src_mainvue_type_script_lang_js_,
6559
- mainvue_type_template_id_48ba2bb5_render,
6558
+ mainvue_type_template_id_40654102_render,
6560
6559
  staticRenderFns,
6561
6560
  false,
6562
6561
  null,
@@ -4505,8 +4505,8 @@ clients_src_main.install = function (Vue) {
4505
4505
  };
4506
4506
 
4507
4507
  /* harmony default export */ var clients = (clients_src_main);
4508
- // 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=48ba2bb5&
4509
- var mainvue_type_template_id_48ba2bb5_render = function () {
4508
+ // 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=40654102&
4509
+ var mainvue_type_template_id_40654102_render = function () {
4510
4510
  var _vm = this
4511
4511
  var _h = _vm.$createElement
4512
4512
  var _c = _vm._self._c || _h
@@ -4840,11 +4840,11 @@ var mainvue_type_template_id_48ba2bb5_render = function () {
4840
4840
  1
4841
4841
  )
4842
4842
  }
4843
- var mainvue_type_template_id_48ba2bb5_staticRenderFns = []
4844
- mainvue_type_template_id_48ba2bb5_render._withStripped = true
4843
+ var mainvue_type_template_id_40654102_staticRenderFns = []
4844
+ mainvue_type_template_id_40654102_render._withStripped = true
4845
4845
 
4846
4846
 
4847
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=48ba2bb5&
4847
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=40654102&
4848
4848
 
4849
4849
  // 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/children.vue?vue&type=template&id=796433ee&
4850
4850
  var childrenvue_type_template_id_796433ee_render = function () {
@@ -7601,7 +7601,6 @@ var mainvue_type_script_lang_js_components;
7601
7601
  scale: {
7602
7602
  deep: true,
7603
7603
  handler: function handler(val) {
7604
- console.log(val, 999);
7605
7604
  if (this.tableHeight != 'auto' && this.display) {
7606
7605
  this.resetHeight();
7607
7606
  }
@@ -8309,8 +8308,8 @@ var mainvue_type_script_lang_js_components;
8309
8308
 
8310
8309
  var data_table_src_main_component = normalizeComponent(
8311
8310
  packages_data_table_src_mainvue_type_script_lang_js_,
8312
- mainvue_type_template_id_48ba2bb5_render,
8313
- mainvue_type_template_id_48ba2bb5_staticRenderFns,
8311
+ mainvue_type_template_id_40654102_render,
8312
+ mainvue_type_template_id_40654102_staticRenderFns,
8314
8313
  false,
8315
8314
  null,
8316
8315
  null,
@@ -12860,8 +12859,8 @@ error_page_src_main.install = function (Vue) {
12860
12859
  };
12861
12860
 
12862
12861
  /* harmony default export */ var error_page = (error_page_src_main);
12863
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=01defb77&
12864
- var mainvue_type_template_id_01defb77_render = function () {
12862
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=3481f0aa&
12863
+ var mainvue_type_template_id_3481f0aa_render = function () {
12865
12864
  var _vm = this
12866
12865
  var _h = _vm.$createElement
12867
12866
  var _c = _vm._self._c || _h
@@ -23147,11 +23146,11 @@ var mainvue_type_template_id_01defb77_render = function () {
23147
23146
  )
23148
23147
  : _vm._e()
23149
23148
  }
23150
- var mainvue_type_template_id_01defb77_staticRenderFns = []
23151
- mainvue_type_template_id_01defb77_render._withStripped = true
23149
+ var mainvue_type_template_id_3481f0aa_staticRenderFns = []
23150
+ mainvue_type_template_id_3481f0aa_render._withStripped = true
23152
23151
 
23153
23152
 
23154
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=01defb77&
23153
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=3481f0aa&
23155
23154
 
23156
23155
  // CONCATENATED MODULE: ./src/utils/rules.js
23157
23156
  // 手机号
@@ -27155,12 +27154,10 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
27155
27154
  _this2.getHeight();
27156
27155
  }
27157
27156
  });
27158
- console.log(val, 999);
27159
27157
  }
27160
27158
  },
27161
27159
  zoom: {
27162
27160
  handler: function handler(val) {
27163
- console.log(111);
27164
27161
  if (!this.height && this.display) {
27165
27162
  this.getHeight();
27166
27163
  }
@@ -27956,8 +27953,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
27956
27953
 
27957
27954
  var form_src_main_component = normalizeComponent(
27958
27955
  packages_form_src_mainvue_type_script_lang_js_,
27959
- mainvue_type_template_id_01defb77_render,
27960
- mainvue_type_template_id_01defb77_staticRenderFns,
27956
+ mainvue_type_template_id_3481f0aa_render,
27957
+ mainvue_type_template_id_3481f0aa_staticRenderFns,
27961
27958
  false,
27962
27959
  null,
27963
27960
  null,
@@ -65386,8 +65383,8 @@ toolbar_src_main.install = function (Vue) {
65386
65383
  };
65387
65384
 
65388
65385
  /* harmony default export */ var packages_toolbar = (toolbar_src_main);
65389
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=6f2cdf82&
65390
- var tablevue_type_template_id_6f2cdf82_render = function () {
65386
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=d04e82f8&
65387
+ var tablevue_type_template_id_d04e82f8_render = function () {
65391
65388
  var _vm = this
65392
65389
  var _h = _vm.$createElement
65393
65390
  var _c = _vm._self._c || _h
@@ -67921,11 +67918,11 @@ var tablevue_type_template_id_6f2cdf82_render = function () {
67921
67918
  2
67922
67919
  )
67923
67920
  }
67924
- var tablevue_type_template_id_6f2cdf82_staticRenderFns = []
67925
- tablevue_type_template_id_6f2cdf82_render._withStripped = true
67921
+ var tablevue_type_template_id_d04e82f8_staticRenderFns = []
67922
+ tablevue_type_template_id_d04e82f8_render._withStripped = true
67926
67923
 
67927
67924
 
67928
- // CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=6f2cdf82&
67925
+ // CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=d04e82f8&
67929
67926
 
67930
67927
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=script&lang=js&
67931
67928
  //
@@ -68927,7 +68924,11 @@ tablevue_type_template_id_6f2cdf82_render._withStripped = true
68927
68924
  }
68928
68925
  }
68929
68926
  },
68930
- inject: ['scale'],
68927
+ inject: {
68928
+ scale: {
68929
+ default: ''
68930
+ }
68931
+ },
68931
68932
  props: {
68932
68933
  model: {
68933
68934
  type: Object,
@@ -69036,7 +69037,6 @@ tablevue_type_template_id_6f2cdf82_render._withStripped = true
69036
69037
  scale: {
69037
69038
  deep: true,
69038
69039
  handler: function handler(val) {
69039
- console.log(val, 999);
69040
69040
  this.getWidth();
69041
69041
  }
69042
69042
  },
@@ -69188,8 +69188,8 @@ tablevue_type_template_id_6f2cdf82_render._withStripped = true
69188
69188
 
69189
69189
  var form_src_table_component = normalizeComponent(
69190
69190
  packages_form_src_tablevue_type_script_lang_js_,
69191
- tablevue_type_template_id_6f2cdf82_render,
69192
- tablevue_type_template_id_6f2cdf82_staticRenderFns,
69191
+ tablevue_type_template_id_d04e82f8_render,
69192
+ tablevue_type_template_id_d04e82f8_staticRenderFns,
69193
69193
  false,
69194
69194
  null,
69195
69195
  null,
@@ -69206,8 +69206,8 @@ form_src_table.install = function (Vue) {
69206
69206
  };
69207
69207
 
69208
69208
  /* harmony default export */ var table_form = (form_src_table);
69209
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=5c1d17da&
69210
- var mainvue_type_template_id_5c1d17da_render = function () {
69209
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=a73af130&
69210
+ var mainvue_type_template_id_a73af130_render = function () {
69211
69211
  var _vm = this
69212
69212
  var _h = _vm.$createElement
69213
69213
  var _c = _vm._self._c || _h
@@ -69550,11 +69550,11 @@ var mainvue_type_template_id_5c1d17da_render = function () {
69550
69550
  2
69551
69551
  )
69552
69552
  }
69553
- var mainvue_type_template_id_5c1d17da_staticRenderFns = []
69554
- mainvue_type_template_id_5c1d17da_render._withStripped = true
69553
+ var mainvue_type_template_id_a73af130_staticRenderFns = []
69554
+ mainvue_type_template_id_a73af130_render._withStripped = true
69555
69555
 
69556
69556
 
69557
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=5c1d17da&
69557
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=a73af130&
69558
69558
 
69559
69559
  // CONCATENATED MODULE: ./packages/upload/src/picture.js
69560
69560
  /* harmony default export */ var picture = ({
@@ -69808,7 +69808,10 @@ var mainvue_type_script_lang_js_props;
69808
69808
  code: String,
69809
69809
  // 业务id
69810
69810
  ownId: String,
69811
- requiredOwnId: Boolean,
69811
+ requiredOwnId: {
69812
+ type: Boolean,
69813
+ default: true
69814
+ },
69812
69815
  //
69813
69816
  downloads: {
69814
69817
  type: Boolean,
@@ -69996,14 +69999,6 @@ var mainvue_type_script_lang_js_props;
69996
69999
  _picture: function _picture() {
69997
70000
  return upload_src_mainvue_type_script_lang_js_extends({}, picture, this.picture);
69998
70001
  },
69999
- isRequiredOwnId: function isRequiredOwnId() {
70000
- if (this.requiredOwnId !== undefined) {
70001
- return this.requiredOwnId;
70002
- }
70003
- if (!this.fileList || !this.fileList.length) {
70004
- return true;
70005
- }
70006
- },
70007
70002
  show: function show() {
70008
70003
  if (this.photo && typeof this.photo === 'string' || this.value) {
70009
70004
  return false;
@@ -70133,7 +70128,11 @@ var mainvue_type_script_lang_js_props;
70133
70128
  this.lists = val;
70134
70129
  var filesTotalSize = 0;
70135
70130
  val.forEach(function (item) {
70136
- filesTotalSize += item.size ? item.size : 0;
70131
+ if (Object.prototype.hasOwnProperty.call(item, 'fileSize') && item.fileSize) {
70132
+ filesTotalSize += parseFloat(item.fileSize, 10);
70133
+ } else {
70134
+ filesTotalSize += item.size ? Math.round(item.size / 1024 * 10) / 10 : 0;
70135
+ }
70137
70136
  });
70138
70137
  this.filesTotalSize = filesTotalSize;
70139
70138
  } else {
@@ -70225,7 +70224,7 @@ var mainvue_type_script_lang_js_props;
70225
70224
  getFiles: function getFiles(params) {
70226
70225
  var _this3 = this;
70227
70226
 
70228
- if (!this.show || this.isRequiredOwnId && !Object.prototype.hasOwnProperty.call(params, 'ownId')) {
70227
+ if (!this.show || this.fileList && Array.isArray(this.fileList) && this.fileList.length || this.requiredOwnId && !Object.prototype.hasOwnProperty.call(params, 'ownId')) {
70229
70228
  return false;
70230
70229
  }
70231
70230
  utils_util["a" /* default */].ajax({
@@ -70242,7 +70241,11 @@ var mainvue_type_script_lang_js_props;
70242
70241
  _this3.lists = JSON.parse(JSON.stringify(res.results));
70243
70242
  var filesTotalSize = 0;
70244
70243
  _this3.lists.forEach(function (item) {
70245
- filesTotalSize += item.size ? item.size : 0;
70244
+ if (Object.prototype.hasOwnProperty.call(item, 'fileSize') && item.fileSize) {
70245
+ filesTotalSize += parseFloat(item.fileSize, 10);
70246
+ } else {
70247
+ filesTotalSize += item.size ? Math.round(item.size / 1024 * 10) / 10 : 0;
70248
+ }
70246
70249
  });
70247
70250
  _this3.filesTotalSize = filesTotalSize;
70248
70251
  _this3.$emit('input', _this3.lists);
@@ -70334,7 +70337,7 @@ var mainvue_type_script_lang_js_props;
70334
70337
  }
70335
70338
  var size = this._size;
70336
70339
  var text = '单个附件';
70337
- var se = Math.ceil(file.size / 1024 * 100) / 100;
70340
+ var se = Math.round(file.size / 1024 * 10) / 10;
70338
70341
  if (this._size === 0 && this._totalSize === 0) {
70339
70342
  flag = true;
70340
70343
  } else if (this._size > 0 && this._totalSize === 0) {
@@ -70406,7 +70409,7 @@ var mainvue_type_script_lang_js_props;
70406
70409
  }
70407
70410
  }).then(function (res) {
70408
70411
  if (res.rCode === 0) {
70409
- var se = _this6.filesTotalSize - Math.ceil(file.size / 1024 * 100) / 100;
70412
+ var se = _this6.filesTotalSize - Math.round(file.size / 1024 * 10) / 10;
70410
70413
  _this6.filesTotalSize = se;
70411
70414
  _this6.$message.success(res.msg);
70412
70415
  resolve();
@@ -70512,7 +70515,7 @@ var mainvue_type_script_lang_js_props;
70512
70515
  this.$message.success(response.msg);
70513
70516
  }
70514
70517
  }
70515
- var se = this.filesTotalSize + (this.resultFile ? Math.ceil(file.size / 1024 * 100) / 100 : 0);
70518
+ var se = this.filesTotalSize + (this.resultFile ? Math.round(file.size / 1024 * 10) / 10 : 0);
70516
70519
  this.filesTotalSize = se;
70517
70520
  this.onSuccess && this.onSuccess(response, file, fileList);
70518
70521
  this.$emit('success', response, file, fileList);
@@ -70568,8 +70571,8 @@ var mainvue_type_script_lang_js_props;
70568
70571
 
70569
70572
  var upload_src_main_component = normalizeComponent(
70570
70573
  packages_upload_src_mainvue_type_script_lang_js_,
70571
- mainvue_type_template_id_5c1d17da_render,
70572
- mainvue_type_template_id_5c1d17da_staticRenderFns,
70574
+ mainvue_type_template_id_a73af130_render,
70575
+ mainvue_type_template_id_a73af130_staticRenderFns,
70573
70576
  false,
70574
70577
  null,
70575
70578
  null,
@@ -71048,7 +71051,7 @@ if (typeof window !== 'undefined' && window.Vue) {
71048
71051
  }
71049
71052
 
71050
71053
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
71051
- version: '0.4.43',
71054
+ version: '0.4.44',
71052
71055
  install: install,
71053
71056
  Button: packages_button,
71054
71057
  ButtonGroup: button_group,
package/lib/form.js CHANGED
@@ -2716,7 +2716,7 @@ module.exports = require("axios");
2716
2716
  // ESM COMPAT FLAG
2717
2717
  __webpack_require__.r(__webpack_exports__);
2718
2718
 
2719
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=01defb77&
2719
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=3481f0aa&
2720
2720
  var render = function () {
2721
2721
  var _vm = this
2722
2722
  var _h = _vm.$createElement
@@ -13007,7 +13007,7 @@ var staticRenderFns = []
13007
13007
  render._withStripped = true
13008
13008
 
13009
13009
 
13010
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=01defb77&
13010
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=3481f0aa&
13011
13011
 
13012
13012
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
13013
13013
  var regenerator_ = __webpack_require__(9);
@@ -17005,12 +17005,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
17005
17005
  _this2.getHeight();
17006
17006
  }
17007
17007
  });
17008
- console.log(val, 999);
17009
17008
  }
17010
17009
  },
17011
17010
  zoom: {
17012
17011
  handler: function handler(val) {
17013
- console.log(111);
17014
17012
  if (!this.height && this.display) {
17015
17013
  this.getHeight();
17016
17014
  }