@@ -117,7 +137,12 @@ function InputNumber(props: InputNumberProps) {
setVisible(!visible);
}}
>
-
+
@@ -148,8 +174,9 @@ InputNumber.defaultProps = {
inputWidth: 50,
extraWidth: 20,
step: 1,
- defaultValue: "0",
- initialVisible: false
+ defaultValue: 0,
+ initialVisible: false,
+ height: "32px"
};
export default InputNumber;
diff --git a/src/components/Table/_style.scss b/src/components/Table/_style.scss
index e25fd89..bcbdbf2 100644
--- a/src/components/Table/_style.scss
+++ b/src/components/Table/_style.scss
@@ -16,6 +16,7 @@
padding:10px;
position: relative;
+ text-align: center;
.bigbear-table-icon{
cursor: pointer;
position: absolute;
@@ -36,8 +37,9 @@
}
.bigbear-table-data-item{
@include neufactory-noactive($white,$neu-whiteshadow1,$neu-whiteshadow2);
-
- padding: 10px;
+ text-align: center;
+ padding-top: 10px;
+ padding-bottom: 10px;
}
}
}
diff --git a/src/components/VirtualList/virtuallist.tsx b/src/components/VirtualList/virtuallist.tsx
index a94f184..4243dd3 100644
--- a/src/components/VirtualList/virtuallist.tsx
+++ b/src/components/VirtualList/virtuallist.tsx
@@ -107,13 +107,13 @@ function VirtualList(props: Props) {
});
});
};
+ const combinedFunc = throttle(scrollFunc, props.delay!);
if (props.scrollDom) {
- props.scrollDom.addEventListener("scroll", throttle(scrollFunc, props.delay!));
+ props.scrollDom.addEventListener("scroll", combinedFunc);
}
if (props.onloadFunc) props.onloadFunc();
return () => {
- if (props.scrollDom)
- props.scrollDom.removeEventListener("scroll", throttle(scrollFunc, props.delay!));
+ if (props.scrollDom) props.scrollDom.removeEventListener("scroll", combinedFunc);
};
}, [props]);
return (