From c0140b24ba7a52b8cef82f0b4958a061c856b7df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Wed, 25 May 2022 18:39:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8A=A0=E4=BA=91=E8=AF=8D?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/views/dashboard/WordCloud.vue | 96 +++++++++++++++++++++++++++++++ src/views/index_v1.vue | 68 +++++++++++++++++++--- 3 files changed, 158 insertions(+), 7 deletions(-) create mode 100644 src/views/dashboard/WordCloud.vue diff --git a/package.json b/package.json index 445b492..65f09e6 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "clipboard": "^2.0.10", "countup.js": "^2.1.0", "echarts": "5.2.2", + "echarts-wordcloud": "^2.0.0", "element-plus": "^2.2.0", "file-saver": "2.0.5", "fuse.js": "6.4.6", diff --git a/src/views/dashboard/WordCloud.vue b/src/views/dashboard/WordCloud.vue new file mode 100644 index 0000000..07c84c7 --- /dev/null +++ b/src/views/dashboard/WordCloud.vue @@ -0,0 +1,96 @@ + + + diff --git a/src/views/index_v1.vue b/src/views/index_v1.vue index 16ecc14..8a86b87 100644 --- a/src/views/index_v1.vue +++ b/src/views/index_v1.vue @@ -5,7 +5,7 @@
@@ -20,7 +20,7 @@ -
{{$t('common.nickName')}}:
+
{{ $t('common.nickName') }}:
{{ userInfo.nickName }}
@@ -42,7 +42,7 @@
-
{{$t('common.time')}}:
+
{{ $t('common.time') }}:
{{ currentTime }}
@@ -51,7 +51,7 @@
- {{$t('layout.modifyInformation')}} + {{ $t('layout.modifyInformation') }} @@ -64,8 +64,8 @@
@@ -75,7 +75,7 @@
  • -
    {{v.userIP}}
    +
    {{ v.userIP }}
+ + +
+ +
+
+
@@ -121,6 +128,7 @@ import LineChart from './dashboard/LineChart' import RaddarChart from './dashboard/RaddarChart' import PieChart from './dashboard/PieChart' import BarChart from './dashboard/BarChart' +import WordCloudChat from './dashboard/WordCloud.vue' // import { Vue3SeamlessScroll } from 'vue3-seamless-scroll' import dayjs from 'dayjs' @@ -142,6 +150,52 @@ const data = { expectedData: [130, 140, 141, 142, 145, 150, 160], actualData: [120, 82, 91, 154, 162, 140, 130], }, + wordCloud: [ + { + name: 'Vue3', + value: 1446, + }, + { + name: '.net6', + value: 928, + }, + { + name: 'Sqlsugar', + value: 906, + }, + { + name: 'Redis', + value: 825, + }, + { + name: 'Lover Boy', + value: 514, + }, + { + name: '开源免费', + value: 486, + }, + { + name: '音乐', + value: 53, + }, + { + name: '打赏', + value: 163, + }, + { + name: '国际化', + value: 163, + }, + { + name: 'Composition api', + value: 1163, + }, + { + name: 'Quartz.Net', + value: 1, + }, + ], } const { proxy } = getCurrentInstance() const userInfo = computed(() => {