$ui/utils/skin

主题管理模块

Source:
Author:
  • chenhuachun

(require("$ui/utils/skin"))(app, isMaster) → {Object}

Source:

Skin Mixin 构造函数

Parameters:
Name Type Description
app string

子应用名称,可选,不设置就表示是主应用

isMaster boolean

主题名称跟随主应用,可选,默认app独立

Returns:
Type
Object

Methods

(static) change(theme, app, isMaster, container)

Source:

更换主题

Parameters:
Name Type Description
theme string

主题名

app string

子应用名称

isMaster boolean

主题名称跟随主应用

container HTMLDivElement

(static) get() → {string}

Source:

获取当前主题名

Returns:
Type
string