|
|
@ -61,18 +61,11 @@ interface SliderData extends InputData
|
|
|
|
@observer
|
|
|
|
@observer
|
|
|
|
export class Slider extends React.Component<InputData, {}>{
|
|
|
|
export class Slider extends React.Component<InputData, {}>{
|
|
|
|
input: HTMLInputElement;
|
|
|
|
input: HTMLInputElement;
|
|
|
|
remove;
|
|
|
|
|
|
|
|
componentDidMount()
|
|
|
|
componentDidMount()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// this.remove = autorun(() =>
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// let data = this.props as InputData;
|
|
|
|
|
|
|
|
// this.input.value = data.obj[data.data.key];
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
componentWillUnmount()
|
|
|
|
componentWillUnmount()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.remove();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render()
|
|
|
|
render()
|
|
|
|
{
|
|
|
|
{
|
|
|
|