@tekkare/auriga 0.1.153 → 0.1.154
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
|
@@ -251,10 +251,12 @@ import argBtn from "./argBtn.vue";
|
|
|
251
251
|
import argSortIcon from "./argSortIcon.vue";
|
|
252
252
|
import {
|
|
253
253
|
onMounted,
|
|
254
|
+
onUpdated,
|
|
254
255
|
ref,
|
|
255
256
|
computed,
|
|
256
257
|
watch,
|
|
257
|
-
defineComponent
|
|
258
|
+
defineComponent,
|
|
259
|
+
onUnmounted
|
|
258
260
|
} from "vue";
|
|
259
261
|
export default defineComponent({
|
|
260
262
|
name: "argTable",
|
|
@@ -376,12 +378,14 @@ export default defineComponent({
|
|
|
376
378
|
saveTable.value = Object.assign([], [...new Set(fillTable.value)]);
|
|
377
379
|
dataValues.value = fillTable.value;
|
|
378
380
|
currentPage.value = 1;
|
|
381
|
+
setCrop();
|
|
379
382
|
}
|
|
380
383
|
);
|
|
381
384
|
watch(
|
|
382
385
|
() => props.heads,
|
|
383
386
|
(newHeads) => {
|
|
384
387
|
getColumnTypes();
|
|
388
|
+
setCrop();
|
|
385
389
|
}
|
|
386
390
|
);
|
|
387
391
|
watch(searchKey, (newSearchKey) => {
|
|
@@ -669,8 +673,19 @@ export default defineComponent({
|
|
|
669
673
|
showToggle.value = props.toggleDisplay;
|
|
670
674
|
}
|
|
671
675
|
onMounted(() => {
|
|
676
|
+
setCrop();
|
|
677
|
+
document.addEventListener("resize", setCrop);
|
|
678
|
+
});
|
|
679
|
+
onUpdated(() => {
|
|
680
|
+
setCrop();
|
|
681
|
+
});
|
|
682
|
+
onUnmounted(() => {
|
|
683
|
+
document.removeEventListener("resize", setCrop);
|
|
684
|
+
});
|
|
685
|
+
function setCrop() {
|
|
672
686
|
setTimeout(() => {
|
|
673
687
|
if (props.autoCrop) {
|
|
688
|
+
hasReadMore.value = [];
|
|
674
689
|
const textCells = document.querySelectorAll(".text_cell");
|
|
675
690
|
textCells.forEach((cell) => {
|
|
676
691
|
cell.classList.remove("crop_text");
|
|
@@ -683,7 +698,7 @@ export default defineComponent({
|
|
|
683
698
|
});
|
|
684
699
|
}
|
|
685
700
|
}, 300);
|
|
686
|
-
}
|
|
701
|
+
}
|
|
687
702
|
function applyToggleCrop(index, value) {
|
|
688
703
|
if (toggleCrop.value !== null) {
|
|
689
704
|
if (toggleCrop.value.index === index && toggleCrop.value.value === value) {
|