Skip to content

[Bug Report] 使用useExpose导致组件引用时缺少方法类型 #13727

@lvzhenbo

Description

@lvzhenbo

重现链接

https://codesandbox.io/p/devbox/vant-4-issue-template-forked-2g8g5y?workspaceId=ws_NDL4ScEMFjtuxDsi62kRWz&embed=1

Vant 版本

4.9.22

描述一下你遇到的问题。

类型“{ $: ComponentInternalInstance; $data: {}; $props: Partial<{ disabled: boolean; readonly: boolean; colon: boolean; showError: boolean; scrollToError: boolean; validateFirst: boolean; submitOnEnter: boolean; showErrorMessage: boolean; validateTrigger: FieldValidateTrigger | FieldValidateTrigger[]; }> & Omit<...>; ......”上不存在属性“validate”。

重现步骤

使用useTemplateRef

设备/浏览器

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions