vant-weapp/packages/wxs/style.wxs
2020-12-08 15:25:15 +08:00

16 lines
305 B
XML

/* eslint-disable */
var object = require('./object.wxs');
function style(styles) {
return object.keys(styles)
.filter(function (key) {
return styles[key] != null;
})
.map(function (key) {
return [key, [styles[key]]].join(':');
})
.join(';');
}
module.exports = style;