물건상세 플랜 견적서 엑셀 버튼

This commit is contained in:
basssy 2024-10-25 09:01:22 +09:00
parent cc34dd78ee
commit 4134fb25c0

View File

@ -232,10 +232,18 @@ export default function StuffDetail() {
autoHeight: true, autoHeight: true,
cellStyle: { justifyContent: 'center' }, cellStyle: { justifyContent: 'center' },
cellRenderer: (params) => { cellRenderer: (params) => {
console.log('params::', params.value) let buttonStyle
if (params.value == null) {
buttonStyle = {
display: 'none',
}
}
return ( return (
<>
<div className="grid-cell-btn"> <div className="grid-cell-btn">
<button <button
style={buttonStyle}
type="button" type="button"
className="grid-btn" className="grid-btn"
onClick={() => { onClick={() => {
@ -255,6 +263,7 @@ export default function StuffDetail() {
<span className="excel"></span>Excel <span className="excel"></span>Excel
</button> </button>
</div> </div>
</>
) )
}, },
}, },