Browse Source

Pull request #3071: REPORT-73206 feat: 把BI和平台使用的表格组件封装成cbb - bi.icon_change_button的图标支持响应式

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '5090c17a9a34dbf19568432addd4836787179c91':
  无JIRA demo引入文件顺序
  REPORT-73206 feat: 把BI和平台使用的表格组件封装成cbb - bi.icon_change_button的图标支持响应式
es6
Dailer-刘荣歆 2 years ago
parent
commit
19c9a6ba0d
  1. 7
      src/case/button/icon/icon.change.js
  2. 2
      webpack/attachments.js

7
src/case/button/icon/icon.change.js

@ -31,8 +31,11 @@ BI.IconChangeButton = BI.inherit(BI.Single, {
},
_init: function () {
BI.IconChangeButton.superclass._init.apply(this, arguments);
var self = this, o = this.options;
o.iconCls = BI.isFunction(o.iconCls) ? this.__watch(o.iconCls, function (context, newValue) {
self.setIcon(newValue);
}) : o.iconCls;
BI.IconChangeButton.superclass._init.apply(this, arguments);
this.button = BI.createWidget({
type: "bi.icon_button",
element: this,
@ -80,4 +83,4 @@ BI.IconChangeButton = BI.inherit(BI.Single, {
}
});
BI.IconChangeButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_change_button", BI.IconChangeButton);
BI.shortcut("bi.icon_change_button", BI.IconChangeButton);

2
webpack/attachments.js

@ -233,13 +233,13 @@ const demo = [].concat(
basicAttachmentMap.polyfill,
basicAttachmentMap.core,
basicAttachmentMap.fix,
basicAttachmentMap.config,
basicAttachmentMap.base,
basicAttachmentMap.case,
basicAttachmentMap.widget,
basicAttachmentMap.router,
sync(["public/less/app.less", "public/less/**/*.less"]),
[fixCompact, workerCompact],
basicAttachmentMap.config,
basicAttachmentMap.ts,
sync(["demo/less/*.less", "demo/less/**/*.less", "demo/app.js", "demo/js/**/*.js", "demo/config.js"]),
);

Loading…
Cancel
Save