我想刪除過濾器圖標,只有空白輸入框。我曾嘗試使用列道具filterCellStyle但無法訪問該圖標,因為它是內聯樣式。import React, { Children } from "react";import ReactDOM from "react-dom";import MaterialTable from 'material-table';class Example extends React.Component { render() { return ( <MaterialTable title="Non Filtering Field Preview" columns={[ { title: 'Name', field: 'name', filterCellStyle: { background: "red" }}, { title: 'Surname', field: 'surname' }, { title: 'Birth Year', field: 'birthYear', type: 'numeric' }, { title: 'Birth Place', field: 'birthCity', lookup: { 34: '?stanbul', 63: '?anl?urfa' }, }, ]} data={[ { name: 'Mehmet', surname: 'Baran', birthYear: 1987, birthCity: 63 }, { name: 'Zerya Betül', surname: 'Baran', birthYear: 2017, birthCity: 34 }, ]} options={{ filtering: true }} /> ) }}const rootElement = document.getElementById("root");ReactDOM.render(<Example />, rootElement);
使用材料表庫時如何更改刪除過濾器圖標?
喵喔喔
2021-08-20 18:30:24