eoss-ui 0.7.87 → 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,