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.
14 lines
421 B
14 lines
421 B
4 years ago
|
export default {
|
||
|
options(h, conf, key) {
|
||
|
const list = []
|
||
|
let style = 'height: 100%;'
|
||
|
conf.__slot__.options.forEach(item => {
|
||
|
list.push(<el-carousel-item style={'text-align: center;'}>
|
||
|
<span>{item.label}</span>
|
||
|
<el-image fit="contain" style={style} src={item.image}></el-image>
|
||
|
</el-carousel-item>)
|
||
|
})
|
||
|
return list
|
||
|
}
|
||
|
}
|