查詢表單。自動請求查詢api,并接收查詢值。
## 屬性
| 參數 | 說明 | 類型 | 可選值 | 默認值
| --- | --- | --- | --- | ---
| data | 搜索后請求響應,支持sync修飾 | array | |
| total | 搜索后請求響應數據總量,支持sync修飾,針對datatable時使用 | Number | |
| api | 點擊后請求的api地址 | string | 必填 |
| api-method | 請求方法 | string | get,post,put,delete | post
| api-param | 請求參數 | object | |
| size | 表單內元素的大小 | string | | small
| search-button-text | 查詢提交按鈕顯示文本 | string | | 查詢
| reset-button-text | 清空按鈕顯示文本 | string | | 清空搜索
| prefix | 發送表單參數的前綴 | string | | search_
| 其他 | 支持所有`el-form`屬性。
## 事件
| 事件 | 說明 | 參數
| --- | --- | ---
| search-before | 提交搜索表單前事件 | cancleFn:取消后續操作方法,調用此方法將取消請求api,并取消后續事件的拋出;apiParam:發送給api的請求參數。
| search-after | 提交搜索表單后事件 | response:請求響應;formData:搜索表單數據。
| reset | 重置事件 |
| 其他 | 支持所有`el-form`事件。
## 插槽
| 插槽名 | 說明
| --- | ---
| actionBar | 操作欄內容,可插入按鈕,文本等。
- 序言
- 安裝
- 組件查詢
- 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說明