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.
21 lines
361 B
21 lines
361 B
/* eslint-disable */
|
|
function wrapStyle(data) {
|
|
if (data.fixed) {
|
|
return 'top: ' + data.offsetTop + 'px;';
|
|
}
|
|
|
|
return '';
|
|
}
|
|
|
|
function containerStyle(data) {
|
|
if (data.fixed) {
|
|
return 'height: ' + data.height + 'px; z-index: ' + data.zIndex + ';';
|
|
}
|
|
|
|
return '';
|
|
}
|
|
|
|
module.exports = {
|
|
wrapStyle: wrapStyle,
|
|
containerStyle: containerStyle
|
|
};
|
|
|