venus-design 1.0.97 → 1.0.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.
|
@@ -520,6 +520,10 @@ export var VENUS_TABLE_COLUMNRENDER_TYPE = {
|
|
|
520
520
|
actions.toggleEdit(key, false);
|
|
521
521
|
actions.onUpdateFields(column.fieldId, newVal, record.innerId, record);
|
|
522
522
|
};
|
|
523
|
+
var cellStyle = {};
|
|
524
|
+
if (actions.getVenusEditCellStyle) {
|
|
525
|
+
cellStyle = actions.getVenusEditCellStyle(record, column.fieldId);
|
|
526
|
+
}
|
|
523
527
|
|
|
524
528
|
/* 非编辑态 */
|
|
525
529
|
if (!editing) {
|
|
@@ -528,10 +532,10 @@ export var VENUS_TABLE_COLUMNRENDER_TYPE = {
|
|
|
528
532
|
onClick: function onClick() {
|
|
529
533
|
return actions.toggleEdit(key, true);
|
|
530
534
|
},
|
|
531
|
-
style: {
|
|
535
|
+
style: _objectSpread({
|
|
532
536
|
cursor: 'pointer',
|
|
533
537
|
display: 'block'
|
|
534
|
-
}
|
|
538
|
+
}, cellStyle)
|
|
535
539
|
}, text !== null && text !== void 0 ? text : '');
|
|
536
540
|
}
|
|
537
541
|
|