Skip to content
New issue

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

2.8.4 版本无 query 等方法的 ts 类型提示 #177

Open
sand1018 opened this issue Dec 17, 2024 · 3 comments
Open

2.8.4 版本无 query 等方法的 ts 类型提示 #177

sand1018 opened this issue Dec 17, 2024 · 3 comments

Comments

@sand1018
Copy link

image image image
@SmileZXLee
Copy link
Owner

const queryList = (pageNo: number, pageSize: number) => {
  paging.value?.complete();
}

直接这么写试试。我这边测试了是正常的
image

@sand1018
Copy link
Author

const queryList = (pageNo: number, pageSize: number) => {
  paging.value?.complete();
}

直接这么写试试。我这边测试了是正常的 image

还是不行, 感觉 ZPagingProps 这个接口可以导出的,方便在组件中定义方法

@SmileZXLee
Copy link
Owner

你重启下vscode或者电脑,或者创建一个新的项目试试,这似乎是vscode的bug,我重新创建了一个空白项目引入z-paging-2.8.4,也是正常的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants