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 @@ - {{$t('layout.myWorkbench')}} + {{ $t('layout.myWorkbench') }} @@ -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 @@ - {{$t('layout.onlineUsers')}} - {{$t('btn.more')}} + {{ $t('layout.onlineUsers') }} + {{ $t('btn.more') }} @@ -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(() => {