We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我创建了一个自定义组件
export const DefineFieldAction = ()=>{ return <SchemaField> <SchemaField.Array name="eventsGroup" x-component="ArrayCollapse"> <SchemaField.Object x-component="ArrayCollapse.CollapsePanel" x-component-props={{ header: '动作组', }} > <SchemaField.Void x-component="ArrayCollapse.Index" /> </SchemaField.Object> <SchemaField.Void x-component="ArrayCollapse.Addition" x-component-props={{ title: '添加动作组', defaultValue: { type: 'all', events: [] }, }} /> </SchemaField.Array> </SchemaField> }
问题描述: ui能正常渲染,但是点击添加按钮的时候报错
不报错,能够正常使用
打断点发现action的this指向丢了,是undefined
undefined
@formily/[email protected]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduction link
Steps to reproduce
我创建了一个自定义组件
问题描述:
ui能正常渲染,但是点击添加按钮的时候报错
What is expected?
不报错,能够正常使用
What is actually happening?
打断点发现action的this指向丢了,是
undefined
Package
@formily/[email protected]
The text was updated successfully, but these errors were encountered: