This commit is contained in:
syuilo
2018-06-15 07:56:56 +09:00
parent d90f75425f
commit 0ac9120064
14 changed files with 80 additions and 77 deletions

View File

@ -1,6 +1,6 @@
<template>
<div class="ui-button">
<button :type="type">
<div class="ui-button" :class="[styl]">
<button :type="type" @click="$emit('click')">
<slot></slot>
</button>
</div>
@ -20,7 +20,9 @@ export default Vue.extend({
styl: 'fill'
};
},
inject: ['isCardChild'],
inject: {
isCardChild: { default: false }
},
created() {
if (this.isCardChild) {
this.styl = 'line';