代码内容
function() {return {// 组件初始化init: function(options) {this._super.apply(this, arguments);},// 容器内所有组件加载完成allChildrenLoaded: function() {if(!$('#img_a157864203980413').widget()) { //图片组件的idsetTimeout(arguments.callee, 200);return;}$('#img_a157864203980413').parent().css('pointer-events', 'none'); //图片组件的id}};}
使用说明
1、重新在组件列表中选择 容器组件,将容器组件拉拽到画布中;
2、选中刚拖入画布中的容器组件;
3、选择高级->代码编辑,注入“代码内容”中的代码;
4、修改 图片id 为开发工程中需要穿透的图片id;
5、测试验证穿透效果;
