define([ 'dojo/_base/declare', 'dojo/_base/lang', 'dojo/_base/array', 'dojo/_base/html', 'dojo/topic', 'jimu/BaseWidget', ], function (declare, lang, array, html, topic, BaseWidget ) { return declare([BaseWidget], { baseClass: 'jimu-widget-null', name: 'null', flag: false, startup: function () { var that = this; topic.subscribe("beginNull", lang.hitch(this, this.beginNull)); topic.subscribe("closesNull", lang.hitch(this, this.closesNull)); // topic.publish('getbeginSlope', that.beginSlope); $(`.${that.baseClass}`).find('.closeOUR').click(() => { $(`.${that.baseClass}`).hide(); that.closesNull(); }) that.beginNull(); }, beginNull: function () { console.log(`${this.name}--kaishi`); var that = this; }, closesNull: function (froms) { console.log(`${this.name}--guanbi`); }, onOpen: function () { }, onClose: function () { //面板关闭的时候触发 (when this panel is closed trigger) console.log('jies') }, onMinimize: function () { this.resize(); }, onMaximize: function () { this.resize(); }, resize: function () { }, destroy: function () { //销毁的时候触发 //todo //do something before this func this.inherited(arguments); } }); });