kui-vue 3.3.12 → 3.4.1
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/components/_tool/transfer.js +5 -5
- package/components/_tool/utils.js +0 -135
- package/components/base/drop.jsx +230 -17
- package/components/base/pop.jsx +1 -1
- package/components/button/styles/index.less +1 -0
- package/components/checkbox/styles/index.less +7 -3
- package/components/colorPicker/colorpicker.jsx +4 -3
- package/components/colorPicker/styles/index.less +16 -25
- package/components/datePicker/datepicker.jsx +5 -2
- package/components/datePicker/index.md +0 -1
- package/components/datePicker/styles/datepicker.less +1 -0
- package/components/drawer/demo/form.md +4 -2
- package/components/drawer/styles/index.less +9 -2
- package/components/dropdown/index.md +0 -1
- package/components/dropdown/styles/index.less +4 -0
- package/components/form/demo/align.md +1 -1
- package/components/form/demo/base.md +1 -1
- package/components/form/demo/dynamicvalid.md +1 -1
- package/components/form/demo/length.md +2 -2
- package/components/form/demo/valid.md +2 -2
- package/components/input/styles/index.less +29 -20
- package/components/inputNumber/styles/index.less +3 -3
- package/components/menu/demo/inline.md +4 -4
- package/components/menu/styles/index.less +1 -1
- package/components/popconfirm/index.md +0 -1
- package/components/popconfirm/styles/index.less +4 -2
- package/components/poptip/demo/closeinside.md +1 -1
- package/components/poptip/index.md +1 -2
- package/components/poptip/styles/index.less +10 -5
- package/components/radio/styles/index.less +22 -3
- package/components/rate/styles/index.less +9 -1
- package/components/select/demo/base.md +1 -1
- package/components/select/demo/multiple.md +1 -1
- package/components/select/demo/theme.md +11 -13
- package/components/select/index.md +0 -1
- package/components/select/select.jsx +64 -34
- package/components/select/styles/index.less +144 -128
- package/components/styles/color.less +17 -12
- package/components/styles/var.less +7 -0
- package/components/table/demo/edit.md +34 -12
- package/components/table/styles/index.less +87 -38
- package/components/table/table.jsx +1 -1
- package/components/tooltip/index.md +1 -4
- package/components/tooltip/styles/index.less +8 -4
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.js +2 -2
- package/package.json +2 -2
- /package/{README.md → readme.md} +0 -0
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
z-index: 3;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
|
|
20
|
+
|
|
19
21
|
// .k-table-thead::-webkit-scrollbar {
|
|
20
22
|
// height: 0;
|
|
21
23
|
// width: 0;
|
|
@@ -38,9 +40,10 @@
|
|
|
38
40
|
left: 0;
|
|
39
41
|
top: 0;
|
|
40
42
|
z-index: 100;
|
|
41
|
-
|
|
43
|
+
border-radius: @radius;
|
|
42
44
|
.k-spin-loading {
|
|
43
|
-
|
|
45
|
+
border-radius: @radius;
|
|
46
|
+
background-color: var(--kui-color-spin);
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
|
|
@@ -55,44 +58,41 @@
|
|
|
55
58
|
border-spacing: 0;
|
|
56
59
|
background: var(--kui-color-back);
|
|
57
60
|
margin: 0;
|
|
58
|
-
|
|
61
|
+
border-radius: @radius;
|
|
59
62
|
// tr{
|
|
60
63
|
// border: none;
|
|
61
64
|
// background: none;
|
|
62
65
|
// }
|
|
63
66
|
thead {
|
|
64
|
-
background: var(--kui-color-table-header);
|
|
65
67
|
border-bottom: 1px solid var(--kui-color-table-border);
|
|
66
68
|
|
|
67
69
|
.k-table-cell-fixed-left,
|
|
68
70
|
.k-table-cell-fixed-right {
|
|
69
|
-
background: var(--kui-color-table-header);
|
|
71
|
+
// background: var(--kui-color-table-header);
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
tr
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
text-align: left;
|
|
75
|
+
tr th:first-child {
|
|
76
|
+
border-top-left-radius: @radius;
|
|
77
|
+
}
|
|
77
78
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
79
|
+
tr th:last-child {
|
|
80
|
+
border-top-right-radius: @radius;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
83
86
|
.k-table {
|
|
84
87
|
margin: -10px -10px -11px -10px
|
|
85
88
|
}
|
|
86
89
|
|
|
87
|
-
|
|
88
|
-
text-align: center;
|
|
89
|
-
padding: 0;
|
|
90
|
-
}
|
|
90
|
+
|
|
91
91
|
|
|
92
92
|
tr>th,
|
|
93
93
|
tr>td {
|
|
94
94
|
font-size: 14px;
|
|
95
|
-
padding: 10px;
|
|
95
|
+
padding: 10px 16px;
|
|
96
96
|
box-sizing: border-box;
|
|
97
97
|
// overflow-wrap: break-word;
|
|
98
98
|
// word-wrap: break-word;
|
|
@@ -101,8 +101,21 @@
|
|
|
101
101
|
border-bottom: 1px solid var(--kui-color-table-border);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
tr>th {
|
|
105
|
+
background: var(--kui-color-table-header);
|
|
106
|
+
// background: #666;
|
|
107
|
+
font-weight: 500;
|
|
108
|
+
overflow-wrap: break-word;
|
|
109
|
+
text-align: left;
|
|
110
|
+
padding: 16px;
|
|
111
|
+
|
|
112
|
+
&[colspan]:not([colspan="1"]) {
|
|
113
|
+
text-align: center;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
104
117
|
.k-table-header-col {
|
|
105
|
-
display:
|
|
118
|
+
display: flex;
|
|
106
119
|
max-width: 100%;
|
|
107
120
|
|
|
108
121
|
.k-table-header-title {
|
|
@@ -112,18 +125,6 @@
|
|
|
112
125
|
}
|
|
113
126
|
}
|
|
114
127
|
|
|
115
|
-
.k-table-cell-ellipsis {
|
|
116
|
-
white-space: nowrap;
|
|
117
|
-
overflow: hidden;
|
|
118
|
-
text-overflow: ellipsis;
|
|
119
|
-
|
|
120
|
-
.k-table-header-title ,span {
|
|
121
|
-
display: block !important;
|
|
122
|
-
overflow: hidden;
|
|
123
|
-
text-overflow: ellipsis;
|
|
124
|
-
white-space: nowrap;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
128
|
|
|
128
129
|
.k-table-cell-sorter {
|
|
129
130
|
cursor: pointer;
|
|
@@ -135,12 +136,14 @@
|
|
|
135
136
|
align-items: center;
|
|
136
137
|
line-height: 1;
|
|
137
138
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.k-table-header-title {
|
|
143
|
+
flex: 1;
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
line-height: 1;
|
|
144
147
|
}
|
|
145
148
|
|
|
146
149
|
&:hover {
|
|
@@ -167,6 +170,31 @@
|
|
|
167
170
|
}
|
|
168
171
|
}
|
|
169
172
|
|
|
173
|
+
.k-table-cell-ellipsis {
|
|
174
|
+
white-space: nowrap;
|
|
175
|
+
overflow: hidden;
|
|
176
|
+
text-overflow: ellipsis;
|
|
177
|
+
|
|
178
|
+
.k-table-header-title {
|
|
179
|
+
// display: block !important;
|
|
180
|
+
display: inline-block;
|
|
181
|
+
overflow: hidden;
|
|
182
|
+
text-overflow: ellipsis;
|
|
183
|
+
white-space: nowrap;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
th.k-table-cell-selection {
|
|
188
|
+
text-align: center;
|
|
189
|
+
padding: 0;
|
|
190
|
+
.k-table-header-col{
|
|
191
|
+
justify-content: center;
|
|
192
|
+
}
|
|
193
|
+
.k-table-header-title {
|
|
194
|
+
align-items: center;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
170
198
|
tbody>tr {
|
|
171
199
|
|
|
172
200
|
.k-table-cell-fixed-left,
|
|
@@ -201,6 +229,16 @@
|
|
|
201
229
|
}
|
|
202
230
|
}
|
|
203
231
|
|
|
232
|
+
.k-table-thead {
|
|
233
|
+
border-top-left-radius: @radius;
|
|
234
|
+
border-top-right-radius: @radius;
|
|
235
|
+
|
|
236
|
+
tr th:first-child,
|
|
237
|
+
tr th:last-child {
|
|
238
|
+
border-radius: 0;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
204
242
|
&-thead {
|
|
205
243
|
overflow: auto;
|
|
206
244
|
}
|
|
@@ -276,7 +314,10 @@
|
|
|
276
314
|
&-sm {
|
|
277
315
|
table tr {
|
|
278
316
|
|
|
279
|
-
th
|
|
317
|
+
th {
|
|
318
|
+
padding: 10px 8px;
|
|
319
|
+
}
|
|
320
|
+
|
|
280
321
|
td {
|
|
281
322
|
padding: 5px 8px;
|
|
282
323
|
}
|
|
@@ -286,7 +327,10 @@
|
|
|
286
327
|
&-lg {
|
|
287
328
|
table tr {
|
|
288
329
|
|
|
289
|
-
th
|
|
330
|
+
th {
|
|
331
|
+
padding: 20px 16px;
|
|
332
|
+
}
|
|
333
|
+
|
|
290
334
|
td {
|
|
291
335
|
padding: 16px;
|
|
292
336
|
}
|
|
@@ -295,10 +339,13 @@
|
|
|
295
339
|
|
|
296
340
|
&-bordered {
|
|
297
341
|
border: 1px solid var(--kui-color-table-border);
|
|
342
|
+
border-radius: @radius;
|
|
298
343
|
|
|
299
344
|
.k-table-footer {
|
|
300
345
|
border-top: 1px solid var(--kui-color-table-border);
|
|
301
346
|
border-bottom: none;
|
|
347
|
+
border-bottom-left-radius: @radius;
|
|
348
|
+
border-bottom-right-radius: @radius;
|
|
302
349
|
}
|
|
303
350
|
|
|
304
351
|
thead {
|
|
@@ -311,6 +358,8 @@
|
|
|
311
358
|
.k-table-header {
|
|
312
359
|
border-bottom: 1px solid var(--kui-color-table-border);
|
|
313
360
|
border-top: none;
|
|
361
|
+
border-top-left-radius: @radius;
|
|
362
|
+
border-top-right-radius: @radius;
|
|
314
363
|
}
|
|
315
364
|
|
|
316
365
|
th,
|
|
@@ -144,7 +144,7 @@ export default {
|
|
|
144
144
|
}
|
|
145
145
|
})
|
|
146
146
|
if (expandNode) {
|
|
147
|
-
tr.unshift(<td class="k-table-row-expand-icon-cell"><
|
|
147
|
+
tr.unshift(<td class="k-table-row-expand-icon-cell"><Button size="small" onClick={e => this.onExpand(d)} icon={d._expanded ? Remove : Add} /></td>)
|
|
148
148
|
}
|
|
149
149
|
let trProps = {
|
|
150
150
|
class: { 'k-table-row-hover': d._hover },
|
|
@@ -4,7 +4,4 @@
|
|
|
4
4
|
| title | 显示的标题 | String,Slots | - |
|
|
5
5
|
| color | 背景颜色 | String | - |
|
|
6
6
|
| placement | 提示框出现的位置,可选值为`top`,`top-left`,`top-right`,`bottom`,`bottom-left`,`bottom-right`,`left`,`left-top`,`left-bottom`,`right`,`right-top`,`right-bottom` | String | top |
|
|
7
|
-
| width | 展示的宽度,默认为内容区域的大小 | String | - |
|
|
8
|
-
| transfer | 默认渲染到body 上,如定位有问题,请尝试修改为 false | Boolean | true |
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
| width | 展示的宽度,默认为内容区域的大小 | String | - |
|
|
@@ -2,28 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
.k-tooltip {
|
|
4
4
|
display: inline-block;
|
|
5
|
-
position: relative;
|
|
6
5
|
max-width: 256px;
|
|
7
6
|
font-size: 12px;
|
|
8
7
|
word-break: break-word;
|
|
9
8
|
line-height: 1.5;
|
|
10
9
|
position: absolute;
|
|
11
10
|
z-index: 1001;
|
|
12
|
-
|
|
11
|
+
transform: translateZ(0);
|
|
12
|
+
|
|
13
13
|
.k-tooltip-content {
|
|
14
14
|
// min-width: 200px;
|
|
15
15
|
// .k-tooltip-inner {
|
|
16
|
-
background: @dark-back-color-10; // var(--kui-color-control-10);
|
|
16
|
+
// background: @dark-back-color-10; // var(--kui-color-control-10);
|
|
17
|
+
background: #333; // var(--kui-color-control-10);
|
|
17
18
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
18
19
|
color: #fff; //var(--kui-color-font);
|
|
19
20
|
border-radius: 8px; // var(--kui-border-radius);
|
|
20
21
|
position: relative;
|
|
22
|
+
min-width: 36px;
|
|
21
23
|
// }
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
.k-tooltip-title {
|
|
25
27
|
padding: 8px 12px;
|
|
26
28
|
font-size: 14px;
|
|
29
|
+
text-align: center;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
.k-tooltip-arrow {
|
|
@@ -32,7 +35,8 @@
|
|
|
32
35
|
display: flex;
|
|
33
36
|
width: 24px;
|
|
34
37
|
height: 7px;
|
|
35
|
-
color: @dark-back-color-10;
|
|
38
|
+
// color: @dark-back-color-10;
|
|
39
|
+
color: #333;
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
&[k-placement^=top] {
|