kui-vue 3.2.5 → 3.2.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 (107) hide show
  1. package/components/_tool/directives.js +3 -1
  2. package/components/_tool/docClick.js +3 -1
  3. package/components/_tool/outsiteclick.js +1 -2
  4. package/components/_tool/resize.js +2 -3
  5. package/components/_tool/scroll.js +2 -3
  6. package/components/_tool/transfer.js +3 -1
  7. package/components/_tool/utils.js +9 -3
  8. package/components/affix/affix.jsx +21 -8
  9. package/components/avatar/styles/index.less +1 -1
  10. package/components/base/drop.jsx +3 -3
  11. package/components/base/pop.jsx +7 -4
  12. package/components/bin/index.js +2 -0
  13. package/components/button/styles/index.less +7 -6
  14. package/components/colorPicker/colorpicker.jsx +27 -15
  15. package/components/colorPicker/demo/base.md +1 -1
  16. package/components/colorPicker/demo/index.vue +2 -0
  17. package/components/colorPicker/demo/shape.md +33 -0
  18. package/components/colorPicker/index.md +10 -7
  19. package/components/colorPicker/styles/index.less +30 -13
  20. package/components/datePicker/datecalendar.jsx +149 -83
  21. package/components/datePicker/datepicker.jsx +11 -7
  22. package/components/datePicker/demo/base.md +2 -0
  23. package/components/datePicker/demo/index.vue +2 -0
  24. package/components/datePicker/demo/inside.md +76 -0
  25. package/components/datePicker/demo/size.md +3 -3
  26. package/components/datePicker/index.js +2 -1
  27. package/components/datePicker/index.md +1 -0
  28. package/components/datePicker/styles/calendar.less +149 -49
  29. package/components/datePicker/styles/datepicker.less +3 -3
  30. package/components/drawer/demo/base.md +2 -2
  31. package/components/drawer/demo/custom.md +2 -2
  32. package/components/drawer/demo/form.md +1 -1
  33. package/components/drawer/demo/target.md +14 -3
  34. package/components/drawer/drawer.jsx +11 -10
  35. package/components/drawer/index.md +1 -1
  36. package/components/drawer/styles/animal.less +2 -1
  37. package/components/drawer/styles/index.less +26 -10
  38. package/components/dropdown/dropdown.jsx +0 -1
  39. package/components/empty/empty.jsx +2 -1
  40. package/components/form/form.jsx +1 -1
  41. package/components/icon/demo/search.vue +4 -4
  42. package/components/icon/index.md +1 -1
  43. package/components/image/preview.jsx +10 -8
  44. package/components/index.js +12 -4
  45. package/components/input/demo/size.md +3 -3
  46. package/components/input/styles/index.less +5 -5
  47. package/components/locale/index.js +74 -0
  48. package/components/locale/lang/de.js +55 -0
  49. package/components/locale/lang/el.js +72 -0
  50. package/components/locale/lang/en.js +55 -0
  51. package/components/locale/lang/fr.js +72 -0
  52. package/components/locale/lang/it.js +72 -0
  53. package/components/locale/lang/ja.js +72 -0
  54. package/components/locale/lang/ko.js +72 -0
  55. package/components/locale/lang/ru.js +55 -0
  56. package/components/locale/lang/th.js +72 -0
  57. package/components/locale/lang/ua.js +55 -0
  58. package/components/locale/lang/vi.js +55 -0
  59. package/components/locale/lang/zh-CN.js +55 -0
  60. package/components/locale/lang/zh-TW.js +55 -0
  61. package/components/message/styles/index.less +4 -3
  62. package/components/modal/demo/custom.md +1 -1
  63. package/components/modal/index.js +8 -6
  64. package/components/modal/modal.jsx +42 -37
  65. package/components/page/page.jsx +4 -3
  66. package/components/page/styles/index.less +13 -13
  67. package/components/popconfirm/popconfirm.jsx +2 -2
  68. package/components/select/demo/filterable.md +6 -14
  69. package/components/select/demo/search.md +6 -4
  70. package/components/select/index.md +20 -19
  71. package/components/select/select.jsx +7 -4
  72. package/components/select/styles/index.less +13 -3
  73. package/components/slider/slider.jsx +6 -4
  74. package/components/space/space.jsx +2 -2
  75. package/components/styles/color.less +2 -2
  76. package/components/table/extend.jsx +1 -1
  77. package/components/table/index.md +4 -3
  78. package/components/table/table.jsx +4 -3
  79. package/components/tabs/tabs.jsx +3 -3
  80. package/components/timeline/demo/base.md +3 -3
  81. package/components/timeline/demo/icon.md +5 -5
  82. package/components/timeline/demo/mode.md +12 -6
  83. package/components/timeline/index.md +7 -6
  84. package/components/timeline/styles/index.less +40 -13
  85. package/components/timeline/timeline.jsx +5 -1
  86. package/components/timeline/timelineitem.jsx +9 -5
  87. package/components/treeselect/treeselect.vue +36 -35
  88. package/components/upload/index.md +1 -1
  89. package/components/upload/styles/index.less +1 -1
  90. package/components/upload/upload.jsx +5 -4
  91. package/dist/k-ui.css +7 -1
  92. package/dist/k-ui.js +2 -2
  93. package/dist/locale/de.js +8 -0
  94. package/dist/locale/el.js +8 -0
  95. package/dist/locale/en.js +8 -0
  96. package/dist/locale/fr.js +8 -0
  97. package/dist/locale/it.js +8 -0
  98. package/dist/locale/ja.js +8 -0
  99. package/dist/locale/ko.js +8 -0
  100. package/dist/locale/ru.js +8 -0
  101. package/dist/locale/th.js +8 -0
  102. package/dist/locale/ua.js +8 -0
  103. package/dist/locale/vi.js +8 -0
  104. package/dist/locale/zhCN.js +8 -0
  105. package/dist/locale/zhTW.js +8 -0
  106. package/package.json +4 -3
  107. package/readme.md +1 -1
