diff --git a/packages/libro-core/src/components/dnd-component/virtualized-manager.ts b/packages/libro-core/src/components/dnd-component/virtualized-manager.ts index 80ccf85c..63bb604f 100644 --- a/packages/libro-core/src/components/dnd-component/virtualized-manager.ts +++ b/packages/libro-core/src/components/dnd-component/virtualized-manager.ts @@ -20,15 +20,18 @@ export class VirtualizedManager implements IVirtualizedManager { * @param size undefined 或者 单位 为B * @returns 是否使用虚拟滚动 */ + // eslint-disable-next-line @typescript-eslint/no-unused-vars openVirtualized = async (length: number, size?: number) => { + this.isVirtualized = false; + return false; // this.isVirtualized = true; // return true; - if (length > 100 || (size && size > 4)) { - this.isVirtualized = true; - return true; - } else { - this.isVirtualized = false; - return false; - } + // if (length > 100 || (size && size > 4)) { + // this.isVirtualized = true; + // return true; + // } else { + // this.isVirtualized = false; + // return false; + // } }; } diff --git a/packages/libro-core/src/virtualized-manager.ts b/packages/libro-core/src/virtualized-manager.ts index 4ca8ba5f..c4e3f7ca 100644 --- a/packages/libro-core/src/virtualized-manager.ts +++ b/packages/libro-core/src/virtualized-manager.ts @@ -34,14 +34,16 @@ export class VirtualizedManager implements IVirtualizedManager { */ // eslint-disable-next-line @typescript-eslint/no-unused-vars openVirtualized = async (length: number, size?: number, path?: string) => { + this.isVirtualized = false; + return false; // this.isVirtualized = true; // return true; - if (length > 100 || (size && size > 4)) { - this.isVirtualized = true; - return true; - } else { - this.isVirtualized = false; - return false; - } + // if (length > 100 || (size && size > 4)) { + // this.isVirtualized = true; + // return true; + // } else { + // this.isVirtualized = false; + // return false; + // } }; }