@tekkare/auriga 0.1.148 → 0.1.149
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 +1 -1
- package/dist/runtime/components/argTable.vue +26 -12
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -663,18 +663,20 @@ export default defineComponent({
|
|
|
663
663
|
showToggle.value = props.toggleDisplay;
|
|
664
664
|
}
|
|
665
665
|
onMounted(() => {
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
666
|
+
setTimeout(() => {
|
|
667
|
+
if (props.autoCrop) {
|
|
668
|
+
const textCells = document.querySelectorAll(".text_cell");
|
|
669
|
+
textCells.forEach((cell) => {
|
|
670
|
+
cell.classList.remove("crop_text");
|
|
671
|
+
const fullHeight = cell.clientHeight;
|
|
672
|
+
cell.classList.add("crop_text");
|
|
673
|
+
const originalHeight = cell.clientHeight;
|
|
674
|
+
if (fullHeight > originalHeight) {
|
|
675
|
+
hasReadMore.value.push(cell.id);
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
}, 500);
|
|
678
680
|
});
|
|
679
681
|
function applyToggleCrop(index, value) {
|
|
680
682
|
if (toggleCrop.value !== null) {
|
|
@@ -685,6 +687,18 @@ export default defineComponent({
|
|
|
685
687
|
} else
|
|
686
688
|
toggleCrop.value = { index, value };
|
|
687
689
|
}
|
|
690
|
+
if (props.autoCrop) {
|
|
691
|
+
const textCells = document.querySelectorAll(".text_cell");
|
|
692
|
+
textCells.forEach((cell) => {
|
|
693
|
+
cell.classList.remove("crop_text");
|
|
694
|
+
const fullHeight = cell.clientHeight;
|
|
695
|
+
cell.classList.add("crop_text");
|
|
696
|
+
const originalHeight = cell.clientHeight;
|
|
697
|
+
if (fullHeight > originalHeight) {
|
|
698
|
+
hasReadMore.value.push(cell.id);
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
}
|
|
688
702
|
return {
|
|
689
703
|
sortCol,
|
|
690
704
|
sortDir,
|