aloha-vue 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
h,
|
|
3
|
+
toRef,
|
|
4
|
+
watch,
|
|
3
5
|
} from "vue";
|
|
4
6
|
|
|
5
7
|
import AFilterCenter from "../AFilterCenter/AFilterCenter";
|
|
@@ -64,6 +66,8 @@ export default {
|
|
|
64
66
|
"update:unappliedModel",
|
|
65
67
|
],
|
|
66
68
|
setup(props, context) {
|
|
69
|
+
const filtersSaved = toRef(props, "filtersSaved");
|
|
70
|
+
|
|
67
71
|
const {
|
|
68
72
|
filtersDataKeyById,
|
|
69
73
|
filtersGroup,
|
|
@@ -106,6 +110,12 @@ export default {
|
|
|
106
110
|
updateFiltersSavedLocal,
|
|
107
111
|
} = SaveAPI(props);
|
|
108
112
|
|
|
113
|
+
watch(filtersSaved, () => {
|
|
114
|
+
initFiltersSaved();
|
|
115
|
+
}, {
|
|
116
|
+
deep: true,
|
|
117
|
+
});
|
|
118
|
+
|
|
109
119
|
setFiltersVisibleIds();
|
|
110
120
|
initFiltersSaved();
|
|
111
121
|
|