update $Modal style

This commit is contained in:
梁灏 2018-06-27 09:40:31 +08:00
parent 9edded4931
commit f4273043c2
3 changed files with 70 additions and 73 deletions

View file

@ -63,13 +63,6 @@ Modal.newInstance = properties => {
class: `${prefixCls}-body`
}
}, [
h('div', {
class: this.iconTypeCls
}, [
h('i', {
class: this.iconNameCls
})
]),
h('div', {
domProps: {
innerHTML: this.body
@ -103,6 +96,13 @@ Modal.newInstance = properties => {
class: `${prefixCls}-head`
}
}, [
h('div', {
class: this.iconTypeCls
}, [
h('i', {
class: this.iconNameCls
})
]),
h('div', {
attrs: {
class: `${prefixCls}-head-title`
@ -124,8 +124,8 @@ Modal.newInstance = properties => {
computed: {
iconTypeCls () {
return [
`${prefixCls}-body-icon`,
`${prefixCls}-body-icon-${this.iconType}`
`${prefixCls}-head-icon`,
`${prefixCls}-head-icon-${this.iconType}`
];
},
iconNameCls () {