Material-Table: styling is overiding all custom and Material UI styling and icons not rendering

前端 未结 2 576
日久生厌
日久生厌 2021-01-12 23:33

I\'m trying to use Material-Table component - it\'s perfect for a table that I\'m buildling (add, edit, delete and search rows). I\'ve installed and used it as a child compo

2条回答
  •  温柔的废话
    2021-01-12 23:48

    In my situation, I'm using @material-ui/core@4.0.0-beta, and material-table is using 4.2.1.

    You can get the log after installed material-table

    info Direct dependencies
    ├─ @material-ui/core@4.2.1
    └─ material-table@1.40.1
    info All dependencies
    ├─ @babel/runtime-corejs2@7.5.5
    ├─ @date-io/date-fns@1.3.8
    ├─ @material-ui/core@4.2.1
    ├─ @material-ui/styles@4.2.1
    ├─ @material-ui/system@4.3.1
    ├─ convert-css-length@2.0.1
    ├─ css-box-model@1.1.3
    ├─ date-fns@2.0.0-beta.2
    ├─ debounce@1.2.0
    ├─ filefy@0.1.9
    ├─ material-table@1.40.1
    ├─ normalize-scroll-left@0.2.0
    ├─ raf-schd@4.0.2
    ├─ react-beautiful-dnd@11.0.3
    ├─ react-double-scrollbar@0.0.15
    └─ use-memo-one@1.1.1
    

    so I upgrade material ui to @material-ui/core@4.2.1 by yarn add @material-ui/core@4.2.1. and then it works.

提交回复
热议问题