eoss-ui 0.7.89 → 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/select.js CHANGED
@@ -5185,8 +5185,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
5185
5185
  if (!this.hide) {
5186
5186
  if (this.readonly) {
5187
5187
  var dom = [];
5188
- var models = JSON.parse(JSON.stringify(this.models));
5189
- if (models.includes(',')) {
5188
+ var models = this.models ? JSON.parse(JSON.stringify(this.models)) : '';
5189
+ if (typeof models === 'string' && models.includes(',')) {
5190
5190
  models = models.split(',');
5191
5191
  }
5192
5192
  if (Array.isArray(models)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.7.89",
3
+ "version": "0.7.90",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -660,7 +660,6 @@ export default {
660
660
  },
661
661
  isForm() {
662
662
  let type = this.type ? this.type.toLowerCase() : '';
663
- console.log('type', type);
664
663
  let flag =
665
664
  (this.form &&
666
665
  [
@@ -800,7 +799,6 @@ export default {
800
799
  return Array.isArray(types) ? types.includes(type) : type == types;
801
800
  },
802
801
  getOptions(config) {
803
- console.log('getOptions config', config);
804
802
  let option = config && config[this.field || this.prop];
805
803
  return option && typeof option == 'object'
806
804
  ? { ...this.formOption, ...option }
@@ -818,9 +816,8 @@ export default {
818
816
  const field = this.field || this.prop;
819
817
  let data = this.option;
820
818
  let str = '';
821
- console.log('rows[field]', rows[field]);
822
- let column = rows[field]?JSON.parse(JSON.stringify(rows[field])):'';
823
- if(column.includes(',')){
819
+ let column = rows[field] ? JSON.parse(JSON.stringify(rows[field])) : '';
820
+ if (typeof column == 'string' && column.includes(',')) {
824
821
  column = column.split(',');
825
822
  }
826
823
  if (util.isObject(column)) {
@@ -640,8 +640,8 @@ export default {
640
640
  if (!this.hide) {
641
641
  if (this.readonly) {
642
642
  let dom = [];
643
- let models = JSON.parse(JSON.stringify(this.models));
644
- if(models.includes(',')){
643
+ let models = this.models ? JSON.parse(JSON.stringify(this.models)) : '';
644
+ if (typeof models === 'string' && models.includes(',')) {
645
645
  models = models.split(',');
646
646
  }
647
647
  if (Array.isArray(models)) {
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.7.89',
128
+ version: '0.7.90',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,