diff --git a/dist/bundle.js b/dist/bundle.js index 5fb6e5c07d..a70d64ffab 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -101036,12 +101036,12 @@ BI.PreviewTable = BI.inherit(BI.Widget, { }) }); this.table.on(BI.Table.EVENT_TABLE_AFTER_INIT, function () { - self._adjustColumns(); self.fireEvent(BI.Table.EVENT_TABLE_AFTER_INIT, arguments); }); this.table.on(BI.Table.EVENT_TABLE_RESIZE, function () { self._adjustColumns(); }); + this._adjustColumns(); }, // 是否有自适应调节的列,即列宽为"" @@ -101180,6 +101180,7 @@ BI.PreviewTable = BI.inherit(BI.Widget, { populate: function (items, header) { this.table.populate(items, header); + this._adjustColumns(); } }); BI.PreviewTable.EVENT_CHANGE = "PreviewTable.EVENT_CHANGE"; diff --git a/dist/widget.js b/dist/widget.js index 676d8fb7ff..fdfa3e8bbd 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -14526,12 +14526,12 @@ BI.PreviewTable = BI.inherit(BI.Widget, { }) }); this.table.on(BI.Table.EVENT_TABLE_AFTER_INIT, function () { - self._adjustColumns(); self.fireEvent(BI.Table.EVENT_TABLE_AFTER_INIT, arguments); }); this.table.on(BI.Table.EVENT_TABLE_RESIZE, function () { self._adjustColumns(); }); + this._adjustColumns(); }, // 是否有自适应调节的列,即列宽为"" @@ -14670,6 +14670,7 @@ BI.PreviewTable = BI.inherit(BI.Widget, { populate: function (items, header) { this.table.populate(items, header); + this._adjustColumns(); } }); BI.PreviewTable.EVENT_CHANGE = "PreviewTable.EVENT_CHANGE"; diff --git a/src/widget/previewtable/previewtable.js b/src/widget/previewtable/previewtable.js index eb73d438de..c53ed64198 100644 --- a/src/widget/previewtable/previewtable.js +++ b/src/widget/previewtable/previewtable.js @@ -54,12 +54,12 @@ BI.PreviewTable = BI.inherit(BI.Widget, { }) }); this.table.on(BI.Table.EVENT_TABLE_AFTER_INIT, function () { - self._adjustColumns(); self.fireEvent(BI.Table.EVENT_TABLE_AFTER_INIT, arguments); }); this.table.on(BI.Table.EVENT_TABLE_RESIZE, function () { self._adjustColumns(); }); + this._adjustColumns(); }, // 是否有自适应调节的列,即列宽为"" @@ -198,6 +198,7 @@ BI.PreviewTable = BI.inherit(BI.Widget, { populate: function (items, header) { this.table.populate(items, header); + this._adjustColumns(); } }); BI.PreviewTable.EVENT_CHANGE = "PreviewTable.EVENT_CHANGE";