fix: provided theme changing won't trigger effect

This commit is contained in:
YunfeiHe
2021-05-01 00:49:29 +08:00
committed by GU Yiling
parent 6e25406cb9
commit 87d9f843ac

View File

@ -94,7 +94,6 @@ export default defineComponent({
const { autoresize, manualUpdate, loading } = toRefs(props);
const theme = toRef(props, "theme");
const initOptions = toRef(props, "initOptions");
const loadingOptions = toRef(props, "loadingOptions");
@ -218,7 +217,7 @@ export default defineComponent({
);
watch(
[theme, initOptions],
[realTheme, initOptions],
() => {
cleanup();
init();