iweather_icon_weapp
Version:
55 lines (47 loc) • 850 B
JavaScript
var globalThis = this, self = this;
module.exports =
require("../_commons/0.js")([
{
"ids": [2],
"modules":{
/***/ 2:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(22)
/***/ }),
/***/ 22:
/***/ (function(module, exports) {
Component({
properties: {
name: {
type: String
},
size: {
type: Number,
optionalTypes: [String],
value: 18
}
},
lifetimes: {
attached: function attached() {
var size = this.properties.size;
if (typeof size === 'number') {
this.setData({
iconSize: "".concat(size, "px")
});
} else if (typeof size === 'string') {
this.setData({
iconSize: size
});
}
}
},
data: {
quote: '"',
iconSize: 0
}
});
/***/ })
},
"entries": [[2,0]]
},
]);