chore: 修改inputRange schema 类型定义

This commit is contained in:
huangying11 2022-02-22 10:39:28 +08:00
parent 1692b5668f
commit 606a5a24ea

View File

@ -618,7 +618,7 @@ export default class RangeControl extends React.PureComponent<
let renderMarks:
| MarksType
| {[index: number | string]: ReactNode}
| undefined = {...marks};
| undefined = marks ? {...marks} : marks;
marks &&
forEach(marks, (item, key) => {
if (isObject(item) && (item as SchemaObject).type) {