Browse Source

줄바꿈 처리

master
sanguu516 4 months ago
parent
commit
7c07b9b850
  1. 16
      src/components/flight/FlightApprovalsTable.js

16
src/components/flight/FlightApprovalsTable.js

@ -70,7 +70,13 @@ export default function FlightApprovalsTable(props) {
selector: row => row.applyNo, selector: row => row.applyNo,
center: true, center: true,
cell: row => { cell: row => {
return row.applyNo; return (
<>
{row.applyNo.slice(0, 5)}
<br />
{row.applyNo.slice(5)}
</>
);
} }
}, },
{ {
@ -84,7 +90,13 @@ export default function FlightApprovalsTable(props) {
selector: row => row.applyDt, selector: row => row.applyDt,
center: true, center: true,
cell: row => { cell: row => {
return dayjs(row.applyDt).format('YYYY-MM-DD'); return (
<>
{dayjs(row.applyDt).format('YYYY-MM-DD').slice(0, 5)}
<br />
{dayjs(row.applyDt).format('YYYY-MM-DD').slice(5)}
</>
);
} }
}, },
{ {

Loading…
Cancel
Save