nuxt-hs-ui 2.9.5 → 2.9.7
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
|
@@ -26,6 +26,7 @@ import Btn from "../form/btn.vue";
|
|
|
26
26
|
const hsFocus = useHsFocus();
|
|
27
27
|
const multiLang = useHsMultiLang();
|
|
28
28
|
const tx = multiLang.tx;
|
|
29
|
+
const gt = multiLang.gt;
|
|
29
30
|
|
|
30
31
|
// ----------------------------------------------------------------------------
|
|
31
32
|
// [ Props ]
|
|
@@ -180,10 +181,10 @@ const unKnownData = computed(() => {
|
|
|
180
181
|
if (props.data === null) return null;
|
|
181
182
|
return {
|
|
182
183
|
id: props.data,
|
|
183
|
-
text: {
|
|
184
|
+
text: gt({
|
|
184
185
|
ja: `無効な値が選択されています (ID=${props.data})`,
|
|
185
186
|
en: `Invalid value selected (ID=${props.data})`,
|
|
186
|
-
},
|
|
187
|
+
}),
|
|
187
188
|
};
|
|
188
189
|
});
|
|
189
190
|
|
|
@@ -197,7 +198,9 @@ const includeHidden = computed(() => {
|
|
|
197
198
|
/** 選択肢 */
|
|
198
199
|
const displayList = computed(() => {
|
|
199
200
|
return useDisplayList<IdType>({
|
|
200
|
-
list: props.list
|
|
201
|
+
list: props.list.map((row) => {
|
|
202
|
+
return { ...row, text: gt(row.text) };
|
|
203
|
+
}),
|
|
201
204
|
id: props.data,
|
|
202
205
|
order: props.order,
|
|
203
206
|
unKnownData: unKnownData.value,
|
|
@@ -347,7 +350,7 @@ const selectClose = () => {
|
|
|
347
350
|
:class-img="props.classImg"
|
|
348
351
|
:class-img-tag="props.classImgTag"
|
|
349
352
|
/>
|
|
350
|
-
<div class="flex-1 truncate min-w-0">{{
|
|
353
|
+
<div class="flex-1 truncate min-w-0">{{ text }}</div>
|
|
351
354
|
<div v-if="deleted" class="text-error text-[0.7em] leading-[1em]">
|
|
352
355
|
{{ tx({ ja: "削除済", en: "Deleted" }) }}
|
|
353
356
|
</div>
|
|
@@ -378,7 +381,7 @@ const selectClose = () => {
|
|
|
378
381
|
:class-img="props.classImg"
|
|
379
382
|
:class-img-tag="props.classImgTag"
|
|
380
383
|
/>
|
|
381
|
-
<div class="flex-1 truncate">{{
|
|
384
|
+
<div class="flex-1 truncate">{{ text }}</div>
|
|
382
385
|
<div v-if="deleted" class="text-error text-[0.7em] leading-[1em]">
|
|
383
386
|
{{ tx({ ja: "削除済", en: "Deleted" }) }}
|
|
384
387
|
</div>
|