-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from czfadmin/feat/add-sort
feat(sort): 增加书签组内排序
- Loading branch information
Showing
36 changed files
with
1,334 additions
and
509 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# Change Log | ||
|
||
## 0.0.34 | ||
|
||
### Patch Changes | ||
|
||
- 支持自定义分组排序功能 | ||
|
||
## 0.0.33 | ||
|
||
### Patch Changes | ||
|
This file contains 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 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 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 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 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 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 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './group'; | ||
export * from './view'; | ||
export * from './base'; | ||
export * from './sort'; | ||
export * from './settings'; |
This file contains 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,18 @@ | ||
import {resolveBookmarkController} from '../../bootstrap'; | ||
import {TreeViewSortedEnum} from '../../types'; | ||
|
||
const controlller = resolveBookmarkController(); | ||
export function sortedByLineNumber(args: any) { | ||
if (!controlller) {return;} | ||
controlller.changeSortType(TreeViewSortedEnum.LINENUMBER); | ||
} | ||
|
||
export function sortedByCustom(args: any) { | ||
if (!controlller) {return;} | ||
controlller.changeSortType(TreeViewSortedEnum.CUSTOM); | ||
} | ||
|
||
export function sortedByCreateTime(args: any) { | ||
if (!controlller) {return;} | ||
controlller.changeSortType(TreeViewSortedEnum.CREATED_TIME); | ||
} |
This file contains 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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import {resolveBookmarkController} from '../../bootstrap'; | ||
import {TreeViewStyleEnum} from '../../types'; | ||
|
||
/** | ||
* 按照树格式展示 | ||
*/ | ||
export function viewAsTree(args: any) { | ||
const controller = resolveBookmarkController(); | ||
controller.changeViewType('tree'); | ||
controller.changeViewType(TreeViewStyleEnum.TREE); | ||
} | ||
|
||
/** | ||
* 按照列表方式显示 | ||
*/ | ||
export function viewAsList(args: any) { | ||
const controller = resolveBookmarkController(); | ||
controller.changeViewType('list'); | ||
controller.changeViewType(TreeViewStyleEnum.LIST); | ||
} |
This file contains 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
Oops, something went wrong.