eoss-ui 0.7.88 → 0.7.89

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=466ae6f8&
5069
+ var columnvue_type_template_id_466ae6f8_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_466ae6f8_staticRenderFns = []
5880
+ columnvue_type_template_id_466ae6f8_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=466ae6f8&
5884
5884
 
5885
5885
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
5886
5886
  var regenerator_ = __webpack_require__(4);
@@ -6538,6 +6538,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6538
6538
  },
6539
6539
  isForm: function isForm() {
6540
6540
  var type = this.type ? this.type.toLowerCase() : '';
6541
+ console.log('type', type);
6541
6542
  var flag = this.form && ['input', 'text', 'textarea', 'checkbox', 'radio', 'select', 'handle', 'date', 'year', 'month', 'date', 'dates', 'week', 'datetime', 'datetimerange', 'daterange', 'monthrange', 'quarter', 'halfyear', 'switch', 'selector', 'ganged', 'number'].indexOf(type) > -1 || ['space', 'slot', 'component'].indexOf(type) > -1;
6542
6543
  return flag;
6543
6544
  },
@@ -6661,6 +6662,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6661
6662
  return Array.isArray(types) ? types.includes(type) : type == types;
6662
6663
  },
6663
6664
  getOptions: function getOptions(config) {
6665
+ console.log('getOptions config', config);
6664
6666
  var option = config && config[this.field || this.prop];
6665
6667
  return option && (typeof option === 'undefined' ? 'undefined' : _typeof(option)) == 'object' ? _extends({}, this.formOption, option) : this.formOption;
6666
6668
  },
@@ -6679,10 +6681,15 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6679
6681
  var field = this.field || this.prop;
6680
6682
  var data = this.option;
