mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
65ac422ed6
* 补充容错 * fix: form 中 name 关联顶层数据初始化失效 * 更新 examples * 文档调整 * 删除多余的文档, 调整 schema * schema 调整 * schema 调整 * control 类型容器 control 改成 body * 修复一个选项加载的bug * form 注册直接用 type
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
export default {
|
|
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',
|
|
body: [
|
|
{
|
|
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'
|
|
}
|
|
},
|
|
{
|
|
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']
|
|
}
|
|
]
|
|
}
|
|
]
|
|
};
|