kui-vue 3.2.2 → 3.2.3-rc1

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.
Files changed (79) hide show
  1. package/components/affix/index.md +6 -5
  2. package/components/alert/styles/index.less +13 -8
  3. package/components/badge/styles/index.less +1 -2
  4. package/components/base/pop.jsx +1 -1
  5. package/components/breadcrumb/styles/index.less +2 -2
  6. package/components/button/demo/hollow.md +1 -1
  7. package/components/button/styles/index.less +5 -5
  8. package/components/card/demo/border.md +1 -1
  9. package/components/card/styles/index.less +4 -3
  10. package/components/checkbox/checkbox.jsx +4 -2
  11. package/components/checkbox/styles/index.less +44 -43
  12. package/components/collapse/styles/index.less +3 -10
  13. package/components/colorPicker/styles/index.less +5 -3
  14. package/components/datePicker/styles/calendar.less +6 -5
  15. package/components/datePicker/styles/datepicker.less +3 -3
  16. package/components/divider/styles/index.less +7 -6
  17. package/components/drawer/drawer.jsx +10 -8
  18. package/components/drawer/styles/index.less +2 -1
  19. package/components/dropdown/demo/rightmenu.md +2 -3
  20. package/components/dropdown/styles/index.less +2 -2
  21. package/components/empty/styles/index.less +1 -1
  22. package/components/form/styles/index.less +1 -0
  23. package/components/grid/demo/align.md +3 -3
  24. package/components/grid/demo/fill.md +3 -3
  25. package/components/grid/demo/flex.md +5 -5
  26. package/components/grid/demo/index.vue +0 -1
  27. package/components/icon/demo/search.vue +2 -2
  28. package/components/image/instance.js +1 -1
  29. package/components/image/preview.jsx +50 -20
  30. package/components/image/styles/index.less +7 -5
  31. package/components/index.js +1 -1
  32. package/components/input/styles/index.less +2 -1
  33. package/components/layout/demo/base.md +3 -4
  34. package/components/layout/demo/layout1.md +4 -4
  35. package/components/layout/demo/layout2.md +5 -6
  36. package/components/layout/demo/layout3.md +3 -4
  37. package/components/layout/demo/layout4.md +4 -4
  38. package/components/layout/demo/layout5.md +8 -8
  39. package/components/layout/demo/layout6.md +2 -2
  40. package/components/layout/styles/index.less +2 -3
  41. package/components/loading/styles/index.less +1 -1
  42. package/components/menu/styles/dropmenu.less +7 -6
  43. package/components/menu/styles/index.less +13 -9
  44. package/components/message/styles/index.less +1 -1
  45. package/components/modal/modal.jsx +10 -8
  46. package/components/modal/styles/index.less +7 -6
  47. package/components/notice/styles/index.less +1 -1
  48. package/components/page/styles/index.less +1 -1
  49. package/components/popconfirm/styles/index.less +3 -2
  50. package/components/poptip/styles/index.less +4 -3
  51. package/components/progress/styles/index.less +3 -3
  52. package/components/radio/radio.jsx +3 -5
  53. package/components/radio/styles/index.less +56 -54
  54. package/components/rate/index.md +3 -3
  55. package/components/rate/styles/index.less +1 -1
  56. package/components/select/styles/index.less +8 -7
  57. package/components/spin/demo/container.md +1 -2
  58. package/components/spin/demo/mode.md +1 -2
  59. package/components/spin/styles/index.less +1 -1
  60. package/components/styles/dark.less +67 -0
  61. package/components/styles/global-dark.less +36 -0
  62. package/components/styles/global.less +22 -12
  63. package/components/styles/index.less +5 -10
  64. package/components/switch/styles/index.less +4 -3
  65. package/components/table/demo/base-render.md +1 -1
  66. package/components/table/demo/base.md +5 -2
  67. package/components/table/styles/index.less +11 -7
  68. package/components/table/table.jsx +10 -7
  69. package/components/tabs/demo/sample.md +1 -1
  70. package/components/tabs/styles/index.less +7 -10
  71. package/components/tag/styles/index.less +40 -39
  72. package/components/timeline/styles/index.less +3 -2
  73. package/components/tooltip/styles/index.less +22 -3
  74. package/components/tree/styles/index.less +8 -8
  75. package/dist/k-ui-dark.css +1 -0
  76. package/dist/k-ui.css +1 -7
  77. package/dist/k-ui.js +2 -2
  78. package/package.json +10 -9
  79. package/components/styles.js +0 -43
