Browse Source

表格序号

master
Young 7 years ago
parent
commit
6f833a38fc
  1. 20
      demo/js/category/largeTable/largeTable.js
  2. 1
      demo/js/category/largeTable/sequenceheadercell.normal.js
  3. 4
      src/widget/sequencetable/listnumber.sequencetable.js
  4. 5
      src/widget/sequencetable/treenumber.sequencetable.js

20
demo/js/category/largeTable/largeTable.js

@ -48,15 +48,17 @@ Demo.Face = BI.inherit(BI.Widget, {
sequence: {
type: "bi.sequence_table_list_number",
pageSize: 100,
sequenceHeaderCreator: {
type: "bi.normal_sequence_header_cell",
styleGetter: function () {
return {
background: "rgb(4, 177, 194)",
color: "#ffffff",
fontWeight: "bold"
};
}
sequenceHeaderCreator: function () {
return {
type: "bi.normal_sequence_header_cell",
styleGetter: function () {
return {
background: "rgb(4, 177, 194)",
color: "#ffffff",
fontWeight: "bold"
};
}
};
}
},
itemsCreator: function (op, populate) {

1
demo/js/category/largeTable/sequenceheadercell.normal.js

@ -16,6 +16,7 @@ BI.NormalSequenceHeaderCell = BI.inherit(BI.Widget, {
type: "bi.label",
element: this,
textAlign: "left",
height: o.height,
forceCenter: true,
hgap: 5,
text: BI.i18nText("BI-Number_Index")

4
src/widget/sequencetable/listnumber.sequencetable.js

@ -15,7 +15,7 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, {
headerRowSize: 25,
rowSize: 25,
sequenceHeaderCreator: null,
sequenceHeaderCreator: BI.emptyFn,
header: [],
items: [], // 二维数组
@ -98,7 +98,7 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, {
type: "bi.absolute",
element: this.headerContainer,
items: [{
el: o.sequenceHeaderCreator || {
el: o.sequenceHeaderCreator() || {
type: "bi.table_style_cell",
cls: "sequence-table-title-cell",
styleGetter: o.headerCellStyleGetter,

5
src/widget/sequencetable/treenumber.sequencetable.js

@ -15,7 +15,7 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, {
headerRowSize: 25,
rowSize: 25,
sequenceHeaderCreator: null,
sequenceHeaderCreator: BI.emptyFn,
header: [],
items: [], // 二维数组
@ -233,9 +233,10 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, {
type: "bi.absolute",
element: this.headerContainer,
items: [{
el: o.sequenceHeaderCreator || {
el: o.sequenceHeaderCreator() || {
type: "bi.table_style_cell",
cls: "sequence-table-title-cell",
height: this._getHeaderHeight() - 2,
styleGetter: o.headerCellStyleGetter,
text: BI.i18nText("BI-Number_Index")
},

Loading…
Cancel
Save