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

Bug: Grid 组件,无法通过 attr 方式传递属性 #5738

Open
5 tasks done
zuihou opened this issue Mar 18, 2025 · 0 comments
Open
5 tasks done

Bug: Grid 组件,无法通过 attr 方式传递属性 #5738

zuihou opened this issue Mar 18, 2025 · 0 comments

Comments

@zuihou
Copy link

zuihou commented Mar 18, 2025

Version

Vben Admin V5

Describe the bug?

vxe-table的 Grid 组件,可以直接将edit-rules 或data等属性,传递给grid组件,但使用vben5封装的useVbenVxeGrid 方法后,无法通过下方的代码,将data或者edit-rules等属性传递给grid

<template>
  <Grid :edit-rules="editRules" :data="data">
    <template #action="{ row }">
      <Button danger @click="handleDelete(row)">删除</Button>
    </template>
  </Grid>
</template>

Reproduction

System Info

mac

Relevant log output

-

Validations

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

No branches or pull requests

1 participant