@tekkare/auriga 0.1.159 → 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
|
@@ -379,10 +379,10 @@ export default defineComponent({
|
|
|
379
379
|
watch(
|
|
380
380
|
() => props.contents,
|
|
381
381
|
(newContent) => {
|
|
382
|
-
tableKey.value += 1;
|
|
383
382
|
saveTable.value = Object.assign([], [...new Set(fillTable.value)]);
|
|
384
383
|
dataValues.value = fillTable.value;
|
|
385
384
|
currentPage.value = 1;
|
|
385
|
+
tableKey.value += 1;
|
|
386
386
|
}
|
|
387
387
|
);
|
|
388
388
|
watch(
|
|
@@ -727,7 +727,8 @@ export default defineComponent({
|
|
|
727
727
|
sendSearch,
|
|
728
728
|
toggleCrop,
|
|
729
729
|
hasReadMore,
|
|
730
|
-
applyToggleCrop
|
|
730
|
+
applyToggleCrop,
|
|
731
|
+
tableKey
|
|
731
732
|
};
|
|
732
733
|
}
|
|
733
734
|
});
|
|
@@ -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,8 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div ref="element" class="oip_list gap-6">
|
|
3
|
-
<p
|
|
3
|
+
<p
|
|
4
|
+
v-if="typeof value === 'string'"
|
|
5
|
+
:class="isBig && !showMore ? 'crop' : ''"
|
|
6
|
+
class="wrap-line"
|
|
7
|
+
>
|
|
4
8
|
{{ value }}
|
|
5
9
|
</p>
|
|
10
|
+
<p v-else-if="typeof value === 'number'">
|
|
11
|
+
{{ new Intl.NumberFormat("fr-FR").format(value) }}
|
|
12
|
+
</p>
|
|
13
|
+
|
|
6
14
|
<p v-if="showReadMore" class="read_more" @click="toggleShowMore()">
|
|
7
15
|
{{ showMore ? "Show less" : "Show more" }}
|
|
8
16
|
</p>
|
|
@@ -21,7 +29,7 @@ export default defineComponent({
|
|
|
21
29
|
name: "TableCropRow",
|
|
22
30
|
/* components: { argIcon, argStyle }, */
|
|
23
31
|
props: {
|
|
24
|
-
value: { type: String, default: "" }
|
|
32
|
+
value: { type: [String, Number], default: "" }
|
|
25
33
|
},
|
|
26
34
|
setup(props, { emit }) {
|
|
27
35
|
const isBig = ref(false);
|
|
@@ -55,5 +63,5 @@ export default defineComponent({
|
|
|
55
63
|
</script>
|
|
56
64
|
|
|
57
65
|
<style scoped>
|
|
58
|
-
.read_more{color:var(--primary);cursor:pointer;text-decoration:underline}.crop{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
|
|
66
|
+
.read_more{color:var(--primary);cursor:pointer;text-decoration:underline}.crop{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.wrap-line{white-space:pre-line}
|
|
59
67
|
</style>
|
|
@@ -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;
|