kui-vue 3.6.5 → 3.6.7

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 (186) hide show
  1. package/components/alert/alert.jsx +26 -7
  2. package/components/alert/demo/basic.md +4 -4
  3. package/components/alert/demo/icon.md +15 -6
  4. package/components/alert/styles/index.less +42 -14
  5. package/components/avatar/styles/index.less +4 -4
  6. package/components/backtop/styles/index.less +10 -14
  7. package/components/badge/styles/index.less +7 -13
  8. package/components/breadcrumb/index.md +7 -6
  9. package/components/breadcrumb/styles/index.less +7 -21
  10. package/components/button/demo/color.md +0 -1
  11. package/components/button/demo/disabled.md +6 -0
  12. package/components/button/demo/light.md +1 -1
  13. package/components/button/styles/index.less +165 -111
  14. package/components/card/card.jsx +1 -1
  15. package/components/card/demo/basic.md +1 -1
  16. package/components/card/demo/border.md +1 -1
  17. package/components/card/demo/notitle.md +1 -1
  18. package/components/card/styles/index.less +5 -4
  19. package/components/carousel/carousel.jsx +186 -175
  20. package/components/carousel/styles/index.less +11 -16
  21. package/components/checkbox/checkbox.jsx +2 -2
  22. package/components/checkbox/styles/index.less +21 -29
  23. package/components/collapse/styles/index.less +7 -11
  24. package/components/colorPicker/styles/index.less +83 -71
  25. package/components/config/context.js +21 -0
  26. package/components/config/index.js +10 -2
  27. package/components/datePicker/datepicker.jsx +6 -2
  28. package/components/datePicker/styles/index.less +54 -57
  29. package/components/descriptions/styles/index.less +8 -17
  30. package/components/divider/styles/index.less +20 -18
  31. package/components/drawer/styles/animal.less +0 -1
  32. package/components/drawer/styles/index.less +8 -11
  33. package/components/dropdown/styles/index.less +26 -34
  34. package/components/empty/index.md +3 -2
  35. package/components/empty/styles/index.less +2 -2
  36. package/components/flex/demo/align.md +1 -1
  37. package/components/flex/demo/basic.md +1 -2
  38. package/components/flex/index.md +1 -1
  39. package/components/form/demo/dynamicvalid.md +1 -3
  40. package/components/form/demo/info.md +22 -12
  41. package/components/form/demo/valid.md +6 -6
  42. package/components/form/demo/withmodal.md +2 -2
  43. package/components/form/styles/index.less +10 -11
  44. package/components/grid/index.md +4 -1
  45. package/components/grid/styles/index.less +1 -1
  46. package/components/icon/demo/search.vue +44 -21
  47. package/components/icon/index.md +1 -1
  48. package/components/icon/styles/index.less +7 -8
  49. package/components/image/index.md +7 -1
  50. package/components/image/preview.jsx +17 -4
  51. package/components/image/styles/index.less +36 -42
  52. package/components/index.js +9 -9
  53. package/components/input/demo/icon.md +0 -1
  54. package/components/input/demo/suffix.md +2 -7
  55. package/components/input/input.jsx +31 -29
  56. package/components/input/inputBox.jsx +13 -0
  57. package/components/input/inputGroup.jsx +2 -0
  58. package/components/input/styles/index.less +47 -53
  59. package/components/input/textarea.jsx +1 -1
  60. package/components/inputNumber/demo/basic.md +3 -3
  61. package/components/inputNumber/demo/ffix.md +2 -2
  62. package/components/inputNumber/inputNumber.jsx +2 -2
  63. package/components/inputNumber/styles/index.less +36 -42
  64. package/components/layout/demo/basic.md +5 -5
  65. package/components/layout/demo/info.md +1 -34
  66. package/components/layout/demo/layout1.md +7 -7
  67. package/components/layout/demo/layout2.md +6 -7
  68. package/components/layout/demo/layout3.md +5 -5
  69. package/components/layout/demo/layout4.md +12 -8
  70. package/components/layout/demo/layout5.md +6 -2
  71. package/components/layout/styles/index.less +1 -18
  72. package/components/loading/demo/info.md +3 -3
  73. package/components/loading/styles/index.less +31 -31
  74. package/components/menu/index.md +14 -3
  75. package/components/menu/menu.jsx +1 -1
  76. package/components/menu/recursiveMenu.jsx +1 -0
  77. package/components/menu/styles/index.less +43 -55
  78. package/components/message/demo/basic.md +0 -7
  79. package/components/message/index.js +0 -4
  80. package/components/message/index.md +0 -1
  81. package/components/message/inner.jsx +15 -2
  82. package/components/message/styles/index.less +12 -17
  83. package/components/modal/demo/confirm.md +6 -6
  84. package/components/modal/demo/global.md +0 -15
  85. package/components/modal/demo/info.md +0 -1
  86. package/components/modal/index.js +5 -34
  87. package/components/modal/index.md +1 -2
  88. package/components/modal/modal.jsx +2 -1
  89. package/components/modal/styles/index.less +14 -21
  90. package/components/notice/demo/basic.md +0 -9
  91. package/components/notice/demo/close.md +4 -0
  92. package/components/notice/demo/types.md +1 -2
  93. package/components/notice/index.js +1 -19
  94. package/components/notice/styles/index.less +16 -22
  95. package/components/page/page.jsx +5 -4
  96. package/components/page/styles/index.less +49 -50
  97. package/components/popconfirm/demo/basic.md +11 -18
  98. package/components/popconfirm/demo/info.md +3 -1
  99. package/components/popconfirm/demo/local.md +14 -20
  100. package/components/popconfirm/demo/placement.md +3 -9
  101. package/components/popconfirm/index.md +3 -2
  102. package/components/popconfirm/styles/index.less +9 -15
  103. package/components/poptip/styles/index.less +44 -49
  104. package/components/progress/styles/index.less +13 -13
  105. package/components/radio/index.md +7 -7
  106. package/components/radio/radio.jsx +5 -1
  107. package/components/radio/styles/index.less +26 -32
  108. package/components/rate/index.md +11 -11
  109. package/components/rate/styles/index.less +4 -7
  110. package/components/select/select.jsx +1 -1
  111. package/components/select/styles/index.less +37 -50
  112. package/components/skeleton/index.md +5 -1
  113. package/components/skeleton/styles/index.less +21 -19
  114. package/components/slider/slider.jsx +25 -13
  115. package/components/slider/styles/index.less +13 -12
  116. package/components/space/space.jsx +2 -1
  117. package/components/spin/styles/index.less +25 -40
  118. package/components/statCard/demo/card.md +18 -4
  119. package/components/statCard/index.md +5 -5
  120. package/components/statCard/statCard.jsx +4 -1
  121. package/components/statCard/styles/index.less +9 -6
  122. package/components/styles/less-css-var.less +305 -0
  123. package/components/styles/less-var.less +296 -0
  124. package/components/styles/sys.less +19 -15
  125. package/components/switch/styles/index.less +9 -24
  126. package/components/table/index.md +1 -1
  127. package/components/table/styles/index.less +63 -59
  128. package/components/table/table.jsx +1 -1
  129. package/components/tabs/styles/index.less +22 -24
  130. package/components/tag/demo/basic.md +0 -8
  131. package/components/tag/index.md +2 -1
  132. package/components/tag/styles/index.less +40 -41
  133. package/components/tag/tag.jsx +2 -2
  134. package/components/timeline/styles/index.less +8 -14
  135. package/components/tooltip/styles/index.less +35 -40
  136. package/components/tree/index.md +15 -15
  137. package/components/tree/styles/index.less +36 -56
  138. package/components/tree/tree.jsx +1 -0
  139. package/components/treeselect/index.md +1 -1
  140. package/components/treeselect/styles/index.less +26 -32
  141. package/components/treeselect/treeselect.jsx +1 -1
  142. package/components/upload/demo/forms.md +0 -1
  143. package/components/upload/fileList.jsx +6 -3
  144. package/components/upload/styles/index.less +33 -29
  145. package/components/upload/upload.jsx +5 -1
  146. package/components/utils/vue.js +4 -2
  147. package/dist/k-ui.cjs.js +2 -2
  148. package/dist/k-ui.css +2 -2
  149. package/dist/k-ui.d.ts +109 -94
  150. package/dist/k-ui.esm.js +2 -2
  151. package/dist/k-ui.umd.js +2 -2
  152. package/dist/locale/de.js +1 -1
  153. package/dist/locale/el.js +1 -1
  154. package/dist/locale/en.js +1 -1
  155. package/dist/locale/fr.js +1 -1
  156. package/dist/locale/it.js +1 -1
  157. package/dist/locale/ja.js +1 -1
  158. package/dist/locale/ko.js +1 -1
  159. package/dist/locale/ru.js +1 -1
  160. package/dist/locale/th.js +1 -1
  161. package/dist/locale/uk.js +1 -1
  162. package/dist/locale/vi.js +1 -1
  163. package/dist/locale/zh-CN.js +1 -1
  164. package/dist/locale/zh-TW.js +1 -1
  165. package/package.json +14 -16
  166. package/types/alert/Alert.d.ts +2 -0
  167. package/types/card/Card.d.ts +1 -1
  168. package/types/checkbox/Checkbox.d.ts +1 -0
  169. package/types/datePicker/DatePicker.d.ts +1 -0
  170. package/types/index.d.ts +10 -10
  171. package/types/input/Input.d.ts +1 -0
  172. package/types/input/InputGroup.d.ts +2 -0
  173. package/types/input/TextArea.d.ts +1 -0
  174. package/types/inputNumber/InputNumber.d.ts +1 -0
  175. package/types/page/Page.d.ts +1 -0
  176. package/types/select/Select.d.ts +1 -0
  177. package/types/statCard/StatCard.d.ts +2 -0
  178. package/types/table/Table.d.ts +1 -1
  179. package/types/tag/Tag.d.ts +1 -0
  180. package/types/treeselect/TreeSelect.d.ts +1 -0
  181. package/components/dropdown/demo/custom.md +0 -31
  182. package/components/icon/lib/dist.json +0 -1
  183. package/components/icon/lib/kui-icons.js +0 -1
  184. package/components/icon/lib/sprite.svg +0 -1
  185. package/components/styles/color.less +0 -209
  186. package/components/styles/var.less +0 -207
