mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
65ac422ed6
* 补充容错 * fix: form 中 name 关联顶层数据初始化失效 * 更新 examples * 文档调整 * 删除多余的文档, 调整 schema * schema 调整 * schema 调整 * control 类型容器 control 改成 body * 修复一个选项加载的bug * form 注册直接用 type
31 lines
572 B
JavaScript
31 lines
572 B
JavaScript
export default {
|
|
title: 'IFrame 可以用来嵌入其他网站',
|
|
body: [
|
|
{
|
|
type: 'form',
|
|
mode: 'inline',
|
|
target: 'window',
|
|
title: '',
|
|
body: [
|
|
{
|
|
type: 'input-text',
|
|
name: 'keywords',
|
|
addOn: {
|
|
type: 'submit',
|
|
label: '搜索',
|
|
level: 'info',
|
|
icon: 'fa fa-search pull-left'
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
type: 'iframe',
|
|
className: 'b-a',
|
|
src: 'https://www.baidu.com/s?wd=${keywords|raw}',
|
|
height: 500
|
|
}
|
|
]
|
|
};
|