前端项目初始化,引入了图表库

pull/868/head^2^2
Lixiaoyan 2026-03-21 13:16:47 +08:00
parent f29a384904
commit b3251b3485
4 changed files with 380 additions and 290 deletions

638
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -46,7 +46,7 @@
"dayjs": "^1.11.10",
"diagram-js": "^12.8.0",
"driver.js": "^1.3.1",
"echarts": "^5.5.0",
"echarts": "^5.6.0",
"echarts-wordcloud": "^2.1.0",
"element-plus": "2.11.1",
"fast-xml-parser": "^4.3.2",

View File

@ -72,11 +72,11 @@ importers:
specifier: ^1.3.1
version: 1.3.1
echarts:
specifier: ^5.5.0
version: 5.5.1
specifier: ^5.6.0
version: 5.6.0
echarts-wordcloud:
specifier: ^2.1.0
version: 2.1.0(echarts@5.5.1)
version: 2.1.0(echarts@5.6.0)
element-plus:
specifier: 2.11.1
version: 2.11.1(vue@3.5.12(typescript@5.3.3))
@ -3040,8 +3040,8 @@ packages:
peerDependencies:
echarts: ^5.0.1
echarts@5.5.1:
resolution: {integrity: sha512-Fce8upazaAXUVUVsjgV6mBnGuqgO+JNDlcgF79Dksy4+wgGpQB2lmYoO4TSweFg/mZITdpGHomw/cNBJZj1icA==}
echarts@5.6.0:
resolution: {integrity: sha512-oTbVTsXfKuEhxftHqL5xprgLoc0k7uScAwtryCgWF6hPYFLRwOUHiFmHGCBKP5NPFNkDVopOieyUqYGH8Fa3kA==}
ejs@3.1.10:
resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==}
@ -5174,8 +5174,8 @@ packages:
zeebe-bpmn-moddle@1.7.0:
resolution: {integrity: sha512-eZ6OXSt0c4n9V/oN/46gTlwDIS3GhWQLt9jbM5uS/YryB4yN8wdrrKrtw+TpyNy0SSKWXNDHyC83nCA2blPO3Q==}
zrender@5.6.0:
resolution: {integrity: sha512-uzgraf4njmmHAbEUxMJ8Oxg+P3fT04O+9p7gY+wJRVxo8Ge+KmYv0WJev945EH4wFuc4OY2NLXz46FZrWS9xJg==}
zrender@5.6.1:
resolution: {integrity: sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag==}
snapshots:
@ -8333,14 +8333,14 @@ snapshots:
eastasianwidth@0.2.0: {}
echarts-wordcloud@2.1.0(echarts@5.5.1):
echarts-wordcloud@2.1.0(echarts@5.6.0):
dependencies:
echarts: 5.5.1
echarts: 5.6.0
echarts@5.5.1:
echarts@5.6.0:
dependencies:
tslib: 2.3.0
zrender: 5.6.0
zrender: 5.6.1
ejs@3.1.10:
dependencies:
@ -10571,6 +10571,6 @@ snapshots:
zeebe-bpmn-moddle@1.7.0: {}
zrender@5.6.0:
zrender@5.6.1:
dependencies:
tslib: 2.3.0

View File

@ -1,6 +1,6 @@
// 引入unocss css
import '@/plugins/unocss'
/*import 'uno.css'*/
// 导入全局的svg图标
import '@/plugins/svgIcon'
@ -47,10 +47,14 @@ import { setupWangEditorPlugin } from '@/views/bpm/model/form/PrintTemplate'
import print from 'vue3-print-nb' // 打印插件
import * as echarts from 'echarts'
// 创建实例
const setupAll = async () => {
const app = createApp(App)
app.config.globalProperties.$echarts = echarts
await setupI18n(app)
setupStore(app)