@@ -1,10 +1,10 @@
1
- @import '../../styles/var.less';
1
+ @import "../../styles/less-css-var.less";
2
2
  .k-progress {
3
3
  .k-progress-inner {
4
4
  display: inline-block;
5
5
  border-radius: 10px;
6
- background-color: var(--kui-color-gray-80);
7
- stroke: var(--kui-color-gray-80);
6
+ background-color: var(--kui-color-bg-component);
7
+ stroke: var(--kui-color-bg-component);
8
8
  overflow: hidden;
9
9
  vertical-align: middle;
10
10
  width: calc(100% - 38px);
@@ -13,16 +13,16 @@
13
13
  .k-progress-bg {
14
14
  height: 8px;
15
15
  border-radius: 10px;
16
- background-color: var(--kui-color-main);
17
- stroke: var(--kui-color-main);
16
+ background-color: var(--kui-color-primary);
17
+ stroke: var(--kui-color-primary);
18
18
  width: 30%;
19
- transition: all .3s ease-in-out;
19
+ transition: all 0.3s ease-in-out;
20
20
  }
21
21
  .k-progress-text {
22
22
  display: inline-block;
23
23
  width: 30px;
24
24
  font-size: 14px;
25
- color: var(--kui-color-font);
25
+ color: var(--kui-color-text);
26
26
  line-height: 1;
27
27
  white-space: nowrap;
28
28
  vertical-align: middle;
@@ -51,7 +51,8 @@
51
51
  }
52
52
  }
53
53
 
54
- .k-progress-circle, .k-progress-dashboard {
54
+ .k-progress-circle,
55
+ .k-progress-dashboard {
55
56
  width: 120px;
56
57
  height: 120px;
57
58
  display: inline-block;
@@ -65,7 +66,6 @@
65
66
  transform: translate(-50%, -50%);
66
67
  text-align: center;
67
68
  .k-icon {
68
- // font-size: 30px;
69
69
  font-size: 1.5em;
70
70
  }
71
71
  }
@@ -77,7 +77,7 @@
77
77
  opacity: 0;
78
78
  }
79
79
  80% {
80
- opacity: .3;
80
+ opacity: 0.3;
81
81
  width: 80%;
82
82
  }
83
83
  100% {
@@ -90,13 +90,13 @@
90
90
  .k-progress-bg {
91
91
  position: relative;
92
92
  &:before {
93
- content: '';
93
+ content: "";
94
94
  position: absolute;
95
95
  left: 0;
96
96
  top: 0;
97
97
  width: 0;
98
98
  height: 100%;
99
- background-color: var(--kui-color-back);
99
+ background-color: var(--kui-color-bg);
100
100
  opacity: 0;
101
101
  border-radius: 10px;
102
102
  animation: k-progress-active 2.4s linear infinite;
@@ -130,4 +130,4 @@
130
130
  .k-progress-bg {
131
131
  stroke: var(--kui-color-success);
132
132
  }
133
- }
133
+ }
@@ -1,11 +1,11 @@
1
1
  ## Radio API
2
2
 
3
- | 属性 | 说明 | 类型 | 默认值 |
4
- | -------- | --------------------------------------------- | ----------------- | ------ |
5
- | checked | 是否选中状态,可以使用 `checked.sync` 双向绑定数据 | Boolean | false |
6
- | label | 文字提示 | String 、 Number | - |
7
- | disabled | 是否禁用当前项 | Boolean | false |
8
- | change | 在选项状态发生改变时回调 | Function({value,label,checked}) | - |
3
+ | 属性 | 说明 | 类型 | 默认值 |
4
+ | -------- | -------------------------------------------------- | ------------------------------- | ------ |
5
+ | checked | 是否选中状态,可以使用 `checked.sync` 双向绑定数据 | Boolean | false |
6
+ | label | 文字提示 | String 、 Number | - |
7
+ | disabled | 是否禁用当前项 | Boolean | false |
8
+ | change | 在选项状态发生改变时回调 | Function({value,label,checked}) | - |
9
9
 
10
10
  ## RadioGroup API
11
11
 
@@ -16,6 +16,6 @@
16
16
  | direction | 布局方向,可选值 `horizontal`、`vertical` | Sting | horizontal |
17
17
  | shape | `button` 的 shape 属性 ,显示圆角 | String | - |
18
18
  | theme | `button` 的 theme 属性 | String | - |
19
- | change | 在选项状态发生改变时触发,返回当前选中的项 | Function(value) | - |
19
+ | change | 在选项状态发生改变时触发,返回当前选中的项 | Function(value) | - |
20
20
  | options | 可以指定子项 `radio` | Array <{label:string/number,value:string/number}> | - |
21
21
  | type | 如果使用 `options` 来渲染子集,并且子集为 `button`,需要指定 `type=button` | String | - |
@@ -79,7 +79,11 @@ const Radio = defineComponent({
79
79
  const labelNode = props.label || slots.default?.();
80
80
 
81
81
  return (
82
- <label class={classes} tabindex="0" onKeydown={triggerCheck}>
82
+ <label
83
+ class={classes}
84
+ tabindex={props.disabled ? null : 0}
85
+ onKeydown={triggerCheck}
86
+ >
83
87
  <span class="k-radio-symbol">
84
88
  <input
85
89
  type="radio"
@@ -1,4 +1,4 @@
1
- @import "../../styles/var.less";
1
+ @import "../../styles/less-css-var.less";
2
2
 
3
3
  .k-radio-group {
4
4
  display: inline-flex;
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  .k-btn-hollow {
30
- color: var(--kui-color-font);
30
+ color: var(--kui-color-text);
31
31
  border-color: var(--kui-color-border);
32
32
  }
33
33
 
@@ -37,8 +37,8 @@
37
37
 
38
38
  .k-btn-primary.k-btn-hollow {
39
39
  z-index: 2;
40
- color: var(--kui-color-main);
41
- border-color: var(--kui-color-main);
40
+ color: var(--kui-color-primary);
41
+ border-color: var(--kui-color-primary);
42
42
  }
43
43
 
44
44
  .k-radio-label {
@@ -48,6 +48,9 @@
48
48
  .k-radio-button-group,
49
49
  .k-radio-group-card {
50
50
  flex-wrap: nowrap;
51
+ .k-btn {
52
+ border: 1px solid transparent;
53
+ }
51
54
  }
52
55
  .k-radio-group:not(.k-radio-button-group, .k-radio-group-card) {
53
56
  gap: 16px;
@@ -66,16 +69,17 @@
66
69
  }
67
70
 
68
71
  .k-radio {
72
+ -webkit-user-select: none;
69
73
  user-select: none;
70
74
  cursor: pointer;
71
75
  display: inline-flex;
72
76
  line-height: 1;
73
- color: var(--kui-color-font);
77
+ color: var(--kui-color-text);
74
78
  align-items: center;
75
79
  outline: none;
76
80
  &:focus {
77
81
  .k-radio-symbol {
78
- outline: 2px solid var(--kui-color-main-80);
82
+ outline: 2px solid var(--kui-color-outline);
79
83
  }
80
84
  }
81
85
  .k-radio-symbol {
@@ -88,7 +92,7 @@
88
92
  height: 16px;
89
93
  border: 1px solid var(--kui-color-border);
90
94
  border-radius: 50%;
91
- background-color: var(--kui-color-back);
95
+ background-color: var(--kui-color-bg-component);
92
96
  outline: 2px solid transparent;
93
97
  outline-offset: 1px;
94
98
  &:after {
@@ -101,10 +105,15 @@
101
105
  top: 50%;
102
106
  transform: translate3d(-50%, -50%, 0);
103
107
  content: "";
104
- background-color: var(--kui-color-main);
108
+ background-color: var(--kui-color-primary);
105
109
  transition: all 0.2s ease-in-out;
106
110
  }
107
111
  }
112
+ &:hover {
113
+ .k-radio-symbol {
114
+ border-color: var(--kui-color-primary);
115
+ }
116
+ }
108
117
 
109
118
  .k-radio-input {
110
119
  width: 100%;
@@ -118,51 +127,36 @@
118
127
  opacity: 0;
119
128
  cursor: inherit;
120
129
  margin: 0;
121
- &:focus,
122
- &:hover {
123
- + .k-radio-inner {
124
- // border: 1px solid var(--kui-color-main);
125
- // box-shadow: 0 0 0 2px var(--kui-color-main-90);
126
- }
127
- }
128
130
  }
129
131
 
130
132
  .k-radio-label {
131
133
  font-size: 14px;
132
134
  margin-left: 8px;
133
135
  }
134
-
135
- &:not(.k-radio-disabled):hover {
136
- .k-radio-symbol {
137
- border: 1px solid var(--kui-color-main);
138
- box-shadow: 0 0 0 2px var(--kui-color-main-90);
139
- }
140
- }
141
136
  }
142
137
  .k-radio-light {
143
138
  .k-radio-symbol {
144
- background: var(--kui-color-gray-80);
139
+ background: var(--kui-color-bg-component);
145
140
  }
146
141
  }
147
142
 
148
143
  .k-radio-checked {
149
144
  .k-radio-symbol {
150
- background: var(--kui-color-main);
151
- border-color: var(--kui-color-main);
145
+ background: var(--kui-color-primary);
146
+ border-color: var(--kui-color-primary);
152
147
 
153
148
  &:after {
154
149
  opacity: 1;
155
150
  width: 6px;
156
151
  height: 6px;
157
- background-color: #fff; //var(--kui-color-back);
152
+ background-color: #fff;
158
153
  }
159
154
  }
160
155
  }
161
156
 
162
157
  .k-radio-disabled {
163
158
  cursor: not-allowed;
164
- // opacity: .5;
165
- color: var(--kui-color-disabled);
159
+ color: var(--kui-color-text-disabled);
166
160
 
167
161
  &.k-radio {
168
162
  .k-radio-input {
@@ -170,11 +164,11 @@
170
164
  }
171
165
 
172
166
  .k-radio-symbol {
173
- background: var(--kui-color-disable-back);
174
- border-color: var(--kui-color-disable-border);
167
+ background: var(--kui-color-bg-component-disabled);
168
+ border-color: var(--kui-color-border-disabled);
175
169
 
176
170
  &:after {
177
- background-color: var(--kui-color-disable-border);
171
+ background-color: var(--kui-color-border-disabled);
178
172
  }
179
173
  }
180
174
  }
@@ -228,7 +222,7 @@
228
222
 
229
223
  .k-radio-group-card {
230
224
  padding: 4px;
231
- background-color: var(--kui-color-gray-80);
225
+ background-color: var(--kui-color-bg-component);
232
226
  border-radius: var(--kui-border-radius);
233
227
 
234
228
  .k-btn {
@@ -1,13 +1,13 @@
1
1
  ## Rate API
2
2
 
3
- | 属性 | 说明 | 类型 | 默认值 |
4
- | -------------- | ---------------------- | ----------------------- | ------ |
5
- | value(v-model) | 当前数,受控值 | Number | - |
6
- | allowClear | 是否允许再次点击后清除 | Boolean | false |
7
- | allowHalf | 是否允许半选 | Boolean | - |
8
- | showScore | 是否显示分数 | Boolean | - |
9
- | character | 自定义字符 | String | - |
10
- | count | star 总数 | Number | - |
11
- | disabled | 只读,无法进行交互 | String | - |
12
- | tooltips | 自定义每项的提示信息 | String[] | - |
13
- | change | 选择时的回调 | Function(value:Number)) | - |
3
+ | 属性 | 说明 | 类型 | 默认值 |
4
+ | -------------- | ---------------------- | ---------------------- | ------ |
5
+ | value(v-model) | 当前数,受控值 | Number | - |
6
+ | allowClear | 是否允许再次点击后清除 | Boolean | false |
7
+ | allowHalf | 是否允许半选 | Boolean | - |
8
+ | showScore | 是否显示分数 | Boolean | - |
9
+ | character | 自定义字符 | String | - |
10
+ | count | star 总数 | Number | - |
11
+ | disabled | 只读,无法进行交互 | String | - |
12
+ | tooltips | 自定义每项的提示信息 | String[] | - |
13
+ | change | 选择时的回调 | Function(value:Number) | - |
@@ -1,4 +1,4 @@
1
- @import '../../styles/var.less';
1
+ @import "../../styles/less-css-var.less";
2
2
 
3
3
  .k-rate {
4
4
  display: inline-flex;
@@ -11,7 +11,7 @@
11
11
  display: inline-flex;
12
12
  margin-right: 8px;
13
13
  position: relative;
14
- transition: all .3s ease;
14
+ transition: all 0.3s ease;
15
15
  cursor: pointer;
16
16
  align-items: center;
17
17
  transform: translateZ(0);
@@ -36,7 +36,7 @@
36
36
 
37
37
  .k-star-back {
38
38
  line-height: 1;
39
- color: var(--kui-color-border);
39
+ color: var(--kui-color-bg-component-active);
40
40
  }
41
41
  }
42
42
 
@@ -46,21 +46,18 @@
46
46
 
47
47
  .k-star-half {
48
48
  .k-star-front {
49
- // color: orange;
50
49
  opacity: 1;
51
50
  }
52
51
  }
53
52
 
54
53
  .k-star-full {
55
54
  .k-star-front {
56
- // color: orange;
57
55
  width: 100%;
58
56
  opacity: 1;
59
57
  }
60
58
  }
61
59
 
62
60
  .k-rate-score {
63
- // color: orange;
64
61
  font-size: 14px;
65
62
  }
66
- }
63
+ }
@@ -63,7 +63,7 @@ const Select = defineComponent({
63
63
  bordered: { type: Boolean, default: true },
64
64
  showArrow: { type: Boolean, default: true },
65
65
  options: Array,
66
- theme: String,
66
+ theme: { type: String, default: "light" },
67
67
  emptyText: String,
68
68
  loadingText: String,
69
69
  icon: [String, Array],
@@ -1,4 +1,4 @@
1
- @import "../../styles/var.less";
1
+ @import "../../styles/less-css-var.less";
2
2
 
3
3
  .k-select {
4
4
  display: inline-flex;
@@ -6,28 +6,27 @@
6
6
  min-width: 80px;
7
7
  box-sizing: border-box;
8
8
  vertical-align: middle;
9
- color: var(--kui-color-font);
9
+ color: var(--kui-color-text);
10
10
  font-size: 14px;
11
11
  position: relative;
12
12
  outline: none;
13
13
  box-sizing: border-box;
14
14
  // flex-shrink: 0;
15
15
  align-items: center;
16
- background-color: var(--kui-color-back);
16
+ background-color: var(--kui-color-bg-container);
17
17
  border-radius: var(--kui-border-radius);
18
18
  border: 1px solid var(--kui-color-border);
19
19
  padding: 0 8px;
20
20
  transition: border 0.3s ease-in-out;
21
21
  line-height: 1.571;
22
22
  position: relative;
23
- // max-width: 100%;
24
23
  &:not(.k-select-disabled, .k-select-borderless):focus {
25
- outline: 2px solid var(--kui-color-main-80);
24
+ outline: 2px solid var(--kui-color-outline);
26
25
  outline-offset: 1px;
27
26
  }
28
27
  &:hover {
29
- border-color: var(--kui-color-main);
30
- box-shadow: 0 0 0 2px var(--kui-color-main-90);
28
+ border-color: var(--kui-color-primary);
29
+ box-shadow: var(--kui-component-shadow);
31
30
  }
32
31
 
33
32
  &-selection {
@@ -73,7 +72,7 @@
73
72
  background: none;
74
73
  outline: none;
75
74
  font-size: 14px;
76
- color: var(--kui-color-font);
75
+ color: var(--kui-color-text);
77
76
  }
78
77
  }
79
78
 
@@ -88,7 +87,7 @@
88
87
  .k-select-tag {
89
88
  padding: 2px 5px;
90
89
  border: 1px solid var(--kui-color-border);
91
- background-color: var(--kui-color-border);
90
+ background-color: var(--kui-color-bg-component);
92
91
  border-radius: var(--kui-border-radius);
93
92
  display: inline-flex;
94
93
  align-items: center;
@@ -98,13 +97,9 @@
98
97
  transition: all 0.25s ease-in-out;
99
98
 
100
99
  .k-icon {
101
- // position: absolute;
102
- // right: 3px;
103
100
  font-size: 16px;
104
101
  text-align: center;
105
102
  display: block;
106
- // top: 50%;
107
- // transform: translateY(-50%);
108
103
  }
109
104
  }
110
105
 
@@ -136,7 +131,7 @@
136
131
  line-height: 1.571;
137
132
  overflow: hidden;
138
133
  text-overflow: ellipsis;
139
- color: var(--kui-color-disabled);
134
+ color: var(--kui-color-text-placeholder);
140
135
  white-space: nowrap;
141
136
  max-width: 100%;
142
137
  box-sizing: border-box;
@@ -185,14 +180,17 @@
185
180
  display: none;
186
181
  cursor: pointer;
187
182
  &:hover {
188
- color: var(--kui-color-font);
183
+ color: var(--kui-color-icon-hover);
184
+ }
185
+ &:active {
186
+ color: var(--kui-color-icon-active);
189
187
  }
190
188
  }
191
189
 
192
190
  .k-select-search-mirror,
193
191
  .k-select-search {
194
192
  font-size: 14px;
195
- color: var(--kui-color-font);
193
+ color: var(--kui-color-text);
196
194
  }
197
195
 
198
196
  &.k-select-circle {
@@ -227,9 +225,8 @@
227
225
  .k-select-light {
228
226
  &.k-select {
229
227
  border-color: transparent;
230
- background: var(--kui-color-gray-80);
228
+ background: var(--kui-color-bg-component);
231
229
  transition: none;
232
- // box-shadow: none;
233
230
 
234
231
  &:hover {
235
232
  box-shadow: none;
@@ -237,7 +234,7 @@
237
234
  }
238
235
 
239
236
  .k-select-tag {
240
- background-color: var(--kui-color-gray-80);
237
+ background-color: var(--kui-color-bg-component);
241
238
  border-color: transparent;
242
239
  }
243
240
  }
@@ -251,19 +248,21 @@
251
248
  width: 100%;
252
249
  }
253
250
  .k-select-dropdown {
251
+ -webkit-user-select: none;
254
252
  user-select: none;
255
253
  border-radius: var(--kui-border-radius);
256
254
  width: inherit;
257
255
  max-height: 200px;
258
256
  overflow: auto;
259
- background-color: var(--kui-color-back-10);
257
+ background-color: var(--kui-color-bg-pop);
258
+ border: 1px solid var(--kui-color-pop-border);
260
259
  box-sizing: border-box;
261
- box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
260
+ box-shadow: var(--kui-pop-shadow);
261
+
262
262
  position: absolute;
263
263
  z-index: 1003;
264
264
  padding: 5px;
265
- box-sizing: border-box;
266
- border: 1px solid var(--kui-color-gray-80);
265
+ box-sizing: border-box;
267
266
 
268
267
  ul {
269
268
  padding: 0;
@@ -275,7 +274,7 @@
275
274
  .k-select-loading {
276
275
  padding: 10px;
277
276
  font-size: 14px;
278
- color: var(--kui-color-font);
277
+ color: var(--kui-color-text);
279
278
  display: flex;
280
279
  align-items: center;
281
280
 
@@ -293,7 +292,7 @@
293
292
  line-height: 1;
294
293
  padding: 8px 8px;
295
294
  clear: both;
296
- color: var(--kui-color-font);
295
+ color: var(--kui-color-text);
297
296
  font-size: 14px;
298
297
  white-space: nowrap;
299
298
  list-style: none;
@@ -303,15 +302,15 @@
303
302
  text-overflow: ellipsis;
304
303
  cursor: pointer;
305
304
  position: relative;
306
- border-radius: @radius;
305
+ border-radius: var(--kui-border-radius);
307
306
  margin-bottom: 1px;
308
307
 
309
- &:not(.k-select-item-disabled):hover {
310
- background: var(--kui-color-hover);
308
+ &:not(.k-select-item-disabled, .k-select-item-selected):hover {
309
+ background: var(--kui-color-item-hover);
311
310
  }
312
311
 
313
- &:not(.k-select-item-disabled):active {
314
- background: var(--kui-color-active);
312
+ &:not(.k-select-item-disabled, .k-select-item-selected):active {
313
+ background: var(--kui-color-item-active);
315
314
  }
316
315
 
317
316
  .k-icon {
@@ -336,22 +335,18 @@
336
335
  }
337
336
 
338
337
  .k-select-item-selected {
339
- background: var(--kui-color-selected);
338
+ background: var(--kui-color-item-selected);
340
339
  font-weight: 500;
341
340
 
342
- &:hover {
343
- background: var(--kui-color-selected);
344
- }
345
-
346
341
  .k-icon {
347
- color: var(--kui-color-main);
342
+ color: var(--kui-color-primary);
348
343
  display: block;
349
344
  }
350
345
  }
351
346
 
352
347
  .k-select-item-disabled {
353
- background: var(--kui-color-disable-back);
354
- color: var(--kui-color-disabled);
348
+ background: var(--kui-color-item-disable);
349
+ color: var(--kui-color-text-disabled);
355
350
  cursor: not-allowed;
356
351
  }
357
352
  }
@@ -401,7 +396,6 @@
401
396
  .k-select-label {
402
397
  line-height: 22px;
403
398
  height: 22px;
404
- // padding-right: 23px;
405
399
  font-size: 12px;
406
400
  }
407
401
 
@@ -445,7 +439,7 @@
445
439
  .k-select-search-mirror,
446
440
  .k-select-search {
447
441
  font-size: 12px;
448
- color: var(--kui-color-font);
442
+ color: var(--kui-color-text);
449
443
  }
450
444
  }
451
445
 
@@ -507,8 +501,7 @@
507
501
  }
508
502
 
509
503
  .k-select-opened {
510
- border-color: var(--kui-color-main);
511
- box-shadow: 0 0 0 2px var(--kui-color-main-90);
504
+ border-color: var(--kui-color-primary);
512
505
 
513
506
  .k-select-label {
514
507
  opacity: 0.5;
@@ -521,8 +514,8 @@
521
514
  }
522
515
 
523
516
  .k-select-disabled {
524
- color: var(--kui-color-disabled);
525
- background: var(--kui-color-disable-back);
517
+ color: var(--kui-color-text-disabled);
518
+ background: var(--kui-color-bg-component-disabled);
526
519
 
527
520
  .k-select-label {
528
521
  cursor: not-allowed;
@@ -535,12 +528,6 @@
535
528
  .k-select-arrow {
536
529
  color: var(--kui-color-disable-border);
537
530
  }
538
-
539
- &:hover,
540
- &:focus {
541
- border-color: var(--kui-color-disable-border);
542
- box-shadow: none;
543
- }
544
531
  }
545
532
 
546
533
  .k-select-has-clear {
@@ -1,4 +1,5 @@
1
1
  ## API
2
+
2
3
  | 属性 | 说明 | 类型 | 默认值 |
3
4
  | -------- | -------------------------------------------- | ------------------- | ------ |
4
5
  | animated | 是否展示动画效果 | Boolean | false |
@@ -9,6 +10,7 @@
9
10
  | delay | 防抖(动画延迟关闭) | Number(毫秒) | 500 |
10
11
 
11
12
  ## Avatar Props
13
+
12
14
  | 属性 | 说明 | 类型 | 默认值 |
13
15
  | -------- | -------------------------------------------- | ----------------------------------- | ------ |
14
16
  | animated | 是否展示动画效果 | Boolean | false |
@@ -18,6 +20,7 @@
18
20
  | size | 设置头像占位图的大小 | number \| large \| small \| default | - |
19
21
 
20
22
  ## Button Props
23
+
21
24
  | 属性 | 说明 | 类型 | 默认值 |
22
25
  | -------- | -------------------------------------------- | -------------------------- | ------ |
23
26
  | animated | 是否展示动画效果 | Boolean | false |
@@ -28,6 +31,7 @@
28
31
  | width | 按钮宽度 | Number | - |
29
32
 
30
33
  ## Text Props
34
+
31
35
  | 属性 | 说明 | 类型 | 默认值 |
32
36
  | -------- | -------------------------------------------- | ------------------------- | ------ |
33
37
  | animated | 是否展示动画效果 | Boolean | false |
@@ -36,10 +40,10 @@
36
40
  | width | 文本宽度 | Number | - |
37
41
 
38
42
  ## Image Props
43
+
39
44
  | 属性 | 说明 | 类型 | 默认值 |
40
45
  | -------- | -------------------------------------------- | ------------- | ------ |
41
46
  | animated | 是否展示动画效果 | Boolean | false |
42
47
  | loading | 为 true 时,显示占位图。反之则直接展示子组件 | Boolean | - |
43
48
  | radius | 指定图片的圆角大小 | Number | - |
44
49
  | size | 图片的宽(高)度 | Number\|Array | - |
45
-