const uploadModal = ref()
数据中return
return {
t,
value,
onSearch,
...toRefs(state),
columns: getBasicColumns(),
handleTableChange,
createActions,
rowSelection,
handleDelete,
openDetail,
registerModal,
deleteMany,
uploadModal,
handleAdd,
fetGetList,
};
组件绑定
<UploadModal
ref="uploadModal"
@isGetList="fetGetList(true)"
></UploadModal>
方法中调用
function handleAdd() {
console.log(uploadModal);
uploadModal.value.show();
}