mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
fix typescript type errors, MDF
This commit is contained in:
parent
8afc46bd48
commit
cbfd821d4d
2 changed files with 2 additions and 10 deletions
|
|
@ -17,16 +17,8 @@ export default function InputControl(inprops) {
|
|||
}
|
||||
}, [divRef.current])
|
||||
|
||||
return <div className={type} ref={divRef}>
|
||||
return <div className={type||'text'} ref={divRef}>
|
||||
<input type='text' ref={inputRef} {...props} spellCheck='false' style={style} onWheel={onWheel}/>
|
||||
</div>;
|
||||
|
||||
}
|
||||
|
||||
InputControl.propTypes = {
|
||||
type: PropTypes.oneOf(['number', 'text']),
|
||||
};
|
||||
|
||||
InputControl.defaultProps = {
|
||||
type: 'text'
|
||||
};
|
||||
|
|
@ -4,7 +4,7 @@ import {BaseSchemaField, OperationParamsErrorReporter} from "cad/craft/schema/sc
|
|||
|
||||
export interface StringTypeSchema extends BaseSchemaField {
|
||||
|
||||
type: Types.number,
|
||||
type: Types.string,
|
||||
|
||||
enum?: string[]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue