nuxt-hs-ui 2.10.0 → 2.10.2
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
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// [ tailwind ]
|
|
10
10
|
import { twMerge } from "tailwind-merge";
|
|
11
11
|
// [ NUXT ]
|
|
12
|
-
import { reactive, ref, watch, computed, useId } from "#imports";
|
|
12
|
+
import { reactive, ref, watch, computed, useId, nextTick } from "#imports";
|
|
13
13
|
// [ utils ]
|
|
14
14
|
import { type ClassType, ClassTypeToString } from "../../utils/class-style";
|
|
15
15
|
import type { SelectItem } from "../../utils/select-item";
|
|
@@ -247,6 +247,12 @@ watch(
|
|
|
247
247
|
checkData(id);
|
|
248
248
|
}
|
|
249
249
|
);
|
|
250
|
+
watch(displayList, () => {
|
|
251
|
+
// console.log("change list");
|
|
252
|
+
nextTick(() => {
|
|
253
|
+
checkData(props.data);
|
|
254
|
+
});
|
|
255
|
+
});
|
|
250
256
|
// ----------------------------------------------------------------------------
|
|
251
257
|
|
|
252
258
|
// [ focus, blur ]
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
// [ tailwind ]
|
|
10
10
|
// [ NUXT ]
|
|
11
|
-
import { reactive, ref, watch, computed, useId } from "#imports";
|
|
11
|
+
import { reactive, ref, watch, computed, useId, nextTick } from "#imports";
|
|
12
12
|
// [ utils ]
|
|
13
13
|
import type { ClassType } from "../../utils/class-style";
|
|
14
14
|
import type { SelectItem } from "../../utils/select-item";
|
|
@@ -213,6 +213,7 @@ const displayList = computed(() => {
|
|
|
213
213
|
// ----------------------------------------------------------------------------
|
|
214
214
|
|
|
215
215
|
const checkData = (id: IdType | null) => {
|
|
216
|
+
// console.log("checkData");
|
|
216
217
|
const ret = displayList.value.find((row) => row.id === id);
|
|
217
218
|
if (ret === undefined) {
|
|
218
219
|
// 選択肢に存在しないコード引当
|
|
@@ -231,6 +232,12 @@ watch(
|
|
|
231
232
|
checkData(id);
|
|
232
233
|
}
|
|
233
234
|
);
|
|
235
|
+
watch(displayList, () => {
|
|
236
|
+
// console.log("change list");
|
|
237
|
+
nextTick(() => {
|
|
238
|
+
checkData(props.data);
|
|
239
|
+
});
|
|
240
|
+
});
|
|
234
241
|
// ----------------------------------------------------------------------------
|
|
235
242
|
|
|
236
243
|
// [ focus, blur ]
|