UNPKG

zarm

Version:

基于 React 的移动端UI库

16 lines (14 loc) 390 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = attachPropertiesToComponent; function attachPropertiesToComponent(component, properties) { var ret = component; Object.keys(properties).forEach(function (key) { if (Object.prototype.hasOwnProperty.call(properties, key)) { ret[key] = properties[key]; } }); return ret; }