feat:完善功能

This commit is contained in:
zjc
2025-01-20 16:22:44 +08:00
parent 65244492b4
commit f27f34bcfb
15 changed files with 160 additions and 334 deletions

View File

@@ -9,8 +9,8 @@ export function useEchart() {
const dom = document.getElementById(id.value)
chart = echarts.init(dom)
}
const setOption = (params) => {
chart.setOption(params)
const setOption = (params, update = false) => {
chart.setOption(params, update)
}
const dispose = () => {
chart.dispose()