Skip to content

Commit

Permalink
docs(Dialog): async demo and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
liaohainan committed Nov 26, 2022
1 parent 4fc99a7 commit be94644
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/quark/src/dialog/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<quark-dialog
:open="open3"
:title="translate('dialogTitle')"
:content="translate('content')"
:content="translate('text')"
@close="open3 = false"
@confirm="open3 = false"
@cancel="open3 = false"
Expand All @@ -66,7 +66,7 @@
btnvertical
:open="open6"
:title="translate('dialogTitle')"
:content="translate('content')"
:content="translate('text')"
@close="open6 = false"
@confirm="open6 = false"
@cancel="open6 = false"
Expand Down
1 change: 1 addition & 0 deletions packages/quark/src/dialog/doc-react.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default () => {
<Dialog
open={open}
title="Title"
content="This is a content"
onConfirm={handleConfirm}
onClose={handleClose}
content="This is a content"
Expand Down
1 change: 1 addition & 0 deletions packages/quark/src/dialog/doc-react.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default () => {
<Dialog
open={open}
title="基础弹窗"
content="生命远不止连轴转和忙到极限,人类的体验远比这辽阔、丰富得多。"
onConfirm={handleConfirm}
onClose={handleClose}
content="代码是写出来给人看的,附带能在机器上运行"
Expand Down
1 change: 1 addition & 0 deletions packages/quark/src/dialog/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ By setting `type="confirm"` to prompt popup
<quark-dialog
type="confirm"
title="title"
content="This is a content"
:open="open"
@confirm="open = false" // Confirm button callback function
@close="open = false" // Close button callback function
Expand Down
1 change: 1 addition & 0 deletions packages/quark/src/dialog/doc.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import "quarkd/lib/dialog";
<quark-dialog
type="confirm"
title="标题"
content="生命远不止连轴转和忙到极限,人类的体验远比这辽阔、丰富得多。"
:open="open"
@confirm="open = false" // 确认按钮回调函数
@close="open = false" // 关闭按钮回调函数
Expand Down

0 comments on commit be94644

Please sign in to comment.