-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove rc-tree and develop the new Tree component (#418)
* feat: remove rc-tree and develop the new Tree component * feat: support onDropTree in tree component * fix: add data-* for treeNode * fix: improve select in tree component * fix: reset the dragProvider in workbench * feat: support to expand editable node * test: update snapshot * fix: remove useless styleSheet * chore: remove rc-tree dependency * test: improve test for paneView which is on top of TreeView * fix: remove the style of rc-tree * test: improve unit test for tree component * fix: prevent drag to itself will expand itself * feat: support to controll the expand keys * feat: support to distinguish loadData in tree * fix: improve the color theme for indent * feat: support treeClick event for reset the current active node * fix: improve the porblems caused by rebase * chore: remove useless theme color * refactor: rename onSelectNode to onSelect
- Loading branch information
1 parent
8626600
commit 8690180
Showing
30 changed files
with
1,077 additions
and
552 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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { | ||
getBEMElement, | ||
getBEMModifier, | ||
prefixClaName, | ||
} from 'mo/common/className'; | ||
|
||
export const defaultTreeClassName = prefixClaName('tree'); | ||
export const defaultTreeNodeClassName = getBEMElement( | ||
defaultTreeClassName, | ||
'treenode' | ||
); | ||
export const activeTreeNodeClassName = getBEMModifier( | ||
defaultTreeNodeClassName, | ||
'active' | ||
); | ||
|
||
export const expandTreeNodeClassName = getBEMModifier( | ||
defaultTreeNodeClassName, | ||
'open' | ||
); | ||
|
||
export const unexpandTreeNodeClassName = getBEMModifier( | ||
defaultTreeNodeClassName, | ||
'close' | ||
); | ||
|
||
export const indentClassName = getBEMElement(defaultTreeClassName, 'indent'); | ||
export const indentGuideClassName = getBEMElement(indentClassName, 'guide'); | ||
|
||
export const treeNodeTitleClassName = getBEMElement( | ||
defaultTreeNodeClassName, | ||
'title' | ||
); |
Oops, something went wrong.