update Modal style
This commit is contained in:
parent
b3f6b6c8fc
commit
4507c9a6a2
4 changed files with 10 additions and 12 deletions
|
@ -31,8 +31,7 @@ Modal.newInstance = properties => {
|
||||||
if (this.showCancel) {
|
if (this.showCancel) {
|
||||||
footerVNodes.push(h(Button, {
|
footerVNodes.push(h(Button, {
|
||||||
props: {
|
props: {
|
||||||
type: 'text',
|
type: 'text'
|
||||||
size: 'large'
|
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: this.cancel
|
click: this.cancel
|
||||||
|
@ -42,7 +41,6 @@ Modal.newInstance = properties => {
|
||||||
footerVNodes.push(h(Button, {
|
footerVNodes.push(h(Button, {
|
||||||
props: {
|
props: {
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
size: 'large',
|
|
||||||
loading: this.buttonLoading
|
loading: this.buttonLoading
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
<div :class="[prefixCls + '-body']"><slot></slot></div>
|
<div :class="[prefixCls + '-body']"><slot></slot></div>
|
||||||
<div :class="[prefixCls + '-footer']" v-if="!footerHide">
|
<div :class="[prefixCls + '-footer']" v-if="!footerHide">
|
||||||
<slot name="footer">
|
<slot name="footer">
|
||||||
<i-button type="text" size="large" @click.native="cancel">{{ localeCancelText }}</i-button>
|
<i-button type="text" @click.native="cancel">{{ localeCancelText }}</i-button>
|
||||||
<i-button type="primary" size="large" :loading="buttonLoading" @click.native="ok">{{ localeOkText }}</i-button>
|
<i-button type="primary" :loading="buttonLoading" @click.native="ok">{{ localeOkText }}</i-button>
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
|
|
||||||
&-body {
|
&-body {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
font-size: 12px;
|
font-size: @font-size-base;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{confirm-prefix-cls} {
|
.@{confirm-prefix-cls} {
|
||||||
padding: 0 4px;
|
padding: 6px 16px 8px;
|
||||||
&-head {
|
&-head {
|
||||||
padding: 0 12px 0 0;
|
padding: 0 12px 0 0;
|
||||||
&-icon {
|
&-icon {
|
||||||
|
@ -173,7 +173,7 @@
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
font-size: @font-size-large;
|
font-size: @font-size-large;
|
||||||
color: @title-color;
|
color: @title-color;
|
||||||
font-weight: 700;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -198,4 +198,4 @@
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
font-size: @font-size-base;
|
font-size: @font-size-large;
|
||||||
color: @title-color;
|
color: @title-color;
|
||||||
font-weight: bold;
|
font-weight: 500;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -35,4 +35,4 @@
|
||||||
.@{icon-prefix-cls}-ios-close {
|
.@{icon-prefix-cls}-ios-close {
|
||||||
.close-base(@top, @icon-font-size);
|
.close-base(@top, @icon-font-size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue