-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dialog): default button support (#56)
* feat(dialog): default button support * test(dialog): fixed for cases without primary button * test(dialog): covered default button focus behavior * docs(dialog): default button examples
- Loading branch information
Showing
7 changed files
with
169 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<template> | ||
<div class="playground"> | ||
<vnt-button :click="showDialog">Open Dialog</vnt-button> | ||
|
||
<div class="result"><br />opened: {{ opened }}<br />result: {{ result }}</div> | ||
|
||
<vnt-dialog :opened.sync="opened" v-on:result="onresult" | ||
title="Notice" | ||
content="This is a dialog with a default action button."> | ||
<vnt-dialog-btn-primary result="ok" default>OK</vnt-dialog-btn-primary> | ||
</vnt-dialog> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import DialogMixin from './dialog.mixin'; | ||
export default { | ||
name: 'DialogPrimaryDefault', | ||
mixins: [ | ||
DialogMixin | ||
] | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters