nuxt-hs-ui 2.9.3 → 2.9.5
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
|
@@ -515,13 +515,13 @@ const inputClass = computed(() => {
|
|
|
515
515
|
v-if="row.deleted"
|
|
516
516
|
class="text-error text-[0.7em] leading-[1em]"
|
|
517
517
|
>
|
|
518
|
-
{{ tx({ ja: "
|
|
518
|
+
{{ tx({ ja: "削除済", en: "Deleted" }) }}
|
|
519
519
|
</span>
|
|
520
520
|
<span
|
|
521
521
|
v-if="row.hidden"
|
|
522
522
|
class="text-error text-[0.7em] leading-[1em]"
|
|
523
523
|
>
|
|
524
|
-
{{ tx({ ja: "
|
|
524
|
+
{{ tx({ ja: "非表示", en: "Hidden" }) }}
|
|
525
525
|
</span>
|
|
526
526
|
</div>
|
|
527
527
|
</div>
|
|
@@ -337,10 +337,8 @@ const selectClose = () => {
|
|
|
337
337
|
>
|
|
338
338
|
<!-- -->
|
|
339
339
|
<!-- -->
|
|
340
|
-
<template
|
|
341
|
-
|
|
342
|
-
>
|
|
343
|
-
<div class="flex items-baseline w-full">
|
|
340
|
+
<template #selected-option="{ text, imgUrl, deleted, appendIcon }">
|
|
341
|
+
<div class="flex items-baseline w-full max-w-full min-w-0">
|
|
344
342
|
<SelectImgIcon
|
|
345
343
|
v-if="imgUrl && props.image"
|
|
346
344
|
class="flex-none"
|
|
@@ -349,19 +347,26 @@ const selectClose = () => {
|
|
|
349
347
|
:class-img="props.classImg"
|
|
350
348
|
:class-img-tag="props.classImgTag"
|
|
351
349
|
/>
|
|
352
|
-
<div class="flex-1 truncate">{{ tx(text) }}</div>
|
|
350
|
+
<div class="flex-1 truncate min-w-0">{{ tx(text) }}</div>
|
|
353
351
|
<div v-if="deleted" class="text-error text-[0.7em] leading-[1em]">
|
|
354
|
-
{{ tx({ ja: "
|
|
355
|
-
</div>
|
|
356
|
-
<div v-if="hidden" class="text-error text-[0.7em] leading-[1em]">
|
|
357
|
-
{{ tx({ ja: "※非表示", en: "*Off by Default" }) }}
|
|
352
|
+
{{ tx({ ja: "削除済", en: "Deleted" }) }}
|
|
358
353
|
</div>
|
|
359
|
-
<
|
|
354
|
+
<!-- <div v-if="hidden" class="text-error text-[0.7em] leading-[1em]">
|
|
355
|
+
{{ tx({ ja: "非表示", en: "Hidden" }) }}
|
|
356
|
+
</div> -->
|
|
357
|
+
<div
|
|
358
|
+
v-if="appendIcon && typeof appendIcon === 'string'"
|
|
359
|
+
class="flex-none"
|
|
360
|
+
>
|
|
360
361
|
<i :class="appendIcon"></i>
|
|
361
|
-
</
|
|
362
|
-
|
|
362
|
+
</div>
|
|
363
|
+
|
|
364
|
+
<div
|
|
365
|
+
v-else-if="appendIcon && Array.isArray(appendIcon)"
|
|
366
|
+
class="flex-none"
|
|
367
|
+
>
|
|
363
368
|
<i v-for="(c, i) in appendIcon" :key="i" :class="c"></i>
|
|
364
|
-
</
|
|
369
|
+
</div>
|
|
365
370
|
</div>
|
|
366
371
|
</template>
|
|
367
372
|
<template #option="{ text, imgUrl, deleted, hidden, appendIcon }">
|
|
@@ -375,10 +380,10 @@ const selectClose = () => {
|
|
|
375
380
|
/>
|
|
376
381
|
<div class="flex-1 truncate">{{ tx(text) }}</div>
|
|
377
382
|
<div v-if="deleted" class="text-error text-[0.7em] leading-[1em]">
|
|
378
|
-
|
|
383
|
+
{{ tx({ ja: "削除済", en: "Deleted" }) }}
|
|
379
384
|
</div>
|
|
380
385
|
<div v-if="hidden" class="text-error text-[0.7em] leading-[1em]">
|
|
381
|
-
|
|
386
|
+
{{ tx({ ja: "非表示", en: "Hidden" }) }}
|
|
382
387
|
</div>
|
|
383
388
|
<span v-if="appendIcon && typeof appendIcon === 'string'">
|
|
384
389
|
<i :class="appendIcon"></i>
|
|
@@ -440,6 +445,7 @@ const selectClose = () => {
|
|
|
440
445
|
.v-select .vs__selected,
|
|
441
446
|
.v-select .vs__selected-options {
|
|
442
447
|
max-width: 100%;
|
|
448
|
+
min-width: 0;
|
|
443
449
|
}
|
|
444
450
|
.v-select .vs__search {
|
|
445
451
|
margin: 0 !important;
|
|
@@ -30,6 +30,7 @@ type Props = {
|
|
|
30
30
|
rows?: number;
|
|
31
31
|
maxRows?: number;
|
|
32
32
|
maxLen?: number;
|
|
33
|
+
autosize?: boolean;
|
|
33
34
|
// ----------------------------------------------------------------------------
|
|
34
35
|
data: string | null;
|
|
35
36
|
diff?: string | null | undefined;
|
|
@@ -71,6 +72,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
71
72
|
rows: 5,
|
|
72
73
|
maxRows: 0,
|
|
73
74
|
maxLen: 0,
|
|
75
|
+
autosize: false,
|
|
74
76
|
// ----------------------------------------------------------------------------
|
|
75
77
|
diff: undefined,
|
|
76
78
|
tabindex: undefined,
|
|
@@ -139,6 +141,7 @@ interface State {
|
|
|
139
141
|
const state = reactive<State>({
|
|
140
142
|
value: "",
|
|
141
143
|
});
|
|
144
|
+
|
|
142
145
|
// ----------------------------------------------------------------------------
|
|
143
146
|
watch(
|
|
144
147
|
() => props.data,
|
|
@@ -342,6 +345,11 @@ const textAreaClass = computed(() => {
|
|
|
342
345
|
),
|
|
343
346
|
];
|
|
344
347
|
});
|
|
348
|
+
|
|
349
|
+
const _rows = computed(() => {
|
|
350
|
+
if (!props.autosize) return props.rows;
|
|
351
|
+
return Math.max(state.value.split("\n").length, props.rows);
|
|
352
|
+
});
|
|
345
353
|
</script>
|
|
346
354
|
|
|
347
355
|
<template>
|
|
@@ -390,7 +398,7 @@ const textAreaClass = computed(() => {
|
|
|
390
398
|
v-model="state.value"
|
|
391
399
|
type="text"
|
|
392
400
|
:class="textAreaClass"
|
|
393
|
-
:rows="
|
|
401
|
+
:rows="_rows"
|
|
394
402
|
:disabled="props.disabled || props.readonly"
|
|
395
403
|
:tabindex="tabindex"
|
|
396
404
|
@blur="onBlur()"
|