Skip to content

How to use wrappedComponentRef? #1014

@ZITong926

Description

@ZITong926

The issue which is not created via https://vuecomponent.github.io/issue-helper/ will be closed immediately.

return ( <a-modal width={width} title={title} on-cancel={cancel} okText={okText} visible={visible} on-ok={handleSubmit} destroyOnClose={true} cancelText={cancelText} confirmLoading={confirmLoading} > <SimpleForm {...{props: anotherProps }} wrapperComponentRef={(formRef: any) => this.formRef = formRef } /> </a-modal>
使用ts+ant-design-vue写的, SimpleForm是我封装动态form组件 但是formRef输出是undefined,
还有这个类型是什么?又向react中的createRef<>,这样的Api吗?
注意:不是用 https://vuecomponent.github.io/issue-helper/http://ant-design-vue.gitee.io/issue-helper/ 创建的 issue 会被立即关闭。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions