You cannot 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 >
< div class = "bs-design-wrap bs-picture" >
< div class = "content-box" >
< el -image
: src = "config.customize.url || noImageUrl"
fit = "fill"
: style = "{
width: '100%',
height: '100%',
opacity: config.customize.opacity,
borderRadius: config.customize.radius + 'px'
}"
draggable = "false"
>
< div
slot = "placeholder"
class = "image-slot"
>
加载中 · · ·
< / div >
< / e l - i m a g e >
<!-- < img
: src = "config.customize.url || noImageUrl"
: style = "{
width: '100%',
height: '100%',
opacity: config.customize.opacity / 100,
borderRadius: config.customize.radius + 'px'
}"
draggable = "false"
> -- >
< / div >
< / div >
< / template >
< script >
export default {
name : 'PictureChart' ,
components : { } ,
props : {
config : {
type : Object ,
default : ( ) => ( { } )
}
} ,
data ( ) {
return {
noImageUrl : require ( 'packages/BasicComponents/Picture/images/noImage.png' )
}
} ,
computed : { } ,
watch : { } ,
mounted ( ) { } ,
methods : {
// 由于静态组件没有混入公共函数, 所以需要定义一个changeStyle方法, 以免报错
changeStyle ( ) {
}
}
}
< / script >
< style lang = "scss" scoped >
. bs - design - wrap {
width : 100 % ;
background - color : rgba ( 0 , 0 , 0 , 0 ) ;
. content - box {
width : 100 % ;
height : 100 % ;
}
}
< / style >