40 lines
861 B
JavaScript
40 lines
861 B
JavaScript
|
|
var ItemValues;
|
||
|
|
export default window.ItemValues = ItemValues = class ItemValues extends React.Component {
|
||
|
|
constructor(props) {
|
||
|
|
var ref, ref1;
|
||
|
|
super(props);
|
||
|
|
this.state = {
|
||
|
|
data: (ref = props.data) != null ? ref : {},
|
||
|
|
value: (ref1 = props.value) != null ? ref1 : {}
|
||
|
|
};
|
||
|
|
this.onSelect = this.onSelect.bind(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
getValue() {
|
||
|
|
return 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
onSelect(x) {
|
||
|
|
return console.log('onSelect', x);
|
||
|
|
}
|
||
|
|
|
||
|
|
render() {
|
||
|
|
var data, value;
|
||
|
|
({
|
||
|
|
data,
|
||
|
|
value
|
||
|
|
} = this.state);
|
||
|
|
console.log(data, value);
|
||
|
|
return React.createElement("div", null, React.createElement("div", {
|
||
|
|
className: "row2"
|
||
|
|
}, React.createElement("div", {
|
||
|
|
className: "c c-50"
|
||
|
|
}, React.createElement(Select, {
|
||
|
|
data: data,
|
||
|
|
onSelect: this.onSelect
|
||
|
|
}))));
|
||
|
|
}
|
||
|
|
|
||
|
|
};
|
||
|
|
//# sourceMappingURL=ItemValues.js.map
|