forked from fanruan/fineui
Browse Source
Merge in VISUAL/fineui from ~WINDY/fui:master to master * commit '88a0a4e3057f598ae321a5387bba7ec52340f6ab': 日期类型更新 结构化 update 提供provider delete 系统参数形式 修改下size BI-88967 可配全局widget宽高尺寸(部分)es6
windy
3 years ago
36 changed files with 129 additions and 83 deletions
@ -0,0 +1,47 @@
|
||||
/** |
||||
* @author windy |
||||
* @version 2.0 |
||||
* Created by windy on 2021/6/30 |
||||
*/ |
||||
// 系统参数常量
|
||||
!(function () { |
||||
var system = { |
||||
size: { // 尺寸
|
||||
TOOL_BAR_HEIGHT: 24, |
||||
LIST_ITEM_HEIGHT: 24, |
||||
TRIGGER_HEIGHT: 24, |
||||
}, |
||||
}; |
||||
|
||||
var provider = function () { |
||||
|
||||
this.SYSTEM = system; |
||||
|
||||
this.setSize = function (opt) { |
||||
BI.deepExtend(system, { size: opt }); |
||||
}; |
||||
|
||||
this.$get = function () { |
||||
return BI.inherit(BI.OB, { |
||||
|
||||
getSize: function () { |
||||
return system.size; |
||||
}, |
||||
}); |
||||
}; |
||||
}; |
||||
|
||||
BI.provider("bi.provider.system", provider); |
||||
})(); |
||||
|
||||
BI.prepares.push(function () { |
||||
BI.SIZE_CONSANTS = BI.Providers.getProvider('bi.provider.system').getSize(); |
||||
}); |
||||
|
||||
BI.config('bi.provider.system', function (provider) { |
||||
provider.setSize({ |
||||
TOOL_BAR_HEIGHT: 30, |
||||
LIST_ITEM_HEIGHT: 30, |
||||
TRIGGER_HEIGHT: 30, |
||||
}) |
||||
}); |
Loading…
Reference in new issue