From be8394de4c5340d9f0464848905997ccaac97929 Mon Sep 17 00:00:00 2001 From: ryuyutyo Date: Sun, 15 Oct 2023 21:58:56 +0800 Subject: [PATCH] feat: udpate --- packages/data-model/src/Dimension.ts | 8 +++++++- packages/data-model/src/deprecate/Dimension.ts | 2 -- packages/data-model/src/index.ts | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/data-model/src/Dimension.ts b/packages/data-model/src/Dimension.ts index 9dc360c4..5f1d0c89 100644 --- a/packages/data-model/src/Dimension.ts +++ b/packages/data-model/src/Dimension.ts @@ -169,7 +169,13 @@ class Dimension extends BaseContainer { return this._meta; } - restart() {} + setKeyItemLayout( + key: string, + layout: ItemLayout | number, + updateIntervalTree?: boolean + ) { + this.setItemLayout(layout, updateIntervalTree); + } setItemLayout(layout: ItemLayout | number, updateIntervalTree?: boolean) { const meta = this.getMeta(); diff --git a/packages/data-model/src/deprecate/Dimension.ts b/packages/data-model/src/deprecate/Dimension.ts index fd173bc3..a7e7658e 100644 --- a/packages/data-model/src/deprecate/Dimension.ts +++ b/packages/data-model/src/deprecate/Dimension.ts @@ -152,8 +152,6 @@ class Dimension { return this._meta; } - restart() {} - setItemLayout(layout: ItemLayout | number, updateIntervalTree?: boolean) { const meta = this.getMeta(); const _update = diff --git a/packages/data-model/src/index.ts b/packages/data-model/src/index.ts index cde67616..c6bd1602 100644 --- a/packages/data-model/src/index.ts +++ b/packages/data-model/src/index.ts @@ -2,11 +2,11 @@ export { default as Dimension } from './deprecate/Dimension'; export { default as ItemsDimensions } from './deprecate/ItemsDimensions'; export { default as ListDimensions } from './deprecate/ListDimensions'; export { default as ListGroupDimensions } from './deprecate/ListGroupDimensions'; -export { default as ItemMeta } from './deprecate/ItemMeta'; +export { default as ItemMeta } from './ItemMeta'; export { default as DimensionExperimental } from './Dimension'; export { default as ListDimensionsExperimental } from './ListDimensions'; -export { default as ItemsDimensionsExperimental } from './ItemsDimensions' +export { default as ItemsDimensionsExperimental } from './ItemsDimensions'; export { default as ListGroupDimensionsExperimental } from './ListGroupDimensions'; export { default as PseudoListDimensions } from './PseudoListDimensions'; export { default as ItemMetaExperimental } from './ItemMeta';