JSX语法的格式化能否提供下支持的方案
cell: (h, { row }) => (
<div class="tdesign-table-demo__table-operations">
<t-link variant="text" hover="color" onClick={() => appendTo(row)}>
插入
</t-link>
<t-link variant="text" hover="color" onClick={() => insertBefore(row)}>
前插
</t-link>
<t-link variant="text" hover="color" onClick={() => insertAfter(row)}>
后插
</t-link>
<t-link variant="text" hover="color" onClick={() => onEditClick(row)}>
更新
</t-link>
<t-link variant="text" hover="color" onClick={() => onLookUp(row)}>
查看
</t-link>
<t-popconfirm content="确认删除吗" onConfirm={() => onDeleteConfirm(row)}>
<t-link variant="text" hover="color" theme="danger"> 删除
</t-link>
</t-popconfirm>
</div>
),
cell: (h, {
row
}) => ( <
div class = "tdesign-table-demo__table-operations" >
<
t - link variant = "text"
hover = "color"
onClick = {
() => appendTo(row)
} >
插入 <
/t-link> <
t - link variant = "text"
hover = "color"
onClick = {
() => insertBefore(row)
} >
前插 <
/t-link> <
t - link variant = "text"
hover = "color"
onClick = {
() => insertAfter(row)
} >
后插 <
/t-link> <
t - link variant = "text"
hover = "color"
onClick = {
() => onEditClick(row)
} >
更新 <
/t-link> <
t - link variant = "text"
hover = "color"
onClick = {
() => onLookUp(row)
} >
查看 <
/t-link> <
t - popconfirm content = "确认删除吗"
onConfirm = {
() => onDeleteConfirm(row)
} >
<
t - link variant = "text"
hover = "color"
theme = "danger" > 删除 <
/t-link> <
/t-popconfirm> <
/div>
),