eoss-ui 0.7.98 → 0.7.99
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 +16 -13
- package/lib/eoss-ui.common.js +22 -17
- package/lib/index.js +1 -1
- package/lib/select.js +3 -1
- package/package.json +1 -1
- package/packages/data-table/src/column.vue +2 -1
- package/packages/data-table/src/main.vue +2 -0
- package/packages/select/src/main.vue +3 -1
- package/packages/upload/src/main.vue +1344 -1344
- package/src/index.js +1 -1
package/lib/select.js
CHANGED
|
@@ -5119,6 +5119,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
5119
5119
|
}
|
|
5120
5120
|
},
|
|
5121
5121
|
getLabel: function getLabel(value, data) {
|
|
5122
|
+
console.log('value', value);
|
|
5123
|
+
console.log('data', data);
|
|
5122
5124
|
if ((value || value === 0) && data) {
|
|
5123
5125
|
if (util["a" /* default */].isObject(data)) {
|
|
5124
5126
|
if (value === data[this.valKey]) {
|
|
@@ -5246,7 +5248,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
5246
5248
|
if (!this.hide) {
|
|
5247
5249
|
if (this.readonly) {
|
|
5248
5250
|
var dom = [];
|
|
5249
|
-
var models = this.models ? JSON.parse(JSON.stringify(this.models)) : '';
|
|
5251
|
+
var models = this.models || this.models == 0 ? JSON.parse(JSON.stringify(this.models)) : '';
|
|
5250
5252
|
if (typeof models === 'string' && models.includes(',')) {
|
|
5251
5253
|
models = models.split(',');
|
|
5252
5254
|
}
|
package/package.json
CHANGED
|
@@ -816,7 +816,7 @@ export default {
|
|
|
816
816
|
const field = this.field || this.prop;
|
|
817
817
|
let data = this.option;
|
|
818
818
|
let str = '';
|
|
819
|
-
let column = rows[field] ? JSON.parse(JSON.stringify(rows[field])) : '';
|
|
819
|
+
let column = rows[field] || rows[field] == 0 ? JSON.parse(JSON.stringify(rows[field])) : '';
|
|
820
820
|
if (typeof column == 'string' && column.includes(',')) {
|
|
821
821
|
column = column.split(',');
|
|
822
822
|
}
|
|
@@ -871,6 +871,7 @@ export default {
|
|
|
871
871
|
let item = obj[i];
|
|
872
872
|
let value = item[this.valueKey || 'cciValue'] || item['value'];
|
|
873
873
|
if (value == val) {
|
|
874
|
+
console.log('value', value);
|
|
874
875
|
return (
|
|
875
876
|
item[this.labelKey] ||
|
|
876
877
|
item['name'] ||
|
|
@@ -500,6 +500,8 @@ export default {
|
|
|
500
500
|
}
|
|
501
501
|
},
|
|
502
502
|
getLabel(value, data) {
|
|
503
|
+
console.log('value', value);
|
|
504
|
+
console.log('data', data);
|
|
503
505
|
if ((value || value === 0) && data) {
|
|
504
506
|
if (util.isObject(data)) {
|
|
505
507
|
if (value === data[this.valKey]) {
|
|
@@ -640,7 +642,7 @@ export default {
|
|
|
640
642
|
if (!this.hide) {
|
|
641
643
|
if (this.readonly) {
|
|
642
644
|
let dom = [];
|
|
643
|
-
let models = this.models ? JSON.parse(JSON.stringify(this.models)) : '';
|
|
645
|
+
let models = this.models || this.models == 0 ? JSON.parse(JSON.stringify(this.models)) : '';
|
|
644
646
|
if (typeof models === 'string' && models.includes(',')) {
|
|
645
647
|
models = models.split(',');
|
|
646
648
|
}
|