@@ -311,7 +311,32 @@
pageSize: 10,
pageNum: 1,
},
- toolbarConfig: {},
+ toolbarConfig: {
+ enable: true,
+ displayToolbar: DISPLAY_STATE.VISIBLE,
+ leftButtons: [{
+ code: 'btn1',
+ title: '左侧按钮',
+ props: {
+ type: 'info',
+ disabled: false,
+ onClick(event) {
+ message.success('ok');
+ },
+ }],
+ rightButtons: [{
+ title: '右侧按钮',
+ }]
// 每次查询接口之前,都会调用这个回调函数
tableSearchBeforeBiz() {
const searchParams = getValue('searchConfig.data');