kui-vue 3.4.0 → 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.
@@ -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
- background-color: var(--kui-color-spin);
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>th {
74
- font-weight: 500;
75
- overflow-wrap: break-word;
76
- text-align: left;
75
+ tr th:first-child {
76
+ border-top-left-radius: @radius;
77
+ }
77
78
 
78
- &[colspan]:not([colspan="1"]) {
79
- text-align: center;
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
- th.k-table-cell-selection {
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: inline-block;
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
- .k-table-header-title {
139
- flex: 1;
140
- display: flex;
141
- align-items: center;
142
- line-height: 1;
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"><Icon onClick={e => this.onExpand(d)} type={d._expanded ? Remove : Add} /></td>)
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 | - |
@@ -13,7 +13,8 @@
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);
@@ -34,7 +35,8 @@
34
35
  display: flex;
35
36
  width: 24px;
36
37
  height: 7px;
37
- color: @dark-back-color-10;
38
+ // color: @dark-back-color-10;
39
+ color: #333;
38
40
  }
39
41
 
40
42
  &[k-placement^=top] {