|
|
|
@ -8,6 +8,7 @@
|
|
|
|
|
var system = { |
|
|
|
|
dependencies: {}, |
|
|
|
|
responsiveMode: false, |
|
|
|
|
workerMode: false, |
|
|
|
|
size: { // 尺寸
|
|
|
|
|
TOOL_BAR_HEIGHT: 24, |
|
|
|
|
LIST_ITEM_HEIGHT: 24, |
|
|
|
@ -28,6 +29,10 @@
|
|
|
|
|
system.responsiveMode = !!mode; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
this.setWorkerMode = function (mode) { |
|
|
|
|
system.workerMode = !!mode; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
this.addDependency = function (moduleId, minVersion, maxVersion) { |
|
|
|
|
system.dependencies[moduleId] = { |
|
|
|
|
min: minVersion, |
|
|
|
@ -50,6 +55,10 @@
|
|
|
|
|
return system.responsiveMode; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getWorkerMode: function () { |
|
|
|
|
return system.workerMode; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getDependencies: function () { |
|
|
|
|
return system.dependencies; |
|
|
|
|
} |
|
|
|
|