-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jlpereira
committed
Mar 15, 2023
1 parent
bd8c562
commit ce708e1
Showing
4 changed files
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/modules/otus/components/Panel/PanelNomenclature/splitList.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import { computed } from 'vue' | ||
|
|
||
| export function splitList(list, MAX_RECORDS) { | ||
| const copyArr = list.slice() | ||
| const first = copyArr.splice(0, MAX_RECORDS) | ||
| const last = copyArr.splice(-MAX_RECORDS) | ||
| const middle = copyArr | ||
|
|
||
| return { | ||
| first, | ||
| middle, | ||
| last | ||
| } | ||
| } |
16 changes: 0 additions & 16 deletions
16
src/modules/otus/components/Panel/PanelNomenclature/useSplitList.js
This file was deleted.
Oops, something went wrong.