mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-10 08:00:20 +08:00
65ac422ed6
* 补充容错 * fix: form 中 name 关联顶层数据初始化失效 * 更新 examples * 文档调整 * 删除多余的文档, 调整 schema * schema 调整 * schema 调整 * control 类型容器 control 改成 body * 修复一个选项加载的bug * form 注册直接用 type
83 lines
1.7 KiB
JavaScript
83 lines
1.7 KiB
JavaScript
export default {
|
|
title: '其他类型演示',
|
|
body: [
|
|
{
|
|
type: 'form',
|
|
api: '/api/mock2/saveForm?waitSeconds=2',
|
|
title: 'Hint demo',
|
|
mode: 'horizontal',
|
|
horizontal: {
|
|
leftFixed: true
|
|
},
|
|
body: [
|
|
{
|
|
type: 'input-group',
|
|
size: 'md',
|
|
label: 'Icon 组合',
|
|
body: [
|
|
{
|
|
type: 'icon',
|
|
addOnclassName: 'no-bg',
|
|
className: 'text-sm',
|
|
icon: 'search',
|
|
vendor: 'iconfont'
|
|
},
|
|
{
|
|
type: 'input-text',
|
|
placeholder: '搜索作业ID/名称',
|
|
inputClassName: 'b-l-none p-l-none',
|
|
name: 'jobName'
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
name: 'a',
|
|
type: 'input-text',
|
|
label: 'ID',
|
|
value: '',
|
|
size: 'xs',
|
|
hint: '比如输入 a-xxxx-xxx'
|
|
},
|
|
|
|
{
|
|
name: 'b',
|
|
type: 'input-text',
|
|
label: 'ID',
|
|
value: '',
|
|
size: 'sm',
|
|
hint: '比如输入 a-xxxx-xxx'
|
|
},
|
|
|
|
{
|
|
name: 'c',
|
|
type: 'input-text',
|
|
label: 'ID',
|
|
value: '',
|
|
size: 'md',
|
|
hint: '比如输入 a-xxxx-xxx'
|
|
},
|
|
|
|
{
|
|
name: 'd',
|
|
type: 'input-text',
|
|
label: 'ID',
|
|
value: '',
|
|
size: 'lg',
|
|
hint: '比如输入 a-xxxx-xxx'
|
|
},
|
|
|
|
{
|
|
name: 'tag',
|
|
type: 'input-tag',
|
|
label: 'Tag',
|
|
size: 'md',
|
|
clearable: true,
|
|
placeholder: '多个标签以逗号分隔',
|
|
options: ['周小度', '杜小度']
|
|
}
|
|
]
|
|
}
|
|
]
|
|
};
|