6681
6683
  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) {
6684
+ console.log('rows[field]', rows[field]);
6685
+ var column = rows[field] ? JSON.parse(JSON.stringify(rows[field])) : '';
6686
+ if (column.includes(',')) {
6687
+ column = column.split(',');
6688
+ }
6689
+ if (util["a" /* default */].isObject(column)) {
6690
+ str = column[this.labelKey] || column['name'] || column['label'] || column['shortName'];
6691
+ } else if (Array.isArray(column)) {
6692
+ var vals = column.map(function (item) {
6686
6693
  if (util["a" /* default */].isObject(item)) {
6687
6694
  return item[_this2.labelKey] || item['name'] || item['label'] || item['shortName'];
6688
6695
  } else {
@@ -6692,21 +6699,21 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
6692
6699
  return item;
6693
6700
  }
6694
6701
  });
6695
- str = vals.join(this.symbol ? this.symbol : '-');
6702
+ str = vals.join(this.symbol ? this.symbol : ',');
6696
6703
  } else {
6697
6704
  if (this.valueToString) {
6698
- var _vals = rows[field].split(',').map(function (item) {
6705
+ var _vals = column.split(',').map(function (item) {
6699
6706
  if (data && data.length && util["a" /* default */].isObject(data[0])) {
6700
6707
  return _this2.getLabel(data, item);
6701
6708
  }
6702
6709
  return item;
6703
6710
  });
6704
- str = _vals.join(this.symbol ? this.symbol : '-');
6711
+ str = _vals.join(this.symbol ? this.symbol : ',');
6705
6712
  } else {
6706
6713
  if (data && data.length && util["a" /* default */].isObject(data[0])) {
6707
- str = this.getLabel(data, rows[field]);
6714
+ str = this.getLabel(data, column);
6708
6715
  } else {
6709
- str = rows[field];
6716
+ str = column;
6710
6717
  }
6711
6718
  }
6712
6719
  }
@@ -6830,8 +6837,8 @@ var componentNormalizer = __webpack_require__(3);
6830
6837
 
6831
6838
  var component = Object(componentNormalizer["a" /* default */])(
6832
6839
  src_columnvue_type_script_lang_js_,
6833
- columnvue_type_template_id_8d40b3a8_render,
6834
- columnvue_type_template_id_8d40b3a8_staticRenderFns,
6840
+ columnvue_type_template_id_466ae6f8_render,
6841
+ columnvue_type_template_id_466ae6f8_staticRenderFns,
6835
6842
  false,
6836
6843
  null,
6837
6844
  null,
@@ -6839,7 +6846,7 @@ var component = Object(componentNormalizer["a" /* default */])(
6839
6846
 
6840
6847
  )
6841
6848
 
6842
- /* harmony default export */ var column = (component.exports);
6849
+ /* harmony default export */ var src_column = (component.exports);
6843
6850
  // 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
6851
  //
6845
6852
  //
@@ -6865,7 +6872,7 @@ var component = Object(componentNormalizer["a" /* default */])(
6865
6872
  /* harmony default export */ var childrenvue_type_script_lang_js_ = ({
6866
6873
  name: 'Children',
6867
6874
  components: {
6868
- column: column
6875
+ column: src_column
6869
6876
  },
6870
6877
  props: {
6871
6878
  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=466ae6f8&
10206
+ var columnvue_type_template_id_466ae6f8_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_466ae6f8_staticRenderFns = []
11017
+ columnvue_type_template_id_466ae6f8_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=466ae6f8&
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
 
@@ -11668,6 +11668,7 @@ function columnvue_type_script_lang_js_asyncToGenerator(fn) { return function ()
11668
11668
  },
11669
11669
  isForm: function isForm() {
11670
11670
  var type = this.type ? this.type.toLowerCase() : '';
11671
+ console.log('type', type);
11671
11672
  var flag = this.form && ['input', 'text', 'textarea', 'checkbox', 'radio', 'select', 'handle', 'date', 'year', 'month', 'date', 'dates', 'week', 'datetime', 'datetimerange', 'daterange', 'monthrange', 'quarter', 'halfyear', 'switch', 'selector', 'ganged', 'number'].indexOf(type) > -1 || ['space', 'slot', 'component'].indexOf(type) > -1;
11672
11673
  return flag;
11673
11674
  },
@@ -11791,6 +11792,7 @@ function columnvue_type_script_lang_js_asyncToGenerator(fn) { return function ()
11791
11792
  return Array.isArray(types) ? types.includes(type) : type == types;
11792
11793
  },
11793
11794
  getOptions: function getOptions(config) {
11795
+ console.log('getOptions config', config);
11794
11796
  var option = config && config[this.field || this.prop];
11795
11797
  return option && (typeof option === 'undefined' ? 'undefined' : columnvue_type_script_lang_js_typeof(option)) == 'object' ? columnvue_type_script_lang_js_extends({}, this.formOption, option) : this.formOption;
11796
11798
  },
@@ -11809,10 +11811,15 @@ function columnvue_type_script_lang_js_asyncToGenerator(fn) { return function ()
11809
11811
  var field = this.field || this.prop;
11810
11812
  var data = this.option;
11811
11813
  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) {
11814
+ console.log('rows[field]', rows[field]);
11815
+ var column = rows[field] ? JSON.parse(JSON.stringify(rows[field])) : '';
11816
+ if (column.includes(',')) {
11817
+ column = column.split(',');
11818
+ }
11819
+ if (utils_util.isObject(column)) {
11820
+ str = column[this.labelKey] || column['name'] || column['label'] || column['shortName'];
11821
+ } else if (Array.isArray(column)) {
11822
+ var vals = column.map(function (item) {
11816
11823
  if (utils_util.isObject(item)) {
11817
11824
  return item[_this2.labelKey] || item['name'] || item['label'] || item['shortName'];
11818
11825
  } else {
@@ -11822,21 +11829,21 @@ function columnvue_type_script_lang_js_asyncToGenerator(fn) { return function ()
11822
11829
  return item;
11823
11830
  }
11824
11831
  });
11825
- str = vals.join(this.symbol ? this.symbol : '-');
11832
+ str = vals.join(this.symbol ? this.symbol : ',');
11826
11833
  } else {
11827
11834
  if (this.valueToString) {
11828
- var _vals = rows[field].split(',').map(function (item) {
11835
+ var _vals = column.split(',').map(function (item) {
11829
11836
  if (data && data.length && utils_util.isObject(data[0])) {
11830
11837
  return _this2.getLabel(data, item);
11831
11838
  }
11832
11839
  return item;
11833
11840
  });
11834
- str = _vals.join(this.symbol ? this.symbol : '-');
11841
+ str = _vals.join(this.symbol ? this.symbol : ',');
11835
11842
  } else {
11836
11843
  if (data && data.length && utils_util.isObject(data[0])) {
11837
- str = this.getLabel(data, rows[field]);
11844
+ str = this.getLabel(data, column);
11838
11845
  } else {
11839
- str = rows[field];
11846
+ str = column;
11840
11847
  }
11841
11848
  }
11842
11849
  }
@@ -11957,8 +11964,8 @@ function columnvue_type_script_lang_js_asyncToGenerator(fn) { return function ()
11957
11964
 
11958
11965
  var column_component = normalizeComponent(
11959
11966
  src_columnvue_type_script_lang_js_,
11960
- columnvue_type_template_id_8d40b3a8_render,
11961
- columnvue_type_template_id_8d40b3a8_staticRenderFns,
11967
+ columnvue_type_template_id_466ae6f8_render,
11968
+ columnvue_type_template_id_466ae6f8_staticRenderFns,
11962
11969
  false,
11963
11970
  null,
11964
11971
  null,
@@ -11966,7 +11973,7 @@ var column_component = normalizeComponent(
11966
11973
 
11967
11974
  )
11968
11975
 
11969
- /* harmony default export */ var column = (column_component.exports);
11976
+ /* harmony default export */ var src_column = (column_component.exports);
11970
11977
  // 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
11978
  //
11972
11979
  //
@@ -11992,7 +11999,7 @@ var column_component = normalizeComponent(
11992
11999
  /* harmony default export */ var childrenvue_type_script_lang_js_ = ({
11993
12000
  name: 'Children',
11994
12001
  components: {
11995
- column: column
12002
+ column: src_column
11996
12003
  },
11997
12004
  props: {
11998
12005
  dragSort: Boolean,
@@ -85421,7 +85428,7 @@ function select_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, key
85421
85428
  },
85422
85429
  symbol: {
85423
85430
  type: String,
85424
- default: ''
85431
+ default: ','
85425
85432
  },
85426
85433
  plain: Boolean,
85427
85434
  where: Object,
@@ -85890,8 +85897,12 @@ function select_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, key
85890
85897
  if (!this.hide) {
85891
85898
  if (this.readonly) {
85892
85899
  var dom = [];
85893
- if (Array.isArray(this.models)) {
85894
- dom = this.models.map(function (item) {
85900
+ var models = JSON.parse(JSON.stringify(this.models));
85901
+ if (models.includes(',')) {
85902
+ models = models.split(',');
85903
+ }
85904
+ if (Array.isArray(models)) {
85905
+ dom = models.map(function (item) {
85895
85906
  if (utils_util.isObject(item)) {
85896
85907
  if (!item[_this8.label] && !item.label) {
85897
85908
  return _this8.getLabel(value[_this8.valKey], data);
@@ -85900,15 +85911,16 @@ function select_src_mainvue_type_script_lang_js_objectWithoutProperties(obj, key
85900
85911
  }
85901
85912
  return _this8.getLabel(item, _this8.results);
85902
85913
  });
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)];
85914
+ } else if (utils_util.isObject(models)) {
85915
+ if (!models[this.label] && !models.label) {
85916
+ dom = [this.getLabel(models[this.valKey], this.results)];
85906
85917
  } else {
85907
- dom = [this.models[this.label] || this.models.label];
85918
+ dom = [models[this.label] || models.label];
85908
85919
  }
85909
85920
  } else {
85910
- dom = [this.getLabel(this.models, this.results)];
85921
+ dom = [this.getLabel(models, this.results)];
85911
85922
  }
85923
+ console.log('dom', dom);
85912
85924
  return h('div', {
85913
85925
  class: [{
85914
85926
  'es-plain': this.plain,
@@ -102453,7 +102465,7 @@ if (typeof window !== 'undefined' && window.Vue) {
102453
102465
  }
102454
102466
 
102455
102467
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
102456
- version: '0.7.88',
102468
+ version: '0.7.89',
102457
102469
  install: install,
102458
102470
  Button: packages_button,
102459
102471
  ButtonGroup: button_group,