Skip to content

Commit

Permalink
docs(dialog): add comment for usage precautions (#3126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyan-u authored and uyarn committed Apr 11, 2024
1 parent 2ab2774 commit 97202b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/dialog/_example-composition/plugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const handleDN = () => {
},
});
};
// 每一次执行方法,都会创建一个新的弹框,注意使用方法,避免多次创建重复内容
const onConfirm = () => {
const confirmDia = DialogPlugin.confirm({
header: 'Dialog-Confirm-Plugin',
Expand Down
1 change: 1 addition & 0 deletions src/dialog/_example/plugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default {
},
});
},
// 每一次执行方法,都会创建一个新的弹框,注意使用方法,避免多次创建重复内容
onConfirm() {
const confirmDia = this.$dialog.confirm({
header: 'Dialog-Confirm-Plugin',
Expand Down

0 comments on commit 97202b6

Please sign in to comment.