You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
837816638@qq.com b02b851162
工商大学管理系统代码
5 years ago
..
lib 工商大学管理系统代码 5 years ago
src 工商大学管理系统代码 5 years ago
LICENSE 工商大学管理系统代码 5 years ago
README.md 工商大学管理系统代码 5 years ago
package.json 工商大学管理系统代码 5 years ago

README.md

umi-plugin-pro-block

NPM version NPM downloads

A plugin for deliver umi block files like ant design pro structure.

When you use umi block demo to download a block, if you did not use this plugin, you will get:

- src
  - mock
  - pages
+   - demo
+     - index.js
+     - _mock.js
+     - service.js

And if you use it, you will get:

- src
  - mock
+   - demo.js
  - service.js
+   - demo.js
  - pages
+   - demo
+     - index.js

Ant will replace umi-request to util(s)/request.js if it exist.

Usage

Configure in .umirc.js,

export default {
  plugins: [
    ['umi-plugin-pro-block', {}],
  ],
}

Options

{
  moveMock: false, // whether move _mock.js to mock, default to true
  moveService: false, // whether move service.js to src/services/, default to true
  modifyRequest: false, // whether modify umi-request to util(s)/request (if it exist), default to true
  autoAddMenu: false, // whether add name and icon config to route config when download a pro, default to true
}

LICENSE

MIT