主题管理模块
(require("$ui/utils/skin"))(app, isMaster) → {Object}
Skin Mixin 构造函数
Parameters:
Name | Type | Description |
---|---|---|
app |
string | 子应用名称,可选,不设置就表示是主应用 |
isMaster |
boolean | 主题名称跟随主应用,可选,默认app独立 |
Returns:
- Type
- Object
Methods
(static) change(theme, app, isMaster, container)
更换主题
Parameters:
Name | Type | Description |
---|---|---|
theme |
string | 主题名 |
app |
string | 子应用名称 |
isMaster |
boolean | 主题名称跟随主应用 |
container |
HTMLDivElement |
(static) get() → {string}
获取当前主题名
Returns:
- Type
- string