2 回答
TA贡献1828条经验 获得超3个赞
import {
style
} from "./../../../reports/ARCssPdf";
export const arGenerateFileHtml = values => {
return `
${style}
${generateNameSectionHtml(values)}`;
};
const replacer = value => value ? "Yes" : "No"
const generateNameSectionHtml = name =>
`<html>
<head>
</head>
<br/>
<body>
<div>
<table style="width:450px">
<tr>
<td> Section IV - AutomobileLiability</td>
<th> : </th>
<th> ${replacer(name.arCBValue3)}</th> //This is the output
</tr>
</table>
</div>
</body>
</html>`
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.3/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.3/umd/react-dom.production.min.js"></script>
添加回答
举报