Skip to content

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

@zuihou

Description

@zuihou

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions