diff --git a/packages/antd-lowcode-materials/lowcode/modal/meta.ts b/packages/antd-lowcode-materials/lowcode/modal/meta.ts index f67b7a4b..7506cd9f 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', @@ -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: [], },