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
<b-message :title="title" :closable="false"> | |
<b-tag type="is-warning" v-show="message">{{message}}</b-tag> | |
<slot></slot> | |
<hr/> | |
<button class="button is-primary is-pulled-right" @click="$emit('save')" >Save</button> | |
<button class="button is-secondary " @click="onClearClick" >Clear</button> | |
</b-message> |
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
<template> | |
<div> | |
Hello World | |
<form-box title="Hello Form Box" message="A help message" v-on:save="onSave" @clear="onClear"></form-box> | |
</div> | |
</template> | |
<script> | |
import FormBox from './FormBox.vue' |
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
<template> | |
<div> | |
<b-message :title="title" :closable="false"> | |
<b-tag type="is-warning" v-show="message">{{message}}</b-tag> | |
<hr/> | |
<button class="button is-primary is-pulled-right" @click="$emit('save')" >Save</button> | |
<button class="button is-secondary " @click="onClearClick" >Clear</button> | |
</b-message> | |
</div> |
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
<template> | |
<div> | |
<b-message :title="title" :closable="false"> | |
<b-tag type="is-warning" v-show="message">{{message}}</b-tag> | |
</b-message> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'FormBox', |
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
<template> | |
<div> | |
<b-message :title="title"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, | |
elit sapien laoreet elit | |
</b-message> | |
</div> | |
</template> | |
<script> | |
export default { |
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
<template> | |
<div> | |
<b-message title="Default"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, | |
elit sapien laoreet elit | |
</b-message> | |
</div> | |
</template> | |
<script> | |
export default { |
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
<template> | |
<div> | |
Hello World | |
<form-box></form-box> | |
</div> | |
</template> | |
<script> | |
import FormBox from './FormBox.vue' |
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
<template> | |
<div> | |
FormBox | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'FormBox', | |
data () { | |
return { |
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
<template> | |
<section> | |
Hello World | |
</section> | |
</template> | |
<script> | |
export default { | |
name: 'HelloWorld', | |
data () { |
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
<template> | |
<section id="app" class="section"> | |
<router-view/> | |
</section> | |
</template> | |
<script> | |
export default { | |
name: 'App' | |
} |