qinbo
2021-09-16 47e10b936ccf6f1cf54a6cf69362474a2ec238c1
widgetsTS/widget_Overall/widget.js
@@ -5,22 +5,46 @@
    class MyWidget extends mars3d.widget.BaseWidget {
        //弹窗配置,2个弹窗的情形
        get view() {
            return {
                type: "window",
                url: "view.html",
                windowOptions: {
                  width: 250,
                  height: 300,
                  left:0,
                  top:120
            return [{
                    type: 'window',
                    url: 'viewLeft.html',
                    name: 'left',
                    windowOptions: {
                        noTitle: true,
                        closeBtn: 0,
                        width: 380,
                        position: {
                            top: 150,
                            bottom: 25,
                            left: 0,
                        },
                    },
                },
              };
                {
                    type: 'window',
                    url: 'viewRight.html',
                    name: 'right',
                    windowOptions: {
                        noTitle: true,
                        closeBtn: 0,
                        width: 600,
                        position: {
                            top: 125,
                            bottom: 25,
                            right: 0,
                        },
                    },
                },
            ]
        }
        //每个窗口创建完成后调用
        winCreateOK(opt, result) {
            if (opt.name == 'left') {
                this.viewWindowLeft = result;
            } else {
                this.viewWindowRight = result;
            }
        }
        //打开激活
        activate() {