venus-design 1.0.28 → 1.0.30
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.
|
@@ -400,22 +400,32 @@ export var VENUS_TABLE_COLUMNRENDER_TYPE = {
|
|
|
400
400
|
},
|
|
401
401
|
"renderStatus": function renderStatus(column, actions) {
|
|
402
402
|
return function (text, record, _, action) {
|
|
403
|
-
return [record.stateId == "DRAFT" ? /*#__PURE__*/React.createElement(
|
|
403
|
+
return [record.stateId == "DRAFT" ? /*#__PURE__*/React.createElement(_Badge, {
|
|
404
404
|
status: "success",
|
|
405
|
+
text: record.stateName,
|
|
405
406
|
style: {
|
|
406
407
|
marginRight: 3
|
|
407
408
|
}
|
|
408
|
-
})
|
|
409
|
+
}) : record.stateId == "RUNN" ? /*#__PURE__*/React.createElement(_Badge, {
|
|
409
410
|
status: "processing",
|
|
411
|
+
text: record.stateName,
|
|
410
412
|
style: {
|
|
411
413
|
marginRight: 3
|
|
412
414
|
}
|
|
413
|
-
})
|
|
415
|
+
}) : record.stateId == "APPROVAL" ? /*#__PURE__*/React.createElement(_Badge, {
|
|
414
416
|
status: "error",
|
|
417
|
+
text: record.stateName,
|
|
415
418
|
style: {
|
|
416
419
|
marginRight: 3
|
|
417
420
|
}
|
|
418
|
-
})
|
|
421
|
+
}) : /*#__PURE__*/React.createElement(_Badge, {
|
|
422
|
+
key: "gold",
|
|
423
|
+
color: "gold",
|
|
424
|
+
text: record.stateName,
|
|
425
|
+
style: {
|
|
426
|
+
marginRight: 3
|
|
427
|
+
}
|
|
428
|
+
})];
|
|
419
429
|
};
|
|
420
430
|
},
|
|
421
431
|
"renderDept": function renderDept(column, actions) {
|