Skip to content

Commit

Permalink
Merge pull request #849 from Davont/develop
Browse files Browse the repository at this point in the history
docs(Dialog): 更新 dialog “插件函数式调用”的描述
  • Loading branch information
honkinglin authored May 9, 2022
2 parents c4931bd + a17f2f7 commit 7a8628a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions examples/dialog/dialog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
:: BASE_DOC ::

### 插件函数式调用
插件调用方式一:`this.$dialog(options)`

插件调用方式二:`this.$dialog.confirm(options)`

插件调用方式三:`this.$dialog.alert(options)`

<br />

函数调用方式一:`DialogPlugin(options)`

函数调用方式二:`DialogPlugin.confirm(options)`

函数调用方式三:`DialogPlugin.alert(options)`

<br />

组件实例:`DialogInstance = this.$dialog(options)` 或者 组件实例:`DialogInstance = DialogPlugin(options)`

组件实例方法-销毁弹框:`DialogInstance.destroy()`

组件实例方法-隐藏弹框:`DialogInstance.hide()`

组件实例方法-显示弹窗:`DialogInstance.show()`

组件实例方法-更新弹框:`DialogInstance.update()`

{{ plugin }}

## API
### Dialog Props

Expand Down

0 comments on commit 7a8628a

Please sign in to comment.