@@ -6,7 +6,7 @@
6
6
  color: var(--kui-color-font);
7
7
  // box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
8
8
  &+.k-calendar {
9
- // border-left: solid 1px #eaeaea;
9
+ border-left: solid 1px var(--kui-color-border);
10
10
  // margin-left: 5px;
11
11
  // padding-left: 5px;
12
12
  // .k-calendar-time {
@@ -14,19 +14,28 @@
14
14
  // box-sizing: content-box;
15
15
  // }
16
16
  .k-calendar-time-picker {
17
- border-left: 1px solid var(--kui-color-border);
17
+ // border-left: 1px solid var(--kui-color-border);
18
18
  }
19
19
  }
20
+ .k-btn {
21
+ transition: none;
22
+ }
20
23
  .k-calendar-body {
21
- width: 215px;
24
+ // width: 215px;
22
25
  position: relative;
23
- height: 215px;
26
+ min-height: 277px;
27
+ width: 284px;
28
+ padding: 0 16px 0 16px;
29
+ box-sizing: border-box;
24
30
  }
25
31
  .k-calendar-head {
26
- line-height: 32px;
27
- height: 32px;
32
+ // line-height: 32px;
33
+ // height: 32px;
28
34
  text-align: center;
29
35
  position: relative;
36
+ padding: 12px;
37
+ display: flex;
38
+ align-items: center;
30
39
  span {
31
40
  color: var(--kui-color-font);
32
41
  cursor: pointer;
@@ -36,43 +45,44 @@
36
45
  color: var(--kui-color-main);
37
46
  }
38
47
  }
