Browse Source

update

master
guy 7 years ago
parent
commit
ba26d78433
  1. 32
      dist/_fineui.min.js
  2. 3
      dist/bundle.js
  3. 34
      dist/bundle.min.js
  4. 19
      dist/demo.js
  5. 32
      dist/fineui.min.js
  6. 3
      dist/widget.js
  7. 3
      src/widget/previewtable/previewtable.js

32
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

3
dist/bundle.js vendored

@ -100236,12 +100236,12 @@ BI.PreviewTable = BI.inherit(BI.Widget, {
}) })
}); });
this.table.on(BI.Table.EVENT_TABLE_AFTER_INIT, function () { this.table.on(BI.Table.EVENT_TABLE_AFTER_INIT, function () {
self._adjustColumns();
self.fireEvent(BI.Table.EVENT_TABLE_AFTER_INIT, arguments); self.fireEvent(BI.Table.EVENT_TABLE_AFTER_INIT, arguments);
}); });
this.table.on(BI.Table.EVENT_TABLE_RESIZE, function () { this.table.on(BI.Table.EVENT_TABLE_RESIZE, function () {
self._adjustColumns(); self._adjustColumns();
}); });
this._adjustColumns();
}, },
// 是否有自适应调节的列,即列宽为"" // 是否有自适应调节的列,即列宽为""
@ -100380,6 +100380,7 @@ BI.PreviewTable = BI.inherit(BI.Widget, {
populate: function (items, header) { populate: function (items, header) {
this.table.populate(items, header); this.table.populate(items, header);
this._adjustColumns();
} }
}); });
BI.PreviewTable.EVENT_CHANGE = "PreviewTable.EVENT_CHANGE"; BI.PreviewTable.EVENT_CHANGE = "PreviewTable.EVENT_CHANGE";

34
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

19
dist/demo.js vendored

@ -859,26 +859,15 @@ BI.shortcut("demo.multifile_editor", Demo.CodeEditor);Demo.RichEditor = BI.inher
this.editor = BI.createWidget({ this.editor = BI.createWidget({
type: "bi.rich_editor", type: "bi.rich_editor",
cls: "mvc-border", cls: "mvc-border",
width: "100%", width: 600,
height: "100%" height: 400
}); });
BI.createWidget({ BI.createWidget({
type: "bi.vertical", type: "bi.vertical",
element: this, element: this,
hgap: 30, hgap: 30,
vgap: 50, vgap: 50,
items: [{ items: [this.editor]
type: "bi.absolute",
width: 600,
height: 400,
items: [{
el: this.editor,
left: 10,
right: 10,
top: 10,
bottom: 10
}]
}]
}); });
}, },
@ -888,8 +877,6 @@ BI.shortcut("demo.multifile_editor", Demo.CodeEditor);Demo.RichEditor = BI.inher
var style = image.style; var style = image.style;
this.editor.setValue("<div>这是一条<font size=\"4\" color=\"#009de3\">测试</font>数据<img width='" + image.width + "' height='" + image.height + "' src='" + src + "' style='" + style + "' /></div>"); this.editor.setValue("<div>这是一条<font size=\"4\" color=\"#009de3\">测试</font>数据<img width='" + image.width + "' height='" + image.height + "' src='" + src + "' style='" + style + "' /></div>");
this.editor.focus();
} }
}); });
BI.shortcut("demo.rich_editor", Demo.RichEditor);/** BI.shortcut("demo.rich_editor", Demo.RichEditor);/**

32
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

3
dist/widget.js vendored

@ -13737,12 +13737,12 @@ BI.PreviewTable = BI.inherit(BI.Widget, {
}) })
}); });
this.table.on(BI.Table.EVENT_TABLE_AFTER_INIT, function () { this.table.on(BI.Table.EVENT_TABLE_AFTER_INIT, function () {
self._adjustColumns();
self.fireEvent(BI.Table.EVENT_TABLE_AFTER_INIT, arguments); self.fireEvent(BI.Table.EVENT_TABLE_AFTER_INIT, arguments);
}); });
this.table.on(BI.Table.EVENT_TABLE_RESIZE, function () { this.table.on(BI.Table.EVENT_TABLE_RESIZE, function () {
self._adjustColumns(); self._adjustColumns();
}); });
this._adjustColumns();
}, },
// 是否有自适应调节的列,即列宽为"" // 是否有自适应调节的列,即列宽为""
@ -13881,6 +13881,7 @@ BI.PreviewTable = BI.inherit(BI.Widget, {
populate: function (items, header) { populate: function (items, header) {
this.table.populate(items, header); this.table.populate(items, header);
this._adjustColumns();
} }
}); });
BI.PreviewTable.EVENT_CHANGE = "PreviewTable.EVENT_CHANGE"; BI.PreviewTable.EVENT_CHANGE = "PreviewTable.EVENT_CHANGE";

3
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 () { this.table.on(BI.Table.EVENT_TABLE_AFTER_INIT, function () {
self._adjustColumns();
self.fireEvent(BI.Table.EVENT_TABLE_AFTER_INIT, arguments); self.fireEvent(BI.Table.EVENT_TABLE_AFTER_INIT, arguments);
}); });
this.table.on(BI.Table.EVENT_TABLE_RESIZE, function () { this.table.on(BI.Table.EVENT_TABLE_RESIZE, function () {
self._adjustColumns(); self._adjustColumns();
}); });
this._adjustColumns();
}, },
// 是否有自适应调节的列,即列宽为"" // 是否有自适应调节的列,即列宽为""
@ -198,6 +198,7 @@ BI.PreviewTable = BI.inherit(BI.Widget, {
populate: function (items, header) { populate: function (items, header) {
this.table.populate(items, header); this.table.populate(items, header);
this._adjustColumns();
} }
}); });
BI.PreviewTable.EVENT_CHANGE = "PreviewTable.EVENT_CHANGE"; BI.PreviewTable.EVENT_CHANGE = "PreviewTable.EVENT_CHANGE";

Loading…
Cancel
Save