update Modal style

This commit is contained in:
梁灏 2019-09-16 15:55:18 +08:00
parent b3f6b6c8fc
commit 4507c9a6a2
4 changed files with 10 additions and 12 deletions

View file

@ -31,8 +31,7 @@ Modal.newInstance = properties => {
if (this.showCancel) {
footerVNodes.push(h(Button, {
props: {
type: 'text',
size: 'large'
type: 'text'
},
on: {
click: this.cancel
@ -42,7 +41,6 @@ Modal.newInstance = properties => {
footerVNodes.push(h(Button, {
props: {
type: 'primary',
size: 'large',
loading: this.buttonLoading
},
on: {

View file

@ -19,8 +19,8 @@
<div :class="[prefixCls + '-body']"><slot></slot></div>
<div :class="[prefixCls + '-footer']" v-if="!footerHide">
<slot name="footer">
<i-button type="text" size="large" @click.native="cancel">{{ localeCancelText }}</i-button>
<i-button type="primary" size="large" :loading="buttonLoading" @click.native="ok">{{ localeOkText }}</i-button>
<i-button type="text" @click.native="cancel">{{ localeCancelText }}</i-button>
<i-button type="primary" :loading="buttonLoading" @click.native="ok">{{ localeOkText }}</i-button>
</slot>
</div>
</div>