From 57ed391a8894d0ba3298e423d6364fa7750eb967 Mon Sep 17 00:00:00 2001 From: owenchen1004 Date: Sun, 8 Oct 2023 12:01:57 +0800 Subject: [PATCH 1/2] fix: tips of forceRender in modal --- packages/antd-lowcode-materials/lowcode/modal/meta.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/antd-lowcode-materials/lowcode/modal/meta.ts b/packages/antd-lowcode-materials/lowcode/modal/meta.ts index f67b7a4b..9232b87f 100644 --- a/packages/antd-lowcode-materials/lowcode/modal/meta.ts +++ b/packages/antd-lowcode-materials/lowcode/modal/meta.ts @@ -67,7 +67,7 @@ export default { }, { name: 'forceRender', - title: { label: '强制渲染Modal', tip: '强制渲染Modal' }, + title: { label: '强制渲染Modal', tip: '预渲染 Modal 内元素' }, propType: 'bool', defaultValue: false, setter: 'BoolSetter', From 923cd2fdd97be028af8bfca6dc084de4428fe7c5 Mon Sep 17 00:00:00 2001 From: owenchen1004 Date: Sun, 8 Oct 2023 14:23:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20modal=E6=96=B0=E5=A2=9E=E5=8F=AF?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E9=AB=98=E5=BA=A6=E5=92=8C=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/antd-lowcode-materials/lowcode/modal/meta.ts | 7 ++++++- packages/antd-lowcode-materials/lowcode/modal/snippets.ts | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/antd-lowcode-materials/lowcode/modal/meta.ts b/packages/antd-lowcode-materials/lowcode/modal/meta.ts index 9232b87f..7506cd9f 100644 --- a/packages/antd-lowcode-materials/lowcode/modal/meta.ts +++ b/packages/antd-lowcode-materials/lowcode/modal/meta.ts @@ -107,7 +107,12 @@ export default { { name: 'width', title: { label: '宽度', tip: '宽度' }, - propType: { type: 'oneOfType', value: ['string', 'number'] }, + propType: 'number', + }, + { + name: 'height', + title: { label: '高度', tip: '高度' }, + propType: 'number', }, { name: 'footer', diff --git a/packages/antd-lowcode-materials/lowcode/modal/snippets.ts b/packages/antd-lowcode-materials/lowcode/modal/snippets.ts index 1e219a0a..f4168199 100644 --- a/packages/antd-lowcode-materials/lowcode/modal/snippets.ts +++ b/packages/antd-lowcode-materials/lowcode/modal/snippets.ts @@ -10,6 +10,8 @@ export default [ cancelText: '取消', open: true, destroyOnClose: true, + height: 100, + width: 600, }, children: [], }, @@ -26,6 +28,8 @@ export default [ open: true, footer: null, destroyOnClose: true, + height: 100, + width: 600, }, children: [], },