1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| define(['dojo/_base/declare',
| 'jimu/BaseWidgetPanel',
| 'jimu/BaseWidgetFrame',
| './BoxFrame'
| ],
| function(declare, BaseWidgetPanel, BaseWidgetFrame, BoxFrame) {
|
| return declare([BaseWidgetPanel], {
| baseClass: 'jimu-widget-panel box-panel',
|
| startup: function(){
| this.inherited(arguments);
| this.started = true;
| },
|
| createFrame: function(widgetConfig) {
| var frame;
| if (this.config.widgets && this.config.widgets.length === 1 || !this.config.widgets) {
| frame = new BaseWidgetFrame();
| } else {
| frame = new BoxFrame({
| label: widgetConfig.label,
| widgetManager: this.widgetManager
| });
| }
| return frame;
| }
|
| });
| });
|
|