amis2/examples/components/Audio.jsx

41 lines
1.1 KiB
React
Raw Normal View History

2019-05-06 14:08:33 +08:00
export default {
2019-11-07 10:41:14 +08:00
$schema: 'https://houtai.baidu.com/v2/schemas/page.json#',
title: '音频播放器',
body: [
{
type: 'audio',
autoPlay: false,
rates: [1.0, 1.5, 2.0],
src:
'https://amis.bj.bcebos.com/amis/2019-7/1562137295708/chicane-poppiholla-original-radio-edit%20(1).mp3'
},
{
type: 'form',
title: '',
actions: [],
className: 'b v-middle inline w-lg h-xs',
controls: [
2019-05-06 14:08:33 +08:00
{
2019-11-07 10:41:14 +08:00
type: 'card',
className: 'v-middle w inline no-border',
header: {
title: '歌曲名称',
subTitle: '专辑名称',
description: 'description',
avatarClassName: 'pull-left thumb-md avatar m-r no-border',
avatar:
'http://hiphotos.baidu.com/fex/%70%69%63/item/c9fcc3cec3fdfc03ccabb38edd3f8794a4c22630.jpg'
}
2019-05-16 11:04:55 +08:00
},
{
2019-11-07 10:41:14 +08:00
type: 'audio',
className: 'v-middle no-border',
src:
'https://amis.bj.bcebos.com/amis/2019-7/1562137295708/chicane-poppiholla-original-radio-edit%20(1).mp3',
controls: ['play']
2019-05-06 14:08:33 +08:00
}
2019-11-07 10:41:14 +08:00
]
}
]
};