venus-design 1.0.40 → 1.0.41
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/dist/VirtTable/index.js +12 -2
- package/package.json +1 -1
package/dist/VirtTable/index.js
CHANGED
|
@@ -391,7 +391,7 @@ export default function VirtTable(props) {
|
|
|
391
391
|
return v.title;
|
|
392
392
|
}).join(",");
|
|
393
393
|
var _value = val.map(function (v) {
|
|
394
|
-
return v.value;
|
|
394
|
+
return v.value || v.id;
|
|
395
395
|
}).join(",");
|
|
396
396
|
//@ts-ignore
|
|
397
397
|
grid.batchSetItemValue([{
|
|
@@ -404,6 +404,16 @@ export default function VirtTable(props) {
|
|
|
404
404
|
value: _value
|
|
405
405
|
}]);
|
|
406
406
|
} else {
|
|
407
|
+
console.log([{
|
|
408
|
+
rowKey: rowKey,
|
|
409
|
+
key: key,
|
|
410
|
+
value: val[0].title
|
|
411
|
+
}, {
|
|
412
|
+
rowKey: rowKey,
|
|
413
|
+
key: column.fieldId,
|
|
414
|
+
value: val[0].value
|
|
415
|
+
}]);
|
|
416
|
+
|
|
407
417
|
//@ts-ignore
|
|
408
418
|
grid.batchSetItemValue([{
|
|
409
419
|
rowKey: rowKey,
|
|
@@ -412,7 +422,7 @@ export default function VirtTable(props) {
|
|
|
412
422
|
}, {
|
|
413
423
|
rowKey: rowKey,
|
|
414
424
|
key: column.fieldId,
|
|
415
|
-
value: val[0].value
|
|
425
|
+
value: val[0].value || val[0].id
|
|
416
426
|
}]);
|
|
417
427
|
}
|
|
418
428
|
};
|