You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
506 B
24 lines
506 B
/* eslint-disable */
|
|
var style = require('../wxs/style.wxs');
|
|
|
|
function wrapStyle(data) {
|
|
return style({
|
|
transform: data.transform
|
|
? 'translate3d(0, ' + data.transform + 'px, 0)'
|
|
: '',
|
|
top: data.fixed ? data.offsetTop + 'px' : '',
|
|
'z-index': data.zIndex,
|
|
});
|
|
}
|
|
|
|
function containerStyle(data) {
|
|
return style({
|
|
height: data.fixed ? data.height + 'px' : '',
|
|
'z-index': data.zIndex,
|
|
});
|
|
}
|
|
|
|
module.exports = {
|
|
wrapStyle: wrapStyle,
|
|
containerStyle: containerStyle,
|
|
};
|