39
- .k-calendar-prev-month-btn, .k-calendar-next-month-btn, .k-calendar-prev-year-btn, .k-calendar-next-year-btn {
40
- position: absolute;
41
- color: var(--kui-color-icon);
42
- padding: 0 5px;
43
- font-size: 16px;
44
- }
48
+ // .k-calendar-prev-month-btn, .k-calendar-next-month-btn, .k-calendar-prev-year-btn, .k-calendar-next-year-btn {
49
+ // // position: absolute;
50
+ // color: var(--kui-color-icon);
51
+ // padding: 0 5px;
52
+ // font-size: 16px;
53
+ // }
45
54
  .k-calendar-year-select, .k-calendar-month-select, .k-calendar-day-select {
46
55
  font-size: 14px;
47
- padding: 0 2px;
56
+ // padding: 0 2px;
48
57
  position: relative;
49
58
  font-weight: bold;
59
+ flex: 1;
50
60
  }
51
- .k-calendar-prev-year-btn {
52
- left: 6px;
53
- }
54
- .k-calendar-prev-month-btn {
55
- left: 24px;
56
- }
57
- .k-calendar-next-year-btn {
58
- right: 6px;
59
- }
60
- .k-calendar-next-month-btn {
61
- right: 24px;
62
- }
61
+ // .k-calendar-prev-year-btn {
62
+ // left: 6px;
63
+ // }
64
+ // .k-calendar-prev-month-btn {
65
+ // left: 24px;
66
+ // }
67
+ // .k-calendar-next-year-btn {
68
+ // right: 6px;
69
+ // }
70
+ // .k-calendar-next-month-btn {
71
+ // right: 24px;
72
+ // }
63
73
  .k-calendar-body {
64
- position: relative;
65
- width: 215px;
74
+ // position: relative;
75
+ // width: 215px;
66
76
  }
67
77
  }
68
78
  .k-calendar-days {
69
79
  font-size: 0;
70
80
  padding-bottom: 5px;
71
81
  span {
72
- width: 25px;
73
- height: 25px;
74
- line-height: 23px;
75
- margin: 5px 0 0 5px;
82
+ width: 36px;
83
+ height: 36px;
84
+ // line-height: 23px;
85
+ // margin: 5px 0 0 5px;
76
86
  font-size: 14px;
77
87
  display: inline-block;
78
88
  text-align: center;
@@ -81,20 +91,44 @@
81
91
  }
82
92
  }
83
93
  .k-calendar-years, .k-calendar-months {
84
- width: 100%;
94
+ width: 50%;
85
95
  height: 100%;
86
96
  position: absolute;
87
97
  background: var(--kui-color-control-10);
88
- left: 0;
89
98
  top: 0;
90
99
  font-size: 0;
91
100
  text-align: center;
101
+ box-sizing: border-box;
102
+ overflow: auto;
103
+ border-top: 1px solid var(--kui-color-border);
92
104
  span {
93
105
  font-size: 14px;
94
- width: 56px;
95
- margin: 20px 6px 0px;
96
- padding: 5px 0;
106
+ width: auto;
107
+ display: block;
108
+ margin: 0;
109
+ padding: 0;
110
+ text-align: center;
111
+ height: 32px;
112
+ line-height: 32px;
113
+ box-sizing: border-box;
114
+ margin: 8px;
115
+ border-radius: var(--kui-border-radius);
116
+ position: relative;
117
+ cursor: pointer;
118
+ &:hover {
119
+ background-color: var(--kui-color-hover);
120
+ }
97
121
  }
122
+ .k-calendar-item-selected {
123
+ background-color: var(--kui-color-selected);
124
+ }
125
+ }
126
+ .k-calendar-years {
127
+ border-right: 1px solid var(--kui-color-border);
128
+ left: 0;
129
+ }
130
+ .k-calendar-months {
131
+ right: 0;
98
132
  }
99
133
  .k-calendar-footer {
100
134
  border-top: 1px solid var(--kui-color-border);
@@ -109,9 +143,22 @@
109
143
  .k-calendar-btn-today {
110
144
  float: left;
111
145
  }
146
+ .k-calendar-btn-ok {
147
+ margin-left: 8px;
148
+ }
112
149
  }
