From dbb405113a43b3f5d1c1f60e41a23fa4b61cca45 Mon Sep 17 00:00:00 2001 From: vdpAdmin Date: Wed, 1 Mar 2023 11:22:46 +0800 Subject: [PATCH] =?UTF-8?q?2023.03.01=E6=9B=B4=E6=96=B0=EF=BC=9A=201.=20?= =?UTF-8?q?=E9=9D=99=E6=80=81=E6=96=87=E6=9C=AC=E7=BB=84=E4=BB=B6=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=A4=E4=B8=AA=E5=B1=9E=E6=80=A7=EF=BC=9B=202.=20?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=8D=95=E5=85=83=E6=A0=BC=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=8D=A2=E8=A1=8C=E5=B1=9E=E6=80=A7=EF=BC=9B=203.=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=8B=E6=8B=89=E7=BB=84=E4=BB=B6=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E5=90=8E=E4=B8=8D=E8=83=BD=E6=98=BE=E7=A4=BA=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E7=9A=84bug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 ++-- .../container-widget/table-cell-widget.vue | 2 +- .../field-widget/select-widget.vue | 10 +++++- .../field-widget/static-text-widget.vue | 3 +- .../container-table-cell/wordBreak-editor.vue | 23 ++++++++++++ .../field-static-text/fontSize-editor.vue | 23 ++++++++++++ .../field-static-text/preWrap-editor.vue | 23 ++++++++++++ .../field-static-text/textContent-editor.vue | 2 +- .../property-editor/textAlign-editor.vue | 35 +++++++++++++++++++ .../setting-panel/propertyRegister.js | 4 +++ .../widget-panel/widgetsConfig.js | 4 +++ .../container-item/table-cell-item.vue | 2 +- src/lang/en-US.js | 4 +++ src/lang/zh-CN.js | 4 +++ 14 files changed, 139 insertions(+), 7 deletions(-) create mode 100644 src/components/form-designer/setting-panel/property-editor/container-table-cell/wordBreak-editor.vue create mode 100644 src/components/form-designer/setting-panel/property-editor/field-static-text/fontSize-editor.vue create mode 100644 src/components/form-designer/setting-panel/property-editor/field-static-text/preWrap-editor.vue create mode 100644 src/components/form-designer/setting-panel/property-editor/textAlign-editor.vue diff --git a/README.md b/README.md index 206cd53..59655bd 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,11 @@ ### 立即体验VForm 3 [在线Demo](http://120.92.142.115:81/vform3/) - ### 立即体验VForm 3 Pro高级版(提供商业支持) - [VForm 3 Pro Demo](https://vform666.com/pages/pro/) +### 立即体验VForm 3 Pro高级版(提供商业支持) +[VForm 3 Pro Demo](https://vform666.com/pages/pro/) + +### 视频教程集合: +[B站观看](https://space.bilibili.com/626932375) ### 适合Vue 2的版本看这里 [点此查看](https://gitee.com/vdpadmin/variant-form) diff --git a/src/components/form-designer/form-widget/container-widget/table-cell-widget.vue b/src/components/form-designer/form-widget/container-widget/table-cell-widget.vue index 4a899ac..94bf0d2 100644 --- a/src/components/form-designer/form-widget/container-widget/table-cell-widget.vue +++ b/src/components/form-designer/form-widget/container-widget/table-cell-widget.vue @@ -1,6 +1,6 @@ diff --git a/src/components/form-designer/setting-panel/property-editor/container-table-cell/wordBreak-editor.vue b/src/components/form-designer/setting-panel/property-editor/container-table-cell/wordBreak-editor.vue new file mode 100644 index 0000000..0417fee --- /dev/null +++ b/src/components/form-designer/setting-panel/property-editor/container-table-cell/wordBreak-editor.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/src/components/form-designer/setting-panel/property-editor/field-static-text/fontSize-editor.vue b/src/components/form-designer/setting-panel/property-editor/field-static-text/fontSize-editor.vue new file mode 100644 index 0000000..b2c1758 --- /dev/null +++ b/src/components/form-designer/setting-panel/property-editor/field-static-text/fontSize-editor.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/src/components/form-designer/setting-panel/property-editor/field-static-text/preWrap-editor.vue b/src/components/form-designer/setting-panel/property-editor/field-static-text/preWrap-editor.vue new file mode 100644 index 0000000..61ee8a3 --- /dev/null +++ b/src/components/form-designer/setting-panel/property-editor/field-static-text/preWrap-editor.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/src/components/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue b/src/components/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue index 1056131..5c6e145 100644 --- a/src/components/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +++ b/src/components/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue @@ -1,6 +1,6 @@ diff --git a/src/components/form-designer/setting-panel/property-editor/textAlign-editor.vue b/src/components/form-designer/setting-panel/property-editor/textAlign-editor.vue new file mode 100644 index 0000000..0d49890 --- /dev/null +++ b/src/components/form-designer/setting-panel/property-editor/textAlign-editor.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/src/components/form-designer/setting-panel/propertyRegister.js b/src/components/form-designer/setting-panel/propertyRegister.js index af71756..0d98156 100644 --- a/src/components/form-designer/setting-panel/propertyRegister.js +++ b/src/components/form-designer/setting-panel/propertyRegister.js @@ -34,6 +34,9 @@ const COMMON_PROPERTIES = { 'editable' : 'editable-editor', 'showPassword' : 'showPassword-editor', 'textContent' : 'textContent-editor', + 'textAlign' : 'textAlign-editor', + 'fontSize' : 'fontSize-editor', + 'preWrap' : 'preWrap-editor', 'htmlContent' : 'htmlContent-editor', 'format' : 'format-editor', 'valueFormat' : 'valueFormat-editor', @@ -63,6 +66,7 @@ const COMMON_PROPERTIES = { 'cellWidth' : 'cellWidth-editor', 'cellHeight' : 'cellHeight-editor', 'colHeight' : 'colHeight-editor', + 'wordBreak' : 'wordBreak-editor', 'gutter' : 'gutter-editor', 'responsive' : 'responsive-editor', 'span' : 'span-editor', diff --git a/src/components/form-designer/widget-panel/widgetsConfig.js b/src/components/form-designer/widget-panel/widgetsConfig.js index 5e77076..150514c 100644 --- a/src/components/form-designer/widget-panel/widgetsConfig.js +++ b/src/components/form-designer/widget-panel/widgetsConfig.js @@ -73,6 +73,7 @@ export const containers = [ cellHeight: '', colspan: 1, rowspan: 1, + wordBreak: false, //是否自动换行 customClass: '', //自定义css类名 } }, @@ -669,6 +670,9 @@ export const basicFields = [ columnWidth: '200px', hidden: false, textContent: 'static text', + textAlign: 'left', + fontSize: '13px', + preWrap: false, //是否自动换行 //------------------- customClass: '', //自定义css类名 //------------------- diff --git a/src/components/form-render/container-item/table-cell-item.vue b/src/components/form-render/container-item/table-cell-item.vue index 3520cac..7c2aa7b 100644 --- a/src/components/form-render/container-item/table-cell-item.vue +++ b/src/components/form-render/container-item/table-cell-item.vue @@ -1,7 +1,7 @@