umi-plugin-dva#85 New issue Closed sorrycc Features Roadmap 0.1.0 内置dva 配alias"dva": "dva-no-router" 内置dva-loading 自动载 model,包括 global model 和 page model 0.2.0 按需加载 model dva-hmr 0.3.0 实现之前dva g的功能,比如dva g model user ...
在.umirc.ts进行开启 dva: {immer: true,} 在其他组件进行使用 import React from 'react';import { IndexModelState, ConnectRC, Loading, connect } from 'umi';interface PageProps {index: IndexModelState;loading: boolean;}const IndexPage: ConnectRC<PageProps> = ({ index, dispatch }) => {const...
umi-plugin-dva-enhance当前2.0 版本 需要 umi 3.0 以上 搭配dva-model-enhance 使用, 自动 实例化 class model 和收集 State。 通过 解析成 AST 获取 准确的 namespace 添加插件后,在运行后的 ./src/.umi/plugin-dva-enhance 文件夹中会多生成 actions.ts 和 StoreState.ts 文件,它们会随着 全局 和 pages...
Using npm: $ npm install --save-dev @umijs/plugin-dva or using yarn:
升级dva、umi、umi-plugin-dva到最新版 "dependencies": { - "dva": "^2.1.0", + "dva": "^2.2.3", - "umi": "^1.0.0-0", - "umi-plugin-dva": "^0.7.2" + "umi": "^1.3.4", + "umi-plugin-dva": "^0.7.3" } Expected behavior: (预期的正常效果) ...
fix(umi-plugin-dva): problems with ts 089aae7 sorrycc added the type(bug) label Mar 13, 2018 sorrycc merged commit 1ed5fc4 into master Mar 13, 2018 sorrycc deleted the fix/dva-plugin-with-ts branch March 13, 2018 00:44 xierenyuan pushed a commit to xierenyuan/umi that referen...
🧐 问题描述 umijs plugin-dva和plugin-model有什么区别,怎么定义符合plugin-model规范的model 4月底使用yarn create umi生成的项目中: 并没有安装plugin-dva, 但是安装了plugin-model, 没有生成model文件夹, 文档上说model文件夹里的model文件,可以自动加载(没试过)
packages/umi-plugin-dva/src/index.js 1 0.0% Totals Change from base Build 107: -0.02% Covered Lines: 76 Relevant Lines: 1694 💛 - Coveralls sorrycc merged commit 342bad4 into master Mar 29, 2018 sorrycc deleted the feat/extend-dva-via-configDva branch March 29, 2018 09:32 sorrycc...
sorrycc deleted the fix/umi-plugin-dva-winPath branch May 15, 2018 08:27 sorrycc pushed a commit that referenced this pull request Jun 23, 2022 feat: fix config set (#466) … e79dfec xierenyuan pushed a commit to xierenyuan/umi that referenced this pull request Jun 23, 2022 fea...
sorrycc deleted the fix/umi-plugin-dva-endless-loop branch March 15, 2018 04:08 xierenyuan pushed a commit to xierenyuan/umi that referenced this pull request Jun 23, 2022 feat: bunder-esbuild support svg (umijs#217) … Verified 0bc6963 Sign up for free to join this conversation...