amis/examples/components/Audio.jsx

41 lines
1023 B
React
Raw Normal View History

2019-05-06 14:08:33 +08:00
export default {
2019-11-07 10:41:14 +08:00
title: '音频播放器',
body: [
{
type: 'audio',
autoPlay: false,
rates: [1.0, 1.5, 2.0],
src: __uri('../static/audio/chicane-poppiholla-original-radio-edit.mp3')
2019-11-07 10:41:14 +08:00
},
{
type: 'form',
title: '',
actions: [],
className: 'b v-middle inline w-lg h-xs',
body: [
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: __uri(
'../static/photo/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg'
)
2019-11-07 10:41:14 +08:00
}
2019-05-16 11:04:55 +08:00
},
{
2019-11-07 10:41:14 +08:00
type: 'audio',
className: 'v-middle no-border',
src: __uri(
'../static/audio/chicane-poppiholla-original-radio-edit.mp3'
),
2019-11-07 10:41:14 +08:00
controls: ['play']
2019-05-06 14:08:33 +08:00
}
2019-11-07 10:41:14 +08:00
]
}
]
};