weex-nuke
Version:
基于 Rax 、Weex 的高性能组件体系 ~~
35 lines (32 loc) • 779 B
JavaScript
function VariableMix(theme) {
const Core = theme.Core;
const ComponentCustomStyle = theme.Slip;
/**
* @namespace component
* @property module slip
* @property tag Slip
* @property category component
*/
const 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
const variable = Object.assign(slipVariables, ComponentCustomStyle);
return variable;
}
module.exports = VariableMix;
;