Element-UI 表格操作列 - 同意/拒绝按钮
This code snippet defines a column for an Element-UI table component, labeled '操作' ('action' or 'operation' in English). It includes two buttons: '同意' ('agree' in English) and '拒绝' ('deny' or 'refuse' in English). The buttons are displayed conditionally based on the value of the 'pd' variable.
The 'handleEdit' method is called with the row data when the '同意' button is clicked, and the 'jujue' method is called with the row data when the '拒绝' button is clicked. Both buttons have a 'mini' size and use the 'plain' style.
原文地址: https://www.cveoy.top/t/topic/jr3z 著作权归作者所有。请勿转载和采集!