amis/examples/components/IFrame.jsx

32 lines
631 B
React
Raw Normal View History

2019-04-30 11:11:25 +08:00
export default {
2019-11-07 10:41:14 +08:00
$schema: 'https://houtai.baidu.com/v2/schemas/page.json#',
title: 'IFrame 可以用来嵌入其他网站',
body: [
{
type: 'form',
mode: 'inline',
target: 'window',
title: '',
controls: [
2019-04-30 11:11:25 +08:00
{
2019-11-07 10:41:14 +08:00
type: 'text',
name: 'keywords',
addOn: {
type: 'submit',
label: '搜索',
level: 'info',
icon: 'fa fa-search pull-left'
}
2019-04-30 11:11:25 +08:00
}
2019-11-07 10:41:14 +08:00
]
},
{
type: 'iframe',
className: 'b-a',
2020-06-29 13:03:59 +08:00
src: 'https://www.baidu.com/s?wd=${keywords|raw}',
2019-11-07 10:41:14 +08:00
height: 500
}
]
};