weex-nuke
Version:
基于 Rax 、Weex 的高性能组件体系 ~~
34 lines (32 loc) • 769 B
JavaScript
function VariableMix(theme) {
var Core = theme.Core;
var ComponentCustomStyle = theme.Slip;
/**
* @namespace component
* @property module slip
* @property tag Slip
* @property category component
*/
var slipVariables = {
/**
* background
* @property namespace statement
*/
'mask-bg-color': Core['color-black'],
/**
* opacity
* @property namespace statement
*/
'mask-opacity': 0.5,
/**
* background
* @property namespace statement/content
*/
'content-bg-color': Core['color-white']
};
// should alway use var statement to carray a assigngg
var variable = Object.assign(slipVariables, ComponentCustomStyle);
return variable;
}
module.exports = VariableMix;
;