mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-10-29 07:56:12 +08:00
fix: provided theme changing won't trigger effect
This commit is contained in:
@ -94,7 +94,6 @@ export default defineComponent({
|
|||||||
|
|
||||||
const { autoresize, manualUpdate, loading } = toRefs(props);
|
const { autoresize, manualUpdate, loading } = toRefs(props);
|
||||||
|
|
||||||
const theme = toRef(props, "theme");
|
|
||||||
const initOptions = toRef(props, "initOptions");
|
const initOptions = toRef(props, "initOptions");
|
||||||
const loadingOptions = toRef(props, "loadingOptions");
|
const loadingOptions = toRef(props, "loadingOptions");
|
||||||
|
|
||||||
@ -218,7 +217,7 @@ export default defineComponent({
|
|||||||
);
|
);
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
[theme, initOptions],
|
[realTheme, initOptions],
|
||||||
() => {
|
() => {
|
||||||
cleanup();
|
cleanup();
|
||||||
init();
|
init();
|
||||||
|
|||||||
Reference in New Issue
Block a user