Skip to content

Commit

Permalink
feat: udpate
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuever committed Oct 15, 2023
1 parent d84c20f commit be8394d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 7 additions & 1 deletion packages/data-model/src/Dimension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 0 additions & 2 deletions packages/data-model/src/deprecate/Dimension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ class Dimension {
return this._meta;
}

restart() {}

setItemLayout(layout: ItemLayout | number, updateIntervalTree?: boolean) {
const meta = this.getMeta();
const _update =
Expand Down
4 changes: 2 additions & 2 deletions packages/data-model/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit be8394d

Please sign in to comment.