@antmjs/vantui
Version:
一套适用于Taro3及React的vantui组件库
23 lines (21 loc) • 606 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.containerStyle = containerStyle;
exports.wrapStyle = wrapStyle;
var _style = require("../wxs/style");
// import { addUnit } from '../wxs/add-unit'
function wrapStyle(data) {
return (0, _style.style)({
transform: data.transform ? 'translate3d(0, ' + data.transform + 'px, 0)' : '',
top: data.fixed ? data.offsetTop + 'px' : '',
'z-index': data.zIndex
});
}
function containerStyle(data) {
return (0, _style.style)({
height: data.fixed ? data.height + 'px' : '',
'z-index': data.zIndex
});
}