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/data-table.js +8 -11
- package/lib/eoss-ui.common.js +11 -14
- package/lib/index.js +1 -1
- package/lib/select.js +2 -2
- package/package.json +1 -1
- package/packages/data-table/src/column.vue +2 -5
- package/packages/select/src/main.vue +2 -2
- package/src/index.js +1 -1
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
|
@@ -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
|
-
|
|
822
|
-
|
|
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)) {
|