-
### columns添加了width无效,本想横向滚动的
```ts
// 列配置
let columns: ProColumns[] = [
{
title: "序号",
dataIndex: "id",
width: 5 * 10,
hideInSearch: true,
valueType: "ind…
-
# workerDemo
问题复现步骤:
yarn create umi
yarn add worker-loader --dev
yarn
yarn start
修改.umirc.js,加入以下配置:
chainWebpack: function (config) {
config.output.globalObject('this');
co…
kztao updated
4 years ago
-
# [RFC] Umi 3 SSR & Prerender
## 背景
在 Umi 2 版本时,中途支持了 SSR 功能 [#2543](https://github.com/umijs/umi/pull/2543),有一些修改比较 hack,维护上有一定困难。与此同时,由于服务端[ umi-server ](https://github.com/umijs/umi-s…
-
In order to keep the code style in a good shape and format the code automatically, it's recommend to use `ESLint` and `Prettier` in our project.
-
2.4.1升2.6.0有什么注意事项么
目前我们项目umi版本是2.10.6,dva版本是2.4.1
2.4.1没有dva-immer,也没有一些自定义hooks,我们想升级到2.6,有什么注意事项么
-
在antd pro4中使用keepalive,打开一个tab页的时候正常,打开多个tab页的时候报以下错误信息:
使用方式:
1. yarn add umi-plugin-keep-alive
2. 修改BasicLayout文件的主体区域,调整为tabs组件,在tabs组件中使用
3. 我直接返回keepAlive也会报错。
import React, { useState, useE…
-
**你可以将 umi hooks 使用在任何地方,和任意组件库搭配使用**
但是hook只能用在react函数中啊,普通的不可以啊。
所以useRequest是否有同样的限制啊
-
### 🐛 bug 描述
I'm trying to run unit tests but got this error:
`TypeError: (0 , _umi.formatMessage) is not a function`
### 📷 复现步骤
Starting from ant design pro v4 with typescript and complete …
-
🐛 bug 描述
问题一
选择左侧菜单某个一级栏目,刷新页面, 然后再去点击二级栏目,会出现二级栏目所在的一级栏目出现先收缩,在展开,在选中。
备注: 后续不刷新页面情况下操作,问题将不会出现
问题二
选择左侧菜单某个一级栏目,刷新页面,然后选择隐藏左侧菜单(只展示菜单的 icon), 点击其他菜单, 左侧菜单会重新展开
备注: 后续不刷新页面情况下操作,问题将不会出现
…
-
### 🐛 bug 描述
3天前打包发布正式线,没问题,从昨天开始,打包成功,但是无法打开页面,回退到3天前版本也无效,会不会是依赖更新了
### 📷 复现步骤
{
"name": "ant-design-pro",
"version": "1.0.0",
"private": true,
"description": "An out-of-box UI so…