bkui-vue 2.0.1-beta.39.table.1 → 2.0.1-beta.39.table.2
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 +23 -23
- package/dist/index.esm.js +2874 -2870
- package/dist/index.umd.js +28 -28
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/index.js +1 -1
- package/lib/scrollbar/css/scrollbar.css +239 -0
- package/lib/scrollbar/css/scrollbar.less +139 -0
- package/lib/scrollbar/css/scrollbar.variable.css +499 -0
- package/lib/styles/index.d.ts +1 -0
- package/lib/table/hooks/use-layout.d.ts +1 -0
- package/lib/table/index.js +16 -4
- package/lib/table/table.css +2 -3
- package/lib/table/table.less +2 -0
- package/lib/table/table.variable.css +2 -3
- package/lib/table-column/index.js +4 -0
- package/lib/tree/tree.css +0 -3
- package/lib/tree/tree.variable.css +0 -3
- package/lib/virtual-render/virtual-render.css +0 -3
- package/lib/virtual-render/virtual-render.variable.css +0 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -4,5 +4,5 @@ export { default } from './preset';
|
|
4
4
|
export * from './config-provider';
|
5
5
|
export * from './directives';
|
6
6
|
export * as plugins from './plugins';
|
7
|
-
export const version = "2.0.1-beta.39.table.
|
7
|
+
export const version = "2.0.1-beta.39.table.2";
|
8
8
|
window.__bkui_vue_version__ = version;
|
@@ -0,0 +1,239 @@
|
|
1
|
+
:root {
|
2
|
+
--bk-prefix: bk;
|
3
|
+
--popover-max-height: 216px;
|
4
|
+
--primary-color: #3a84ff;
|
5
|
+
--success-color: #2dcb56;
|
6
|
+
--warning-color: #ff9c01;
|
7
|
+
--danger-color: #ea3636;
|
8
|
+
--default-color: #63656e;
|
9
|
+
--gray-color: #979ba5;
|
10
|
+
--light-gray: #c4c6cc;
|
11
|
+
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
13
|
+
--disable-color: #dcdee5;
|
14
|
+
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
16
|
+
--font-size-base: 12px;
|
17
|
+
--font-size-medium: 14px;
|
18
|
+
--font-size-large: 16px;
|
19
|
+
--line-height-base: 16px;
|
20
|
+
--line-height-medium: 16px;
|
21
|
+
--line-height-large: 18px;
|
22
|
+
--component-size-small: 26px;
|
23
|
+
--component-size-base: 32px;
|
24
|
+
--component-size-large: 40px;
|
25
|
+
--component-size-small-padding: 0 12px;
|
26
|
+
--component-size-base-padding: 0 14px;
|
27
|
+
--component-size-large-padding: 0 16px;
|
28
|
+
--border-width-base: 1px;
|
29
|
+
--border-style-base: solid;
|
30
|
+
--border-radius-base: 2px;
|
31
|
+
--border-style-color: var(--light-gray);
|
32
|
+
--input-disabled-bg: #fafbfd;
|
33
|
+
--input-disabled-border: var(--disable-color);
|
34
|
+
--input-height-base: var(--component-size-base);
|
35
|
+
--input-color: var(--default-color);
|
36
|
+
--input-bg: white;
|
37
|
+
--input-border-color: var(--light-gray);
|
38
|
+
--input-broder-radius: 3px;
|
39
|
+
--input-shadow-color: #a3c5fd;
|
40
|
+
--input-horizontal-padding: 8px;
|
41
|
+
--input-block-color: #f5f7fa;
|
42
|
+
--input-block-hover-color: #eaebf0;
|
43
|
+
--input-icon-size: var(--font-size-medium);
|
44
|
+
--input-maxlength-color: #979ba5;
|
45
|
+
--button-primary-hover-color: #5594fa;
|
46
|
+
--button-danger-hover-color: #ff5656;
|
47
|
+
--button-success-hover-color: #45e35f;
|
48
|
+
--button-warning-hover-color: #ffb848;
|
49
|
+
--button-default-hover-border-color: #979ba5;
|
50
|
+
--button-primary-active-color: #2c77f4;
|
51
|
+
--button-danger-active-color: #db2626;
|
52
|
+
--button-success-active-color: #1ab943;
|
53
|
+
--button-warning-active-color: #eb9000;
|
54
|
+
--button-selected-bg-color: #e1ecff;
|
55
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
56
|
+
--radio-font-color: #63656e;
|
57
|
+
--radio-active-color: #3a84ff;
|
58
|
+
--radio-hover-border-color: #979ba5;
|
59
|
+
--radio-disabled-border: #dcdee5;
|
60
|
+
--radio-disabled-font-color: #c4c6cc;
|
61
|
+
--radio-disabled-checked-bg: #a3c5fd;
|
62
|
+
--radio-button-checked-bg: #e1ecff;
|
63
|
+
--radio-button-disabled-checked-bg: #fafbfd;
|
64
|
+
--checkbox-disabled-checked-bg: #a3c5fd;
|
65
|
+
--fixed-navbar-background: #fff;
|
66
|
+
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
67
|
+
--switch-default-color: #fff;
|
68
|
+
--switch-grey-color: #c4c6cc;
|
69
|
+
--breadcrumb-black-color: #979ba5;
|
70
|
+
--breadcrumb-primary-hover-color: #0082ff;
|
71
|
+
--breadcrumb-fn-main-color: #63656e;
|
72
|
+
--link-default-hover-color: #979ba5;
|
73
|
+
--link-primary-hover-color: #699df4;
|
74
|
+
--link-success-hover-color: #45e35f;
|
75
|
+
--link-warning-hover-color: #ffb848;
|
76
|
+
--link-danger-hover-color: #ff5656;
|
77
|
+
--link-default-disabled-color: #dcdee5;
|
78
|
+
--link-primary-disabled-color: #a3c5fd;
|
79
|
+
--link-success-disabled-color: #94f5a4;
|
80
|
+
--link-warning-disabled-color: #ffd695;
|
81
|
+
--link-danger-disabled-color: #fd9c9c;
|
82
|
+
--message-color: var(--default-color);
|
83
|
+
--message-primary-bg-color: #f0f8ff;
|
84
|
+
--message-primary-border-color: #e1ecff;
|
85
|
+
--message-primary-shadow-color: #e1e8f4;
|
86
|
+
--message-warning-bg-color: #fff4e2;
|
87
|
+
--message-warning-border-color: #ffe8c3;
|
88
|
+
--message-warning-shadow-color: #ede6db;
|
89
|
+
--message-success-bg-color: #f2fff4;
|
90
|
+
--message-success-border-color: #dcffe2;
|
91
|
+
--message-success-shadow-color: #cef0d7;
|
92
|
+
--message-danger-bg-color: #ffeded;
|
93
|
+
--message-danger-border-color: #ffdddd;
|
94
|
+
--message-danger-shadow-color: #f6dada;
|
95
|
+
--slider-default-bg: #dcdee5;
|
96
|
+
--slider-disable-bar-bg: #979ba5;
|
97
|
+
--menu-bg-color: #182132;
|
98
|
+
--submenu-bg-color: #151d2c;
|
99
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
100
|
+
--menu-color: #96a2b9;
|
101
|
+
--menu-group-color: var(--default-color);
|
102
|
+
--menu-width: 260px;
|
103
|
+
--menu-collapse-width: 60px;
|
104
|
+
--menu-active-color: white;
|
105
|
+
--nav-header-bg-color: #182132;
|
106
|
+
--nav-bg-color: #182132;
|
107
|
+
--date-picker-disabled-bg: #fafbfd;
|
108
|
+
--date-picker-dropdown-mb: 4px;
|
109
|
+
--date-picker-dropdown-bg: #fff;
|
110
|
+
--table-bg-color: var(--white-color);
|
111
|
+
--table-border-color: #dcdee5;
|
112
|
+
--table-strip-color: #fafbfd;
|
113
|
+
--table-head-bg-color: #fafbfd;
|
114
|
+
--table-head-font-color: #313238;
|
115
|
+
--table-body-font-color: #63656e;
|
116
|
+
--table-row-hover-bg-color: #f5f7fa;
|
117
|
+
--table-row-active-bg-color: #f0f1f5;
|
118
|
+
--cascader-panel-border-color: #dcdee5;
|
119
|
+
--cascader-panel-hover: #f5f7fa;
|
120
|
+
--cascader-panel-active: #e1ecff;
|
121
|
+
--cascader-panel-disabled-bg: #fff;
|
122
|
+
--search-select-focus-border-color: var(--primary-color);
|
123
|
+
--search-select-focus-color: #3c96ff;
|
124
|
+
--search-select-font-color: var(--default-color);
|
125
|
+
--search-select-placeholder-color: var(--light-gray);
|
126
|
+
--search-select-message-color: var(--danger-color);
|
127
|
+
--search-select-menu-border-color: var(--disable-color);
|
128
|
+
--select-active-color: #e1ecff;
|
129
|
+
--select-hover-color: #f5f7fa;
|
130
|
+
}
|
131
|
+
.bk-scrollbar {
|
132
|
+
overflow: hidden !important;
|
133
|
+
overflow-anchor: none;
|
134
|
+
touch-action: auto;
|
135
|
+
/*
|
136
|
+
* Scrollbar rail styles
|
137
|
+
*/
|
138
|
+
/*
|
139
|
+
* Scrollbar thumb styles
|
140
|
+
*/
|
141
|
+
}
|
142
|
+
.bk-scrollbar.bk--active-x > .bk__rail-x,
|
143
|
+
.bk-scrollbar.bk--active-y > .bk__rail-y {
|
144
|
+
display: block;
|
145
|
+
}
|
146
|
+
.bk-scrollbar .bk__rail-x:hover,
|
147
|
+
.bk-scrollbar .bk__rail-y:hover,
|
148
|
+
.bk-scrollbar .bk__rail-x:focus,
|
149
|
+
.bk-scrollbar .bk__rail-y:focus,
|
150
|
+
.bk-scrollbar .bk__rail-x.bk--clicking,
|
151
|
+
.bk-scrollbar .bk__rail-y.bk--clicking {
|
152
|
+
background-color: #f0f1f5;
|
153
|
+
}
|
154
|
+
.bk-scrollbar .bk__rail-x {
|
155
|
+
display: none;
|
156
|
+
opacity: 0;
|
157
|
+
transition: background-color 0.2s linear, opacity 0.2s linear;
|
158
|
+
height: 10px;
|
159
|
+
bottom: 0px;
|
160
|
+
position: absolute;
|
161
|
+
}
|
162
|
+
.bk-scrollbar .bk__rail-x.bk-size-small {
|
163
|
+
height: 8px;
|
164
|
+
}
|
165
|
+
.bk-scrollbar .bk__rail-x.bk-size-small .bk__thumb-x {
|
166
|
+
height: 6px;
|
167
|
+
}
|
168
|
+
.bk-scrollbar .bk__rail-y {
|
169
|
+
display: none;
|
170
|
+
opacity: 0;
|
171
|
+
transition: background-color 0.2s linear, opacity 0.2s linear;
|
172
|
+
width: 10px;
|
173
|
+
right: 0px;
|
174
|
+
position: absolute;
|
175
|
+
margin-right: 2px;
|
176
|
+
}
|
177
|
+
.bk-scrollbar .bk__rail-y.bk-size-small {
|
178
|
+
width: 8px;
|
179
|
+
}
|
180
|
+
.bk-scrollbar .bk__rail-y.bk-size-small .bk__thumb-y {
|
181
|
+
width: 6px;
|
182
|
+
}
|
183
|
+
.bk-scrollbar:hover > .bk__rail-x,
|
184
|
+
.bk-scrollbar:hover > .bk__rail-y,
|
185
|
+
.bk-scrollbar.bk--focus > .bk__rail-x,
|
186
|
+
.bk-scrollbar.bk--focus > .bk__rail-y,
|
187
|
+
.bk-scrollbar.bk--scrolling-x > .bk__rail-x,
|
188
|
+
.bk-scrollbar.bk--scrolling-y > .bk__rail-y {
|
189
|
+
opacity: 0.9;
|
190
|
+
}
|
191
|
+
.bk-scrollbar .bk__thumb-x {
|
192
|
+
background-color: #dcdee5;
|
193
|
+
border-radius: 8px;
|
194
|
+
transition: background-color 0.2s linear, height 0.2s ease-in-out;
|
195
|
+
height: 8px;
|
196
|
+
bottom: 0px;
|
197
|
+
position: absolute;
|
198
|
+
}
|
199
|
+
.bk-scrollbar .bk__thumb-y {
|
200
|
+
background-color: #dcdee5;
|
201
|
+
border-radius: 8px;
|
202
|
+
transition: background-color 0.2s linear, width 0.2s ease-in-out;
|
203
|
+
width: 8px;
|
204
|
+
right: 0px;
|
205
|
+
position: absolute;
|
206
|
+
}
|
207
|
+
.bk-scrollbar .bk__rail-x:hover > .bk__thumb-x,
|
208
|
+
.bk-scrollbar .bk__rail-x:focus > .bk__thumb-x,
|
209
|
+
.bk-scrollbar .bk__rail-x.bk--clicking .bk__thumb-x {
|
210
|
+
background-color: #979ba5;
|
211
|
+
height: 10px;
|
212
|
+
}
|
213
|
+
.bk-scrollbar .bk__rail-y:hover > .bk__thumb-y,
|
214
|
+
.bk-scrollbar .bk__rail-y:focus > .bk__thumb-y,
|
215
|
+
.bk-scrollbar .bk__rail-y.bk--clicking .bk__thumb-y {
|
216
|
+
background-color: #979ba5;
|
217
|
+
width: 10px;
|
218
|
+
}
|
219
|
+
.bk-scrollbar .bk-size-small > .bk__thumb-x,
|
220
|
+
.bk-scrollbar .bk-size-small > .bk__thumb-x,
|
221
|
+
.bk-scrollbar .bk-size-small.bk--clicking .bk__thumb-x {
|
222
|
+
height: 8px;
|
223
|
+
}
|
224
|
+
.bk-scrollbar .bk-size-small:hover > .bk__thumb-y,
|
225
|
+
.bk-scrollbar .bk-size-small:focus > .bk__thumb-y,
|
226
|
+
.bk-scrollbar .bk-size-small.bk--clicking .bk__thumb-y {
|
227
|
+
width: 8px;
|
228
|
+
}
|
229
|
+
/* MS supports */
|
230
|
+
@supports (-ms-overflow-style: none) {
|
231
|
+
.bk-scrollbar {
|
232
|
+
overflow: auto !important;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
236
|
+
.bk-scrollbar {
|
237
|
+
overflow: auto !important;
|
238
|
+
}
|
239
|
+
}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
@import '../../styles/themes/themes.less';
|
2
|
+
|
3
|
+
.@{bk-prefix}-scrollbar {
|
4
|
+
overflow: hidden !important;
|
5
|
+
overflow-anchor: none;
|
6
|
+
touch-action: auto;
|
7
|
+
|
8
|
+
&.@{bk-prefix}--active-x > .@{bk-prefix}__rail-x,
|
9
|
+
&.@{bk-prefix}--active-y > .@{bk-prefix}__rail-y {
|
10
|
+
display: block;
|
11
|
+
}
|
12
|
+
|
13
|
+
.@{bk-prefix}__rail-x:hover,
|
14
|
+
.@{bk-prefix}__rail-y:hover,
|
15
|
+
.@{bk-prefix}__rail-x:focus,
|
16
|
+
.@{bk-prefix}__rail-y:focus,
|
17
|
+
.@{bk-prefix}__rail-x.@{bk-prefix}--clicking,
|
18
|
+
.@{bk-prefix}__rail-y.@{bk-prefix}--clicking {
|
19
|
+
background-color: #f0f1f5;
|
20
|
+
}
|
21
|
+
|
22
|
+
/*
|
23
|
+
* Scrollbar rail styles
|
24
|
+
*/
|
25
|
+
.@{bk-prefix}__rail-x {
|
26
|
+
display: none;
|
27
|
+
opacity: 0;
|
28
|
+
transition:
|
29
|
+
background-color 0.2s linear,
|
30
|
+
opacity 0.2s linear;
|
31
|
+
height: 10px;
|
32
|
+
bottom: 0px;
|
33
|
+
position: absolute;
|
34
|
+
// margin-bottom: 2px;
|
35
|
+
|
36
|
+
&.@{bk-prefix}-size-small {
|
37
|
+
height: 8px;
|
38
|
+
|
39
|
+
.@{bk-prefix}__thumb-x {
|
40
|
+
height: 6px;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.@{bk-prefix}__rail-y {
|
46
|
+
display: none;
|
47
|
+
opacity: 0;
|
48
|
+
transition:
|
49
|
+
background-color 0.2s linear,
|
50
|
+
opacity 0.2s linear;
|
51
|
+
width: 10px;
|
52
|
+
right: 0px;
|
53
|
+
position: absolute;
|
54
|
+
margin-right: 2px;
|
55
|
+
|
56
|
+
&.@{bk-prefix}-size-small {
|
57
|
+
width: 8px;
|
58
|
+
|
59
|
+
.@{bk-prefix}__thumb-y {
|
60
|
+
width: 6px;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
&:hover > .@{bk-prefix}__rail-x,
|
66
|
+
&:hover > .@{bk-prefix}__rail-y,
|
67
|
+
&.@{bk-prefix}--focus > .@{bk-prefix}__rail-x,
|
68
|
+
&.@{bk-prefix}--focus > .@{bk-prefix}__rail-y,
|
69
|
+
&.@{bk-prefix}--scrolling-x > .@{bk-prefix}__rail-x,
|
70
|
+
&.@{bk-prefix}--scrolling-y > .@{bk-prefix}__rail-y {
|
71
|
+
opacity: 0.9;
|
72
|
+
}
|
73
|
+
|
74
|
+
/*
|
75
|
+
* Scrollbar thumb styles
|
76
|
+
*/
|
77
|
+
.@{bk-prefix}__thumb-x {
|
78
|
+
background-color: #dcdee5;
|
79
|
+
border-radius: 8px;
|
80
|
+
transition:
|
81
|
+
background-color 0.2s linear,
|
82
|
+
height 0.2s ease-in-out;
|
83
|
+
height: 8px;
|
84
|
+
bottom: 0px;
|
85
|
+
position: absolute;
|
86
|
+
}
|
87
|
+
|
88
|
+
.@{bk-prefix}__thumb-y {
|
89
|
+
background-color: #dcdee5;
|
90
|
+
border-radius: 8px;
|
91
|
+
transition:
|
92
|
+
background-color 0.2s linear,
|
93
|
+
width 0.2s ease-in-out;
|
94
|
+
width: 8px;
|
95
|
+
right: 0px;
|
96
|
+
position: absolute;
|
97
|
+
}
|
98
|
+
|
99
|
+
.@{bk-prefix}__rail-x:hover > .@{bk-prefix}__thumb-x,
|
100
|
+
.@{bk-prefix}__rail-x:focus > .@{bk-prefix}__thumb-x,
|
101
|
+
.@{bk-prefix}__rail-x.@{bk-prefix}--clicking .@{bk-prefix}__thumb-x {
|
102
|
+
background-color: #979ba5;
|
103
|
+
height: 10px;
|
104
|
+
}
|
105
|
+
|
106
|
+
.@{bk-prefix}__rail-y:hover > .@{bk-prefix}__thumb-y,
|
107
|
+
.@{bk-prefix}__rail-y:focus > .@{bk-prefix}__thumb-y,
|
108
|
+
.@{bk-prefix}__rail-y.@{bk-prefix}--clicking .@{bk-prefix}__thumb-y {
|
109
|
+
background-color: #979ba5;
|
110
|
+
width: 10px;
|
111
|
+
}
|
112
|
+
|
113
|
+
.@{bk-prefix}-size-small {
|
114
|
+
> .@{bk-prefix}__thumb-x,
|
115
|
+
> .@{bk-prefix}__thumb-x,
|
116
|
+
&.@{bk-prefix}--clicking .@{bk-prefix}__thumb-x {
|
117
|
+
height: 8px;
|
118
|
+
}
|
119
|
+
|
120
|
+
&:hover > .@{bk-prefix}__thumb-y,
|
121
|
+
&:focus > .@{bk-prefix}__thumb-y,
|
122
|
+
&.@{bk-prefix}--clicking .@{bk-prefix}__thumb-y {
|
123
|
+
width: 8px;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
/* MS supports */
|
129
|
+
@supports (-ms-overflow-style: none) {
|
130
|
+
.@{bk-prefix}-scrollbar {
|
131
|
+
overflow: auto !important;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
136
|
+
.@{bk-prefix}-scrollbar {
|
137
|
+
overflow: auto !important;
|
138
|
+
}
|
139
|
+
}
|