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

在表格中,将排序图标放置在彼此下方的正确(React/MaterialUI)方法

  •  0
  • Jim  · 技术社区  · 7 年前

    我在一个应用程序中使用以下代码 tsx 组成部分。我还不熟悉这本书 correct layout options .
    我有一个 working sandbox .

    import React from "react";
    import { ArrowDropUp, ArrowDropDown } from "@material-ui/icons";
    import { withStyles } from "@material-ui/core/styles";
    
    function SvgMaterialIcons(props) {
      const { classes } = props;
      return (
        <table>
          <thead>
            <tr>
              <td>
                TITLE <ArrowDropUp /> <ArrowDropDown />
              </td>
            </tr>
            <tr>
              <td>
                <input type="text" />
              </td>
            </tr>
          </thead>
        </table>
      );
    }
    

    1 回复  |  直到 7 年前
        1
  •  0
  •   Femi Oni    7 年前

    Sort icon . 这可能会对你有用,并节省你的时间。