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>

View file

@ -68,7 +68,7 @@
&-body {
padding: 16px;
font-size: 12px;
font-size: @font-size-base;
line-height: 1.5;
}
@ -140,7 +140,7 @@
}
.@{confirm-prefix-cls} {
padding: 0 4px;
padding: 6px 16px 8px;
&-head {
padding: 0 12px 0 0;
&-icon {
@ -173,7 +173,7 @@
margin-left: 12px;
font-size: @font-size-large;
color: @title-color;
font-weight: 700;
font-weight: 500;
}
}
@ -198,4 +198,4 @@
margin-bottom: 0;
}
}
}
}

View file

@ -12,9 +12,9 @@
width: 100%;
height: 20px;
line-height: 20px;
font-size: @font-size-base;
font-size: @font-size-large;
color: @title-color;
font-weight: bold;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@ -35,4 +35,4 @@
.@{icon-prefix-cls}-ios-close {
.close-base(@top, @icon-font-size);
}
}
}