workdesktop提供多種消息服務:alert,message,notice。
你可以通過兩種方式給頁面發送消息提醒:
* 在vue實例里使用`this.$message`,`this.$alert`,`this.$notice`獲取相應的消息對象:
```
this.$message({ showClose: true, message: '這是一條消息提示' });
Vue.prototype.$notify.info({ title: '消息', message: '這是一條消息的提示消息' });
```
* 在可獲取index.html頁面引用的頁面里使用`top.$message`,`top.$alert`,`top.$notice`來使用相應的消息對象:
```
top.$message({ showClose: true, message: '警告哦,這是一條警告消息', type: 'warning' });
```
詳細參數內容可查看elementui的message/alert/notice消息提示模塊。
- 序言
- 安裝
- 組件查詢
- 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說明