網格刪除按鈕。該按鈕一般放置在網格的按鈕組里。該組件可以在其他場景里使用,但是不保證能完全達到預期。
## 屬性
| 參數 | 說明 | 類型 | 可選值 | 默認值
| --- | --- | --- | --- | ---
| api | 數據請求api,如果沒有設置其他場景的api,將使用這個api | string | |
| api-method | 數據請求api的請求方法 | string | delete,get,post,put | delete
| api-param | 數據請求api的參數 | object | |
| with-confirm | 是否開啟確認框 | boolean | |
| confirm-message | 請求框的內容文本 | string | | 該操作會刪除信息,是否確認要這樣做?
| success-tip | 請求返回成功結果之后采用什么方式提醒 | string | none,message,alert,notify | message
| fail-tip | 請求返回失敗結果之后采用什么方式提醒 | string | none,message,alert,notify | alert
| size | 按鈕大小 | string | | mini
| icon | 按鈕的icon | string | | el-icon-delete
## 方法
| 參數 | 說明 | 參數
| --- | --- | ---
| requestApi | 手動請求api | 無
## 事件
| 事件 | 說明 | 參數
| --- | --- | ---
| delete-before | api請求發送之前事件 | deleteParam,cancleFn:取消后續操作方法,在事件里調用此方法,將會取消后續請求。
| deleted | 刪除完成事件,如果delete-before里調用了cancleFn,則不會拋出此事件 |
## 插槽
| 插槽名 | 說明
| --- | ---
- 序言
- 安裝
- 組件查詢
- buttons
- WdApiButton
- WdDrawerButton
- WdRefreshButton
- WdRouteButton
- WdConfirmButton
- datagrid
- WdDatagrid
- WdGridDeleteButton
- WdGridEnableButton
- editgrid
- WdEditgrid
- WdEditgridCell
- element
- WdCard
- WdCollapse
- WdDrawerIframe
- WdIframe
- WdLabel
- WdSplitLabel
- WdDetail
- WdToolBar
- WdRepeater
- WdApiManager
- form
- WdDataForm
- WdSelect
- WdRadioList
- WdCheckboxList
- WdUploadImage
- search
- WdSearchCheckbox
- WdSearchDatepick
- WdSearchForm
- WdSearchInput
- WdSearchRadio
- WdSearchSelect
- tree
- WdTree
- 內置服務
- ajax服務
- 消息服務
- 框架方法
- tab操作
- 其他
- demo說明