amis/examples/components/IFrame.jsx
2020-06-29 13:03:59 +08:00

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
}
]
};