From b239fc56f5640dc88ff37b9111454697749f50ab Mon Sep 17 00:00:00 2001 From: yaojn Date: Thu, 9 Oct 2025 10:09:11 +0800 Subject: [PATCH 1/6] =?UTF-8?q?-=20[=E5=8A=9F=E8=83=BD]=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=B7=A5=E5=8D=95=E6=89=93=E5=BC=80=E6=85=A2?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20=20=20=20-=20[=E5=85=B3=E8=81=94]?= =?UTF-8?q?#[1478378178183168]=E4=BC=98=E5=8C=96=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E6=89=93=E5=BC=80=E6=85=A2=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20http://192.168.0.96:8090/demo/rdm.html#/story-detai?= =?UTF-8?q?l/939050947543040/939050947543042/1478378178183168?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/TsSimpleTable/index.vue | 112 ++++ src/resources/plugins/TsSheet/TsSheet.vue | 360 ++++++----- .../plugins/TsSheet/child-form-item.vue | 8 + src/resources/plugins/TsSheet/form-item.vue | 58 +- .../plugins/TsSheet/form/component/base.vue | 6 +- .../TsSheet/form/component/formcollapse.vue | 4 + .../TsSheet/form/component/formtab.vue | 4 +- .../TsSheet/form/component/formtable.vue | 3 +- .../formtableinputer/column-item.vue | 579 ++++++++++++++++++ .../form/component/formtableinputer/index.vue | 376 ++++++++---- .../table-import-export-mixin.js | 11 +- .../TsSheet/form/reaction/setValueOther.js | 6 +- 12 files changed, 1227 insertions(+), 300 deletions(-) create mode 100644 src/resources/components/TsSimpleTable/index.vue create mode 100644 src/resources/plugins/TsSheet/form/component/formtableinputer/column-item.vue diff --git a/src/resources/components/TsSimpleTable/index.vue b/src/resources/components/TsSimpleTable/index.vue new file mode 100644 index 00000000..141cb2c2 --- /dev/null +++ b/src/resources/components/TsSimpleTable/index.vue @@ -0,0 +1,112 @@ + + + diff --git a/src/resources/plugins/TsSheet/TsSheet.vue b/src/resources/plugins/TsSheet/TsSheet.vue index 0217f668..d42a83ac 100644 --- a/src/resources/plugins/TsSheet/TsSheet.vue +++ b/src/resources/plugins/TsSheet/TsSheet.vue @@ -8,12 +8,7 @@ @contextmenu="handleContextMenu" @mousemove="doDrag" @mouseup="endResize" - @click=" - event => { - isContextMenuShow = false; - event.stopPropagation(); - } - " + @click="handleClick" @mouseleave="endResize" >
@@ -127,11 +122,7 @@ :class="{ editmode: mode === 'edit' }" style="position: relative; overflow: auto; width: 100%" :style="{ height: mode === 'edit' ? containerHeight : mode === 'editSubform' ? 'auto' : '100%' }" - @scroll=" - event => { - scrollContainer(event); - } - " + @scroll="scrollContainer" > @@ -145,27 +136,12 @@ :style="{ width: head.width + 'px' }" @mouseup="isDragging = false" @mouseenter="multipleSelectColumn(index)" - @mousedown=" - event => { - if (mode === 'edit') { - if (event.buttons === 1) { - clearSelectedRowCol(); - isDragging = true; - selectColumn(index); - multipleSelectColumn(index); - } - } - } - " + @mousedown="handleColumnMouseDown(index, $event)" >
{{ getHeadText(index) }} @@ -179,35 +155,20 @@ - +
{{ left.index + 1 }} @@ -216,19 +177,19 @@
- +
- + - + @@ -236,55 +197,25 @@
{{ left.index + 1 }}
@@ -438,6 +354,7 @@ + diff --git a/src/resources/plugins/TsSheet/form/component/formtableinputer/index.vue b/src/resources/plugins/TsSheet/form/component/formtableinputer/index.vue index 2ee218b4..a533a17b 100644 --- a/src/resources/plugins/TsSheet/form/component/formtableinputer/index.vue +++ b/src/resources/plugins/TsSheet/form/component/formtableinputer/index.vue @@ -4,8 +4,8 @@
-
- +
+