Skip to content

<script setup>supports defineExpose(), which cannot be exported correctly #13077

@bbhxwl

Description

@bbhxwl

Version

2.7.14

Reproduction link

http://b/

Steps to reproduce

The following code may not find a method, but it can be used normally in Vue3.

v1.vue
let searchList=()=>{
//tb.value.btnSearchAdlData(data);
}
defineExpose({
searchList
})

v2.vue
const tbGateMagnet = ref(null);
tbGateMagnet.value.searchList();

What is expected?

The following code may not find a method, but it can be used normally in Vue3.

What is actually happening?

The following code may not find a method, but it can be used normally in Vue3.


The following code may not find a method, but it can be used normally in Vue3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions