From ca45dd03f2b8635b7897fea50990bff547d91a81 Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Mon, 23 Oct 2017 17:38:26 +0800 Subject: [PATCH] update tag clound --- .roadhogrc | 4 ++++ .roadhogrc.mock.js | 2 +- package.json | 2 -- public/index.html | 3 +++ src/components/Charts/TagCloud/index.js | 29 ++++++++++++++++------- src/components/Charts/TagCloud/index.less | 6 +++++ src/components/NoticeIcon/demo/popover.md | 6 ++--- src/routes/Dashboard/Monitor.js | 9 ++++--- 8 files changed, 43 insertions(+), 18 deletions(-) create mode 100644 src/components/Charts/TagCloud/index.less diff --git a/.roadhogrc b/.roadhogrc index 21d69816..61c0ea7a 100755 --- a/.roadhogrc +++ b/.roadhogrc @@ -17,5 +17,9 @@ ] } }, + "externals": { + "g2": "G2", + "g-cloud": "Cloud" + }, "theme": "./src/theme.js" } diff --git a/.roadhogrc.mock.js b/.roadhogrc.mock.js index 3fabce2e..ff2e18b0 100644 --- a/.roadhogrc.mock.js +++ b/.roadhogrc.mock.js @@ -62,7 +62,7 @@ const proxy = { res.send('Ok'); }, 'GET /api/tags': mockjs.mock({ - 'list|100': [{ name: '@city', 'value|1-100': 50, 'type|0-2': 1 }] + 'list|100': [{ name: '@city', 'value|1-100': 150, 'type|0-2': 1 }] }), 'GET /api/fake_list': getFakeList, 'GET /api/fake_chart_data': getFakeChartData, diff --git a/package.json b/package.json index 502c2435..9a5c25f5 100755 --- a/package.json +++ b/package.json @@ -16,8 +16,6 @@ "dependencies": { "antd": "next", "dva": "^1.2.1", - "g-cloud": "^1.0.2-beta", - "g2": "^2.3.8", "g2-plugin-slider": "^1.2.1", "lodash": "^4.17.4", "numeral": "^2.0.6", diff --git a/public/index.html b/public/index.html index 60ed560f..8398ca1a 100755 --- a/public/index.html +++ b/public/index.html @@ -4,10 +4,13 @@