mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
20 lines
440 B
JavaScript
20 lines
440 B
JavaScript
function _defineProperty(obj, key, value) {
|
|
if (key in obj) {
|
|
Object.defineProperty(obj, key, {
|
|
value: value,
|
|
enumerable: true,
|
|
configurable: true,
|
|
writable: true
|
|
});
|
|
} else {
|
|
obj[key] = value;
|
|
}
|
|
return obj;
|
|
}
|
|
class Item extends Component {
|
|
constructor(props){
|
|
super(props);
|
|
_defineProperty(this, "input", this.props.item);
|
|
}
|
|
}
|