Commit 7cd64571a7afa6794e9cc6610e87391ed2d7912f
1 parent
ed9ecf9c
perf: move data source bind panel to second
Showing
1 changed file
with
11 additions
and
11 deletions
... | ... | @@ -588,6 +588,17 @@ Format.prototype.immediateRefresh = function () { |
588 | 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 | 602 | // Text |
592 | 603 | mxUtils.write(label2, mxResources.get("text")); |
593 | 604 | div.appendChild(label2); |
... | ... | @@ -606,17 +617,6 @@ Format.prototype.immediateRefresh = function () { |
606 | 617 | this.panels.push(new ArrangePanel(this, ui, arrangePanel)); |
607 | 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 | 620 | if (ss.cells.length > 0) { |
621 | 621 | addClickHandler(label2, textPanel, idx++); |
622 | 622 | } else { | ... | ... |