@@ -1,6 +1,7 @@
1
1
  ## API
2
- | 属性 | 说明 | 类型 | 默认值 |
3
- |--------------|------------------------------------|---------------|-----|
4
- | offsetTop | 距离窗口顶部达到指定偏移量后触发 | String,Number | 0 |
5
- | offsetBottom | 距离窗口底部达到指定偏移量后触发 | String,Number | - |
6
- | change | 在固定状态发生改变时触发,返回当前固定状态 `false` , `true` | Function | - |
2
+
3
+ | 属性 | 说明 | 类型 | 默认值 |
4
+ | ------------ | ----------------------------------------------------------- | -------------- | ------ |
5
+ | offsetTop | 距离窗口顶部达到指定偏移量后触发 | String, Number | 0 |
6
+ | offsetBottom | 距离窗口底部达到指定偏移量后触发 | String, Number | - |
7
+ | change | 在固定状态发生改变时触发, 返回当前固定状态 `false` , `true` | Function | - |
@@ -9,8 +9,8 @@
9
9
  font-size: 12px;
10
10
  transition: all .3s;
11
11
  overflow: hidden;
12
- background: tint(@warning, 90%);
13
- border: 1px solid tint(@warning, 70%);
12
+ background: fadeout(@warning, 90%);
13
+ border: 1px solid fadeout(@warning, 70%);
14
14
  &-icon {
15
15
  color: @warning;
16
16
  position: absolute;
@@ -18,6 +18,9 @@
18
18
  left: 10px;
19
19
  font-size: 20px;
20
20
  }
21
+ &-message {
22
+ color: @color;
23
+ }
21
24
  &-has-icon {
22
25
  padding-left: 38px;
23
26
  }
@@ -37,9 +40,11 @@
37
40
  font-size: 14px;
38
41
  font-weight: 500;
39
42
  margin-bottom: 5px;
43
+ color: @color;
40
44
  }
41
45
  .k-alert-description {
42
46
  font-size: 14px;
47
+ color: @color;
43
48
  }
44
49
  &.k-alert-has-icon {
45
50
  padding-left: 50px;
@@ -63,22 +68,22 @@
63
68
  }
64
69
  }
65
70
  &-success {
66
- background: tint(@success, 90%);
67
- border-color: tint(@success, 70%);
71
+ background: fadeout(@success, 90%);
72
+ border-color: fadeout(@success, 70%);
68
73
  .k-alert-icon {
69
74
  color: @success;
70
75
  }
71
76
  }
72
77
  &-error {
73
- background: tint(@danger, 90%);
74
- border-color: tint(@danger, 70%);
78
+ background: fadeout(@danger, 90%);
79
+ border-color: fadeout(@danger, 70%);
75
80
  .k-alert-icon {
76
81
  color: @danger;
77
82
  }
78
83
  }
79
84
  &-info {
80
- background: tint(@main, 90%);
81
- border-color: tint(@main, 70%);
85
+ background: fadeout(@main, 90%);
86
+ border-color: fadeout(@main, 70%);
82
87
  .k-alert-icon {
83
88
  color: @main;
84
89
  }
@@ -21,7 +21,7 @@
21
21
  font-size: 12px;
22
22
  white-space: nowrap;
23
23
  z-index: 10;
24
- box-shadow: 0 0 0 1px #fff;
24
+ box-shadow: 0 0 0 1px @back-color;
25
25
  box-sizing: border-box;
26
26
  }
