Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: modal中属性纠错 #57

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/antd-lowcode-materials/lowcode/modal/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default {
},
{
name: 'forceRender',
title: { label: '强制渲染Modal', tip: '强制渲染Modal' },
title: { label: '强制渲染Modal', tip: '预渲染 Modal 内元素' },
propType: 'bool',
defaultValue: false,
setter: 'BoolSetter',
Expand Down Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions packages/antd-lowcode-materials/lowcode/modal/snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export default [
cancelText: '取消',
open: true,
destroyOnClose: true,
height: 100,
width: 600,
},
children: [],
},
Expand All @@ -26,6 +28,8 @@ export default [
open: true,
footer: null,
destroyOnClose: true,
height: 100,
width: 600,
},
children: [],
},
Expand Down