s***@163.com
s***@163.com
  • 发布:2024-06-20 09:30
  • 更新:2024-06-20 10:02
  • 阅读:72

JSX语法的格式化能否提供下支持的方案

分类:HBuilderX

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>  
  ),
2024-06-20 09:30 负责人:无 分享
已邀请:
s***@163.com

s***@163.com (作者)

设置jsx 可以了

要回复问题请先登录注册