Browse Source

系统参数形式

es6
windy 3 years ago
parent
commit
db23d3d2f6
  1. 25
      src/core/system.js

25
src/core/system.js

@ -0,0 +1,25 @@
/**
* @author windy
* @version 2.0
* Created by windy on 2021/6/30
*/
_.extend(BI, {
switchSystemParam: function(opt) {
BI.config('bi.constant.system', function (ob) {
return BI.deepExtend(ob, opt);
});
},
});
// 系统参数常量
BI.constant('bi.constant.system', {
size: { // 尺寸
TOOL_BAR_HEIGHT: 24,
LIST_ITEM_HEIGHT: 24,
TRIGGER_HEIGHT: 24,
},
});
BI.prepares.push(function () {
BI.SIZE_CONSANTS = BI.Constants.getConstant('bi.constant.system').size;
});
Loading…
Cancel
Save