echarts-for-react 3.0.7 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/esm/core.d.ts +2 -2
- package/esm/core.js.map +1 -1
- package/esm/types.d.ts +10 -3
- package/esm/types.js.map +1 -1
- package/lib/core.d.ts +2 -2
- package/lib/core.js.map +1 -1
- package/lib/types.d.ts +10 -3
- package/lib/types.js.map +1 -1
- package/package.json +25 -5
- package/src/core.tsx +1 -1
- package/src/types.ts +10 -3
- package/src/.umi/core/devScripts.ts +0 -53
- package/src/.umi/core/history.ts +0 -21
- package/src/.umi/core/plugin.ts +0 -8
- package/src/.umi/core/pluginConfig.d.ts +0 -300
- package/src/.umi/core/pluginRegister.ts +0 -5
- package/src/.umi/core/polyfill.ts +0 -4
- package/src/.umi/core/routes.ts +0 -389
- package/src/.umi/core/umiExports.ts +0 -3
- package/src/.umi/dumi/apis.json +0 -1
- package/src/.umi/dumi/config.json +0 -129
- package/src/.umi/dumi/demos/index.ts +0 -5469
- package/src/.umi/dumi/layout.tsx +0 -8
- package/src/.umi/umi.ts +0 -58
- package/src/.umi-production/core/history.ts +0 -21
- package/src/.umi-production/core/plugin.ts +0 -8
- package/src/.umi-production/core/pluginConfig.d.ts +0 -300
- package/src/.umi-production/core/pluginRegister.ts +0 -5
- package/src/.umi-production/core/polyfill.ts +0 -4
- package/src/.umi-production/core/routes.ts +0 -389
- package/src/.umi-production/core/umiExports.ts +0 -3
- package/src/.umi-production/dumi/apis.json +0 -1
- package/src/.umi-production/dumi/config.json +0 -129
- package/src/.umi-production/dumi/demos/index.ts +0 -5469
- package/src/.umi-production/dumi/layout.tsx +0 -8
- package/src/.umi-production/umi.ts +0 -58
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import config from '@@/dumi/config';
|
|
4
|
-
import demos from '@@/dumi/demos';
|
|
5
|
-
import apis from '@@/dumi/apis';
|
|
6
|
-
import Layout from '/Users/xiaowei/Documents/code/antv/echarts-for-react/node_modules/_@umijs_preset-dumi@1.1.54@@umijs/preset-dumi/lib/theme/layout';
|
|
7
|
-
|
|
8
|
-
export default (props) => <Layout {...props} config={config} demos={demos} apis={apis} />;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import './core/polyfill';
|
|
3
|
-
|
|
4
|
-
import { plugin } from './core/plugin';
|
|
5
|
-
import './core/pluginRegister';
|
|
6
|
-
import { createHistory } from './core/history';
|
|
7
|
-
import { ApplyPluginsType } from '/Users/xiaowei/Documents/code/antv/echarts-for-react/node_modules/_@umijs_runtime@3.5.43@@umijs/runtime';
|
|
8
|
-
import { renderClient } from '/Users/xiaowei/Documents/code/antv/echarts-for-react/node_modules/_@umijs_renderer-react@3.5.43@@umijs/renderer-react/dist/index.js';
|
|
9
|
-
import { getRoutes } from './core/routes';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const getClientRender = (args: { hot?: boolean; routes?: any[] } = {}) => plugin.applyPlugins({
|
|
15
|
-
key: 'render',
|
|
16
|
-
type: ApplyPluginsType.compose,
|
|
17
|
-
initialValue: () => {
|
|
18
|
-
const opts = plugin.applyPlugins({
|
|
19
|
-
key: 'modifyClientRenderOpts',
|
|
20
|
-
type: ApplyPluginsType.modify,
|
|
21
|
-
initialValue: {
|
|
22
|
-
routes: args.routes || getRoutes(),
|
|
23
|
-
plugin,
|
|
24
|
-
history: createHistory(args.hot),
|
|
25
|
-
isServer: process.env.__IS_SERVER,
|
|
26
|
-
rootElement: 'root',
|
|
27
|
-
defaultTitle: ``,
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
return renderClient(opts);
|
|
31
|
-
},
|
|
32
|
-
args,
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
const clientRender = getClientRender();
|
|
36
|
-
export default clientRender();
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
window.g_umi = {
|
|
40
|
-
version: '3.5.43',
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
// hot module replacement
|
|
45
|
-
// @ts-ignore
|
|
46
|
-
if (module.hot) {
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
module.hot.accept('./core/routes', () => {
|
|
49
|
-
const ret = require('./core/routes');
|
|
50
|
-
if (ret.then) {
|
|
51
|
-
ret.then(({ getRoutes }) => {
|
|
52
|
-
getClientRender({ hot: true, routes: getRoutes() })();
|
|
53
|
-
});
|
|
54
|
-
} else {
|
|
55
|
-
getClientRender({ hot: true, routes: ret.getRoutes() })();
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|