x4js 1.4.29 → 1.4.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/treeview.js +1 -0
- package/lib/x4.css +4 -2
- package/package.json +1 -1
- package/src/treeview.ts +3 -1
- package/src/x4.less +6 -2
package/lib/treeview.js
CHANGED
package/lib/x4.css
CHANGED
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
--x4-font-size: 13px;
|
|
32
32
|
--x4-base-color: #266888;
|
|
33
33
|
--x4-selection-color: #2458B3;
|
|
34
|
+
--x4-selection-text: white;
|
|
34
35
|
--x4-hover-color: rgba(36, 88, 179, 0.9);
|
|
36
|
+
--x4-hover-text: white;
|
|
35
37
|
--x4-mask-color: rgba(36, 88, 179, 0.6);
|
|
36
38
|
--x4-focus-color: #2458B3;
|
|
37
39
|
--x4-error-color: #b92a09;
|
|
@@ -758,11 +760,11 @@ textarea::selection {
|
|
|
758
760
|
}
|
|
759
761
|
.x-list-view .x-list-item:hover {
|
|
760
762
|
background-color: var(--x4-hover-color);
|
|
761
|
-
color:
|
|
763
|
+
color: var(--x4-hover-text);
|
|
762
764
|
}
|
|
763
765
|
.x-list-view .x-list-item.x-selected {
|
|
764
766
|
background-color: var(--x4-selection-color);
|
|
765
|
-
color:
|
|
767
|
+
color: var(--x4-selection-text);
|
|
766
768
|
}
|
|
767
769
|
.x-list-view .x-list-item:focus {
|
|
768
770
|
outline: none;
|
package/package.json
CHANGED
package/src/treeview.ts
CHANGED
|
@@ -520,8 +520,10 @@ export class TreeView extends VLayout<TreeViewProps, TreeViewEventMap> {
|
|
|
520
520
|
return;
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
|
|
523
|
+
|
|
524
524
|
this.selection = nd.id;
|
|
525
|
+
|
|
526
|
+
this.emit('click', EvClick(nd) );
|
|
525
527
|
this.emit('contextMenu', EvContextMenu(ev, nd));
|
|
526
528
|
|
|
527
529
|
return;
|
package/src/x4.less
CHANGED
|
@@ -36,7 +36,11 @@
|
|
|
36
36
|
--x4-base-color: #266888;
|
|
37
37
|
|
|
38
38
|
--x4-selection-color: #2458B3;
|
|
39
|
+
--x4-selection-text: white;
|
|
40
|
+
|
|
39
41
|
--x4-hover-color: fadeout( #2458B3, 10% );
|
|
42
|
+
--x4-hover-text: white;
|
|
43
|
+
|
|
40
44
|
--x4-mask-color: fadeout( #2458B3, 40% );
|
|
41
45
|
--x4-focus-color: #2458B3;
|
|
42
46
|
--x4-error-color: #b92a09;
|
|
@@ -947,12 +951,12 @@ textarea {
|
|
|
947
951
|
|
|
948
952
|
&:hover {
|
|
949
953
|
background-color: var( --x4-hover-color );
|
|
950
|
-
color:
|
|
954
|
+
color: var( --x4-hover-text );
|
|
951
955
|
}
|
|
952
956
|
|
|
953
957
|
&.x-selected {
|
|
954
958
|
background-color: var( --x4-selection-color );
|
|
955
|
-
color:
|
|
959
|
+
color: var( --x4-selection-text );
|
|
956
960
|
}
|
|
957
961
|
|
|
958
962
|
&:focus {
|