mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
32 lines
631 B
JavaScript
32 lines
631 B
JavaScript
export default {
|
|
$schema: 'https://houtai.baidu.com/v2/schemas/page.json#',
|
|
title: 'IFrame 可以用来嵌入其他网站',
|
|
body: [
|
|
{
|
|
type: 'form',
|
|
mode: 'inline',
|
|
target: 'window',
|
|
title: '',
|
|
controls: [
|
|
{
|
|
type: '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
|
|
}
|
|
]
|
|
};
|