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
table内的scope,如果不想用any,应该怎么妥善的处理呢? #378
Comments
针对Issue #378: 为了提高类型安全性,建议为 interface TableRow {
id: string;
name: string;
// 其他可能的属性...
}
// 在模板中使用
<template v-slot:default="scope: { row: TableRow }">
<!-- 使用 scope.row,现在它有了明确的类型 -->
</template> 这样不仅避免了 [注意] 该Comment由AI生成,仅供参考。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vue-manage-system/src/views/table.vue
Line 149 in f70c937
The text was updated successfully, but these errors were encountered: