From 65af3c380434f614533787fee96a6d04f027d3fb Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Thu, 22 Sep 2022 14:04:52 +0800 Subject: [PATCH] =?UTF-8?q?jeecgboot3.4.2=E7=89=88=E6=9C=AC=E5=8F=91?= =?UTF-8?q?=E5=B8=83=EF=BC=8C=E8=A1=8C=E7=BC=96=E8=BE=91=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecg/JVxeTable/src/JVxeTable.ts | 1 + .../jeecg/JVxeTable/src/componentMap.ts | 8 ++++++- .../src/components/cells/JVxeDateCell.vue | 15 +++++++++--- .../src/components/cells/JVxeInputCell.vue | 6 ++++- .../src/components/cells/JVxeRadioCell.vue | 4 +++- .../src/components/cells/JVxeTextareaCell.vue | 11 ++++++++- .../src/components/cells/JVxeTimeCell.vue | 15 +++++++++--- .../jeecg/JVxeTable/src/hooks/useData.ts | 6 +++-- .../JVxeTable/src/hooks/useJVxeComponent.ts | 2 +- .../jeecg/JVxeTable/src/hooks/useMethods.ts | 18 +++++++++++---- .../jeecg/JVxeTable/src/hooks/useToolbar.ts | 2 +- src/components/jeecg/JVxeTable/src/install.ts | 4 ++++ .../jeecg/JVxeTable/src/style/index.less | 23 +++++++++++++++++++ 13 files changed, 97 insertions(+), 18 deletions(-) diff --git a/src/components/jeecg/JVxeTable/src/JVxeTable.ts b/src/components/jeecg/JVxeTable/src/JVxeTable.ts index e88b659..a6da7bf 100644 --- a/src/components/jeecg/JVxeTable/src/JVxeTable.ts +++ b/src/components/jeecg/JVxeTable/src/JVxeTable.ts @@ -42,6 +42,7 @@ export default defineComponent({ return h( 'div', { + class: this.$attrs.class, style: this.$attrs.style, }, h( diff --git a/src/components/jeecg/JVxeTable/src/componentMap.ts b/src/components/jeecg/JVxeTable/src/componentMap.ts index ab2707a..72dcf75 100644 --- a/src/components/jeecg/JVxeTable/src/componentMap.ts +++ b/src/components/jeecg/JVxeTable/src/componentMap.ts @@ -24,7 +24,13 @@ const componentMap = new Map(); export const spanEnds: string = ':span'; /** 定义不能用于注册的关键字 */ -export const excludeKeywords: Array = [JVxeTypes.hidden, JVxeTypes.rowNumber, JVxeTypes.rowCheckbox, JVxeTypes.rowRadio, JVxeTypes.rowExpand]; +export const excludeKeywords: Array = [ + JVxeTypes.hidden, + JVxeTypes.rowNumber, + JVxeTypes.rowCheckbox, + JVxeTypes.rowRadio, + JVxeTypes.rowExpand, +]; /** * 注册组件 diff --git a/src/components/jeecg/JVxeTable/src/components/cells/JVxeDateCell.vue b/src/components/jeecg/JVxeTable/src/components/cells/JVxeDateCell.vue index 658dcb4..9dc1159 100644 --- a/src/components/jeecg/JVxeTable/src/components/cells/JVxeDateCell.vue +++ b/src/components/jeecg/JVxeTable/src/components/cells/JVxeDateCell.vue @@ -1,10 +1,19 @@ + \ No newline at end of file diff --git a/src/components/jeecg/JVxeTable/src/components/cells/JVxeRadioCell.vue b/src/components/jeecg/JVxeTable/src/components/cells/JVxeRadioCell.vue index 2fdd473..503adf5 100644 --- a/src/components/jeecg/JVxeTable/src/components/cells/JVxeRadioCell.vue +++ b/src/components/jeecg/JVxeTable/src/components/cells/JVxeRadioCell.vue @@ -1,6 +1,8 @@ diff --git a/src/components/jeecg/JVxeTable/src/components/cells/JVxeTextareaCell.vue b/src/components/jeecg/JVxeTable/src/components/cells/JVxeTextareaCell.vue index df9db7d..fa892ef 100644 --- a/src/components/jeecg/JVxeTable/src/components/cells/JVxeTextareaCell.vue +++ b/src/components/jeecg/JVxeTable/src/components/cells/JVxeTextareaCell.vue @@ -1,5 +1,14 @@