eoss-ui 0.7.88 → 0.7.90

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
@@ -5065,8 +5065,8 @@ childrenvue_type_template_id_271bb842_render._withStripped = true
5065
5065
 
5066
5066
  // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=271bb842&
5067
5067
 
5068
- // 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=8d40b3a8&
5069
- var columnvue_type_template_id_8d40b3a8_render = function () {
5068
+ // 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=6d109077&
5069
+ var columnvue_type_template_id_6d109077_render = function () {
5070
5070
  var _vm = this
5071
5071
  var _h = _vm.$createElement
5072
5072
  var _c = _vm._self._c || _h
@@ -5876,11 +5876,11 @@ var columnvue_type_template_id_8d40b3a8_render = function () {
5876
5876
  2
5877
5877
  )
5878
5878
  }
5879
- var columnvue_type_template_id_8d40b3a8_staticRenderFns = []
5880
- columnvue_type_template_id_8d40b3a8_render._withStripped = true
5879
+ var columnvue_type_template_id_6d109077_staticRenderFns = []
5880
+ columnvue_type_template_id_6d109077_render._withStripped = true
5881
5881
 
5882
5882
 
5883
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=8d40b3a8&
5883
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=6d109077&
5884
5884
 
5885
5885
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
5886
5886
  var regenerator_ = __webpack_require__(4);
@@ -6679,10 +6679,14 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6679
6679
  var field = this.field || this.prop;
6680
6680
  var data = this.option;
6681
6681
  var str = '';
6682
- if (util["a" /* default */].isObject(rows[field])) {
6683
- str = rows[field][this.labelKey] || rows[field]['name'] || rows[field]['label'] || rows[field]['shortName'];
6684
- } else if (Array.isArray(rows[field])) {
6685
- var vals = rows[field].map(function (item) {
6682
+ var column = rows[field] ? JSON.parse(JSON.stringify(rows[field])) : '';
6683
+ if (typeof column == 'string' && column.includes(',')) {
6684
+ column = column.split(',');
6685
+ }
6686
+ if (util["a" /* default */].isObject(column)) {
6687
+ str = column[this.labelKey] || column['name'] || column['label'] || column['shortName'];
6688
+ } else if (Array.isArray(column)) {
6689
+ var vals = column.map(function (item) {
6686
6690
  if (util["a" /* default */].isObject(item)) {
6687
6691
  return item[_this2.labelKey] || item['name'] || item['label'] || item['shortName'];
6688
6692
  } else {
@@ -6692,21 +6696,21 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6692
6696
  return item;
6693
6697
  }
6694
6698
  });
6695
- str = vals.join(this.symbol ? this.symbol : '-');
6699
+ str = vals.join(this.symbol ? this.symbol : ',');
6696
6700
  } else {
6697
6701
  if (this.valueToString) {
6698
- var _vals = rows[field].split(',').map(function (item) {
6702
+ var _vals = column.split(',').map(function (item) {
6699
6703
  if (data && data.length && util["a" /* default */].isObject(data[0])) {
6700
6704
  return _this2.getLabel(data, item);
6701
6705
  }
6702
6706
  return item;
6703
6707
  });
6704
- str = _vals.join(this.symbol ? this.symbol : '-');
6708
+ str = _vals.join(this.symbol ? this.symbol : ',');
6705
6709
  } else {
6706
6710
  if (data && data.length && util["a" /* default */].isObject(data[0])) {
6707
- str = this.getLabel(data, rows[field]);
6711
+ str = this.getLabel(data, column);
6708
6712
  } else {
6709
- str = rows[field];
6713
+ str = column;
6710
6714
  }
6711
6715
  }
6712
6716
  }
@@ -6830,8 +6834,8 @@ var componentNormalizer = __webpack_require__(3);
6830
6834
 
6831
6835
  var component = Object(componentNormalizer["a" /* default */])(
6832
6836
  src_columnvue_type_script_lang_js_,
6833
- columnvue_type_template_id_8d40b3a8_render,
6834
- columnvue_type_template_id_8d40b3a8_staticRenderFns,
6837
+ columnvue_type_template_id_6d109077_render,
6838
+ columnvue_type_template_id_6d109077_staticRenderFns,
6835
6839
  false,
6836
6840
  null,
6837
6841
  null,
@@ -6839,7 +6843,7 @@ var component = Object(componentNormalizer["a" /* default */])(
6839
6843
 
6840
6844
  )
6841
6845
 
6842
- /* harmony default export */ var column = (component.exports);
6846
+ /* harmony default export */ var src_column = (component.exports);
6843
6847
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=script&lang=js&
6844
6848
  //
6845
6849
  //
@@ -6865,7 +6869,7 @@ var component = Object(componentNormalizer["a" /* default */])(
6865
6869
  /* harmony default export */ var childrenvue_type_script_lang_js_ = ({
6866
6870
  name: 'Children',
6867
6871
  components: {
6868
- column: column
6872
+ column: src_column
6869
6873
  },
6870
6874
  props: {
6871
6875
  dragSort: Boolean,
@@ -10202,8 +10202,8 @@ childrenvue_type_template_id_271bb842_render._withStripped = true
10202
10202
 
10203
10203
  // CONCATENATED MODULE: ./packages/data-table/src/children.vue?vue&type=template&id=271bb842&
10204
10204
 
10205
- // 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=8d40b3a8&
10206
- var columnvue_type_template_id_8d40b3a8_render = function () {
10205
+ // 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=6d109077&
10206
+ var columnvue_type_template_id_6d109077_render = function () {
10207
10207
  var _vm = this
10208
10208
  var _h = _vm.$createElement
10209
10209
  var _c = _vm._self._c || _h
@@ -11013,11 +11013,11 @@ var columnvue_type_template_id_8d40b3a8_render = function () {
11013
11013
  2
11014
11014
  )
11015
11015
  }
11016
- var columnvue_type_template_id_8d40b3a8_staticRenderFns = []
11017
- columnvue_type_template_id_8d40b3a8_render._withStripped = true
11016
+ var columnvue_type_template_id_6d109077_staticRenderFns = []
11017
+ columnvue_type_template_id_6d109077_render._withStripped = true
11018
11018
 
11019
11019
 
11020
- // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=8d40b3a8&
11020
+ // CONCATENATED MODULE: ./packages/data-table/src/column.vue?vue&type=template&id=6d109077&
11021
11021
 
11022
11022
  // 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&
11023
11023
 
@@ -11809,10 +11809,14 @@ function columnvue_type_script_lang_js_asyncToGenerator(fn) { return function ()
11809
11809
  var field = this.field || this.prop;
11810
11810
  var data = this.option;
11811
11811
  var str = '';
11812
- if (utils_util.isObject(rows[field])) {
11813
- str = rows[field][this.labelKey] || rows[field]['name'] || rows[field]['label'] || rows[field]['shortName'];
11814
- } else if (Array.isArray(rows[field])) {
11815
- var vals = rows[field].map(function (item) {
11812
+ var column = rows[field] ? JSON.parse(JSON.stringify(rows[field])) : '';
11813
+ if (typeof column == 'string' && column.includes(',')) {
11814
+ column = column.split(',');
11815
+ }
11816
+ if (utils_util.isObject(column)) {
11817
+ str = column[this.labelKey] || column['name'] || column['label'] || column['shortName'];
11818
+ } else if (Array.isArray(column)) {
11819
+ var vals = column.map(function (item) {
11816
11820
  if (utils_util.isObject(item)) {
11817
11821
  return item[_this2.labelKey] || item['name'] || item['label'] || item['shortName'];
11818
11822
  } else {
@@ -11822,21 +11826,21 @@ function columnvue_type_script_lang_js_asyncToGenerator(fn) { return function ()
11822
11826
  return item;
11823
11827
  }
11824
11828
  });
11825
- str = vals.join(this.symbol ? this.symbol : '-');
11829
+ str = vals.join(this.symbol ? this.symbol : ',');
11826
11830
  } else {
11827
11831
  if (this.valueToString) {
11828
- var _vals = rows[field].split(',').map(function (item) {
11832
+ var _vals = column.split(',').map(function (item) {
11829
11833
  if (data && data.length && utils_util.isObject(data[0])) {
11830
11834
  return _this2.getLabel(data, item);
11831
11835
  }
11832
11836
  return item;
11833
11837
  });
11834
- str = _vals.join(this.symbol ? this.symbol : '-');
11838
+ str = _vals.join(this.symbol ? this.symbol : ',');
11835
11839
  } else {
11836
11840
  if (data && data.length && utils_util.isObject(data[0])) {
11837
- str = this.getLabel(data, rows[field]);
11841
+ str = this.getLabel(data, column);
11838
11842
  } else {
11839
- str = rows[field];
11843
+ str = column;
11840
11844
  }
11841
11845
  }
11842
11846
  }
@@ -11957,8 +11961,8 @@ function columnvue_type_script_lang_js_asyncToGenerator(fn) { return function ()
11957
11961
 
11958
11962
  var column_component = normalizeComponent(
11959
11963
  src_columnvue_type_script_lang_js_,
11960
- columnvue_type_template_id_8d40b3a8_render,
11961
- columnvue_type_template_id_8d40b3a8_staticRenderFns,
11964
+ columnvue_type_template_id_6d109077_render,
11965
+ columnvue_type_template_id_6d109077_staticRenderFns,
11962
11966
  false,
11963
11967
  null,
11964
11968
  null,
@@ -11966,7 +11970,7 @@ var column_component = normalizeComponent(
11966
11970
 
11967
11971
  )
11968
11972
 
11969
- /* harmony default export */ var column = (column_component.exports);
11973
+ /* harmony default export */ var src_column = (column_component.exports);
11970
11974
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=script&lang=js&
11971
11975
  //
11972
11976
  //
@@ -11992,7 +11996,7 @@ var column_component = normalizeComponent(
11992
11996
  /* harmony default export */ var childrenvue_type_script_lang_js_ = ({
11993
11997
  name: 'Children',
11994
11998
  components: {
11995
- column: column
11999
+ column: src_column
11996
12000
  },
11997
12001
  props: {
11998
12002
  dragSort: Boolean,
@@ -85421,7 +85425,7 @@ function select_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, key
85421
85425
  },
85422
85426
  symbol: {
85423
85427
  type: String,
85424
- default: ''
85428
+ default: ','
85425
85429
  },
85426
85430
  plain: Boolean,
85427
85431
  where: Object,
@@ -85890,8 +85894,12 @@ function select_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, key
85890
85894
  if (!this.hide) {
85891
85895
  if (this.readonly) {
85892
85896
  var dom = [];
85893
- if (Array.isArray(this.models)) {
85894
- dom = this.models.map(function (item) {
85897
+ var models = this.models ? JSON.parse(JSON.stringify(this.models)) : '';
85898
+ if (typeof models === 'string' && models.includes(',')) {
85899
+ models = models.split(',');
85900
+ }
85901
+ if (Array.isArray(models)) {
85902
+ dom = models.map(function (item) {
85895
85903
  if (utils_util.isObject(item)) {
85896
85904
  if (!item[_this8.label] && !item.label) {
85897
85905
  return _this8.getLabel(value[_this8.valKey], data);
@@ -85900,15 +85908,16 @@ function select_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, key
85900
85908
  }
85901
85909
  return _this8.getLabel(item, _this8.results);
85902
85910
  });
85903
- } else if (utils_util.isObject(this.models)) {
85904
- if (!this.models[this.label] && !this.models.label) {
85905
- dom = [this.getLabel(this.models[this.valKey], this.results)];
85911
+ } else if (utils_util.isObject(models)) {
85912
+ if (!models[this.label] && !models.label) {
85913
+ dom = [this.getLabel(models[this.valKey], this.results)];
85906
85914
  } else {
85907
- dom = [this.models[this.label] || this.models.label];
85915
+ dom = [models[this.label] || models.label];
85908
85916
  }
85909
85917
  } else {
85910
- dom = [this.getLabel(this.models, this.results)];
85918
+ dom = [this.getLabel(models, this.results)];
85911
85919
  }
85920
+ console.log('dom', dom);
85912
85921
  return h('div', {
85913
85922
  class: [{
85914
85923
  'es-plain': this.plain,
@@ -102453,7 +102462,7 @@ if (typeof window !== 'undefined' && window.Vue) {
102453
102462
  }
102454
102463
 
102455
102464
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
102456
- version: '0.7.88',
102465
+ version: '0.7.90',
102457
102466
  install: install,
102458
102467
  Button: packages_button,
102459
102468
  ButtonGroup: button_group,