增加使用插件配置,在 config/config.ts 或者 .umirc.ts 文件中编写配置import { defineConfig } from "umi"; export default defineConfig({ plugins: [require.resolve("umi-plugin-antd-style")], // 配置开启 antdStyle: { } as ['antd-style'].ThemeProviderProps });...
由于pro-layout 支持在 config 中icon:string的配置,但是在 4.0 中不推荐这样的用法。这个插件可以将其转化,不再引入全量的 icon。 Install #or yarn$ npm install $ npm run build --watch $ npm run start Usage Configure in.umirc.js, exportdefault{plugins:[['umi-plugin-antd-icon-config',{}]],}...
umi-plugin-antd-icon-config Convert icon string to antd@4 由于pro-layout 支持在 config 中icon:string的配置,但是在 4.0 中不推荐这样的用法。这个插件可以将其转化,不再引入全量的 icon。 Install #or yarn$ npm install $ npm run build --watch $ npm run start ...
另外排除插件umi-plugin-antd-icon-config的配置问题,因为使用默认菜单时图标显示正常: 使用默认菜单时ProLayout中的menuDataRender参数输出如下(其中icon字段为ReactElement):Copy link Contributor chenshuai2144 commented Feb 6, 2020 是没有支持的,建议你自己实现,在本地提供一个枚举,用于映射 { string: iconDom...
Install Using npm: $ npm install --save-dev @umijs/plugin-antd or using yarn:
使用umi-plugin-keep-alive实现KeepAlive状态存储,并且实现 进入下一个页面时缓存,后退页面时不缓存(卸载)类似微信小程序的页面缓存机制 1、安装 2、使用 更详细的可参考 React Activation
使用umi-plugin-keep-alive实现KeepAlive状态存储, 并且实现 进入下一个页面时缓存,后退页面时不缓存(卸载) 类似微信小程序的页面缓存机制 1、安装 $ npm install umi-plugin-keep-alive--save//或者$ yarnaddumi-plugin-keep-alive 2、使用 import{KeepAlive,history}from'umi'constpage=()=>{return(<>这是...
关于antd pro v5 @umijs/plugin-request 的拦截问题 冯阿狼发布于2021-08-132059 次阅读 NetWork 中的 preview 是错误的,而 response 的值却是正确的。 我查了下是因为浏览器会把 long 长度大于 17 位时会转换为 0 我不知道怎么在拦截的时候把 json 数据用 JSONBig 处理一下 不知道写在哪 求大佬给个答案...
umi-plugin-antd-theme Usage Configure inconfig/theme.config.json, {"theme": [ {"theme":"dark","fileName":"dark.css"}, {"fileName":"mingQing.css","modifyVars": {"@primary-color":"#13C2C2"} } ],// 是否压缩css"min":true,// css module"isModule":true,// 忽略 antd 的依赖"...
umi-plugin-antd-react-native已经为 @ant-design/react-native 做了以下支持:添加按需加载(babel-plugin-import)配置; 使用Provider作为应用根节点; 在expo 中链接字体图标。开发者直接引入想用组件即可。自定义主题/皮肤目前已经支持:使用 umi theme 配置覆盖@ant-design/react-native 的主题:...