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

rowHandle dropdown 如果没有子键是否直接隐藏? #11

Closed
levin950825 opened this issue Jul 21, 2021 · 0 comments
Closed

rowHandle dropdown 如果没有子键是否直接隐藏? #11

levin950825 opened this issue Jul 21, 2021 · 0 comments

Comments

@levin950825
Copy link

 rowHandle: {
        show: true,
        width: 170,
        dropdown: {
          // 操作列折叠
          atLeast: 3,
          more: {
            size: 'small',
            text: '',
            icon: 'gg:more-o',
            // show:
            //   hasPermission('role:management:distribution_user') ||
            //   hasPermission('role:management:distribution_res'),
          },
        },
        buttons: {
          distribution: {
            text: '分配用户',
            size: 'small',
            order: 4,
            show: hasPermission('role:management:distribution_user'),
            async click(context) {
              await distribution.userModal(context.record.id);
            },
          },
          resource: {
            text: '分配权限',
            size: 'small',
            order: 5,
            show: hasPermission('role:management:distribution_res'),
            async click(context) {
              await distribution.resourceModal(context.record.id);
            },
          },
        },
      },
greper added a commit that referenced this issue Aug 4, 2021
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

1 participant