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

Data Not Found

); const style = { width: 200 }; const App: React.FC = () => { const [customize, setCustomize] = useState(false); return (
{ setCustomize(val); }} />

Select