Closed consistent-k closed 1 year ago
import { createStyles, ThemeProvider } from 'antd-style'; const useStyles = createStyles(({ stylish, cx, css, token }) => { return { btn: { color: 'red' } }; }); const App = () => { const { styles } = useStyles(); return ( <div className={styles.btn}> 按钮 </div> ); }; export default () => { return ( <ThemeProvider> <App /> </ThemeProvider> ); };
umi4框架 & antd4
不支持 antd 4,请升级到 antd v5 后再尝试使用
@BrettKimmons 给个复现demo
🐛 bug 描述
📷 复现步骤
🏞 期望结果
💻 复现代码
© 版本信息
🚑 其他信息
umi4框架 & antd4