wr: 고정 width
This commit is contained in:
@@ -138,7 +138,8 @@ export const chRowspanTable = (
|
||||
<TableCell
|
||||
key={key}
|
||||
rowSpan={rowspan}
|
||||
className="align-middle text-center whitespace-nowrap"
|
||||
className="align-middle text-center whitespace-normal break-words"
|
||||
style={{ width: head.widthPercent ? `${head.widthPercent}%` : undefined }}
|
||||
>
|
||||
{key === "checkBox" ? (
|
||||
<Checkbox
|
||||
@@ -169,8 +170,9 @@ export const chRowspanTable = (
|
||||
return (
|
||||
<TableCell
|
||||
key={key}
|
||||
className="text-center whitespace-nowrap"
|
||||
className="text-center whitespace-normal break-words"
|
||||
onClick={() => handleCellClick(rowIndex, head.id)}
|
||||
style={{ width: head.widthPercent ? `${head.widthPercent}%` : undefined }}
|
||||
>
|
||||
{head.edit === true ? (
|
||||
[
|
||||
|
||||
@@ -190,7 +190,21 @@ export default function RainChkgdTable({
|
||||
|
||||
return (
|
||||
<>
|
||||
<Table variant="secondary">
|
||||
<Table variant="secondary" className="table-fixed">
|
||||
<colgroup>
|
||||
{headList.headList
|
||||
.filter((head) => head.visible !== false)
|
||||
.map((head) => (
|
||||
<col
|
||||
key={head.id}
|
||||
style={{
|
||||
width: head.widthPercent
|
||||
? `${head.widthPercent}%`
|
||||
: undefined,
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
</colgroup>
|
||||
<TableHeader className="font-bold">
|
||||
{headMakeprfmnc(
|
||||
headList?.headList,
|
||||
|
||||
@@ -145,7 +145,21 @@ export default function RswtChkgdTable({
|
||||
|
||||
return (
|
||||
<>
|
||||
<Table variant="secondary">
|
||||
<Table variant="secondary" className="table-fixed">
|
||||
<colgroup>
|
||||
{headList.headList
|
||||
.filter((head) => head.visible !== false)
|
||||
.map((head) => (
|
||||
<col
|
||||
key={head.id}
|
||||
style={{
|
||||
width: head.widthPercent
|
||||
? `${head.widthPercent}%`
|
||||
: undefined,
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
</colgroup>
|
||||
<TableHeader className="font-bold">
|
||||
{headMakeprfmnc(headList?.headList, headList?.upHeadList)}
|
||||
</TableHeader>
|
||||
|
||||
Reference in New Issue
Block a user