@tekkare/auriga 0.1.160 → 0.1.161
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
|
@@ -202,6 +202,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
202
202
|
toggleCrop: import("vue").Ref<any>;
|
|
203
203
|
hasReadMore: import("vue").Ref<string[]>;
|
|
204
204
|
applyToggleCrop: (index: number, value: number) => void;
|
|
205
|
+
tableKey: import("vue").Ref<number>;
|
|
205
206
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "changeInputValue"[], "changeInputValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
206
207
|
heads: {
|
|
207
208
|
type: {
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div ref="element" class="oip_list gap-6">
|
|
3
3
|
<p
|
|
4
|
-
|
|
4
|
+
v-if="typeof value === 'string'"
|
|
5
|
+
:class="isBig && !showMore ? 'crop' : ''"
|
|
5
6
|
class="wrap-line"
|
|
6
7
|
>
|
|
7
8
|
{{ value }}
|
|
8
9
|
</p>
|
|
10
|
+
<p v-else-if="typeof value === 'number'">
|
|
11
|
+
{{ new Intl.NumberFormat("fr-FR").format(value) }}
|
|
12
|
+
</p>
|
|
13
|
+
|
|
9
14
|
<p v-if="showReadMore" class="read_more" @click="toggleShowMore()">
|
|
10
15
|
{{ showMore ? "Show less" : "Show more" }}
|
|
11
16
|
</p>
|
|
@@ -24,7 +29,7 @@ export default defineComponent({
|
|
|
24
29
|
name: "TableCropRow",
|
|
25
30
|
/* components: { argIcon, argStyle }, */
|
|
26
31
|
props: {
|
|
27
|
-
value: { type: String, default: "" }
|
|
32
|
+
value: { type: [String, Number], default: "" }
|
|
28
33
|
},
|
|
29
34
|
setup(props, { emit }) {
|
|
30
35
|
const isBig = ref(false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
value: {
|
|
3
|
-
type: StringConstructor;
|
|
3
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
}, {
|
|
@@ -11,10 +11,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
showReadMore: import("vue").Ref<boolean>;
|
|
12
12
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
13
|
value: {
|
|
14
|
-
type: StringConstructor;
|
|
14
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
17
|
}>>, {
|
|
18
|
-
value: string;
|
|
18
|
+
value: string | number;
|
|
19
19
|
}, {}>;
|
|
20
20
|
export default _default;
|