kui-vue 3.4.6 → 3.4.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 (102) hide show
  1. package/components/_tool/clone.js +1 -0
  2. package/components/avatar/demo/base.md +13 -15
  3. package/components/avatar/demo/change.md +2 -2
  4. package/components/avatar/demo/index.vue +1 -8
  5. package/components/avatar/demo/types.md +2 -2
  6. package/components/badge/badge.jsx +1 -0
  7. package/components/badge/demo/base.md +5 -5
  8. package/components/badge/demo/dot.md +1 -12
  9. package/components/badge/demo/dynamic.md +0 -11
  10. package/components/badge/demo/index.vue +14 -2
  11. package/components/badge/demo/mark.md +3 -3
  12. package/components/badge/demo/max.md +0 -12
  13. package/components/badge/demo/status.md +0 -5
  14. package/components/badge/styles/index.less +29 -2
  15. package/components/base/input.jsx +53 -27
  16. package/components/button/styles/index.less +4 -1
  17. package/components/checkbox/checkbox.jsx +1 -1
  18. package/components/checkbox/styles/index.less +13 -1
  19. package/components/colorPicker/colorpicker.jsx +59 -35
  20. package/components/colorPicker/demo/shape.md +1 -0
  21. package/components/colorPicker/index.md +1 -0
  22. package/components/colorPicker/styles/index.less +68 -56
  23. package/components/datePicker/datepicker.jsx +2 -1
  24. package/components/datePicker/demo/base.md +0 -3
  25. package/components/drawer/drawer.jsx +1 -1
  26. package/components/form/demo/base.md +19 -2
  27. package/components/form/demo/length.md +1 -1
  28. package/components/form/demo/valid.md +21 -6
  29. package/components/form/form.jsx +4 -2
  30. package/components/form/formitem.jsx +3 -1
  31. package/components/form/styles/index.less +4 -2
  32. package/components/index.js +2 -0
  33. package/components/input/demo/base.md +2 -2
  34. package/components/input/demo/event.md +2 -2
  35. package/components/input/demo/group.md +20 -3
  36. package/components/input/demo/icon.md +8 -2
  37. package/components/input/demo/index.vue +1 -15
  38. package/components/input/demo/size.md +2 -2
  39. package/components/input/demo/suffix.md +63 -29
  40. package/components/input/demo/textarea.md +2 -2
  41. package/components/input/demo/theme.md +2 -4
  42. package/components/input/index.md +20 -10
  43. package/components/input/input.jsx +3 -0
  44. package/components/input/inputGroup.jsx +7 -4
  45. package/components/input/styles/index.less +104 -2
  46. package/components/input/textarea.jsx +1 -0
  47. package/components/inputNumber/demo/base.md +6 -12
  48. package/components/inputNumber/demo/ffix.md +3 -9
  49. package/components/inputNumber/inputNumber.jsx +9 -5
  50. package/components/inputNumber/styles/index.less +34 -20
  51. package/components/menu/styles/index.less +1 -1
  52. package/components/message/demo/index.vue +1 -10
  53. package/components/message/demo/types.md +3 -3
  54. package/components/modal/demo/base.md +2 -2
  55. package/components/modal/demo/confrim.md +2 -2
  56. package/components/modal/demo/custom.md +2 -2
  57. package/components/modal/demo/global.md +2 -2
  58. package/components/modal/demo/index.vue +1 -10
  59. package/components/modal/demo/more.md +2 -2
  60. package/components/notice/demo/close.md +2 -2
  61. package/components/notice/demo/icon.md +2 -2
  62. package/components/notice/demo/index.vue +1 -10
  63. package/components/notice/demo/types.md +4 -4
  64. package/components/popconfirm/demo/index.vue +1 -10
  65. package/components/popconfirm/demo/local.md +17 -15
  66. package/components/popconfirm/demo/placement.md +50 -46
  67. package/components/poptip/demo/base.md +16 -14
  68. package/components/poptip/demo/index.vue +1 -10
  69. package/components/poptip/demo/placement.md +99 -94
  70. package/components/poptip/demo/trigger.md +16 -14
  71. package/components/rate/demo/base.md +2 -5
  72. package/components/rate/demo/character.md +2 -4
  73. package/components/rate/demo/clear.md +2 -3
  74. package/components/rate/demo/custom.md +3 -5
  75. package/components/rate/demo/disabled.md +4 -8
  76. package/components/rate/demo/tips.md +2 -2
  77. package/components/select/styles/index.less +5 -1
  78. package/components/space/demo/compact.md +23 -6
  79. package/components/space/space.jsx +21 -24
  80. package/components/space/styles/index.less +5 -0
  81. package/components/styles/index.less +1 -0
  82. package/components/tooltip/demo/index.vue +1 -14
  83. package/components/tooltip/demo/placement.md +50 -46
  84. package/components/tree/demo/checkable.md +5 -1
  85. package/components/tree/demo/directory.md +27 -31
  86. package/components/tree/index.md +22 -15
  87. package/components/tree/node.jsx +43 -23
  88. package/components/tree/styles/index.less +257 -215
  89. package/components/tree/tree.jsx +39 -6
  90. package/components/treeselect/demo/base.md +59 -0
  91. package/components/treeselect/demo/checkable.md +59 -0
  92. package/components/treeselect/demo/index.vue +30 -0
  93. package/components/treeselect/demo/info.md +7 -0
  94. package/components/treeselect/demo/multiple.md +59 -0
  95. package/components/treeselect/demo/sync.md +38 -0
  96. package/components/treeselect/index.md +38 -0
  97. package/components/treeselect/styles/index.less +579 -27
  98. package/components/treeselect/treeselect.jsx +508 -0
  99. package/dist/k-ui.css +2 -2
  100. package/dist/k-ui.js +2 -2
  101. package/package.json +2 -1
  102. package/components/treeselect/treeselect.vue +0 -200
