代码内容

  1. function() {
  2. return {
  3. // 组件初始化
  4. init: function(options) {
  5. this._super.apply(this, arguments);
  6. },
  7. // 容器内所有组件加载完成
  8. allChildrenLoaded: function() {
  9. if(!$('#img_a157864203980413').widget()) { //图片组件的id
  10. setTimeout(arguments.callee, 200);
  11. return;
  12. }
  13. $('#img_a157864203980413').parent().css('pointer-events', 'none'); //图片组件的id
  14. }
  15. };
  16. }

使用说明

1、重新在组件列表中选择 容器组件,将容器组件拉拽到画布中;
2、选中刚拖入画布中的容器组件;
3、选择高级->代码编辑,注入“代码内容”中的代码;
image.png
4、修改 图片id 为开发工程中需要穿透的图片id;
5、测试验证穿透效果;