跳转到内容

IFrame

iframe 容器,当需要在页面内打开一个外部网页的时候可以使用

属性

IIFrameProps

参数类型说明默认值
srcstring默认的外部地址-
srcFieldstring指定容器的地址字段,如果是 dataSource 数据来的,可以指定某个字段的值作为外部地址’src’
widthstringiframe 宽度,可以是数字或者字符串,需要符合 css 规范’100%‘
heightstringiframe 高度,可以是数字或者字符串,需要符合 css 规范’600px’
titlestringiframe 容器标题title-

用法

固定地址

<View title="详情容器" version="2">
<IFrame title="端点官网" model="trantor_doc_Company" src="https://www.terminus.io" />
</View>

注意:当前例子为0.17.x 版本

动态服务

调用 dataFunction,从中获取数据后,将 BIUrl 的值作为 iframe 的地址打开

<View title="详情容器" version="2">
<IFrame title="数据报表" dataFunction="BIFunc" dataParams="" model="BITO" srcField="BIUrl"/>
</View>