feat:完善功能
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user