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

搜索表单能自定义除了查询和重置之外的按钮吗 #181

Open
827880157 opened this issue Apr 28, 2024 · 1 comment
Open

搜索表单能自定义除了查询和重置之外的按钮吗 #181

827880157 opened this issue Apr 28, 2024 · 1 comment

Comments

@827880157
Copy link

搜索表单能自定义除了查询和重置之外的按钮吗

@mrstierchen
Copy link

看了源码里面是支持定义的

<template>
  <DynamicTable
    row-key="id"
    header-title="角色管理"
    title-tooltip="超级管理员默认拥有所有资源访问权限且不支持修改"
    :data-request="Api.systemRole.roleList"
    :columns="columns"
    bordered
    size="small"
  >
    <template #form-resetBefore> <a-button>resetBefore</a-button> </template>
    <template #form-submitBefore> <a-button>submitBefore</a-button> </template>
    <template #form-advanceBefore> <a-button>advanceBefore</a-button> </template>
    <template #toolbar>
      <a-button type="primary" :disabled="!$auth('system:role:create')" @click="openMenuModal({})">
        新增
      </a-button>
    </template>
  </DynamicTable>
</template>
image

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