You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< el -dialog
:visible ="visible"
:close-on-click-modal ="false"
class = "xr-upgrade-dialog"
title = ""
width = "700px"
append -to -body
@close ="closeView" >
< el -button class = "close-button" icon = "el-icon-close" @click ="closeView" / >
< flexbox class = "upgrade-header" justify = "center" align = "center" orient = "vertical" >
< span class = "upgrade-header__title" > 升级通知 < / span >
< span class = "upgrade-header__version" > 版本 { { WKConfig . version } } < / span >
< / flexbox >
< div class = "content" >
< div class = "content__title" > 升级内容 : < / div >
< div class = "content__content" > { { message } } < / div >
< / div >
< span slot = "footer" class = "dialog-footer" >
< el -button type = "primary" @click ="closeView" > 我 知 道 了 < / el -button >
< / span >
< / e l - d i a l o g >
< / template >
< script >
import { readUpdateNoticeAPI } from '@/api/common'
export default {
name : 'XrUpgradeDialog' ,
components : { } ,
props : {
visible : Boolean
} ,
data ( ) {
return {
message : `
修复:
1、修复其他已知bug。 `
}
} ,
computed : { } ,
watch : { } ,
mounted ( ) { } ,
beforeDestroy ( ) { } ,
methods : {
closeView ( ) {
readUpdateNoticeAPI ( ) . then ( res => {
} ) . catch ( ( ) => { } )
this . $emit ( 'update:visible' , false )
}
}
}
< / script >
< style lang = "scss" >
. xr - upgrade - dialog {
. el - dialog _ _header {
display : none ;
}
. el - dialog _ _body {
position : relative ;
padding : 0 0 20 px ;
height : 500 px ;
}
. upgrade - header {
background - image : url ( '~@/assets/img/upgrade_bar.png' ) ;
background - repeat : no - repeat ;
background - size : cover ;
height : 131 px ;
color : white ;
& _ _title {
display : inline - block ;
font - size : 25 px ;
font - weight : bold ;
}
& _ _version {
display : inline - block ;
margin - top : 15 px ;
}
}
. content {
padding : 20 px 30 px ;
font - size : 14 px ;
position : relative ;
height : 370 px ;
overflow - y : auto ;
& _ _title {
font - weight : bold ;
}
& _ _content {
margin - top : 15 px ;
white - space : pre - wrap ;
word - wrap : break - word ;
word - break : break - all ;
line - height : 1.5 ;
}
}
. close - button {
position : absolute ;
top : 5 px ;
right : 0 ;
border : none ;
outline : none ;
background : transparent ;
font - size : 19 px ;
font - weight : bold ;
. el - icon - close {
color : white ;
}
}
}
< / style >