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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.15.0"
6
6
  },
7
- "version": "2.10.0",
7
+ "version": "2.10.2",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -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 ]
@@ -146,7 +146,6 @@ export const Option = (option) => {
146
146
  }
147
147
  },
148
148
  layout: "fitColumns",
149
- maxHeight: "600px",
150
149
  virtualDomBuffer: 200,
151
150
  downloadConfig: {
152
151
  columnHeaders: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-hs-ui",
3
- "version": "2.10.0",
3
+ "version": "2.10.2",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "https://github.com/hare-systems-ryo/nuxt-hs-ui",
6
6
  "license": "MIT",