Commit 7cd64571a7afa6794e9cc6610e87391ed2d7912f

Authored by ww
1 parent ed9ecf9c

perf: move data source bind panel to second

@@ -588,6 +588,17 @@ Format.prototype.immediateRefresh = function () { @@ -588,6 +588,17 @@ Format.prototype.immediateRefresh = function () {
588 addClickHandler(label, stylePanel, idx++); 588 addClickHandler(label, stylePanel, idx++);
589 } 589 }
590 590
  591 + if (validateHasDataSourcePanel()) {
  592 + // bind data
  593 + mxUtils.write(label4, "数据绑定");
  594 + div.appendChild(label4);
  595 +
  596 + var dataPanel = div.cloneNode(false);
  597 + dataPanel.style.display = "none";
  598 + this.panels.push(new DataFormatPanel(this, ui, dataPanel));
  599 + this.container.appendChild(dataPanel);
  600 + }
  601 +
591 // Text 602 // Text
592 mxUtils.write(label2, mxResources.get("text")); 603 mxUtils.write(label2, mxResources.get("text"));
593 div.appendChild(label2); 604 div.appendChild(label2);
@@ -606,17 +617,6 @@ Format.prototype.immediateRefresh = function () { @@ -606,17 +617,6 @@ Format.prototype.immediateRefresh = function () {
606 this.panels.push(new ArrangePanel(this, ui, arrangePanel)); 617 this.panels.push(new ArrangePanel(this, ui, arrangePanel));
607 this.container.appendChild(arrangePanel); 618 this.container.appendChild(arrangePanel);
608 619
609 - if (validateHasDataSourcePanel()) {  
610 - // bind data  
611 - mxUtils.write(label4, "数据绑定");  
612 - div.appendChild(label4);  
613 -  
614 - var dataPanel = div.cloneNode(false);  
615 - dataPanel.style.display = "none";  
616 - this.panels.push(new DataFormatPanel(this, ui, dataPanel));  
617 - this.container.appendChild(dataPanel);  
618 - }  
619 -  
620 if (ss.cells.length > 0) { 620 if (ss.cells.length > 0) {
621 addClickHandler(label2, textPanel, idx++); 621 addClickHandler(label2, textPanel, idx++);
622 } else { 622 } else {