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

[Bug Report] antdv5 FormDrawer.Extra和FormDrawer.Footer不起作用 #4090

Open
1 task
zXuff opened this issue Feb 16, 2024 · 3 comments
Open
1 task

[Bug Report] antdv5 FormDrawer.Extra和FormDrawer.Footer不起作用 #4090

zXuff opened this issue Feb 16, 2024 · 3 comments

Comments

@zXuff
Copy link

zXuff commented Feb 16, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

`
FormDrawer(
{
title: '表单',
},
'1',
() => {
return (

<SchemaField
schema={{
type: 'object',
properties: {
grid: {
type: 'void',
'x-component': 'FormGrid',
'x-component-props': {
minColumns: 2,
maxColumns: 2,
columnGap: 32,
strictAutoFit: true,
},
properties: {
drawerA: {
type: 'string',
title: '输入框1',
'x-decorator': 'FormItem',
'x-component': 'Input',
required: true,
},
drawerB: {
type: 'string',
title: '输入框2',
'x-decorator': 'FormItem',
'x-component': 'Input',
},
drawerC: {
type: 'string',
title: '输入框3',
'x-decorator': 'FormItem',
'x-component': 'Input',
},
},
},
},
}}
/>
<FormDrawer.Footer>

<Submit
onSubmit={(values) => {
console.log(values, 'drawer');
}}
>
提交


</FormDrawer.Footer>

);
},
)
.open({
initialValues: {
drawerA: '123',
},
})

`

What is expected?

显示Extra或Footer

What is actually happening?

没有显示Extra或Footer

Package

@formily/antd-v5@2.3.1


@zXuff zXuff changed the title [Bug Report] FormDrawer.Extra和FormDrawer.Footer不起作用 [Bug Report] antdv5 FormDrawer.Extra和FormDrawer.Footer不起作用 Feb 16, 2024
@dasheng523
Copy link

dasheng523 commented Feb 22, 2024

我也碰上了,本来代码好端端的,换到公司电脑拉下代码重新npm install后,就没有显示Extra或Footer了

Package

"@formily/antd-v5": "^1.1.9",

@dasheng523
Copy link

这库没人维护了吗?

@over58
Copy link

over58 commented Mar 22, 2024

这库没人维护了吗?
应该是,我给库提了pull request, 过了很久状态也没有更新,不采用也不拒绝。formilyjs/antd#36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants