Commit 8bb04158 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

externals bizcharts dataset and rollbar

parent 533c091b
...@@ -20,6 +20,11 @@ export default { ...@@ -20,6 +20,11 @@ export default {
alias: { alias: {
components: path.resolve(__dirname, 'src/components/'), components: path.resolve(__dirname, 'src/components/'),
}, },
externals: {
'@antv/data-set': 'DataSet',
bizcharts: 'BizCharts',
rollbar: 'rollbar',
},
ignoreMomentLocale: true, ignoreMomentLocale: true,
theme: './src/theme.js', theme: './src/theme.js',
html: { html: {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"build": "cross-env ESLINT=none roadhog build", "build": "cross-env ESLINT=none roadhog build",
"build-site": "roadhog-api-doc static", "build-site": "roadhog-api-doc static",
"site": "roadhog-api-doc static && gh-pages -d dist", "site": "roadhog-api-doc static && gh-pages -d dist",
"analyze": "cross-env ANALYZE=true roadhog build", "analyze": "cross-env ANALYZE=1 roadhog build",
"lint:style": "stylelint \"src/**/*.less\" --syntax less", "lint:style": "stylelint \"src/**/*.less\" --syntax less",
"lint": "eslint --ext .js src mock tests && npm run lint:style", "lint": "eslint --ext .js src mock tests && npm run lint:style",
"lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style", "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"dependencies": { "dependencies": {
"@antv/data-set": "^0.8.0", "@antv/data-set": "^0.8.0",
"antd": "^3.6.2", "antd": "^3.6.2",
"bizcharts": "^3.1.8", "bizcharts": "^3.1.10",
"bizcharts-plugin-slider": "^2.0.3", "bizcharts-plugin-slider": "^2.0.3",
"classnames": "^2.2.6", "classnames": "^2.2.6",
"dva": "^2.3.1", "dva": "^2.3.1",
......
...@@ -44,9 +44,10 @@ export default class PromiseRender extends React.PureComponent { ...@@ -44,9 +44,10 @@ export default class PromiseRender extends React.PureComponent {
}; };
render() { render() {
const { component } = this.state; const { component: Component } = this.state;
return component ? ( const { ok, error, promise, ...rest } = this.props;
<component {...this.props} /> return Component ? (
<Component {...rest} />
) : ( ) : (
<div <div
style={{ style={{
......
...@@ -7,10 +7,16 @@ ...@@ -7,10 +7,16 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ant Design Pro</title> <title>Ant Design Pro</title>
<link rel="icon" href="/favicon.png" type="image/x-icon"> <link rel="icon" href="/favicon.png" type="image/x-icon">
<script src="https://gw.alipayobjects.com/os/rmsportal/nGVBgVyXzzmbAqevIAPy.js">
</script>
<script src=" https://gw.alipayobjects.com/os/rmsportal/TKSqiyoUxzrHoMwjViwA.js "></script>
<script src="https://gw.alipayobjects.com/os/antv/assets/data-set/0.8.7/data-set.min.js"></script>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment