nuxt-hs-ui 4.0.6 → 4.0.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
|
@@ -6,12 +6,13 @@ import { useHsPinia } from "../../../composables/use-pinia";
|
|
|
6
6
|
import { useHsMultiLang } from "../../../composables/use-hs-multi-lang";
|
|
7
7
|
const props = defineProps({
|
|
8
8
|
item: { type: Object, required: true },
|
|
9
|
-
value: { type: [String, Number, null], required: false },
|
|
9
|
+
value: { type: [String, Number, null], required: false, default: null },
|
|
10
|
+
overflow: { type: Boolean, required: false, default: true },
|
|
10
11
|
img: { type: Boolean, required: false },
|
|
11
12
|
activated: { type: Boolean, required: true },
|
|
12
|
-
classImg: { type: [String, Object, Array], required: false },
|
|
13
|
-
classImgTag: { type: [String, Object, Array], required: false },
|
|
14
|
-
imgMode: { type: String, required: false },
|
|
13
|
+
classImg: { type: [String, Object, Array], required: false, default: "" },
|
|
14
|
+
classImgTag: { type: [String, Object, Array], required: false, default: "" },
|
|
15
|
+
imgMode: { type: String, required: false, default: "contain" },
|
|
15
16
|
disabled: { type: Boolean, required: false },
|
|
16
17
|
readonly: { type: Boolean, required: false },
|
|
17
18
|
type: { type: String, required: true }
|
|
@@ -41,7 +42,7 @@ const labels = computed(() => {
|
|
|
41
42
|
v-if="props.type === 'display'"
|
|
42
43
|
:key="item._key + 'label'"
|
|
43
44
|
:item="item"
|
|
44
|
-
overflow
|
|
45
|
+
:overflow="overflow"
|
|
45
46
|
:disabled="props.disabled"
|
|
46
47
|
:readonly="props.readonly"
|
|
47
48
|
/>
|
|
@@ -5,6 +5,7 @@ type Props = {
|
|
|
5
5
|
_key: string;
|
|
6
6
|
};
|
|
7
7
|
value?: string | number | null;
|
|
8
|
+
overflow?: boolean;
|
|
8
9
|
img?: boolean;
|
|
9
10
|
activated: boolean;
|
|
10
11
|
classImg?: ClassType;
|
|
@@ -14,6 +15,12 @@ type Props = {
|
|
|
14
15
|
readonly?: boolean;
|
|
15
16
|
type: 'display' | 'item';
|
|
16
17
|
};
|
|
17
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
19
|
+
value: string | number | null;
|
|
20
|
+
classImg: ClassType;
|
|
21
|
+
classImgTag: ClassType;
|
|
22
|
+
imgMode: "cover" | "contain";
|
|
23
|
+
overflow: boolean;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
25
|
declare const _default: typeof __VLS_export;
|
|
19
26
|
export default _default;
|
|
@@ -349,10 +349,10 @@ watch(computedActivate, (value) => {
|
|
|
349
349
|
<template #overlay="{ focus, change }">
|
|
350
350
|
<div
|
|
351
351
|
v-if="props.diff !== void 0 && change"
|
|
352
|
-
class="absolute inset-0 bg-red/30 transition-opacity flex items-center p-1 bg-dark/20"
|
|
352
|
+
class="absolute inset-0 bg-red/30 transition-opacity flex items-center p-1 bg-dark/20 overflow-hidden"
|
|
353
353
|
:class="!focus && hsMisc.capsLockState ? 'opacity-100' : 'opacity-0 pointer-events-none select-none'"
|
|
354
354
|
>
|
|
355
|
-
<div class="flex" @mousedown.prevent @click.prevent>
|
|
355
|
+
<div class="flex items-center w-full h-full py-1" @mousedown.prevent @click.prevent>
|
|
356
356
|
<Btn
|
|
357
357
|
variant="outlined"
|
|
358
358
|
theme="error"
|
|
@@ -363,7 +363,7 @@ watch(computedActivate, (value) => {
|
|
|
363
363
|
>
|
|
364
364
|
<i class="fa-solid fa-rotate-right"></i>
|
|
365
365
|
</Btn>
|
|
366
|
-
<div v-if="props.diff" class="px-1
|
|
366
|
+
<div v-if="props.diff" class="px-1 mx-1 flex-1 select-none truncate bg-white" @click.stop>
|
|
367
367
|
{{ diffDisplayText }}
|
|
368
368
|
</div>
|
|
369
369
|
</div>
|
|
@@ -454,6 +454,7 @@ watch(computedActivate, (value) => {
|
|
|
454
454
|
:img-mode="props.imgMode"
|
|
455
455
|
:disabled="props.disabled"
|
|
456
456
|
:readonly="props.readonly"
|
|
457
|
+
:overflow="false"
|
|
457
458
|
type="display"
|
|
458
459
|
/>
|
|
459
460
|
</template>
|
|
@@ -542,6 +543,7 @@ watch(computedActivate, (value) => {
|
|
|
542
543
|
:img-mode="props.imgMode"
|
|
543
544
|
:disabled="props.disabled"
|
|
544
545
|
:readonly="props.readonly"
|
|
546
|
+
:overflow="false"
|
|
545
547
|
type="display"
|
|
546
548
|
/>
|
|
547
549
|
</template>
|
package/package.json
CHANGED