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.
13 lines
421 B
13 lines
421 B
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
|
|
}
|
|
}
|
|
|