# 查询界面按钮组 Dropdown

An image

onInit() {
  //查询界面按钮组,2023.04.10更新ViewGrid.vue文件后才能使用
  //第二个按钮后面添加按钮组
  this.buttons.splice(2, 1, {
    name: '按钮组',
    type: 'primary',
    plain: true,
    data: [
      {
        name: '按钮一',
        icon: 'el-icon-plus',
        onClick: () => {
          this.$message.info('按钮一');
        }
      },
      {
        name: '按钮二',
        icon: 'el-icon-zoom-out',
        onClick: () => {
          this.$message.info('按钮二');
        }
      }
    ]
  });
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25