bkui-vue 1.0.3-beta.26 → 1.0.3-beta.28
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/dist/index.cjs.js +46 -46
- package/dist/index.esm.js +6162 -6148
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +1 -1
- package/lib/affix/affix.less +2 -2
- package/lib/affix/affix.variable.css +3 -3
- package/lib/affix/index.js +13 -15
- package/lib/alert/alert.css +21 -21
- package/lib/alert/alert.less +16 -17
- package/lib/alert/alert.variable.css +23 -23
- package/lib/alert/index.js +22 -24
- package/lib/animate-number/index.js +5 -6
- package/lib/backtop/backtop.css +11 -11
- package/lib/backtop/backtop.less +3 -3
- package/lib/backtop/backtop.variable.css +13 -13
- package/lib/backtop/index.js +20 -22
- package/lib/badge/badge.css +32 -32
- package/lib/badge/badge.less +5 -5
- package/lib/badge/badge.variable.css +34 -34
- package/lib/badge/index.js +19 -21
- package/lib/breadcrumb/breadcrumb.css +31 -31
- package/lib/breadcrumb/breadcrumb.less +8 -8
- package/lib/breadcrumb/breadcrumb.variable.css +33 -33
- package/lib/breadcrumb/index.js +24 -26
- package/lib/button/button.css +69 -69
- package/lib/button/button.less +5 -3
- package/lib/button/button.variable.css +71 -71
- package/lib/button/index.js +28 -37
- package/lib/card/card.css +31 -31
- package/lib/card/card.less +4 -4
- package/lib/card/card.variable.css +33 -33
- package/lib/card/index.js +35 -43
- package/lib/cascader/cascader.css +63 -63
- package/lib/cascader/cascader.less +11 -12
- package/lib/cascader/cascader.variable.css +65 -65
- package/lib/cascader/index.js +80 -100
- package/lib/checkbox/checkbox.css +21 -21
- package/lib/checkbox/checkbox.less +8 -8
- package/lib/checkbox/checkbox.variable.css +23 -23
- package/lib/checkbox/index.js +32 -34
- package/lib/code-diff/code-diff.css +97 -97
- package/lib/code-diff/code-diff.less +4 -3
- package/lib/code-diff/code-diff.variable.css +99 -99
- package/lib/code-diff/index.js +12 -14
- package/lib/collapse/collapse.css +30 -30
- package/lib/collapse/collapse.less +24 -25
- package/lib/collapse/collapse.variable.css +32 -32
- package/lib/collapse/index.js +39 -41
- package/lib/collapse-transition/collapse-transition.css +32 -32
- package/lib/collapse-transition/collapse-transition.less +48 -59
- package/lib/collapse-transition/collapse-transition.variable.css +34 -34
- package/lib/collapse-transition/index.js +8 -9
- package/lib/color-picker/color-picker.css +57 -57
- package/lib/color-picker/color-picker.less +30 -36
- package/lib/color-picker/color-picker.variable.css +59 -59
- package/lib/color-picker/index.js +48 -50
- package/lib/components.js +505 -60
- package/lib/config-provider/config-provider.variable.css +2 -2
- package/lib/config-provider/index.js +8 -9
- package/lib/container/container.css +19 -19
- package/lib/container/container.less +3 -3
- package/lib/container/container.variable.css +21 -21
- package/lib/container/index.js +19 -21
- package/lib/date-picker/date-picker.css +92 -92
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.less +54 -55
- package/lib/date-picker/date-picker.variable.css +94 -94
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +69 -77
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/dialog/dialog.css +51 -51
- package/lib/dialog/dialog.less +1 -1
- package/lib/dialog/dialog.variable.css +53 -53
- package/lib/dialog/index.js +49 -63
- package/lib/directives/index.js +12 -13
- package/lib/dist.index.js +62 -5
- package/lib/divider/divider.css +8 -8
- package/lib/divider/divider.less +8 -5
- package/lib/divider/divider.variable.css +10 -10
- package/lib/divider/index.js +13 -15
- package/lib/dropdown/dropdown.css +15 -15
- package/lib/dropdown/dropdown.less +6 -6
- package/lib/dropdown/dropdown.variable.css +17 -17
- package/lib/dropdown/index.js +24 -32
- package/lib/exception/exception.css +13 -13
- package/lib/exception/exception.less +6 -6
- package/lib/exception/exception.variable.css +15 -15
- package/lib/exception/index.js +11 -13
- package/lib/fixed-navbar/fixed-navbar.css +9 -9
- package/lib/fixed-navbar/fixed-navbar.less +2 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +11 -11
- package/lib/fixed-navbar/index.js +13 -15
- package/lib/form/form.css +63 -63
- package/lib/form/form.less +16 -14
- package/lib/form/form.variable.css +65 -65
- package/lib/form/index.js +48 -50
- package/lib/hooks.js +48 -1
- package/lib/icon/index.js +0 -1
- package/lib/image/image-viewer.css +23 -23
- package/lib/image/image-viewer.less +25 -24
- package/lib/image/image-viewer.variable.css +25 -25
- package/lib/image/image.css +29 -29
- package/lib/image/image.less +8 -6
- package/lib/image/image.variable.css +31 -31
- package/lib/image/index.js +38 -39
- package/lib/index.js +72 -7
- package/lib/info-box/index.js +13 -21
- package/lib/info-box/info-box.css +10 -10
- package/lib/info-box/info-box.less +2 -1
- package/lib/info-box/info-box.variable.css +12 -12
- package/lib/input/index.js +59 -61
- package/lib/input/input.css +104 -102
- package/lib/input/input.less +33 -27
- package/lib/input/input.variable.css +106 -104
- package/lib/link/index.js +13 -15
- package/lib/link/link.css +18 -18
- package/lib/link/link.less +3 -1
- package/lib/link/link.variable.css +20 -20
- package/lib/loading/index.js +17 -19
- package/lib/loading/loading.css +94 -94
- package/lib/loading/loading.less +4 -4
- package/lib/loading/loading.variable.css +96 -96
- package/lib/locale/index.js +0 -1
- package/lib/menu/index.js +13 -15
- package/lib/menu/menu.css +38 -38
- package/lib/menu/menu.less +10 -10
- package/lib/menu/menu.variable.css +40 -40
- package/lib/menu/submenu.css +1 -1
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +3 -3
- package/lib/message/index.js +38 -40
- package/lib/message/message.css +59 -59
- package/lib/message/message.less +24 -25
- package/lib/message/message.variable.css +61 -61
- package/lib/modal/index.js +41 -43
- package/lib/modal/modal.css +26 -26
- package/lib/modal/modal.less +12 -8
- package/lib/modal/modal.variable.css +28 -28
- package/lib/navigation/index.js +14 -16
- package/lib/navigation/navigation.css +25 -25
- package/lib/navigation/navigation.less +9 -9
- package/lib/navigation/navigation.variable.css +27 -27
- package/lib/notify/index.js +31 -33
- package/lib/notify/notify.css +17 -17
- package/lib/notify/notify.less +6 -8
- package/lib/notify/notify.variable.css +19 -19
- package/lib/overflow-title/index.js +14 -22
- package/lib/pagination/index.js +50 -65
- package/lib/pagination/pagination.css +60 -60
- package/lib/pagination/pagination.less +25 -24
- package/lib/pagination/pagination.variable.css +62 -62
- package/lib/plugin-popover/index.js +53 -54
- package/lib/plugins/index.js +0 -1
- package/lib/pop-confirm/index.js +28 -42
- package/lib/pop-confirm/pop-confirm.css +10 -10
- package/lib/pop-confirm/pop-confirm.less +11 -14
- package/lib/pop-confirm/pop-confirm.variable.css +12 -12
- package/lib/popover/index.js +52 -54
- package/lib/popover/popover.css +5 -5
- package/lib/popover/popover.less +6 -5
- package/lib/popover/popover.variable.css +7 -7
- package/lib/popover2/index.js +3 -4
- package/lib/preset.js +64 -18
- package/lib/process/index.js +26 -27
- package/lib/process/process.css +33 -36
- package/lib/process/process.less +7 -8
- package/lib/process/process.variable.css +35 -38
- package/lib/progress/index.js +26 -28
- package/lib/progress/progress.css +33 -33
- package/lib/progress/progress.less +5 -6
- package/lib/progress/progress.variable.css +35 -35
- package/lib/radio/index.js +32 -34
- package/lib/radio/radio.css +51 -51
- package/lib/radio/radio.less +20 -13
- package/lib/radio/radio.variable.css +53 -53
- package/lib/rate/index.js +22 -24
- package/lib/rate/rate.css +2 -2
- package/lib/rate/rate.less +1 -1
- package/lib/rate/rate.variable.css +4 -4
- package/lib/rate/star.css +7 -7
- package/lib/rate/star.less +1 -1
- package/lib/rate/star.variable.css +9 -9
- package/lib/resize-layout/index.js +25 -27
- package/lib/resize-layout/resize-layout.css +42 -42
- package/lib/resize-layout/resize-layout.less +10 -17
- package/lib/resize-layout/resize-layout.variable.css +44 -44
- package/lib/search-select/index.js +49 -68
- package/lib/search-select/search-select.css +15 -15
- package/lib/search-select/search-select.variable.css +17 -17
- package/lib/select/index.js +129 -168
- package/lib/select/select.css +87 -87
- package/lib/select/select.less +22 -27
- package/lib/select/select.variable.css +89 -89
- package/lib/shared/index.js +4 -7
- package/lib/sideslider/index.js +14 -22
- package/lib/sideslider/sideslider.css +14 -14
- package/lib/sideslider/sideslider.less +13 -9
- package/lib/sideslider/sideslider.variable.css +16 -16
- package/lib/slider/index.js +22 -36
- package/lib/slider/slider.css +31 -31
- package/lib/slider/slider.less +8 -8
- package/lib/slider/slider.variable.css +33 -33
- package/lib/steps/index.js +28 -30
- package/lib/steps/steps.css +134 -134
- package/lib/steps/steps.less +48 -44
- package/lib/steps/steps.variable.css +136 -136
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +3 -3
- package/lib/styles/mixins/animate.variable.css +6 -6
- package/lib/styles/mixins/mixins.css +15 -15
- package/lib/styles/mixins/mixins.variable.css +15 -15
- package/lib/styles/mixins/popper.css +11 -11
- package/lib/styles/mixins/popper.less +6 -6
- package/lib/styles/mixins/popper.variable.css +13 -13
- package/lib/styles/mixins/scroll.css +5 -5
- package/lib/styles/mixins/scroll.less +4 -4
- package/lib/styles/mixins/scroll.variable.css +7 -7
- package/lib/styles/reset.css +6 -6
- package/lib/styles/reset.less +5 -4
- package/lib/styles/reset.variable.css +8 -8
- package/lib/styles/themes/themes.less +10 -3
- package/lib/swiper/index.js +14 -16
- package/lib/swiper/swiper.css +15 -15
- package/lib/swiper/swiper.less +8 -8
- package/lib/swiper/swiper.variable.css +17 -17
- package/lib/switcher/index.js +29 -31
- package/lib/switcher/switcher.css +57 -57
- package/lib/switcher/switcher.less +22 -14
- package/lib/switcher/switcher.variable.css +59 -59
- package/lib/tab/index.js +44 -46
- package/lib/tab/tab.css +78 -78
- package/lib/tab/tab.less +39 -40
- package/lib/tab/tab.variable.css +80 -80
- package/lib/table/components/table-column.d.ts +1 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/index.js +168 -207
- package/lib/table/plugins/head-filter.css +13 -13
- package/lib/table/plugins/head-filter.less +3 -3
- package/lib/table/plugins/head-filter.variable.css +15 -15
- package/lib/table/plugins/head-sort.css +5 -5
- package/lib/table/plugins/head-sort.less +2 -2
- package/lib/table/plugins/head-sort.variable.css +7 -7
- package/lib/table/plugins/settings.css +26 -26
- package/lib/table/plugins/settings.less +3 -1
- package/lib/table/plugins/settings.variable.css +28 -28
- package/lib/table/table.css +380 -380
- package/lib/table/table.less +14 -10
- package/lib/table/table.variable.css +382 -382
- package/lib/table-column/index.d.ts +3 -0
- package/lib/table-column/index.js +57 -43
- package/lib/tag/index.js +19 -21
- package/lib/tag/tag.css +51 -51
- package/lib/tag/tag.less +34 -34
- package/lib/tag/tag.variable.css +53 -53
- package/lib/tag-input/index.js +65 -80
- package/lib/tag-input/tag-input.css +38 -38
- package/lib/tag-input/tag-input.less +3 -3
- package/lib/tag-input/tag-input.variable.css +40 -40
- package/lib/time-picker/index.d.ts +3 -0
- package/lib/time-picker/index.js +7 -9
- package/lib/time-picker/time-picker.css +40 -40
- package/lib/time-picker/time-picker.less +44 -76
- package/lib/time-picker/time-picker.variable.css +42 -42
- package/lib/timeline/index.js +12 -13
- package/lib/timeline/timeline.css +69 -69
- package/lib/timeline/timeline.less +12 -6
- package/lib/timeline/timeline.variable.css +71 -71
- package/lib/transfer/index.js +36 -51
- package/lib/transfer/transfer.css +89 -89
- package/lib/transfer/transfer.less +1 -1
- package/lib/transfer/transfer.variable.css +91 -91
- package/lib/tree/index.js +72 -92
- package/lib/tree/tree.css +49 -49
- package/lib/tree/tree.less +7 -6
- package/lib/tree/tree.variable.css +51 -51
- package/lib/upload/index.js +48 -63
- package/lib/upload/upload.css +98 -98
- package/lib/upload/upload.less +69 -68
- package/lib/upload/upload.variable.css +100 -100
- package/lib/virtual-render/index.js +33 -35
- package/lib/virtual-render/virtual-render.css +9 -9
- package/lib/virtual-render/virtual-render.less +1 -1
- package/lib/virtual-render/virtual-render.variable.css +11 -11
- package/package.json +2 -2
- package/lib/styles/themes/themes copy.less +0 -167
package/lib/tree/tree.css
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
|
1
|
+
.bk-F-scroll-x {
|
2
2
|
overflow-x: auto;
|
3
3
|
scrollbar-color: #a0a0a0 transparent;
|
4
4
|
scrollbar-width: thin;
|
5
5
|
}
|
6
|
-
|
6
|
+
.bk-F-scroll-x::-webkit-scrollbar {
|
7
7
|
height: 6px;
|
8
8
|
}
|
9
|
-
|
9
|
+
.bk-F-scroll-y {
|
10
10
|
overflow-y: auto;
|
11
11
|
}
|
12
|
-
|
12
|
+
.bk-F-scroll-y::-webkit-scrollbar {
|
13
13
|
width: 4px;
|
14
14
|
}
|
15
|
-
|
15
|
+
.bk-F-scroll-y::-webkit-scrollbar-thumb {
|
16
16
|
border-radius: 4px;
|
17
17
|
}
|
18
|
-
|
18
|
+
.bk-virtual-render {
|
19
19
|
position: relative;
|
20
20
|
}
|
21
|
-
|
22
|
-
|
21
|
+
.bk-virtual-render .bk-virtual-content,
|
22
|
+
.bk-virtual-render.bk-virtual-content {
|
23
23
|
position: absolute;
|
24
24
|
top: 0;
|
25
25
|
bottom: 0;
|
@@ -27,15 +27,15 @@
|
|
27
27
|
width: 100%;
|
28
28
|
height: 100%;
|
29
29
|
}
|
30
|
-
|
30
|
+
.bk-virtual-render .bk-virtual-section {
|
31
31
|
width: 1px;
|
32
32
|
background: transparent;
|
33
33
|
}
|
34
|
-
|
34
|
+
.bk-checkbox-group {
|
35
35
|
display: inline-flex;
|
36
36
|
letter-spacing: normal;
|
37
37
|
}
|
38
|
-
|
38
|
+
.bk-checkbox {
|
39
39
|
display: inline-flex;
|
40
40
|
justify-self: center;
|
41
41
|
align-items: center;
|
@@ -45,19 +45,19 @@
|
|
45
45
|
cursor: pointer;
|
46
46
|
user-select: none;
|
47
47
|
}
|
48
|
-
|
48
|
+
.bk-checkbox ~ .bk-checkbox {
|
49
49
|
margin-left: 24px;
|
50
50
|
}
|
51
|
-
|
51
|
+
.bk-checkbox.is-checked .bk-checkbox-input {
|
52
52
|
background: #3a84ff;
|
53
53
|
border-color: #3a84ff;
|
54
54
|
transition: all 0.1s;
|
55
55
|
}
|
56
|
-
|
56
|
+
.bk-checkbox.is-checked .bk-checkbox-input.small::after {
|
57
57
|
width: 3px;
|
58
58
|
height: 6px;
|
59
59
|
}
|
60
|
-
|
60
|
+
.bk-checkbox.is-checked .bk-checkbox-input::after {
|
61
61
|
position: absolute;
|
62
62
|
top: 50%;
|
63
63
|
left: 50%;
|
@@ -70,16 +70,16 @@
|
|
70
70
|
transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
|
71
71
|
transform-origin: center;
|
72
72
|
}
|
73
|
-
|
73
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input {
|
74
74
|
background: #3a84ff;
|
75
75
|
border-color: #3a84ff;
|
76
76
|
transition: all 0.1s;
|
77
77
|
}
|
78
|
-
|
78
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
|
79
79
|
width: 6px;
|
80
80
|
height: 2px;
|
81
81
|
}
|
82
|
-
|
82
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input::after {
|
83
83
|
position: absolute;
|
84
84
|
top: 50%;
|
85
85
|
left: 50%;
|
@@ -91,31 +91,31 @@
|
|
91
91
|
content: '';
|
92
92
|
transform: translate(-50%, -50%);
|
93
93
|
}
|
94
|
-
|
94
|
+
.bk-checkbox.is-disabled {
|
95
95
|
color: #c4c6cc;
|
96
96
|
cursor: not-allowed;
|
97
97
|
}
|
98
|
-
|
98
|
+
.bk-checkbox.is-disabled .bk-checkbox-input {
|
99
99
|
background: #fafbfd;
|
100
100
|
border-color: #dcdee5;
|
101
101
|
}
|
102
|
-
|
102
|
+
.bk-checkbox.is-disabled .bk-checkbox-input::after {
|
103
103
|
background: #dcdee5;
|
104
104
|
}
|
105
|
-
|
105
|
+
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input {
|
106
106
|
background: #a3c5fd;
|
107
107
|
border-color: #a3c5fd;
|
108
108
|
}
|
109
|
-
|
109
|
+
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input::after {
|
110
110
|
background: #a3c5fd;
|
111
111
|
}
|
112
|
-
|
112
|
+
.bk-checkbox.is-prechecking {
|
113
113
|
position: relative;
|
114
114
|
}
|
115
|
-
|
115
|
+
.bk-checkbox.is-prechecking .bk-checkbox-input {
|
116
116
|
visibility: hidden;
|
117
117
|
}
|
118
|
-
|
118
|
+
.bk-checkbox-input {
|
119
119
|
position: relative;
|
120
120
|
display: inline-block;
|
121
121
|
width: 16px;
|
@@ -124,11 +124,11 @@
|
|
124
124
|
border: 1px solid #979ba5;
|
125
125
|
border-radius: 2px;
|
126
126
|
}
|
127
|
-
|
127
|
+
.bk-checkbox-input.small {
|
128
128
|
width: 14px;
|
129
129
|
height: 14px;
|
130
130
|
}
|
131
|
-
|
131
|
+
.bk-checkbox-original {
|
132
132
|
position: absolute;
|
133
133
|
top: 0;
|
134
134
|
left: 0;
|
@@ -136,27 +136,27 @@
|
|
136
136
|
width: 0;
|
137
137
|
height: 0;
|
138
138
|
}
|
139
|
-
|
139
|
+
.bk-checkbox-label {
|
140
140
|
display: inline-block;
|
141
141
|
margin-left: 6px;
|
142
142
|
vertical-align: middle;
|
143
143
|
}
|
144
|
-
|
144
|
+
.bk-checkbox-checking {
|
145
145
|
position: absolute;
|
146
146
|
font-size: 16px;
|
147
147
|
color: #3a84ff;
|
148
148
|
animation: loading 1s linear infinite;
|
149
149
|
}
|
150
|
-
|
150
|
+
.bk-tree {
|
151
151
|
font-size: 14px;
|
152
152
|
}
|
153
|
-
|
153
|
+
.bk-tree .bk-node-row {
|
154
154
|
padding-left: calc(var(--offset-left));
|
155
155
|
}
|
156
|
-
|
156
|
+
.bk-tree .bk-node-row.is-selected {
|
157
157
|
background-color: #ebf2ff;
|
158
158
|
}
|
159
|
-
|
159
|
+
.bk-tree-node {
|
160
160
|
position: relative;
|
161
161
|
display: flex;
|
162
162
|
height: var(--lineHeight);
|
@@ -165,10 +165,10 @@
|
|
165
165
|
cursor: pointer;
|
166
166
|
align-items: center;
|
167
167
|
}
|
168
|
-
|
169
|
-
margin-left: calc(var(--depth)
|
168
|
+
.bk-tree-node:not(.is-root) {
|
169
|
+
margin-left: calc(var(--depth)*var(--indent));
|
170
170
|
}
|
171
|
-
|
171
|
+
.bk-tree-node:not(.is-root).level-line::before {
|
172
172
|
position: absolute;
|
173
173
|
top: calc(50% + 1px);
|
174
174
|
left: calc(0px - var(--indent) + 6px);
|
@@ -179,10 +179,10 @@
|
|
179
179
|
border-bottom: var(--level-line);
|
180
180
|
content: '';
|
181
181
|
}
|
182
|
-
|
182
|
+
.bk-tree-node.is-open .bk-node-action {
|
183
183
|
color: #63656e;
|
184
184
|
}
|
185
|
-
|
185
|
+
.bk-tree-node .node-virtual-line {
|
186
186
|
position: absolute;
|
187
187
|
top: -12px;
|
188
188
|
bottom: 50%;
|
@@ -191,44 +191,44 @@
|
|
191
191
|
width: 0;
|
192
192
|
border-left: var(--level-line);
|
193
193
|
}
|
194
|
-
|
194
|
+
.bk-tree-node .bk-node-prefix {
|
195
195
|
display: flex;
|
196
196
|
width: 14px;
|
197
197
|
height: 14px;
|
198
198
|
align-items: center;
|
199
199
|
justify-content: center;
|
200
200
|
}
|
201
|
-
|
201
|
+
.bk-tree-node .bk-node-action {
|
202
202
|
margin-right: 6px;
|
203
203
|
color: #979ba5;
|
204
204
|
}
|
205
|
-
|
205
|
+
.bk-tree-node .bk-tree-icon {
|
206
206
|
margin: 0 6px 0 4px;
|
207
207
|
}
|
208
|
-
|
208
|
+
.bk-tree-node .bk-node-content {
|
209
209
|
display: flex;
|
210
210
|
flex: 1;
|
211
211
|
align-items: center;
|
212
212
|
min-width: 0;
|
213
213
|
}
|
214
|
-
|
214
|
+
.bk-tree-node .bk-node-content .bk-checkbox {
|
215
215
|
margin: 0;
|
216
216
|
}
|
217
|
-
|
217
|
+
.bk-tree-node .bk-node-content .bk-checkbox .bk-checkbox-input {
|
218
218
|
margin: 0;
|
219
219
|
}
|
220
|
-
|
220
|
+
.bk-tree-node .bk-node-content .bk-node-text {
|
221
221
|
flex: 1;
|
222
222
|
overflow: hidden;
|
223
223
|
text-overflow: ellipsis;
|
224
224
|
white-space: nowrap;
|
225
225
|
}
|
226
|
-
|
226
|
+
.bk-tree-drop-active {
|
227
227
|
background: #f5f7fa;
|
228
228
|
}
|
229
|
-
|
229
|
+
.bk-tree-drop-disabled {
|
230
230
|
background: #ffd5d5;
|
231
231
|
}
|
232
|
-
|
232
|
+
.bk-tree-drop-disabled .bk-tree-node {
|
233
233
|
cursor: no-drop;
|
234
234
|
}
|
package/lib/tree/tree.less
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
@import '../virtual-render/virtual-render.less';
|
4
4
|
@import '../checkbox/checkbox.less';
|
5
5
|
|
6
|
-
|
6
|
+
.@{bk-prefix}-tree {
|
7
7
|
font-size: 14px;
|
8
8
|
|
9
9
|
.@{bk-prefix}-node-row {
|
@@ -14,7 +14,7 @@
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
|
17
|
-
|
17
|
+
&-node {
|
18
18
|
position: relative;
|
19
19
|
display: flex;
|
20
20
|
height: var(--lineHeight);
|
@@ -24,7 +24,7 @@
|
|
24
24
|
align-items: center;
|
25
25
|
|
26
26
|
&:not(.is-root) {
|
27
|
-
margin-left: calc(var(--depth)
|
27
|
+
margin-left: calc(var(--depth)*var(--indent));
|
28
28
|
|
29
29
|
&.level-line {
|
30
30
|
&::before {
|
@@ -97,17 +97,18 @@
|
|
97
97
|
}
|
98
98
|
}
|
99
99
|
|
100
|
-
|
100
|
+
&-drop-active {
|
101
101
|
background: #f5f7fa;
|
102
102
|
}
|
103
103
|
|
104
|
-
|
104
|
+
&-drop-disabled {
|
105
105
|
background: #ffd5d5;
|
106
106
|
.@{bk-prefix}-tree-node {
|
107
107
|
cursor: no-drop;
|
108
108
|
}
|
109
109
|
}
|
110
110
|
|
111
|
-
|
111
|
+
&-drag-disabled{
|
112
|
+
|
112
113
|
}
|
113
114
|
}
|
@@ -12,13 +12,13 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
18
19
|
--line-height-base: 16px;
|
19
20
|
--line-height-medium: 16px;
|
20
21
|
--line-height-large: 18px;
|
21
|
-
--border-color: #dcdee5;
|
22
22
|
--component-size-small: 26px;
|
23
23
|
--component-size-base: 32px;
|
24
24
|
--component-size-large: 40px;
|
@@ -111,7 +111,7 @@
|
|
111
111
|
--table-border-color: #dcdee5;
|
112
112
|
--table-head-bg-color: #fafbfd;
|
113
113
|
--table-head-font-color: #313238;
|
114
|
-
--table-body-font-color: #
|
114
|
+
--table-body-font-color: #63656E;
|
115
115
|
--table-row-hover-bg-color: #f5f7fa;
|
116
116
|
--table-row-active-bg-color: #f0f1f5;
|
117
117
|
--cascader-panel-border-color: #dcdee5;
|
@@ -127,28 +127,28 @@
|
|
127
127
|
--select-active-color: #e1ecff;
|
128
128
|
--select-hover-color: #f5f7fa;
|
129
129
|
}
|
130
|
-
|
130
|
+
.bk-F-scroll-x {
|
131
131
|
overflow-x: auto;
|
132
132
|
scrollbar-color: #a0a0a0 transparent;
|
133
133
|
scrollbar-width: thin;
|
134
134
|
}
|
135
|
-
|
135
|
+
.bk-F-scroll-x::-webkit-scrollbar {
|
136
136
|
height: 6px;
|
137
137
|
}
|
138
|
-
|
138
|
+
.bk-F-scroll-y {
|
139
139
|
overflow-y: auto;
|
140
140
|
}
|
141
|
-
|
141
|
+
.bk-F-scroll-y::-webkit-scrollbar {
|
142
142
|
width: 4px;
|
143
143
|
}
|
144
|
-
|
144
|
+
.bk-F-scroll-y::-webkit-scrollbar-thumb {
|
145
145
|
border-radius: 4px;
|
146
146
|
}
|
147
|
-
|
147
|
+
.bk-virtual-render {
|
148
148
|
position: relative;
|
149
149
|
}
|
150
|
-
|
151
|
-
|
150
|
+
.bk-virtual-render .bk-virtual-content,
|
151
|
+
.bk-virtual-render.bk-virtual-content {
|
152
152
|
position: absolute;
|
153
153
|
top: 0;
|
154
154
|
bottom: 0;
|
@@ -156,15 +156,15 @@
|
|
156
156
|
width: 100%;
|
157
157
|
height: 100%;
|
158
158
|
}
|
159
|
-
|
159
|
+
.bk-virtual-render .bk-virtual-section {
|
160
160
|
width: 1px;
|
161
161
|
background: transparent;
|
162
162
|
}
|
163
|
-
|
163
|
+
.bk-checkbox-group {
|
164
164
|
display: inline-flex;
|
165
165
|
letter-spacing: normal;
|
166
166
|
}
|
167
|
-
|
167
|
+
.bk-checkbox {
|
168
168
|
display: inline-flex;
|
169
169
|
justify-self: center;
|
170
170
|
align-items: center;
|
@@ -174,19 +174,19 @@
|
|
174
174
|
cursor: pointer;
|
175
175
|
user-select: none;
|
176
176
|
}
|
177
|
-
|
177
|
+
.bk-checkbox ~ .bk-checkbox {
|
178
178
|
margin-left: 24px;
|
179
179
|
}
|
180
|
-
|
180
|
+
.bk-checkbox.is-checked .bk-checkbox-input {
|
181
181
|
background: #3a84ff;
|
182
182
|
border-color: #3a84ff;
|
183
183
|
transition: all 0.1s;
|
184
184
|
}
|
185
|
-
|
185
|
+
.bk-checkbox.is-checked .bk-checkbox-input.small::after {
|
186
186
|
width: 3px;
|
187
187
|
height: 6px;
|
188
188
|
}
|
189
|
-
|
189
|
+
.bk-checkbox.is-checked .bk-checkbox-input::after {
|
190
190
|
position: absolute;
|
191
191
|
top: 50%;
|
192
192
|
left: 50%;
|
@@ -199,16 +199,16 @@
|
|
199
199
|
transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
|
200
200
|
transform-origin: center;
|
201
201
|
}
|
202
|
-
|
202
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input {
|
203
203
|
background: #3a84ff;
|
204
204
|
border-color: #3a84ff;
|
205
205
|
transition: all 0.1s;
|
206
206
|
}
|
207
|
-
|
207
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
|
208
208
|
width: 6px;
|
209
209
|
height: 2px;
|
210
210
|
}
|
211
|
-
|
211
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input::after {
|
212
212
|
position: absolute;
|
213
213
|
top: 50%;
|
214
214
|
left: 50%;
|
@@ -220,31 +220,31 @@
|
|
220
220
|
content: '';
|
221
221
|
transform: translate(-50%, -50%);
|
222
222
|
}
|
223
|
-
|
223
|
+
.bk-checkbox.is-disabled {
|
224
224
|
color: #c4c6cc;
|
225
225
|
cursor: not-allowed;
|
226
226
|
}
|
227
|
-
|
227
|
+
.bk-checkbox.is-disabled .bk-checkbox-input {
|
228
228
|
background: #fafbfd;
|
229
229
|
border-color: #dcdee5;
|
230
230
|
}
|
231
|
-
|
231
|
+
.bk-checkbox.is-disabled .bk-checkbox-input::after {
|
232
232
|
background: #dcdee5;
|
233
233
|
}
|
234
|
-
|
234
|
+
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input {
|
235
235
|
background: #a3c5fd;
|
236
236
|
border-color: #a3c5fd;
|
237
237
|
}
|
238
|
-
|
238
|
+
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input::after {
|
239
239
|
background: #a3c5fd;
|
240
240
|
}
|
241
|
-
|
241
|
+
.bk-checkbox.is-prechecking {
|
242
242
|
position: relative;
|
243
243
|
}
|
244
|
-
|
244
|
+
.bk-checkbox.is-prechecking .bk-checkbox-input {
|
245
245
|
visibility: hidden;
|
246
246
|
}
|
247
|
-
|
247
|
+
.bk-checkbox-input {
|
248
248
|
position: relative;
|
249
249
|
display: inline-block;
|
250
250
|
width: 16px;
|
@@ -253,11 +253,11 @@
|
|
253
253
|
border: 1px solid #979ba5;
|
254
254
|
border-radius: 2px;
|
255
255
|
}
|
256
|
-
|
256
|
+
.bk-checkbox-input.small {
|
257
257
|
width: 14px;
|
258
258
|
height: 14px;
|
259
259
|
}
|
260
|
-
|
260
|
+
.bk-checkbox-original {
|
261
261
|
position: absolute;
|
262
262
|
top: 0;
|
263
263
|
left: 0;
|
@@ -265,27 +265,27 @@
|
|
265
265
|
width: 0;
|
266
266
|
height: 0;
|
267
267
|
}
|
268
|
-
|
268
|
+
.bk-checkbox-label {
|
269
269
|
display: inline-block;
|
270
270
|
margin-left: 6px;
|
271
271
|
vertical-align: middle;
|
272
272
|
}
|
273
|
-
|
273
|
+
.bk-checkbox-checking {
|
274
274
|
position: absolute;
|
275
275
|
font-size: 16px;
|
276
276
|
color: #3a84ff;
|
277
277
|
animation: loading 1s linear infinite;
|
278
278
|
}
|
279
|
-
|
279
|
+
.bk-tree {
|
280
280
|
font-size: 14px;
|
281
281
|
}
|
282
|
-
|
282
|
+
.bk-tree .bk-node-row {
|
283
283
|
padding-left: calc(var(--offset-left));
|
284
284
|
}
|
285
|
-
|
285
|
+
.bk-tree .bk-node-row.is-selected {
|
286
286
|
background-color: #ebf2ff;
|
287
287
|
}
|
288
|
-
|
288
|
+
.bk-tree-node {
|
289
289
|
position: relative;
|
290
290
|
display: flex;
|
291
291
|
height: var(--lineHeight);
|
@@ -294,10 +294,10 @@
|
|
294
294
|
cursor: pointer;
|
295
295
|
align-items: center;
|
296
296
|
}
|
297
|
-
|
298
|
-
margin-left: calc(var(--depth)
|
297
|
+
.bk-tree-node:not(.is-root) {
|
298
|
+
margin-left: calc(var(--depth)*var(--indent));
|
299
299
|
}
|
300
|
-
|
300
|
+
.bk-tree-node:not(.is-root).level-line::before {
|
301
301
|
position: absolute;
|
302
302
|
top: calc(50% + 1px);
|
303
303
|
left: calc(0px - var(--indent) + 6px);
|
@@ -308,10 +308,10 @@
|
|
308
308
|
border-bottom: var(--level-line);
|
309
309
|
content: '';
|
310
310
|
}
|
311
|
-
|
311
|
+
.bk-tree-node.is-open .bk-node-action {
|
312
312
|
color: #63656e;
|
313
313
|
}
|
314
|
-
|
314
|
+
.bk-tree-node .node-virtual-line {
|
315
315
|
position: absolute;
|
316
316
|
top: -12px;
|
317
317
|
bottom: 50%;
|
@@ -320,44 +320,44 @@
|
|
320
320
|
width: 0;
|
321
321
|
border-left: var(--level-line);
|
322
322
|
}
|
323
|
-
|
323
|
+
.bk-tree-node .bk-node-prefix {
|
324
324
|
display: flex;
|
325
325
|
width: 14px;
|
326
326
|
height: 14px;
|
327
327
|
align-items: center;
|
328
328
|
justify-content: center;
|
329
329
|
}
|
330
|
-
|
330
|
+
.bk-tree-node .bk-node-action {
|
331
331
|
margin-right: 6px;
|
332
332
|
color: #979ba5;
|
333
333
|
}
|
334
|
-
|
334
|
+
.bk-tree-node .bk-tree-icon {
|
335
335
|
margin: 0 6px 0 4px;
|
336
336
|
}
|
337
|
-
|
337
|
+
.bk-tree-node .bk-node-content {
|
338
338
|
display: flex;
|
339
339
|
flex: 1;
|
340
340
|
align-items: center;
|
341
341
|
min-width: 0;
|
342
342
|
}
|
343
|
-
|
343
|
+
.bk-tree-node .bk-node-content .bk-checkbox {
|
344
344
|
margin: 0;
|
345
345
|
}
|
346
|
-
|
346
|
+
.bk-tree-node .bk-node-content .bk-checkbox .bk-checkbox-input {
|
347
347
|
margin: 0;
|
348
348
|
}
|
349
|
-
|
349
|
+
.bk-tree-node .bk-node-content .bk-node-text {
|
350
350
|
flex: 1;
|
351
351
|
overflow: hidden;
|
352
352
|
text-overflow: ellipsis;
|
353
353
|
white-space: nowrap;
|
354
354
|
}
|
355
|
-
|
355
|
+
.bk-tree-drop-active {
|
356
356
|
background: #f5f7fa;
|
357
357
|
}
|
358
|
-
|
358
|
+
.bk-tree-drop-disabled {
|
359
359
|
background: #ffd5d5;
|
360
360
|
}
|
361
|
-
|
361
|
+
.bk-tree-drop-disabled .bk-tree-node {
|
362
362
|
cursor: no-drop;
|
363
363
|
}
|