guy 8 years ago
parent
commit
b9642b29e5
  1. 13
      bi/case.js
  2. 3
      bi/core.css
  3. 12
      bi/widget.js
  4. 13
      docs/case.js
  5. 3
      docs/core.css
  6. 12
      docs/widget.js
  7. 7
      src/case/table/table.dynamicsummarylayertree.js
  8. 6
      src/case/table/table.layertree.js
  9. 6
      src/widget/sequencetable/listnumber.sequencetable.js
  10. 6
      src/widget/sequencetable/treenumber.sequencetable.js

13
bi/case.js

@ -9106,6 +9106,9 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
regionColumnSize: [],
//行表头
rowHeaderCreator: null,
headerCellStyleGetter: BI.emptyFn,
summaryCellStyleGetter: BI.emptyFn,
sequenceCellStyleGetter: BI.emptyFn,
@ -9142,13 +9145,13 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
var newHeader = this._formatColumns(header);
var deep = this._getHDeep();
if (deep <= 0) {
newHeader.unshift({
newHeader.unshift(o.rowHeaderCreator || {
type: "bi.table_style_cell",
text: BI.i18nText("BI-Row_Header"),
styleGetter: o.headerCellStyleGetter
});
} else {
newHeader[0] = {
newHeader[0] = o.rowHeaderCreator || {
type: "bi.table_style_cell",
text: BI.i18nText("BI-Row_Header"),
styleGetter: o.headerCellStyleGetter
@ -9796,6 +9799,8 @@ BI.LayerTreeTable = BI.inherit(BI.Widget, {
regionColumnSize: [],
rowHeaderCreator: null,
headerCellStyleGetter: BI.emptyFn,
summaryCellStyleGetter: BI.emptyFn,
sequenceCellStyleGetter: BI.emptyFn,
@ -9831,13 +9836,13 @@ BI.LayerTreeTable = BI.inherit(BI.Widget, {
var newHeader = this._formatColumns(header);
var deep = this._getHDeep();
if (deep <= 0) {
newHeader.unshift({
newHeader.unshift(o.rowHeaderCreator || {
type: "bi.table_style_cell",
text: BI.i18nText("BI-Row_Header"),
styleGetter: o.headerCellStyleGetter
});
} else {
newHeader[0] = {
newHeader[0] = o.rowHeaderCreator || {
type: "bi.table_style_cell",
text: BI.i18nText("BI-Row_Header"),
styleGetter: o.headerCellStyleGetter

3
bi/core.css

@ -3040,9 +3040,6 @@ i {
.bi-keyword-red-mark {
color: #f07d0a;
}
.bi-white {
color: #ffffff;
}
.bi-high-light {
color: #3f8ce8;
}

12
bi/widget.js

@ -15,6 +15,8 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, {
headerRowSize: 25,
rowSize: 25,
sequenceHeaderCreator: null,
header: [],
items: [], //二维数组
@ -33,7 +35,7 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, {
this.renderedCells = [];
this.renderedKeys = [];
this.header = BI.createWidget({
this.header = BI.createWidget(o.sequenceHeaderCreator || {
type: "bi.table_style_cell",
cls: "sequence-table-title-cell bi-border",
styleGetter: o.headerCellStyleGetter,
@ -320,7 +322,7 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, {
task.apply(self);
});
this.tasks = [];
this.header.populate();
this.header.populate && this.header.populate();
this._layout();
this._calculateChildrenToRender();
},
@ -15724,6 +15726,8 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, {
headerRowSize: 25,
rowSize: 25,
sequenceHeaderCreator: null,
header: [],
items: [], //二维数组
@ -15742,7 +15746,7 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, {
this.renderedCells = [];
this.renderedKeys = [];
this.header = BI.createWidget({
this.header = BI.createWidget(o.sequenceHeaderCreator || {
type: "bi.table_style_cell",
cls: "sequence-table-title-cell bi-border",
styleGetter: o.headerCellStyleGetter,
@ -15866,7 +15870,7 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, {
},
_populate: function () {
this.header.populate();
this.header.populate && this.header.populate();
this._layout();
this._calculateChildrenToRender();
},

13
docs/case.js

@ -9106,6 +9106,9 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
regionColumnSize: [],
//行表头
rowHeaderCreator: null,
headerCellStyleGetter: BI.emptyFn,
summaryCellStyleGetter: BI.emptyFn,
sequenceCellStyleGetter: BI.emptyFn,
@ -9142,13 +9145,13 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
var newHeader = this._formatColumns(header);
var deep = this._getHDeep();
if (deep <= 0) {
newHeader.unshift({
newHeader.unshift(o.rowHeaderCreator || {
type: "bi.table_style_cell",
text: BI.i18nText("BI-Row_Header"),
styleGetter: o.headerCellStyleGetter
});
} else {
newHeader[0] = {
newHeader[0] = o.rowHeaderCreator || {
type: "bi.table_style_cell",
text: BI.i18nText("BI-Row_Header"),
styleGetter: o.headerCellStyleGetter
@ -9796,6 +9799,8 @@ BI.LayerTreeTable = BI.inherit(BI.Widget, {
regionColumnSize: [],
rowHeaderCreator: null,
headerCellStyleGetter: BI.emptyFn,
summaryCellStyleGetter: BI.emptyFn,
sequenceCellStyleGetter: BI.emptyFn,
@ -9831,13 +9836,13 @@ BI.LayerTreeTable = BI.inherit(BI.Widget, {
var newHeader = this._formatColumns(header);
var deep = this._getHDeep();
if (deep <= 0) {
newHeader.unshift({
newHeader.unshift(o.rowHeaderCreator || {
type: "bi.table_style_cell",
text: BI.i18nText("BI-Row_Header"),
styleGetter: o.headerCellStyleGetter
});
} else {
newHeader[0] = {
newHeader[0] = o.rowHeaderCreator || {
type: "bi.table_style_cell",
text: BI.i18nText("BI-Row_Header"),
styleGetter: o.headerCellStyleGetter

3
docs/core.css

@ -3040,9 +3040,6 @@ i {
.bi-keyword-red-mark {
color: #f07d0a;
}
.bi-white {
color: #ffffff;
}
.bi-high-light {
color: #3f8ce8;
}

12
docs/widget.js

@ -15,6 +15,8 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, {
headerRowSize: 25,
rowSize: 25,
sequenceHeaderCreator: null,
header: [],
items: [], //二维数组
@ -33,7 +35,7 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, {
this.renderedCells = [];
this.renderedKeys = [];
this.header = BI.createWidget({
this.header = BI.createWidget(o.sequenceHeaderCreator || {
type: "bi.table_style_cell",
cls: "sequence-table-title-cell bi-border",
styleGetter: o.headerCellStyleGetter,
@ -320,7 +322,7 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, {
task.apply(self);
});
this.tasks = [];
this.header.populate();
this.header.populate && this.header.populate();
this._layout();
this._calculateChildrenToRender();
},
@ -15724,6 +15726,8 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, {
headerRowSize: 25,
rowSize: 25,
sequenceHeaderCreator: null,
header: [],
items: [], //二维数组
@ -15742,7 +15746,7 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, {
this.renderedCells = [];
this.renderedKeys = [];
this.header = BI.createWidget({
this.header = BI.createWidget(o.sequenceHeaderCreator || {
type: "bi.table_style_cell",
cls: "sequence-table-title-cell bi-border",
styleGetter: o.headerCellStyleGetter,
@ -15866,7 +15870,7 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, {
},
_populate: function () {
this.header.populate();
this.header.populate && this.header.populate();
this._layout();
this._calculateChildrenToRender();
},

7
src/case/table/table.dynamicsummarylayertree.js

@ -33,6 +33,9 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
regionColumnSize: [],
//行表头
rowHeaderCreator: null,
headerCellStyleGetter: BI.emptyFn,
summaryCellStyleGetter: BI.emptyFn,
sequenceCellStyleGetter: BI.emptyFn,
@ -69,13 +72,13 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
var newHeader = this._formatColumns(header);
var deep = this._getHDeep();
if (deep <= 0) {
newHeader.unshift({
newHeader.unshift(o.rowHeaderCreator || {
type: "bi.table_style_cell",
text: BI.i18nText("BI-Row_Header"),
styleGetter: o.headerCellStyleGetter
});
} else {
newHeader[0] = {
newHeader[0] = o.rowHeaderCreator || {
type: "bi.table_style_cell",
text: BI.i18nText("BI-Row_Header"),
styleGetter: o.headerCellStyleGetter

6
src/case/table/table.layertree.js

@ -33,6 +33,8 @@ BI.LayerTreeTable = BI.inherit(BI.Widget, {
regionColumnSize: [],
rowHeaderCreator: null,
headerCellStyleGetter: BI.emptyFn,
summaryCellStyleGetter: BI.emptyFn,
sequenceCellStyleGetter: BI.emptyFn,
@ -68,13 +70,13 @@ BI.LayerTreeTable = BI.inherit(BI.Widget, {
var newHeader = this._formatColumns(header);
var deep = this._getHDeep();
if (deep <= 0) {
newHeader.unshift({
newHeader.unshift(o.rowHeaderCreator || {
type: "bi.table_style_cell",
text: BI.i18nText("BI-Row_Header"),
styleGetter: o.headerCellStyleGetter
});
} else {
newHeader[0] = {
newHeader[0] = o.rowHeaderCreator || {
type: "bi.table_style_cell",
text: BI.i18nText("BI-Row_Header"),
styleGetter: o.headerCellStyleGetter

6
src/widget/sequencetable/listnumber.sequencetable.js

@ -15,6 +15,8 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, {
headerRowSize: 25,
rowSize: 25,
sequenceHeaderCreator: null,
header: [],
items: [], //二维数组
@ -33,7 +35,7 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, {
this.renderedCells = [];
this.renderedKeys = [];
this.header = BI.createWidget({
this.header = BI.createWidget(o.sequenceHeaderCreator || {
type: "bi.table_style_cell",
cls: "sequence-table-title-cell bi-border",
styleGetter: o.headerCellStyleGetter,
@ -157,7 +159,7 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, {
},
_populate: function () {
this.header.populate();
this.header.populate && this.header.populate();
this._layout();
this._calculateChildrenToRender();
},

6
src/widget/sequencetable/treenumber.sequencetable.js

@ -15,6 +15,8 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, {
headerRowSize: 25,
rowSize: 25,
sequenceHeaderCreator: null,
header: [],
items: [], //二维数组
@ -33,7 +35,7 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, {
this.renderedCells = [];
this.renderedKeys = [];
this.header = BI.createWidget({
this.header = BI.createWidget(o.sequenceHeaderCreator || {
type: "bi.table_style_cell",
cls: "sequence-table-title-cell bi-border",
styleGetter: o.headerCellStyleGetter,
@ -320,7 +322,7 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, {
task.apply(self);
});
this.tasks = [];
this.header.populate();
this.header.populate && this.header.populate();
this._layout();
this._calculateChildrenToRender();
},

Loading…
Cancel
Save