File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ export default Component.extend({
99 layout,
1010 classNameBindings : [ 'model.isSelected:tree-highlight' ] ,
1111
12+ click ( ) {
13+ this . attrs . select ( this . get ( 'model' ) ) ;
14+ } ,
15+
1216 mouseEnter ( event ) {
1317 let { hover } = this . attrs ;
1418 if ( hover ) {
Original file line number Diff line number Diff line change 1212 list-style : none;
1313}
1414
15- .tree-node span {
16- cursor : pointer;
17- }
18-
1915.tree-node .toggle-icon {
2016 color : # a5d4fd ;
2117 cursor : pointer;
3228.tree-node .tree-highlight {
3329 background-color : # f2f9fc ;
3430 color : # 333 ;
31+ cursor : pointer;
3532}
Original file line number Diff line number Diff line change 11{{ #if model.checkable }}
2- {{ x-check value =model.id checked =model.isChecked action = (action ' toggleCheck' )}}
2+ <input type =" checkbox" checked ={{ model.isChecked }}
3+ onclick ={{ action ' toggleCheck' bubbles =false }} >
34{{ /if }}
4- <span class =" toggle-icon" {{ action ' toggleExpand' }} >
5+ <span class =" toggle-icon" {{ action ' toggleExpand' bubbles = false }} >
56 {{ #if model.children.length }}
67 {{ #if model.isExpanded }}
78 ▼
1213
1314 {{ /if }}
1415</span >
15- <span {{ action select model }} >
16- {{ model.name }}
17- </span >
16+
17+ {{ model.name }}
You can’t perform that action at this time.
0 commit comments