代码之家  ›  专栏  ›  技术社区  ›  KitKarson

语义用户界面反应表单元格

  •  6
  • KitKarson  · 技术社区  · 8 年前

    如何合并几个单元格 semantic-ui-react 就像我们通常在html表中使用colspan一样?

    https://react.semantic-ui.com/collections/table#types-pagination

    我尝试了不同的选择-似乎没有任何帮助!!

    enter image description here

    1 回复  |  直到 8 年前
        1
  •  12
  •   euvs    8 年前

    的价值 colSpan 属性必须在引号(“3”)或大括号({3})中。否则它将是一个不正确的react jsx语法。

    <Table.Cell colSpan="3">

    <Table.Cell colSpan={3}>