--- order: 3 title: zh-CN: 全局化配置 en-US: ConfigProvider --- ## zh-CN 自定义全局组件的 Empty 样式。 ## en-US Use ConfigProvider set global Empty style. ```jsx import { ConfigProvider, Switch, Divider, Icon, TreeSelect, Select, Cascader, Transfer, Table, List, } from 'antd'; const customizeRenderEmpty = () => (

Data Not Found

); const style = { width: 200 }; class Demo extends React.Component { state = { customize: false, }; render() { const { customize } = this.state; return (
{ this.setState({ customize: val }); }} />

Select