重点在于
```
extend: 'data-area= \'["1000px", "800px"]\'',
```
以下是完整代码
```
{
field: 'buttons',
title: __('已完成'),
table: table,
events: Table.api.events.operate,
operate: false,
buttons: [{
name: 'accomplishNum',
text: function(row){
console.log(row.accomplishNum)
return row.accomplishNum;
},
title: __('已完成'),
extend: 'data-area= '["1000px", "800px"]'',
classname: 'btn btn-xs btn-info btn-dialog',
url: 'sideline/applydetails?apply_status=3',
callback: function (data) {
Layer.alert("接收到回传数据:" + JSON.stringify(data), { title: "回传数据" });
},
visible: function (row) {
//返回true时按钮显示,返回false隐藏
return true;
}
},
],
formatter: Table.api.formatter.buttons
},
```