27
27
  &-mark {
@@ -30,7 +30,6 @@
30
30
  min-width: 20px;
31
31
  background: #ed3f14;
32
32
  color: #fff;
33
- color: #fff;
34
33
  height: 20px;
35
34
  line-height: 20px;
36
35
  text-align: center;
@@ -126,7 +126,7 @@ export default {
126
126
  props: {
127
127
  transfer,
128
128
  value: this.opened,
129
- className: [`k-${preCls}-content`, { [`k-${preCls}-${color}`]: color && !/^#/.test(color) }],
129
+ className: [`k-${preCls}-content`, { [`k-${preCls}-${color}`]: color && !/^#/.test(color), [`k-${preCls}-has-color`]: /^#/.test(color) }],
130
130
  width: this.width,
131
131
  selection: this.selection,
132
132
  placement,
@@ -5,7 +5,7 @@
5
5
  margin: 0;
6
6
  padding: 0;
7
7
  list-style: none;
8
- color: rgba(0, 0, 0, .45);
8
+ color: @disable-color;
9
9
  font-size: 14px;
10
10
  &-item {
11
11
  .k-icon {
@@ -20,7 +20,7 @@
20
20
  }
21
21
  >span {
22
22
  &:last-child {
23
- color: rgba(0, 0, 0, .65);
23
+ color: @title-color;
24
24
  .k-breadcrumb-separator {
25
25
  display: none;
26
26
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div style="background:#b9c4d0;padding:10px;">
8
+ <div style="padding:10px;" class="demo-back">
9
9
  <Button type="primary" hollow>Primary</Button>
10
10
  <Button type="danger" hollow>Danger</Button>
11
11
  <Button hollow>Default</Button>
@@ -12,7 +12,7 @@
12
12
  user-select: none;
13
13
  outline: none;
14
14
  border: 1px solid @border-color;
15
- background-color: #fff;
15
+ background-color: transparent;
16
16
  transition: all .3s cubic-bezier(.645, .045, .355, 1);
17
17
  z-index: 0;
18
18
  white-space: nowrap;
@@ -106,8 +106,8 @@
106
106
 
107
107
  .k-btn.k-btn-hollow {
108
108
  background: 0 0;
109
- color: #fff;
110
- border-color: #fff;
109
+ color: @color;
110
+ border-color: @border-color;
111
111
  &:focus, &:hover {
112
112
  border-color: @main;
113
113
  color: @main;
@@ -212,8 +212,8 @@
212
212
  opacity: .9;
213
213
  cursor: not-allowed;
214
214
  color: darken(@disable-color, 8%);
215
- background: darken( @disable-back, 8%);
216
- border-color: darken(@disable-border, 8%);
215
+ // background: darken( @disable-back, 8%);
216
+ // border-color: darken(@disable-border, 8%);
217
217
  }
218
218
  }
219
219
 
@@ -19,8 +19,8 @@
19
19
  </template>
20
20
  <style scoped>
21
21
  .demo-card{
22
- background:#efefef;
23
22
  padding:20px;
23
+ background-color:rgba(0,0,0,.1);
24
24
  }
25
25
  </style>
26
26
  ```
@@ -1,11 +1,12 @@
1
1
  @import '../../styles/global.less';
2
2
  .k-card {
3
- background: #fff;
3
+ background: @back-color;
4
4
  position: relative;
5
5
  border-radius: @radius;
6
+ color: @color;
6
7
  .k-card-head {
7
8
  position: relative;
8
- border-bottom: 1px solid #e9eaec;
9
+ border-bottom: 1px solid @border-color;
9
10
  padding: 14px 16px;
10
11
  line-height: 1;
11
12
  .k-icon {
@@ -40,5 +41,5 @@
40
41
  }
41
42
 
42
43
  .k-card-bordered {
43
- border: 1px solid #eee;
44
+ border: 1px solid @border-color;
44
45
  }
@@ -51,12 +51,14 @@ export default {
51
51
  }
52
52
  }
53
53
  // console.log(checked)
54
- const wpclasses = ["k-checkbox-wrapper", { ["k-checkbox-disabled"]: disabled }];
54
+ const wpclasses = ["k-checkbox-wrapper", {
55
+ ["k-checkbox-disabled"]: disabled,
56
+ ["k-checkbox-checked"]: checked && !indeterminate,
57
+ }]
55
58
 
56
59
  const classes = [
57
60
  "k-checkbox",
58
61
  {
59
- ["k-checkbox-checked"]: checked && !indeterminate,
60
62
  ["k-checkbox-indeterminate"]: indeterminate
61
63
  }
62
64
  ];
@@ -5,6 +5,7 @@
5
5
  display: inline-block;
6
6
  user-select: none;
7
7
  line-height: 1;
8
+ color: @color;
8
9
  .k-checkbox {
9
10
  display: inline-block;
10
11
  vertical-align: middle;
@@ -16,52 +17,45 @@
16
17
  margin: 0;
17
18
  box-sizing: content-box;
18
19
  font-size: 0;
19
- .k-checkbox-inner {
20
- box-sizing: content-box;
21
- display: inline-block;
22
- width: 14px;
23
- height: 14px;
24
- position: relative;
25
- top: 0;
26
- left: 0;
27
- border: 1px solid @border-color;
28
- border-radius: 2px;
29
- background-color: #fff;
30
- transition: border-color .2s ease-in-out, background-color .2s ease-in-out;
31
- overflow: hidden;
32
- color: #fff;
33
- .k-icon {
34
- font-size: 18px;
35
- position: absolute;
36
- left: 50%;
37
- top: 50%;
38
- transform: translate3d(-50%, -50%, 0);
39
- }
40
- }
41
- .k-checkbox-input {
42
- width: 100%;
43
- height: 100%;
20
+ }
21
+ .k-checkbox-inner {
22
+ box-sizing: content-box;
23
+ display: inline-block;
24
+ width: 14px;
25
+ height: 14px;
26
+ position: relative;
27
+ top: 0;
28
+ left: 0;
29
+ border: 1px solid @border-color;
30
+ border-radius: 2px;
31
+ background-color: @back-color;
32
+ transition: border-color .2s ease-in-out, background-color .2s ease-in-out;
33
+ overflow: hidden;
34
+ color: @back-color;
35
+ .k-icon {
36
+ font-size: 18px;
44
37
  position: absolute;
45
- top: 0;
46
- bottom: 0;
47
- left: 0;
48
- right: 0;
49
- z-index: 1;
50
- cursor: pointer;
51
- opacity: 0;
52
- &:focus {
53
- +.k-checkbox-inner {
54
- border: 1px solid @main;
55
- box-shadow: 0 0 5px fade(@main, 75%);
56
- }
57
- }
38
+ left: 50%;
39
+ top: 50%;
40
+ transform: translate3d(-50%, -50%, 0);
58
41
  }
59
42
  }
60
- .k-checkbox-checked {
61
- .k-checkbox-inner {
62
- background: @main;
63
- border-color: @main;
64
- position: relative;
43
+ .k-checkbox-input {
44
+ width: 100%;
45
+ height: 100%;
46
+ position: absolute;
47
+ top: 0;
48
+ bottom: 0;
49
+ left: 0;
50
+ right: 0;
51
+ z-index: 1;
52
+ cursor: pointer;
53
+ opacity: 0;
54
+ &:focus {
55
+ +.k-checkbox-inner {
56
+ border: 1px solid @main;
57
+ box-shadow: 0 0 5px fade(@main, 75%);
58
+ }
65
59
  }
66
60
  }
67
61
  .k-checkbox-indeterminate {
@@ -93,6 +87,13 @@
93
87
  }
94
88
  }
95
89
 
90
+ .k-checkbox-checked {
91
+ .k-checkbox-inner {
92
+ background: @main;
93
+ border-color: @main;
94
+ }
95
+ }
96
+
96
97
  .k-checkbox-disabled {
97
98
  cursor: not-allowed;
98
99
  color: @disable-color;
@@ -5,6 +5,7 @@
5
5
  border-radius: @radius;
6
6
  border-bottom: 0;
7
7
  overflow: hidden;
8
+ color: @color;
8
9
  &>.k-collapse-item {
9
10
  border-bottom: 1px solid @border-color;
10
11
  &>.k-collapse-header {
@@ -29,7 +30,7 @@
29
30
  }
30
31
  }
31
32
  .k-collapse-content {
32
- background-color: #fff;
33
+ // background-color: #fff;
33
34
  border-top: 1px solid @border-color;
34
35
  padding: 0 16px;
35
36
  transition: all .3s ease-in-out;
@@ -51,7 +52,7 @@
51
52
  border: none;
52
53
  background: none;
53
54
  .k-collapse-item {
54
- background: @light;
55
+ background: fadeout(@border-color, 60%);
55
56
  border: none;
56
57
  margin-bottom: 10px;
57
58
  border-radius: @radius;
@@ -63,14 +64,6 @@
63
64
  }
64
65
  }
65
66
 
66
- .k-alert-info {
67
- background: tint(@main, 90%);
68
- border-color: tint(@main, 70%);
69
- .k-alert-icon {
70
- color: @main;
71
- }
72
- }
73
-
74
67
  .k-collaplse-slide-enter-active {
75
68
  animation: slideIn 0.3s ease-in-out;
76
69
  animation-fill-mode: both;
@@ -70,13 +70,14 @@
70
70
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
71
71
  position: absolute;
72
72
  border-radius: @radius;
73
- background: #fff;
73
+ background: @back-color;
74
74
  .k-color-picker-paint-dot {
75
75
  width: 15px;
76
76
  height: 15px;
77
77
  display: block;
78
78
  position: absolute;
79
- background: #fff;
79
+ background: @back-color;
80
+ border:1px solid @border-color;
80
81
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
81
82
  border-radius: 50%;
82
83
  top: 10px;
@@ -126,7 +127,8 @@
126
127
  height: 15px;
127
128
  display: block;
128
129
  position: absolute;
129
- background: #fff;
130
+ background: @back-color;
131
+ border:1px solid @border-color;
130
132
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
131
133
  border-radius: 50%;
132
134
  pointer-events: none;
@@ -3,6 +3,7 @@
3
3
  display: inline-block;
4
4
  user-select: none;
5
5
  float: left;
6
+ color: @color;
6
7
  // box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
7
8
  &+.k-calendar {
8
9
  // border-left: solid 1px #eaeaea;
@@ -83,7 +84,7 @@
83
84
  width: 100%;
84
85
  height: 100%;
85
86
  position: absolute;
86
- background: #fff;
87
+ background: @back-color;
87
88
  left: 0;
88
89
  top: 0;
89
90
  font-size: 0;
@@ -183,8 +184,8 @@
183
184
  height: 100%;
184
185
  left: 0;
185
186
  top: 0;
186
- background: #fff;
187
- border-top: 1px solid @border-color;
187
+ background: @back-color;
188
+ border-top: 1px solid darken(@border-color,10%);
188
189
  .k-calendar-time-picker-select {
189
190
  width: 33.333%;
190
191
  font-size: 0;
@@ -214,7 +215,7 @@
214
215
  list-style: none;
215
216
  cursor: pointer;
216
217
  &:hover {
217
- background: @light ;
218
+ background: fadeout(@main, 90%);
218
219
  }
219
220
  &:last-child::after {
220
221
  display: block;
@@ -234,7 +235,7 @@
234
235
  .k-calendar-time-selected {
235
236
  color: @main;
236
237
  font-weight: bold;
237
- background: @light;
238
+ background: darken(@back-color,5%);
238
239
  }
239
240
  }
240
241
  }
@@ -5,8 +5,8 @@
5
5
  max-width: 100%;
6
6
  box-sizing: border-box;
7
7
  vertical-align: middle;
8
- color: #495060;
9
- background: #fff;
8
+ color: @color;
9
+ background: transparent;
10
10
  font-size: 12px;
11
11
  position: relative;
12
12
  border: 1px solid @border-color;
@@ -94,7 +94,7 @@
94
94
  .k-datepicker-dropdown {
95
95
  position: absolute;
96
96
  z-index: 1003;
97
- background: #fff;
97
+ background: @back-color;
98
98
  }
99
99
 
100
100
  .k-datepicker-sm {
@@ -1,4 +1,4 @@
1
- @border: #e8e8e8;
1
+ @import '../../styles/global.less';
2
2
  .k-divider {
3
3
  box-sizing: border-box;
4
4
  margin: 0;
@@ -7,10 +7,10 @@
7
7
  font-size: 14px;
8
8
  line-height: 1.5;
9
9
  list-style: none;
10
- background: @border;
10
+ background: @border-color;
11
11
  &-dashed {
12
12
  background: none;
13
- border: dashed @border;
13
+ border: dashed @border-color;
14
14
  border-width: 1px 0 0
15
15
  }
16
16
  &, &-vertical {
@@ -24,11 +24,12 @@
24
24
  }
25
25
  .k-divider-inner-text {
26
26
  display: inline-block;
27
- padding: 0 10px
27
+ padding: 0 10px;
28
+ color: @color;
28
29
  }
29
30
  &-dashed {
30
31
  background: none;
31
- border: dashed @border;
32
+ border: dashed @border-color;
32
33
  border-width: 1px 0 0;
33
34
  }
34
35
  &-vertical {
@@ -57,7 +58,7 @@
57
58
  top: 50%;
58
59
  display: table-cell;
59
60
  width: 50%;
60
- border-top: 1px solid @border;
61
+ border-top: 1px solid @border-color;
61
62
  transform: translateY(50%);
62
63
  content: ""
63
64
  }
@@ -65,24 +65,26 @@ export default {
65
65
  }
66
66
  },
67
67
  resetBodyStyle(opened) {
68
+ let target = this.target();
68
69
  if (!this.visible && !cacheBodyOverflow.hasOwnProperty('overflow')) {
69
70
  cacheBodyOverflow = {
70
- width: document.body.width,
71
- overflow: document.body.overflow,
72
- overflowX: document.body.overflowX,
73
- overflowY: document.body.overflowY,
71
+ width: target.width,
72
+ overflow: target.overflow,
73
+ overflowX: target.overflowX,
74
+ overflowY: target.overflowY,
74
75
  }
75
76
  }
76
77
  if (opened) {
77
78
  let barWidth = measureScrollBar(true)
78
- if (barWidth) {
79
- document.body.style.width = `calc(100% - ${barWidth}px)`
80
- document.body.style.overflow = `hidden`
79
+ let hasBar = target.scrollHeight > target.clientHeight || target.offsetHeight > target.clientHeight
80
+ if (barWidth && hasBar) {
81
+ target.style.width = `calc(100% - ${barWidth}px)`
82
+ target.style.overflow = `hidden`
81
83
  }
82
84
  } else {
83
85
  setTimeout(() => {
84
86
  Object.keys(cacheBodyOverflow).forEach(key => {
85
- document.body.style[key] = cacheBodyOverflow[key] || ''
87
+ target.style[key] = cacheBodyOverflow[key] || ''
86
88
  delete cacheBodyOverflow[key]
87
89
  })
88
90
  }, 300)
@@ -23,7 +23,7 @@
23
23
  }
24
24
  .k-drawer-content {
25
25
  position: relative;
26
- background-color: #fff;
26
+ background-color: @back-color;
27
27
  border: 0;
28
28
  background-clip: padding-box;
29
29
  height: 100%;
@@ -66,6 +66,7 @@
66
66
  height: calc(100% - 43px);
67
67
  overflow: auto;
68
68
  box-sizing: border-box;
69
+ color:@color;
69
70
  }
70
71
  .k-drawer-footer {
71
72
  border-top: 1px solid @border-color;
@@ -7,12 +7,11 @@
7
7
  <template>
8
8
  <Dropdown trigger="contextmenu" @click="handle">
9
9
  <div :style="{
10
- textAlign: 'center',
11
- background: '#f5f5f5',
10
+ textAlign: 'center',
12
11
  height: '200px',
13
12
  lineHeight: '200px',
14
13
  color: '#999',
15
- }">Right Click on here</div>
14
+ }" class="demo-back">Right Click on here</div>
16
15
  <Menu slot="content">
17
16
  <MenuItem key="news">New file</MenuItem>
18
17
  <MenuItem key="edit">Edit</MenuItem>
@@ -5,7 +5,7 @@
5
5
  position: absolute;
6
6
  z-index: 1001;
7
7
  .k-dropdown-inner {
8
- background: #fff;
8
+ background: @back-color;
9
9
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
10
10
  border-radius: @radius;
11
11
  .k-dropdown-menu {
@@ -21,7 +21,7 @@
21
21
  align-items: center;
22
22
  width: 19px;
23
23
  .k-dropdown-arrow-content {
24
- background-color: #fff;
24
+ background-color: @back-color;
25
25
  transform: rotate(45deg);
26
26
  width: 12px;
27
27
  height: 12px;
@@ -1,7 +1,7 @@
1
1
  @import '../../styles/global.less';
2
2
  .k-empty {
3
3
  text-align: center;
4
- color: @border-color;
4
+ color: fadeout(@color,50%);
5
5
  font-size: 13px;
6
6
  // cursor: not-allowed;
7
7
  .k-empty-icon {
@@ -4,6 +4,7 @@
4
4
  margin-bottom: 24px;
5
5
  vertical-align: top;
6
6
  zoom: 1;
7
+ color: @color;
7
8
  // margin-bottom: 5px;
8
9
  &::before, &::after {
9
10
  content: '';
@@ -7,21 +7,21 @@ Flex 子元素垂直对齐。
7
7
  <template>
8
8
  <div class="demo-grid">
9
9
  <p>Align Top</p>
10
- <Row type="flex" align="top" justify="space-around">
10
+ <Row type="flex" align="top" justify="space-around" class="demo-back">
11
11
  <Col :span="4"><div class="h-96">col-4</div></Col>
12
12
  <Col :span="4"><div class="h-64">col-4</div></Col>
13
13
  <Col :span="4"><div class="h-128">col-4</div></Col>
14
14
  <Col :span="4"><div class="h-72">col-4</div></Col>
15
15
  </Row>
16
16
  <p>Align Middle</p>
17
- <Row type="flex" align="middle" justify="space-around">
17
+ <Row type="flex" align="middle" justify="space-around" class="demo-back">
18
18
  <Col :span="4"><div class="h-96">col-4</div></Col>
19
19
  <Col :span="4"><div class="h-64">col-4</div></Col>
20
20
  <Col :span="4"><div class="h-128">col-4</div></Col>
21
21
  <Col :span="4"><div class="h-72">col-4</div></Col>
22
22
  </Row>
23
23
  <p>Align Bottom</p>
24
- <Row type="flex" align="bottom" justify="space-around">
24
+ <Row type="flex" align="bottom" justify="space-around" class="demo-back">
25
25
  <Col :span="4"><div class="h-96">col-4</div></Col>
26
26
  <Col :span="4"><div class="h-64">col-4</div></Col>
27
27
  <Col :span="4"><div class="h-128">col-4</div></Col>
@@ -7,17 +7,17 @@ Col 提供 flex 属性以支持填充。
7
7
  <template>
8
8
  <div class="demo-grid">
9
9
  <p>Percentage columns</p>
10
- <Row type="flex">
10
+ <Row type="flex" class="demo-back">
11
11
  <Col :flex="3"><div>3/8</div></Col>
12
12
  <Col :flex="5"><div>5/8</div></Col>
13
13
  </Row>
14
14
  <p>Fill rest</p>
15
- <Row type="flex">
15
+ <Row type="flex" class="demo-back">
16
16
  <Col flex="100px"><div>100px</div></Col>
17
17
  <Col flex="auto"><div>auto</div></Col>
18
18
  </Row>
19
19
  <p>Raw flex style</p>
20
- <Row type="flex">
20
+ <Row type="flex" class="demo-back">
21
21
  <Col flex="1 1 128px"><div>1 1 128px</div></Col>
22
22
  <Col flex="0 1 256px"><div>0 1 256px</div></Col>
23
23
  </Row>