Browse Source

merge

master
windy 7 years ago
parent
commit
6adaf854ed
  1. 23
      demo/js/widget/table/demo.responsive_table.js
  2. 12
      dist/base.js
  3. 12
      dist/bundle.js
  4. 76
      dist/bundle.min.js
  5. 23
      dist/demo.js
  6. 12
      dist/fineui.js
  7. 76
      dist/fineui.min.js
  8. 2
      src/base/combination/switcher.js
  9. 10
      src/base/table/table.js

23
demo/js/widget/table/demo.responsive_table.js

@ -129,23 +129,24 @@ Demo.Func = BI.inherit(BI.Widget, {
isNeedMerge: true, isNeedMerge: true,
isNeedFreeze: true, isNeedFreeze: true,
mergeCols: [0, 1], mergeCols: [0, 1],
columnSize: ["", "", ""], items: [],
items: items, header: []
header: header
}); });
BI.createWidget({ BI.createWidget({
type: "bi.absolute", type: "bi.absolute",
element: this, element: this,
items: [{ items: [{
el: { el: {
type: "bi.grid", type: "bi.tab",
columns: 2, defaultShowIndex: 1,
rows: 2, cardCreator: function (v) {
items: [{ switch (v) {
column: 0, case 1:
row: 0, table1.attr("columnSize", ["", "", ""]);
el: table1 table1.populate(items, header);
}] return table1;
}
}
}, },
left: 10, left: 10,
right: 10, right: 10,

12
dist/base.js vendored

@ -4696,7 +4696,7 @@ BI.Switcher = BI.inherit(BI.Widget, {
_initSwitcher: function () { _initSwitcher: function () {
this.switcher = BI.createWidget(this.options.el, { this.switcher = BI.createWidget(this.options.el, {
value: o.value value: this.options.value
}); });
}, },
@ -33417,12 +33417,20 @@ BI.Table = BI.inherit(BI.Widget, {
}, },
_empty: function () {
this.scrollBottomRight && this.scrollBottomRight.destroy();
this.topLeft && this.topLeft.destroy();
this.topRight && this.topRight.destroy();
this.bottomLeft && this.bottomLeft.destroy();
this.bottomRight && this.bottomRight.destroy();
},
populate: function (items, header) { populate: function (items, header) {
this.options.items = items || []; this.options.items = items || [];
if (header) { if (header) {
this.options.header = header; this.options.header = header;
} }
this.empty(); this._empty();
if (this.options.isNeedFreeze) { if (this.options.isNeedFreeze) {
this._createFreezeTable(); this._createFreezeTable();
} else { } else {

12
dist/bundle.js vendored

@ -30569,7 +30569,7 @@ BI.Switcher = BI.inherit(BI.Widget, {
_initSwitcher: function () { _initSwitcher: function () {
this.switcher = BI.createWidget(this.options.el, { this.switcher = BI.createWidget(this.options.el, {
value: o.value value: this.options.value
}); });
}, },
@ -59290,12 +59290,20 @@ BI.Table = BI.inherit(BI.Widget, {
}, },
_empty: function () {
this.scrollBottomRight && this.scrollBottomRight.destroy();
this.topLeft && this.topLeft.destroy();
this.topRight && this.topRight.destroy();
this.bottomLeft && this.bottomLeft.destroy();
this.bottomRight && this.bottomRight.destroy();
},
populate: function (items, header) { populate: function (items, header) {
this.options.items = items || []; this.options.items = items || [];
if (header) { if (header) {
this.options.header = header; this.options.header = header;
} }
this.empty(); this._empty();
if (this.options.isNeedFreeze) { if (this.options.isNeedFreeze) {
this._createFreezeTable(); this._createFreezeTable();
} else { } else {

76
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

23
dist/demo.js vendored

@ -14112,23 +14112,24 @@ BI.shortcut("demo.preview_table", Demo.Func);Demo.Func = BI.inherit(BI.Widget, {
isNeedMerge: true, isNeedMerge: true,
isNeedFreeze: true, isNeedFreeze: true,
mergeCols: [0, 1], mergeCols: [0, 1],
columnSize: ["", "", ""], items: [],
items: items, header: []
header: header
}); });
BI.createWidget({ BI.createWidget({
type: "bi.absolute", type: "bi.absolute",
element: this, element: this,
items: [{ items: [{
el: { el: {
type: "bi.grid", type: "bi.tab",
columns: 2, defaultShowIndex: 1,
rows: 2, cardCreator: function (v) {
items: [{ switch (v) {
column: 0, case 1:
row: 0, table1.attr("columnSize", ["", "", ""]);
el: table1 table1.populate(items, header);
}] return table1;
}
}
}, },
left: 10, left: 10,
right: 10, right: 10,

12
dist/fineui.js vendored

@ -32263,7 +32263,7 @@ BI.Switcher = BI.inherit(BI.Widget, {
_initSwitcher: function () { _initSwitcher: function () {
this.switcher = BI.createWidget(this.options.el, { this.switcher = BI.createWidget(this.options.el, {
value: o.value value: this.options.value
}); });
}, },
@ -60984,12 +60984,20 @@ BI.Table = BI.inherit(BI.Widget, {
}, },
_empty: function () {
this.scrollBottomRight && this.scrollBottomRight.destroy();
this.topLeft && this.topLeft.destroy();
this.topRight && this.topRight.destroy();
this.bottomLeft && this.bottomLeft.destroy();
this.bottomRight && this.bottomRight.destroy();
},
populate: function (items, header) { populate: function (items, header) {
this.options.items = items || []; this.options.items = items || [];
if (header) { if (header) {
this.options.header = header; this.options.header = header;
} }
this.empty(); this._empty();
if (this.options.isNeedFreeze) { if (this.options.isNeedFreeze) {
this._createFreezeTable(); this._createFreezeTable();
} else { } else {

76
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
src/base/combination/switcher.js

@ -124,7 +124,7 @@ BI.Switcher = BI.inherit(BI.Widget, {
_initSwitcher: function () { _initSwitcher: function () {
this.switcher = BI.createWidget(this.options.el, { this.switcher = BI.createWidget(this.options.el, {
value: o.value value: this.options.value
}); });
}, },

10
src/base/table/table.js

@ -1580,12 +1580,20 @@ BI.Table = BI.inherit(BI.Widget, {
}, },
_empty: function () {
this.scrollBottomRight && this.scrollBottomRight.destroy();
this.topLeft && this.topLeft.destroy();
this.topRight && this.topRight.destroy();
this.bottomLeft && this.bottomLeft.destroy();
this.bottomRight && this.bottomRight.destroy();
},
populate: function (items, header) { populate: function (items, header) {
this.options.items = items || []; this.options.items = items || [];
if (header) { if (header) {
this.options.header = header; this.options.header = header;
} }
this.empty(); this._empty();
if (this.options.isNeedFreeze) { if (this.options.isNeedFreeze) {
this._createFreezeTable(); this._createFreezeTable();
} else { } else {

Loading…
Cancel
Save