mirror of
https://git.beihong.wang/wangbeihong/iot-bedroom-environment-controller.git
synced 2026-04-24 08:43:05 +08:00
增加补充相关资料和小程序源码
This commit is contained in:
25
微信小程序源码/iot-home/node_modules/@vant/weapp/lib/sticky/index.wxs
generated
vendored
Normal file
25
微信小程序源码/iot-home/node_modules/@vant/weapp/lib/sticky/index.wxs
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/* eslint-disable */
|
||||
var style = require('../wxs/style.wxs');
|
||||
var addUnit = require('../wxs/add-unit.wxs');
|
||||
|
||||
function wrapStyle(data) {
|
||||
return style({
|
||||
transform: data.transform
|
||||
? 'translate3d(0, ' + data.transform + 'px, 0)'
|
||||
: '',
|
||||
top: data.fixed ? addUnit(data.offsetTop) : '',
|
||||
'z-index': data.zIndex,
|
||||
});
|
||||
}
|
||||
|
||||
function containerStyle(data) {
|
||||
return style({
|
||||
height: data.fixed ? addUnit(data.height) : '',
|
||||
'z-index': data.zIndex,
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
wrapStyle: wrapStyle,
|
||||
containerStyle: containerStyle,
|
||||
};
|
||||
Reference in New Issue
Block a user