kts-component-invoice-operate 3.2.10 → 3.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -14514,7 +14514,7 @@ function TableVirtual$1 (props) {
|
|
|
14514
14514
|
}, [props.dataSource, pointer, rowSize]); // 监听滚动
|
|
14515
14515
|
|
|
14516
14516
|
React.useEffect(function () {
|
|
14517
|
-
if (!self || !placeholder || !props.dataSource || !rowHeight || !tableBody) return;
|
|
14517
|
+
if (!self || !placeholder || !props.dataSource || !rowHeight || !tableBody || props.dataSource.length < 10) return;
|
|
14518
14518
|
|
|
14519
14519
|
var onScroll = function onScroll() {
|
|
14520
14520
|
if (!props.dataSource || !tableBody) return;
|
package/dist/index.js
CHANGED
|
@@ -14524,7 +14524,7 @@ function TableVirtual$1 (props) {
|
|
|
14524
14524
|
}, [props.dataSource, pointer, rowSize]); // 监听滚动
|
|
14525
14525
|
|
|
14526
14526
|
React__default['default'].useEffect(function () {
|
|
14527
|
-
if (!self || !placeholder || !props.dataSource || !rowHeight || !tableBody) return;
|
|
14527
|
+
if (!self || !placeholder || !props.dataSource || !rowHeight || !tableBody || props.dataSource.length < 10) return;
|
|
14528
14528
|
|
|
14529
14529
|
var onScroll = function onScroll() {
|
|
14530
14530
|
if (!props.dataSource || !tableBody) return;
|
package/package.json
CHANGED
|
@@ -63,7 +63,7 @@ export default function <T extends object = any>(props: TableProps<T>) {
|
|
|
63
63
|
|
|
64
64
|
// 监听滚动
|
|
65
65
|
React.useEffect(() => {
|
|
66
|
-
if (!self || !placeholder || !props.dataSource || !rowHeight || !tableBody)
|
|
66
|
+
if (!self || !placeholder || !props.dataSource || !rowHeight || !tableBody || props.dataSource.length < 10)
|
|
67
67
|
return;
|
|
68
68
|
|
|
69
69
|
const onScroll = () => {
|