-
@@ -107,17 +140,20 @@ const setText = (value, formula) => {
if (!formula) {
return value;
} else {
-
}
};
-watch(() => JSON.parse(JSON.stringify([props.inputData?.tableData || '', props.data.options])), (obj1, obj2) => {
- if (JSON.stringify(obj1) !== JSON.stringify(obj2)) {
- scrollShow.value = false;
- nextTick(() => {
- scrollShow.value = true;
- });
- }
-}, { deep: true, immediate: true });
+watch(
+ () => JSON.parse(JSON.stringify([props.inputData?.tableData || '', props.data.options])),
+ (obj1, obj2) => {
+ if (JSON.stringify(obj1) !== JSON.stringify(obj2)) {
+ scrollShow.value = false;
+ nextTick(() => {
+ scrollShow.value = true;
+ });
+ }
+ },
+ { deep: true, immediate: true }
+);
const emit = defineEmits(['resize']);
const resize = (e) => {
emit('resize', e, props.id);
@@ -133,11 +169,29 @@ const resize = (e) => {
vertical-align: top;
position: relative;
}
-.progress{
+
+.progress {
position: absolute;
top: 50%;
width: 100%;
transform: translateY(-50%);
}
-
+.lrScroll {
+ white-space: nowrap;
+ animation: scroll 1s linear infinite alternate;
+ display: inline-block;
+ transition: all 1s;
+ height:100%;
+ position: absolute;
+}
+
+@keyframes scroll {
+ from {
+ transform: translateX(0);
+ }
+ to {
+ transform: translateX(-100%);
+ }
+}
+
diff --git a/src/views/print/test.vue b/src/views/print/test.vue
index b022900..1305fc6 100644
--- a/src/views/print/test.vue
+++ b/src/views/print/test.vue
@@ -9,7 +9,8 @@ const iframe = ref(null);
onMounted(() => {
iframe.value.onload = function() {
setTimeout(() => {
- iframe.value.contentWindow.postMessage('print', '*');
+ // iframe.value.contentWindow.postMessage({ type: 'print', message: '' }, '*');
+ iframe.value.contentWindow.postMessage({ type: 'print', message: '' }, '*');
}, 1000);
};
});