export default {
type: 'page',
title: '轮播图',
data: {
carousel0: [
__uri('../static/photo/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg'),
__uri('../static/photo/da6376bf988c.jpg'),
__uri('../static/photo/3893101144.jpg')
],
carousel1: [
{
html:
'
carousel data in form
'
},
{
image: __uri(
'../static/photo/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg'
)
},
{
image: __uri('../static/photo/3893101144.jpg')
}
]
},
body: [
{
type: 'grid',
columns: [
{
type: 'panel',
title: '直接页面配置',
body: {
type: 'carousel',
controlsTheme: 'light',
height: '300',
options: [
{
image: __uri('../static/photo/da6376bf988c.jpg')
},
{
html:
'carousel data
'
},
{
image: __uri('../static/photo/3893101144.jpg')
}
]
}
},
{
type: 'panel',
title: '使用itemSchema配置',
body: {
type: 'carousel',
name: 'carousel0',
controlsTheme: 'dark',
height: '300',
itemSchema: {
type: 'tpl',
tpl:
''
}
}
}
]
},
{
type: 'grid',
columns: [
{
type: 'form',
title: '表单内展示',
sm: 6,
body: [
{
type: 'carousel',
controlsTheme: 'dark',
name: 'carousel1',
label: 'carousel',
animation: 'slide',
height: '300'
}
]
}
]
}
]
};