amis2/examples/components/Tasks.jsx

37 lines
704 B
React
Raw Normal View History

2019-04-30 11:11:25 +08:00
export default {
2019-11-07 10:41:14 +08:00
title: '异步任务',
body: [
'<p class="text-danger"></p>',
{
type: 'tasks',
name: 'tasks',
items: [
2019-04-30 11:11:25 +08:00
{
2019-11-07 10:41:14 +08:00
label: 'hive 任务',
key: 'hive',
status: 4,
remark:
'查看详情<a target="_blank" href="http://www.baidu.com">日志</a>。'
},
{
label: '小流量',
key: 'partial',
status: 4
2019-04-30 11:11:25 +08:00
},
{
2019-11-07 10:41:14 +08:00
label: '全量',
key: 'full',
status: 4
2019-04-30 11:11:25 +08:00
}
2019-11-07 10:41:14 +08:00
]
},
{
type: 'tasks',
name: 'tasks',
className: 'b-a bg-white table-responsive m-t',
checkApi: '/api/mock2/task'
}
]
};