113
- .k-calendar-week {
150
+ .k-calendar-weekdays {
114
151
  font-weight: 500;
152
+ border-bottom: 1px solid var(--kui-color-border);
153
+ .k-calendar-weekday {
154
+ width: 36px;
155
+ height: 36px;
156
+ display: inline-block;
157
+ text-align: center;
158
+ line-height: 36px;
159
+ color: var(--kui-color-icon);
160
+ font-size: 12px;
161
+ }
115
162
  }
116
163
  .k-calendar-date {
117
164
  cursor: pointer;
@@ -122,6 +169,12 @@
122
169
  text-align: center;
123
170
  overflow: hidden;
124
171
  border: 1px solid transparent;
172
+ width: 32px;
173
+ height: 32px;
174
+ line-height: 32px;
175
+ font-size: 14px;
176
+ margin: 2px;
177
+ box-sizing: border-box;
125
178
  &:hover {
126
179
  background: var(--kui-color-main-80);
127
180
  }
@@ -146,12 +199,13 @@
146
199
  border-radius: 50%;
147
200
  }
148
201
  }
149
- span.k-calendar-date-selected {
202
+ .k-calendar-date.k-calendar-item-selected {}
203
+ .k-calendar-date.k-calendar-item-selected {
150
204
  color: #fff;
151
205
  font-weight: bold;
152
206
  background: var(--kui-color-main);
153
207
  border-radius: var(--kui-border-radius);
154
- &.k-calendar-date-disabled {
208
+ &.k-calendar-item-disabled {
155
209
  border: 1px solid var(--kui-color-disable-border);
156
210
  box-sizing: border-box;
157
211
  &::after {
@@ -165,7 +219,7 @@
165
219
  background: #fff;
166
220
  }
167
221
  }
168
- span.k-calendar-date-disabled {
222
+ .k-calendar-date.k-calendar-item-disabled {
169
223
  cursor: not-allowed;
170
224
  color: var(--kui-color-disable-color);
171
225
  background: var(--kui-color-disable-back);
@@ -180,18 +234,22 @@
180
234
  }
181
235
  }
182
236
  .k-calendar-time-picker {
183
- position: absolute;
237
+ // position: absolute;
184
238
  width: 100%;
185
- height: 100%;
186
- left: 0;
187
- top: 0;
239
+ // height: 100%;
240
+ height: 276px;
241
+ // left: 0;
242
+ // top: 0;
188
243
  background: var(--kui-color-control-10);
189
244
  border-top: 1px solid var(--kui-color-border);
245
+ display: flex;
190
246
  .k-calendar-time-picker-select {
191
- width: 33.333%;
192
- font-size: 0;
247
+ flex: 1;
248
+ // width: 33.333%;
249
+ // font-size: 0;
193
250
  overflow: hidden;
194
- height: 215px;
251
+ // height: 215px;
252
+ height: 100%;
195
253
  border-right: 1px solid var(--kui-color-border);
196
254
  box-sizing: border-box;
197
255
  float: left;
@@ -209,10 +267,10 @@
209
267
  font-size: 14px;
210
268
  box-sizing: content-box;
211
269
  width: 100%;
212
- height: 24px;
270
+ height: 32px;
213
271
  margin: 0;
214
272
  padding-left: 30px;
215
- line-height: 24px;
273
+ line-height: 32px;
216
274
  list-style: none;
217
275
  cursor: pointer;
218
276
  &:hover {
@@ -239,4 +297,46 @@
239
297
  background: var(--kui-color-control-10);
240
298
  }
241
299
  }
300
+ }
301
+
302
+ .k-calendar-small {
303
+ .k-calendar-body {
304
+ width: 216px;
305
+ padding: 0;
306
+ min-height: 221px;
307
+ }
308
+ .k-calendar-time-picker {
309
+ height: 220px;
310
+ .k-calendar-time-picker-select ul li{
311
+ font-size: 12px;
312
+ }
313
+ }
314
+ .k-calendar-head {
315
+ padding: 8px;
316
+ .k-btn {
317
+ font-size: 12px;
318
+ }
319
+ }
320
+ .k-calendar-weekdays {
321
+ padding: 0 10px;
322
+ .k-calendar-weekday {
323
+ width: 28px;
324
+ height: 28px;
325
+ line-height: 28px;
326
+ }
327
+ }
328
+ .k-calendar-weeks {
329
+ padding: 0 10px;
330
+ }
331
+ .k-calendar-date {
332
+ width: 24px;
333
+ height: 24px;
334
+ line-height: 24px;
335
+ font-size: 12px;
336
+ }
337
+ .k-calendar-years,.k-calendar-months{
338
+ span{
339
+ font-size: 12px;
340
+ }
341
+ }
242
342
  }
@@ -96,7 +96,7 @@
96
96
  }
97
97
 
98
98
  .k-datepicker-range-dropdown {
99
- width: 430px;
99
+ // width: 430px;
100
100
  }
101
101
 
102
102
  .k-datepicker:focus, .k-datepicker-open {
@@ -115,9 +115,9 @@
115
115
  }
116
116
 
117
117
  .k-datepicker-sm {
118
- min-height: 25px;
118
+ min-height: 24px;
119
119
  .k-datepicker-placeholder, .k-datepicker-value {
120
- line-height: 23px;
120
+ line-height: 22px;
121
121
  }
122
122
  .k-icon {
123
123
  font-size: 12px;
@@ -1,14 +1,14 @@
1
1
 
2
2
  <cn>
3
3
  #### 基本用法
4
- 通过 `v-model` 双向绑定 `Drawer` 是否展示
4
+ 通过 `v-model` 双向绑定 `Drawer` 是否展示 , title 为null或false时不显示标题
5
5
  </cn>
6
6
 
7
7
  ```vue
8
8
  <template>
9
9
  <div>
10
10
  <Button @click="show=!show">普通抽屉</Button>
11
- <Drawer v-model="show" :closable="false" :footer="null">
11
+ <Drawer v-model="show" :closable="false" :footer="null" :title="null">
12
12
  <p>something ...</p>
13
13
  <p>something ...</p>
14
14
  <p>something ...</p>
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```vue
7
7
  <template>
8
- <div>
8
+ <div style="overflow:hidden">
9
9
  <RadioGroup v-model="placement">
10
10
  <Radio label="left" value="left"/>
11
11
  <Radio label="top" value="top"/>
@@ -13,7 +13,7 @@
13
13
  <Radio label="bottom" value="bottom"/>
14
14
  </RadioGroup>
15
15
  <Button @click="show=true" >Open</Button>
16
- <Drawer v-model="show" width="300" :placement="placement" title="What's your name? " cancelText="cancel" okText="Ok">My name is chuchur.</Drawer>
16
+ <Drawer v-model="show" width="300" :placement="placement" title="What's your name? " cancelText="Cancel" okText="Ok">My name is chuchur.</Drawer>
17
17
  </div>
18
18
  </template>
19
19
  <script>
@@ -9,7 +9,7 @@
9
9
  <Button @click="show1=true">普通表单</Button>
10
10
  <Button @click="show2=true">自定义</Button>
11
11
  <Drawer v-model="show1" title="表单验证" @ok="submitForm" @cancel="resetForm" footer>
12
- <Form ref="form" :model="form" :rules="rules" label-align="left">
12
+ <Form ref="form" :model="form" :rules="rules" label-align="left" :labelCol="{span:5}" :wrapperCol="{span:19}">
13
13
  <FormItem label="Input" prop="input">
14
14
  <Input clearable icon="home"></Input>
15
15
  </FormItem>
@@ -6,9 +6,19 @@
6
6
 
7
7
  ```vue
8
8
  <template>
9
- <div ref="drawer-box" style="height:300px;position:relative">
9
+ <div ref="drawer-box" style="height:300px;position:relative;overflow:hidden">
10
10
  <Button @click="show=!show">普通抽屉</Button>
11
- <Drawer v-model="show" width="200" :closable="false" :footer="null" :target="()=>$refs['drawer-box']">
11
+ <RadioGroup v-model="placement">
12
+ <Radio label="left" value="left"/>
13
+ <Radio label="top" value="top"/>
14
+ <Radio label="right" value="right"/>
15
+ <Radio label="bottom" value="bottom"/>
16
+ </RadioGroup>
17
+ <Drawer v-model="show" width="200"
18
+ :closable="false"
19
+ :footer="null"
20
+ :placement="placement"
21
+ :target="()=>$refs['drawer-box']">
12
22
  <p>something ...</p>
13
23
  <p>something ...</p>
14
24
  <p>something ...</p>
@@ -19,7 +29,8 @@
19
29
  export default{
20
30
  data(){
21
31
  return{
22
- show:false
32
+ show:false,
33
+ placement:'left'
23
34
  }
24
35
  }
25
36
  }
@@ -1,5 +1,6 @@
1
1
  import Button from "../button";
2
2
  import Icon from "../icon";
3
+ import { t } from "../locale";
3
4
  import transfer from "../_tool/transfer";
4
5
  import { measureScrollBar } from '../_tool/utils'
5
6
 
@@ -13,8 +14,8 @@ export default {
13
14
  title: { default: "Title", type: String },
14
15
  width: { default: 520, type: [Number, String] },
15
16
  height: { default: 256, type: [Number, String] },
16
- okText: { type: String, default: "确定" },
17
- cancelText: { type: String, default: "取消" },
17
+ okText: String,
18
+ cancelText: String,
18
19
  placement: { type: String, default: 'right' },
19
20
  closable: { type: Boolean, default: true },
20
21
  footer: { type: Boolean, default: true },
@@ -68,10 +69,10 @@ export default {
68
69
  let target = this.target();
69
70
  if (!this.visible && !cacheBodyOverflow.hasOwnProperty('overflow')) {
70
71
  cacheBodyOverflow = {
71
- width: target.width,
72
- overflow: target.overflow,
73
- overflowX: target.overflowX,
74
- overflowY: target.overflowY,
72
+ width: target.style.width,
73
+ overflow: target.style.overflow,
74
+ overflowX: target.style.overflowX,
75
+ overflowY: target.style.overflowY,
75
76
  }
76
77
  }
77
78
  if (opened) {
@@ -96,8 +97,8 @@ export default {
96
97
  placement, cancel, $slots,
97
98
  closable, close, } = this
98
99
  const hasFooter = this.footer || $slots.footer
99
- const canelBtn = <Button onClick={cancel}>{cancelText}</Button>
100
- const okBtn = <Button type="primary" onClick={ok}>{okText}</Button>
100
+ const canelBtn = <Button onClick={cancel}>{cancelText || t('k.drawer.cancel')}</Button>
101
+ const okBtn = <Button type="primary" onClick={ok}>{okText || t('k.drawer.ok')}</Button>
101
102
  const footNode = (
102
103
  hasFooter ? <div class="k-drawer-footer">
103
104
  {$slots.footer}
@@ -129,11 +130,11 @@ export default {
129
130
  return (
130
131
  this.rendered ? <div class={classes} v-transfer={target}>
131
132
  {maskNode}
132
- <transition name={transitionName}>
133
+ <transition name={transitionName} time={50000}>
133
134
  <div class="k-drawer-box" v-show={visible} style={styles}>
134
135
  <div class="k-drawer-content">
135
136
  {closeNode}
136
- <div class="k-drawer-header"><div class="k-drawer-header-inner">{title}</div></div>
137
+ {title!==null&&title!==false&&<div class="k-drawer-header"><div class="k-drawer-header-inner">{title}</div></div>}
137
138
  <div class="k-drawer-body">
138
139
  {$slots.default}
139
140
  </div>
@@ -1,7 +1,7 @@
1
1
  #### API
2
2
  | 属性 | 说明 | 类型 | 默认值 |
3
3
  |--------------|--------------------------------------------------------------------|---------------|--------|
4
- | title | 抽屉标题 | String | - |
4
+ | title | 抽屉标题,为null或false时不显示标题 | String | - |
5
5
  | width | 抽屉宽度 `placement`为 `left` 或 `right` 时使用 | Number,String | 520 |
6
6
  | height | 抽屉高度 `placement`为 `top` 或 `bottom` 时使用 | Number,String | 256 |
7
7
  | placement | 抽屉显示方向,提供 `left` , `top` , `right` , `bottom` 4种展示方式 | String | right |
@@ -74,7 +74,8 @@
74
74
  }
75
75
  to {
76
76
  opacity: 0;
77
- transform: translate3d(0, 100%, 0);
77
+ // transform: translate3d(0, 100%, 0);
78
+ transform: translateY(100%);
78
79
  }
79
80
  }
80
81
 
@@ -11,6 +11,7 @@
11
11
  right: 0;
12
12
  background-color: var(--kui-color-mask);
13
13
  height: 100%;
14
+ width: 100%;
14
15
  z-index: 1000; // animation: mmask .5s ease-in-out;
15
16
  overflow: hidden;
16
17
  }
@@ -27,6 +28,8 @@
27
28
  border: 0;
28
29
  background-clip: padding-box;
29
30
  height: 100%;
31
+ display: flex;
32
+ flex-direction: column;
30
33
  .k-drawer-close {
31
34
  position: absolute;
32
35
  right: 16px;
@@ -65,10 +68,12 @@
65
68
  padding: 16px;
66
69
  font-size: 14px;
67
70
  line-height: 1.5;
68
- height: calc(100% - 43px);
71
+ // height: calc(100% - 43px);
72
+ // height: 100%;
73
+ flex: 1;
69
74
  overflow: auto;
70
75
  box-sizing: border-box;
71
- color:var(--kui-color-font);
76
+ color: var(--kui-color-font);
72
77
  }
73
78
  .k-drawer-footer {
74
79
  border-top: 1px solid var(--kui-color-border);
@@ -85,7 +90,7 @@
85
90
 
86
91
  .k-drawer-has-footer {
87
92
  .k-drawer-body {
88
- height: calc(100% - 43px - 53px);
93
+ // height: calc(100% - 43px);
89
94
  }
90
95
  }
91
96
 
@@ -96,10 +101,13 @@
96
101
  &.k-drawer-top, &.k-drawer-bottom {
97
102
  height: 100%;
98
103
  }
104
+ &.k-drawer-bottom .k-drawer-box {
105
+ bottom: 0;
106
+ }
99
107
  }
100
108
 
101
109
  .k-drawer-right {
102
- width: 0%;
110
+ // width: 100%;
103
111
  height: 100%;
104
112
  right: 0;
105
113
  .k-drawer-box {
@@ -110,7 +118,7 @@
110
118
  }
111
119
 
112
120
  .k-drawer-left {
113
- width: 0%;
121
+ // width: 0%;
114
122
  height: 100%;
115
123
  left: 0;
116
124
  .k-drawer-box {
@@ -122,25 +130,25 @@
122
130
 
123
131
  .k-drawer-top {
124
132
  width: 100%;
125
- height: 0;
133
+ // height: 0;
126
134
  top: 0;
127
135
  .k-drawer-box {
128
136
  top: 0;
129
137
  left: 0;
130
138
  width: 100%;
131
- height: 0;
139
+ // height: 0;
132
140
  }
133
141
  }
134
142
 
135
143
  .k-drawer-bottom {
136
144
  width: 100%;
137
- height: 0;
145
+ // height: 0;
138
146
  bottom: 0;
139
147
  right: 0;
140
148
  left: 0;
141
149
  .k-drawer-box {
142
150
  width: 100%;
143
- height: 0;
151
+ // height: 0;
144
152
  left: 0;
145
153
  bottom: 0;
146
154
  }
@@ -148,11 +156,19 @@
148
156
 
149
157
  .k-drawer-nobody {
150
158
  position: absolute;
159
+ pointer-events: none;
151
160
  top: 0;
161
+ width: 100%;
162
+ height: 100%;
152
163
  .k-drawer-mask-nobody {
153
164
  position: absolute;
165
+ pointer-events: all;
166
+ }
167
+ &.k-drawer-bottom .k-drawer-box {
168
+ bottom: inherit;
154
169
  }
155
170
  }
156
- .k-drawer-nomask{
171
+
172
+ .k-drawer-nomask {
157
173
  pointer-events: none;
158
174
  }
@@ -1,5 +1,4 @@
1
1
  import PopBase from '../base/pop'
2
- import { hasProp } from "../_tool/utils";
3
2
 
4
3
  export default {
5
4
  name: 'Dropdown',
@@ -1,4 +1,5 @@
1
1
  import Icon from "../icon";
2
+ import { t } from "../locale";
2
3
  export default {
3
4
  name: 'Empty',
4
5
  props: {
@@ -14,7 +15,7 @@ export default {
14
15
 
15
16
  return (<div class="k-empty">
16
17
  {(!image && !$slots.image) ? <Icon type="file-tray-outline" class="k-empty-icon" /> : ($slots.image ? $slots.image : <img src={image} class="k-empty-image" style={imageStyle} />)}
17
- {description !== null ? <p class="k-empty-description">{description || $slots.description || '暂无数据'}</p> : null}
18
+ {description !== null ? <p class="k-empty-description">{description || $slots.description || t('k.empty.description')}</p> : null}
18
19
  {$slots.default ? <div class="k-empty-footer">{$slots.default}</div> : null}
19
20
  </div>)
20
21
  }
@@ -121,7 +121,7 @@ export default {
121
121
  if (key in model) {
122
122
  model = JSON.parse(JSON.stringify(model[key]))
123
123
  } else {
124
- console.warn('规则验证需要传入正确的prop值:' + path)
124
+ // console.warn('规则验证需要传入正确的prop值:' + path)
125
125
  // throw new Error('请传入正确的prop值:' + path)
126
126
  }
127
127
  }
@@ -2,8 +2,8 @@
2
2
  <div>
3
3
  <h3>图标快速检索</h3>
4
4
  <br />
5
- <Affix :offsetTop="52">
6
- <Input placeholder="输入英文关键字,搜索图标,点击图标即可复制" icon="logo-kui" v-model="key" size="large" @input="search" clearable style="width:80%;background:var(--kui-color-back);">
5
+ <Affix :offsetTop="55">
6
+ <Input placeholder="输入英文关键字,搜索图标,点击图标即可复制" icon="logo-kui" v-model="key" size="large" @input="search" clearable style="width:80%;margin:0 10%;background:var(--kui-color-back);">
7
7
  <RadioGroup v-model="type" @change="switchIcon" slot="suffix">
8
8
  <RadioButton value="outline">Outline</RadioButton>
9
9
  <RadioButton value="filled">Filled</RadioButton>
@@ -49,9 +49,9 @@
49
49
  width: 80px;
50
50
  height: 80px;
51
51
  line-height: 80px;
52
- color: #555;
52
+ color: var(--kui-color-font);
53
53
  float: left;
54
- font-size: 30px;
54
+ font-size: 32px;
55
55
  cursor: pointer;
56
56
  transition: color 0.3s ease-in-out;
57
57
  &:hover {
@@ -1,6 +1,6 @@
1
1
  ### API
2
2
  | 属性 | 说明 | 类型 | 默认值 |
3
- |-------|------------------------------|---------------|--------|
3
+ | ----- | ---------------------------- | ------------- | ------ |
4
4
  | type | 图标类型。遵循图标的命名规范 | String | - |
5
5
  | size | 图标的大小,单位是 px | String,Number | - |
6
6
  | color | 图标的颜色 | String | - |