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

45
bi/case.js

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

3
bi/core.css

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

32
bi/widget.js

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

45
docs/case.js

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

3
docs/core.css

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

32
docs/widget.js

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

23
src/case/table/table.dynamicsummarylayertree.js

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

22
src/case/table/table.layertree.js

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

16
src/widget/sequencetable/listnumber.sequencetable.js

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

16
src/widget/sequencetable/treenumber.sequencetable.js

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

Loading…
Cancel
Save