@@ -39,6 +39,7 @@ const DATA_KEYS = [
39
39
 
40
40
  function extractData(vnode, isComp) {
41
41
  const data = pick(vnode.data, DATA_KEYS)
42
+ // console.log(vnode.data)
42
43
  if (isComp) {
43
44
  const cOpts = vnode.componentOptions
44
45
  assign(data, {
@@ -5,20 +5,18 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
9
- <div>
10
- <Avatar :size="64">U</Avatar>
11
- <Avatar size="large">U</Avatar>
12
- <Avatar>U</Avatar>
13
- <Avatar size="small">U</Avatar>
14
- </div>
15
- <br />
16
- <div>
17
- <Avatar shape="square" :size="64">U</Avatar>
18
- <Avatar shape="square" size="large">U</Avatar>
19
- <Avatar shape="square">U</Avatar>
20
- <Avatar shape="square" size="small">U</Avatar>
21
- </div>
22
- </div>
8
+ <Space>
9
+ <Avatar :size="64">U</Avatar>
10
+ <Avatar size="large">U</Avatar>
11
+ <Avatar>U</Avatar>
12
+ <Avatar size="small">U</Avatar>
13
+ </Space>
14
+ <br/>
15
+ <Space>
16
+ <Avatar shape="square" :size="64">U</Avatar>
17
+ <Avatar shape="square" size="large">U</Avatar>
18
+ <Avatar shape="square">U</Avatar>
19
+ <Avatar shape="square" size="small">U</Avatar>
20
+ </Space>
23
21
  </template>
24
22
  ```
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <Space>
9
9
  <Avatar
10
10
  size="large"
11
11
  :style="{ backgroundColor: color, verticalAlign: 'middle' }"
@@ -13,7 +13,7 @@
13
13
  {{ text }}
14
14
  </Avatar>
15
15
  <Button size="small" @click="changeValue">改变</Button>
16
- </div>
16
+ </Space>
17
17
  </template>
18
18
  <script>
19
19
  function ran(min, max) {
@@ -17,11 +17,4 @@ export default {
17
17
  )
18
18
  }
19
19
  }
20
- </script>
21
- <style lang="less">
22
- .demo-avatar{
23
- .k-avatar{
24
- margin: 0 10px 10px 0;
25
- }
26
- }
27
- </style>
20
+ </script>
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <Space>
9
9
  <Avatar :icon="HeartOutline" />
10
10
  <Avatar>
11
11
  <Icon :type="HeartOutline" />
@@ -21,7 +21,7 @@
21
21
  <br/>
22
22
  <Avatar src="https://cdn.chuchur.com/img/chick.jpeg" :size="50"/>
23
23
  <Avatar src="https://cdn.chuchur.com/img/monkey.jpeg" shape="square"/>
24
- </div>
24
+ </Space>
25
25
  </template>
26
26
  <script>
27
27
  import { HeartOutline } from "kui-icons"
@@ -43,6 +43,7 @@ export default {
43
43
  class: {
44
44
  'k-badge-count': count !== undefined,
45
45
  'k-badge-dot': dot,
46
+ 'k-badge-no-child': !child.length,
46
47
  [`k-badge-${status}`]: status,
47
48
  },
48
49
  style: { backgroundColor: color }
@@ -5,13 +5,13 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <Space>
9
9
  <Badge :count="3">
10
- <Button>最新消息</Button>
10
+ <div class="box"></div>
11
11
  </Badge>
12
- <Badge :count="15" color="orange" style="margin:0 30px;">
13
- <Button>最新评论</Button>
12
+ <Badge :count="15" color="orange">
13
+ <div class="box"></div>
14
14
  </Badge>
15
- </div>
15
+ </Space>
16
16
  </template>
17
17
  ```
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div class="demo-dot">
8
+ <div>
9
9
  <Badge dot>
10
10
  <div class="box"></div>
11
11
  </Badge>
@@ -27,15 +27,4 @@ export default{
27
27
  }
28
28
  }
29
29
  </script>
30
- <style scoped>
31
- .demo-dot .box{
32
- width:50px;
33
- height:50px;
34
- background:#7f7f7f55;
35
- border-radius:5px;
36
- }
37
- .demo-dot .k-badge{
38
- margin-right:20px;
39
- }
40
- </style>
41
30
  ```
@@ -39,15 +39,4 @@ export default{
39
39
  }
40
40
  }
41
41
  </script>
42
- <style scoped>
43
- .demo-dot .box{
44
- width:50px;
45
- height:50px;
46
- background:#7f7f7f55;
47
- border-radius:5px;
48
- }
49
- .demo-dot .k-badge{
50
- margin-right:20px;
51
- }
52
- </style>
53
42
  ```
@@ -11,7 +11,7 @@ import CN from '../index.md'
11
11
  export default {
12
12
  render() {
13
13
  return (
14
- <div>
14
+ <div class="demo-dot">
15
15
  <Info />
16
16
  <Base />
17
17
  <Dot />
@@ -26,4 +26,16 @@ export default {
26
26
  }
27
27
  }
28
28
 
29
- </script>
29
+ </script>
30
+ <style>
31
+ .demo-dot .box {
32
+ width: 40px;
33
+ height: 40px;
34
+ background: #7f7f7f55;
35
+ border-radius: 10px;
36
+ }
37
+
38
+ .demo-dot .k-badge {
39
+ margin-right: 20px;
40
+ }
41
+ </style>
@@ -6,10 +6,10 @@
6
6
 
7
7
  ```vue
8
8
  <template>
9
- <div>
9
+ <Space>
10
10
  <Badge :count="3" />
11
- <Badge :count="15" color="orange" style="margin:0 30px;" />
11
+ <Badge :count="15" color="orange"/>
12
12
  <Badge :count="25" color="green"/>
13
- </div>
13
+ </Space>
14
14
  </template>
15
15
  ```
@@ -26,16 +26,4 @@
26
26
  </Badge>
27
27
  </div>
28
28
  </template>
29
- <style scoped>
30
- .demo-dot .box{
31
- width:50px;
32
- height:50px;
33
- background:#7f7f7f55;
34
- border-radius:5px;
35
- }
36
- .demo-dot .k-badge{
37
- margin-right:30px;
38
- margin-bottom:30px;
39
- }
40
- </style>
41
29
  ```
@@ -20,9 +20,4 @@
20
20
  <Badge status="warning" text="warning" />
21
21
  </div>
22
22
  </template>
23
- <style scoped>
24
- .demo-dot .k-badge{
25
- margin-right:20px;
26
- }
27
- </style>
28
23
  ```
@@ -1,9 +1,11 @@
1
1
  @import '../../styles/var.less';
2
+
2
3
  .k-badge {
3
4
  position: relative;
4
5
  display: inline-block;
5
6
  line-height: 1;
6
7
  vertical-align: middle;
8
+
7
9
  &-count {
8
10
  position: absolute;
9
11
  transform: translate(50%, -50%);
@@ -17,13 +19,15 @@
17
19
  color: #fff;
18
20
  line-height: 20px;
19
21
  text-align: center;
20
- padding: 0 6px;
21
22
  font-size: 12px;
22
23
  white-space: nowrap;
23
24
  z-index: 10;
24
25
  box-shadow: 0 0 0 1px var(--kui-color-back);
25
26
  box-sizing: border-box;
27
+ display: block;
28
+ padding: 0 6px;
26
29
  }
30
+
27
31
  &-mark {
28
32
  display: inline-block;
29
33
  border-radius: 10px;
@@ -41,6 +45,7 @@
41
45
  top: 0;
42
46
  bottom: 0;
43
47
  }
48
+
44
49
  &-dot {
45
50
  position: absolute;
46
51
  // transform: translateX(-50%);
@@ -56,8 +61,13 @@
56
61
  border-radius: 50%;
57
62
  background: var(--kui-color-danger);
58
63
  z-index: 10;
59
- box-shadow: 0 0 0 1px #fff;
64
+ // box-shadow: 0 0 0 1px #fff;
65
+ }
66
+
67
+ &-no-child {
68
+ position: relative;
60
69
  }
70
+
61
71
  &-status-dot {
62
72
  position: relative;
63
73
  top: -1px;
@@ -67,20 +77,25 @@
67
77
  vertical-align: middle;
68
78
  border-radius: 50%;
69
79
  }
80
+
70
81
  &-status-text {
71
82
  color: var(--kui-color-font);
72
83
  font-size: 14px;
73
84
  margin-left: 8px;
74
85
  }
86
+
75
87
  &-status-success {
76
88
  background-color: var(--kui-color-success);
77
89
  }
90
+
78
91
  &-status-error {
79
92
  background-color: var(--kui-color-danger);
80
93
  }
94
+
81
95
  &-status-warning {
82
96
  background-color: var(--kui-color-warning);
83
97
  }
98
+
84
99
  &-status-default {
85
100
  background-color: #ddd;
86
101
  }
@@ -89,39 +104,51 @@
89
104
  &-status-pink {
90
105
  background-color: var(--kui-color-pink);
91
106
  }
107
+
92
108
  &-status-red {
93
109
  background-color: var(--kui-color-red);
94
110
  }
111
+
95
112
  &-status-yellow {
96
113
  background-color: var(--kui-color-yellow);
97
114
  }
115
+
98
116
  &-status-orange {
99
117
  background-color: var(--kui-color-orange);
100
118
  }
119
+
101
120
  &-status-cyan {
102
121
  background-color: var(--kui-color-cyan);
103
122
  }
123
+
104
124
  &-status-green {
105
125
  background-color: var(--kui-color-green);
106
126
  }
127
+
107
128
  &-status-blue {
108
129
  background-color: var(--kui-color-blue);
109
130
  }
131
+
110
132
  &-status-purple {
111
133
  background-color: var(--kui-color-purple);
112
134
  }
135
+
113
136
  &-status-geekblue {
114
137
  background-color: var(--kui-color-geekblue);
115
138
  }
139
+
116
140
  &-status-magenta {
117
141
  background-color: var(--kui-color-magenta);
118
142
  }
143
+
119
144
  &-status-volcano {
120
145
  background-color: var(--kui-color-volcano);
121
146
  }
147
+
122
148
  &-status-gold {
123
149
  background-color: var(--kui-color-gold);
124
150
  }
151
+
125
152
  &-status-lime {
126
153
  background-color: var(--kui-color-lime);
127
154
  }
@@ -1,10 +1,13 @@
1
1
  import Icon from '../icon'
2
2
  import { isNotEmpty } from '../_tool/utils'
3
3
  import { Search, CloseCircle, EyeOutline, EyeOffOutline } from 'kui-icons';
4
+ import { InputGroup } from '../input'
4
5
  export default {
5
6
  name: "baseInput",
6
7
  props: {
7
8
  clearable: Boolean,
9
+ visiblePassword: Boolean,
10
+ visiblePasswordIcon: Boolean,
8
11
  id: String,
9
12
  size: {
10
13
  default: 'default',
@@ -27,14 +30,15 @@ export default {
27
30
  theme: String,
28
31
  shape: String,
29
32
  formatter: Function,
30
- parser: Function
33
+ parser: Function,
34
+ placeholder: String
31
35
  },
32
36
  data() {
33
37
  return {
34
38
  currentValue: this.value,
35
39
  isFocus: false,
36
40
  // isEnter: false,
37
- isPassword: true,
41
+ isPassword: !this.visiblePassword,
38
42
  };
39
43
  },
40
44
  inject: {
@@ -45,6 +49,9 @@ export default {
45
49
  watch: {
46
50
  value(value) {
47
51
  this.currentValue = value
52
+ },
53
+ visiblePassword(value) {
54
+ this.isPassword = !value
48
55
  }
49
56
  },
50
57
  mounted() {
@@ -101,8 +108,8 @@ export default {
101
108
  },
102
109
  showPassword() {
103
110
  if (this.disabled) return;
104
- let type = this.isPassword ? 'text' : 'password'
105
111
  this.isPassword = !this.isPassword
112
+ let type = this.isPassword ? 'text' : 'password'
106
113
  this.$refs.input.type = type
107
114
  },
108
115
  setValue({ input, output }) {
@@ -116,15 +123,15 @@ export default {
116
123
  this.$listeners.search(this.currentValue)
117
124
  },
118
125
  getSuffix() {
119
- let { $listeners, suffix } = this
126
+ let { $listeners, suffix, visiblePasswordIcon } = this
120
127
  const SearchNode = ('search' in $listeners) ? <Icon type={Search} class="k-input-search-icon" onClick={this.searchEvent} /> : null
121
128
 
122
- const Password = (this.type == 'password') ? <Icon class="k-input-password-icon" type={!this.isPassword ? EyeOutline : EyeOffOutline} onClick={this.showPassword} /> : null
129
+ const Password = (this.type == 'password' && visiblePasswordIcon) ? <Icon class="k-input-password-icon" type={!this.isPassword ? EyeOutline : EyeOffOutline} onClick={this.showPassword} /> : null
123
130
 
124
131
  return Password || SearchNode || this.$slots.suffix || (suffix ? <div class="k-input-suffix">{suffix}</div> : null)
125
132
  },
126
133
  getTextInput(mult) {
127
- const { disabled, size, type, inputType, currentValue, id, theme, shape } = this
134
+ const { disabled, size, type, inputType, currentValue, id, theme, shape, placeholder } = this
128
135
  let isTextArea = inputType == 'textarea'
129
136
  const props = {
130
137
  domProps: {
@@ -143,7 +150,8 @@ export default {
143
150
  ],
144
151
  ref: 'input',
145
152
  attrs: {
146
- ...this.$attrs, disabled, id
153
+ ...this.$attrs,
154
+ disabled, id, placeholder
147
155
  },
148
156
  on: {
149
157
  ...this.$listeners,
@@ -155,6 +163,10 @@ export default {
155
163
 
156
164
  if (!isTextArea) {
157
165
  props.attrs.type = type
166
+
167
+ if (!this.isPassword && type == 'password') {
168
+ props.attrs.type = 'text'
169
+ }
158
170
  }
159
171
  return isTextArea ? <textarea {...props} /> : <input {...props} single />
160
172
  },
@@ -163,7 +175,7 @@ export default {
163
175
  const { inputType, icon, $slots, size, disabled, type, $listeners, clearable, suffix, theme, prefix, shape } = this
164
176
 
165
177
  let isTextArea = inputType == 'textarea'
166
- let mult = icon || ('search' in $listeners) || $slots.suffix || suffix || $slots.prefix || prefix || type == 'password' || clearable
178
+ let mult = icon || ('search' in $listeners) || $slots.suffix || suffix || $slots.prefix || prefix || type == 'password' || clearable || $slots.contorls
167
179
 
168
180
  let textInput = this.getTextInput(mult)
169
181
 
@@ -174,30 +186,44 @@ export default {
174
186
  // let clearableShow = clearable && (isFocus || isEnter) && isNotEmpty(currentValue)
175
187
  let clearableShow = clearable && isNotEmpty(currentValue)
176
188
  const props = {
177
- class: [
178
- `k-${inputType}`,
179
- {
180
- [`k-${inputType}-focus`]: isFocus,
181
- [`k-${inputType}-disabled`]: disabled,
182
- [`k-${inputType}-sm`]: size == 'small',
183
- [`k-${inputType}-lg`]: size == 'large',
184
- [`k-${inputType}-${theme}`]: theme && theme != 'solid',
185
- [`k-${inputType}-circle`]: shape == 'circle' && !isTextArea,
186
- }
187
- ],
189
+ class: {
190
+ [`k-${inputType}`]: true,
191
+ [`k-${inputType}-focus`]: isFocus,
192
+ [`k-${inputType}-disabled`]: disabled,
193
+ [`k-${inputType}-sm`]: size == 'small',
194
+ [`k-${inputType}-lg`]: size == 'large',
195
+ [`k-${inputType}-${theme}`]: theme && theme != 'solid',
196
+ [`k-${inputType}-circle`]: shape == 'circle' && !isTextArea,
197
+ },
188
198
  // on: {
189
199
  // mouseenter: () => this.isEnter = true,
190
200
  // mouseleave: () => this.isEnter = false
191
201
  // }
192
202
  }
193
203
  const suffixNode = this.getSuffix()
194
- const prefixNode = $slots.prefix || (prefix ? <div class={`k-${inputType}-prefix`}>{prefix}</div> : null)
195
- return <div {...props} mult>
196
- {icon ? <Icon type={icon} class={`k-${inputType}-icon`} onClick={this.iconClick} /> : null}
197
- {prefixNode ? prefixNode : null}
198
- {textInput}
199
- {clearable ? <Icon type={CloseCircle} class={[`k-${inputType}-clearable`, { [`k-${inputType}-clearable-hidden`]: !clearableShow }]} onClick={this.clear} /> : null}
200
- {suffixNode ? suffixNode : null}
201
- </div >
204
+ const prefixNode = (prefix ? <div class={`k-${inputType}-prefix`}>{prefix}</div> : null)
205
+ if ($slots.prefix || $slots.suffix) {
206
+ return <InputGroup size={size}>
207
+ {$slots.prefix ? <div class={{ "k-input-group-prefix": true }}>{$slots.prefix}</div> : null}
208
+ <div {...props} mult>
209
+ {icon ? <Icon type={icon} class={`k-${inputType}-icon`} onClick={this.iconClick} /> : null}
210
+ {prefixNode}
211
+ {textInput}
212
+ {clearable ? <Icon type={CloseCircle} class={[`k-${inputType}-clearable`, { [`k-${inputType}-clearable-hidden`]: !clearableShow }]} onClick={this.clear} /> : null}
213
+ {/* {suffixNode} */}
214
+ {$slots.contorls}
215
+ </div >
216
+ {$slots.suffix ? <div class={{ "k-input-group-suffix": true }}>{$slots.suffix}</div> : null}
217
+ </InputGroup>
218
+ } else {
219
+ return <div {...props} mult>
220
+ {icon ? <Icon type={icon} class={`k-${inputType}-icon`} onClick={this.iconClick} /> : null}
221
+ {prefixNode}
222
+ {textInput}
223
+ {clearable ? <Icon type={CloseCircle} class={[`k-${inputType}-clearable`, { [`k-${inputType}-clearable-hidden`]: !clearableShow }]} onClick={this.clear} /> : null}
224
+ {suffixNode}
225
+ {$slots.contorls}
226
+ </div >
227
+ }
202
228
  }
203
229
  };
@@ -16,7 +16,6 @@
16
16
  user-select: none;
17
17
  outline: none;
18
18
  border: 1px solid var(--kui-color-border);
19
- background-color: transparent;
20
19
  transition: all .2s;
21
20
  z-index: 0;
22
21
  white-space: nowrap;
@@ -121,6 +120,10 @@
121
120
  }
122
121
  }
123
122
 
123
+ .k-btn-solid {
124
+ background-color: transparent;
125
+ }
126
+
124
127
  .k-btn-circle {
125
128
  border-radius: 30px;
126
129
  }
@@ -50,7 +50,7 @@ export default {
50
50
  let { disabled, change, $slots, size, label, groupContext, value, indeterminate, checked, isChecked } = this
51
51
 
52
52
  if (groupContext) {
53
- checked = groupContext.value.indexOf(value) !== -1
53
+ checked = groupContext.value?.indexOf(value) !== -1
54
54
  disabled = disabled || groupContext.disabled
55
55
  size = groupContext.size
56
56
  } else {
@@ -57,6 +57,10 @@
57
57
  z-index: 1;
58
58
  opacity: 0;
59
59
  cursor: inherit;
60
+ width: 16px;
61
+ height: 16px;
62
+ margin: 0;
63
+ padding: 0;
60
64
 
61
65
  &:focus {
62
66
  +.k-checkbox-inner {
@@ -109,7 +113,8 @@
109
113
  .k-checkbox-label {
110
114
  font-size: 16px;
111
115
  }
112
- .k-checkbox-inner{
116
+
117
+ .k-checkbox-inner {
113
118
  width: 18px;
114
119
  height: 18px;
115
120
  }
@@ -127,6 +132,13 @@
127
132
  background: var(--kui-color-main);
128
133
  border-color: var(--kui-color-main);
129
134
  }
135
+
136
+ &:hover {
137
+ .k-checkbox-inner {
138
+ background: var(--kui-color-main-hover);
139
+ border-color: var(--kui-color-main-hover);
140
+ }
141
+ }
130
142
  }
131
143
 
132
144
  .k-checkbox-disabled {