mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 17:31:18 +08:00
31 lines
830 B
JavaScript
31 lines
830 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|url_encode}",
|
|
height: 500
|
|
}
|
|
]
|
|
} |