From 298f8b3d4cc2b6e852fceac3c8cd1921edf31d47 Mon Sep 17 00:00:00 2001 From: Daniel Pan <57362494+daniel-panhead@users.noreply.github.com> Date: Thu, 28 Sep 2023 19:13:01 -0700 Subject: [PATCH] Add triplecolumn --- src/components/lab-notebook/DoubleColumn.vue | 7 +- src/components/lab-notebook/TripleColumn.vue | 90 ++++++++++++++++++++ src/views/enzymosome/GroupAView.vue | 10 +++ 3 files changed, 104 insertions(+), 3 deletions(-) create mode 100644 src/components/lab-notebook/TripleColumn.vue diff --git a/src/components/lab-notebook/DoubleColumn.vue b/src/components/lab-notebook/DoubleColumn.vue index 4f22574..49885e4 100644 --- a/src/components/lab-notebook/DoubleColumn.vue +++ b/src/components/lab-notebook/DoubleColumn.vue @@ -13,8 +13,9 @@ onMounted(() => { } }) +const maxWidth = scrollWindow.value ? (scrollWindow.value?.scrollWidth - scrollWindow.value?.clientWidth) : 0 + const onScroll = () => { - const maxWidth = scrollWindow.value ? (scrollWindow.value?.scrollWidth - scrollWindow.value?.clientWidth) : 0 if (scrollWindow.value?.scrollLeft == 0) scrollPos.value = 0 if (scrollWindow.value?.scrollLeft == maxWidth) scrollPos.value = maxWidth } @@ -59,8 +60,8 @@ const onScroll = () => { > diff --git a/src/components/lab-notebook/TripleColumn.vue b/src/components/lab-notebook/TripleColumn.vue new file mode 100644 index 0000000..1a901d2 --- /dev/null +++ b/src/components/lab-notebook/TripleColumn.vue @@ -0,0 +1,90 @@ + + + diff --git a/src/views/enzymosome/GroupAView.vue b/src/views/enzymosome/GroupAView.vue index d472e2f..fbde009 100644 --- a/src/views/enzymosome/GroupAView.vue +++ b/src/views/enzymosome/GroupAView.vue @@ -2,6 +2,7 @@ import Notebook from '@/components/lab-notebook/Notebook.vue' import SingleColumn from '@/components/lab-notebook/SingleColumn.vue' import DoubleColumn from '@/components/lab-notebook/DoubleColumn.vue' +import TripleColumn from '@/components/lab-notebook/TripleColumn.vue' import CustomTable from '@/components/CustomTable.vue' const tableData = { @@ -101,6 +102,15 @@ const tableData = {

+ + + + + + + + +