nuxt-hs-ui 2.1.14 → 2.1.16
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/dist/module.json
CHANGED
|
@@ -152,6 +152,7 @@ const displayData = ref<DisplaySelectItem | null>(null);
|
|
|
152
152
|
watch(displayData, (v) => {
|
|
153
153
|
const before = props.data;
|
|
154
154
|
if (v === null) {
|
|
155
|
+
if (before === null) return;
|
|
155
156
|
emit("update:data", null);
|
|
156
157
|
emit("value-change", null, before);
|
|
157
158
|
return;
|
|
@@ -160,6 +161,7 @@ watch(displayData, (v) => {
|
|
|
160
161
|
displayData.value = null;
|
|
161
162
|
return;
|
|
162
163
|
}
|
|
164
|
+
if (v.id === before) return;
|
|
163
165
|
emit("update:data", v.id);
|
|
164
166
|
emit("value-change", v.id, before);
|
|
165
167
|
});
|