build(projects): update deps and perfect the details [升级依赖,完善细节]

This commit is contained in:
Soybean
2022-12-07 01:11:45 +08:00
parent e3a9c77fd1
commit 61a43b8efd
6 changed files with 1076 additions and 995 deletions

View File

@@ -98,7 +98,7 @@ export function useEcharts(
function update(updateOptions: ECOption) {
if (isRendered()) {
chart?.clear();
chart?.clear();
chart!.setOption({ ...updateOptions, backgroundColor: 'transparent' });
}
}
@@ -144,9 +144,13 @@ export function useEcharts(
}
});
const stopOptionWatch = watch(options, newValue => {
update(newValue);
}, { deep: true });
const stopOptionWatch = watch(
options,
newValue => {
update(newValue);
},
{ deep: true }
);
const stopDarkModeWatch = watch(
() => theme.darkMode,