@kdcloudjs/kdesign 1.7.15 → 1.7.17

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 (80) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/kdesign-complete.less +27 -3
  3. package/dist/kdesign.css +21 -3
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +137 -95
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +3 -3
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/button/group.d.ts +1 -0
  11. package/es/button/group.js +6 -3
  12. package/es/card/card.d.ts +1 -0
  13. package/es/card/card.js +30 -19
  14. package/es/carousel/carousel.js +3 -2
  15. package/es/carousel/slideList.d.ts +1 -0
  16. package/es/carousel/slideList.js +5 -2
  17. package/es/color-picker/color-picker-panel.js +4 -4
  18. package/es/color-picker/color-picker.js +4 -2
  19. package/es/color-picker/interface.d.ts +1 -0
  20. package/es/color-picker/style/index.css +4 -1
  21. package/es/color-picker/style/index.less +5 -1
  22. package/es/config-provider/compDefaultProps.d.ts +1 -0
  23. package/es/config-provider/compDefaultProps.js +1 -0
  24. package/es/dropdown/dropdown.js +7 -4
  25. package/es/dropdown/style/index.css +3 -0
  26. package/es/dropdown/style/index.less +4 -0
  27. package/es/filter/scheme.js +2 -1
  28. package/es/filter/style/index.css +2 -1
  29. package/es/filter/style/index.less +3 -2
  30. package/es/form/Field.js +1 -1
  31. package/es/input-number/inputNumber.js +1 -1
  32. package/es/locale/locale.d.ts +3 -4
  33. package/es/locale/zh-CN.js +8 -8
  34. package/es/notification/index.js +2 -1
  35. package/es/notification-base/index.js +11 -8
  36. package/es/select/select.js +8 -8
  37. package/es/select/style/index.css +7 -0
  38. package/es/select/style/index.less +11 -0
  39. package/es/tree-select/interface.d.ts +1 -0
  40. package/es/tree-select/tree-select.js +4 -3
  41. package/es/upload/interface.d.ts +1 -0
  42. package/es/upload/style/index.css +4 -0
  43. package/es/upload/style/index.less +4 -0
  44. package/es/upload/upload.js +16 -6
  45. package/lib/button/group.d.ts +1 -0
  46. package/lib/button/group.js +6 -3
  47. package/lib/card/card.d.ts +1 -0
  48. package/lib/card/card.js +30 -19
  49. package/lib/carousel/carousel.js +3 -2
  50. package/lib/carousel/slideList.d.ts +1 -0
  51. package/lib/carousel/slideList.js +5 -2
  52. package/lib/color-picker/color-picker-panel.js +4 -4
  53. package/lib/color-picker/color-picker.js +4 -2
  54. package/lib/color-picker/interface.d.ts +1 -0
  55. package/lib/color-picker/style/index.css +4 -1
  56. package/lib/color-picker/style/index.less +5 -1
  57. package/lib/config-provider/compDefaultProps.d.ts +1 -0
  58. package/lib/config-provider/compDefaultProps.js +1 -0
  59. package/lib/dropdown/dropdown.js +7 -4
  60. package/lib/dropdown/style/index.css +3 -0
  61. package/lib/dropdown/style/index.less +4 -0
  62. package/lib/filter/scheme.js +2 -1
  63. package/lib/filter/style/index.css +2 -1
  64. package/lib/filter/style/index.less +3 -2
  65. package/lib/form/Field.js +1 -1
  66. package/lib/input-number/inputNumber.js +1 -1
  67. package/lib/locale/locale.d.ts +3 -4
  68. package/lib/locale/zh-CN.js +8 -8
  69. package/lib/notification/index.js +2 -1
  70. package/lib/notification-base/index.js +11 -8
  71. package/lib/select/select.js +8 -8
  72. package/lib/select/style/index.css +7 -0
  73. package/lib/select/style/index.less +11 -0
  74. package/lib/tree-select/interface.d.ts +1 -0
  75. package/lib/tree-select/tree-select.js +4 -3
  76. package/lib/upload/interface.d.ts +1 -0
  77. package/lib/upload/style/index.css +4 -0
  78. package/lib/upload/style/index.less +4 -0
  79. package/lib/upload/upload.js +16 -6
  80. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,57 @@
1
+ ## [1.7.16](https://github.com/kdcloudone/kdesign/compare/v1.7.15...v1.7.16) (2023-06-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [card] 为组件添加ref [#422](https://github.com/kdcloudone/kdesign/issues/422) ([120f0d2](https://github.com/kdcloudone/kdesign/commit/120f0d2b027eabd74e542be718ba5f5929892caf))
7
+ * [color-picker] 新增国际化单测 ([43d85e2](https://github.com/kdcloudone/kdesign/commit/43d85e2c6b50595e8a846a892b3c2573f11a89b3))
8
+ * [color-picker] 修复下拉面板中select框可输入的问题 [#453](https://github.com/kdcloudone/kdesign/issues/453) ([c703e35](https://github.com/kdcloudone/kdesign/commit/c703e35393fc73c5638c38c988cb7741142e9c86))
9
+ * [form]修复清空子组件异常问题 fix [#449](https://github.com/kdcloudone/kdesign/issues/449) ([18e90b4](https://github.com/kdcloudone/kdesign/commit/18e90b454789d5432f2a4476bb812e17ff74491e))
10
+ * [input-number] 修复传入的值为数字时报错 fix [#430](https://github.com/kdcloudone/kdesign/issues/430) ([82d2e83](https://github.com/kdcloudone/kdesign/commit/82d2e83daa0113808bd56cd81e01bdb096cb9a49))
11
+ * [notification]修复问题,完善单测 ([40a4e4b](https://github.com/kdcloudone/kdesign/commit/40a4e4bf9af101d68694ae3993aeed75d09dfed7))
12
+ * [pagination] 调整数字与文字间距 fix: [#456](https://github.com/kdcloudone/kdesign/issues/456) ([f2a4f70](https://github.com/kdcloudone/kdesign/commit/f2a4f70a914005e6eb1cc734aacb5757cfe966f8))
13
+ * [select] 修复单选时选择先前的值onChange也会触发的问题 fix [#450](https://github.com/kdcloudone/kdesign/issues/450) ([bd2cb1d](https://github.com/kdcloudone/kdesign/commit/bd2cb1deaaa5590c3981a37329359e5eb4556304))
14
+ * [select] 修复当多选选择器没有数据时全选按钮没办法取消勾选问题 fix [#454](https://github.com/kdcloudone/kdesign/issues/454) ([1b07aaf](https://github.com/kdcloudone/kdesign/commit/1b07aafa912feee25be6451f609f7b4dc8c386d3))
15
+ * [select] 修复配置showSearch属性时鼠标手势问题 fix [#455](https://github.com/kdcloudone/kdesign/issues/455) ([c8616e7](https://github.com/kdcloudone/kdesign/commit/c8616e7a0f953ecb0ccba4bb7418e1cfacf46e51))
16
+ * [select] 修复鼠标手势问题 ([a7475c4](https://github.com/kdcloudone/kdesign/commit/a7475c44ec9bf53fa9ddf0725950b69732d2d406))
17
+ * [transfer] 新增国际化单测 ([7e02c5b](https://github.com/kdcloudone/kdesign/commit/7e02c5b1df5caae43e31f47181b3666a77356d8a))
18
+ * [tree-select] 修复树选择器的class名存在重复的问题 fix [#445](https://github.com/kdcloudone/kdesign/issues/445) ([6cdbd79](https://github.com/kdcloudone/kdesign/commit/6cdbd79dd79dbb5685f60f49ccad39eb64f33bda))
19
+ * [upload]修复onPreview问题 fix [#408](https://github.com/kdcloudone/kdesign/issues/408) ([20a1f24](https://github.com/kdcloudone/kdesign/commit/20a1f24f7ec1e830697a9b1e003d220e6b33f5fa))
20
+
21
+
22
+ ### Features
23
+
24
+ * [button] 新增Button.Dropdown的loading api fix [#431](https://github.com/kdcloudone/kdesign/issues/431) ([a50e334](https://github.com/kdcloudone/kdesign/commit/a50e3342621fa3146a8f52263b20d8c9f6441142))
25
+ * [tree-select] 新增api onlyExpandOnClickIcon 支持点击整行展开树节点 fix [#459](https://github.com/kdcloudone/kdesign/issues/459) ([4b7348d](https://github.com/kdcloudone/kdesign/commit/4b7348d0a04e0c7def9e286fbf4c1af086bed2d1))
26
+
27
+
28
+
29
+ ## [1.7.15](https://github.com/kdcloudone/kdesign/compare/v1.7.14...v1.7.15) (2023-06-16)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * [card] 更新card单测 ([f07fd69](https://github.com/kdcloudone/kdesign/commit/f07fd69ada07b5aa62a716bce5a51e4508567efe))
35
+ * [carousel] 更新carousel单测 ([22a664e](https://github.com/kdcloudone/kdesign/commit/22a664e64b53b6c2a61b4c6fe50fd6ec04f8bf70))
36
+ * [carousel] 修改api文档排版 [#424](https://github.com/kdcloudone/kdesign/issues/424) ([e6f3b08](https://github.com/kdcloudone/kdesign/commit/e6f3b0802d85c06222dc27a90cdfeb85380396b3))
37
+ * [city-picker]修复弹出面板无法关闭问题 fix [#441](https://github.com/kdcloudone/kdesign/issues/441) ([e20bac3](https://github.com/kdcloudone/kdesign/commit/e20bac36806784e99f568552d2adf8968c75c6a1))
38
+ * [cli] 更新页面文档版本号 ([e2e212b](https://github.com/kdcloudone/kdesign/commit/e2e212b5cbbb0b83ec3c3400ff9b2c1a032af3be))
39
+ * [cli] 更新页面文档版本号 ([edea91e](https://github.com/kdcloudone/kdesign/commit/edea91e7c5ed827002b8d76eaa05b30fa373af63))
40
+ * [color-picker] 更新color-picker单测 ([f5b6d88](https://github.com/kdcloudone/kdesign/commit/f5b6d88f5f190837a96a0f4fc0bab35b8bb1623e))
41
+ * [form]修复组件取值问题 fix [#440](https://github.com/kdcloudone/kdesign/issues/440) ([3c9f651](https://github.com/kdcloudone/kdesign/commit/3c9f6510fd6cc3cba8c1f29f27634c1268ac342a))
42
+ * [input-number] 更新数值输入框单测 ([ab58ad4](https://github.com/kdcloudone/kdesign/commit/ab58ad498a8257c7820463e595075da81642556b))
43
+ * [input]修复边距问题 ([2edcb31](https://github.com/kdcloudone/kdesign/commit/2edcb31693bdf691e66e8678dcbab41abbcef324))
44
+ * [Input]修复style属性缺失 fix [#437](https://github.com/kdcloudone/kdesign/issues/437) ([f84f807](https://github.com/kdcloudone/kdesign/commit/f84f807cba44e96b5716f385aa1782765cdb9d59))
45
+ * [modal] 更新modal组件单测 ([df84b01](https://github.com/kdcloudone/kdesign/commit/df84b0121f463ca4a2ab12700f7fb2ecd5ad2256))
46
+ * [modal] 修复拖动modal时内部的下拉框不自动关闭问题 fix [#442](https://github.com/kdcloudone/kdesign/issues/442) ([42e1735](https://github.com/kdcloudone/kdesign/commit/42e17350adb85238365dcc627be9bad2f6fd9946))
47
+ * [search] 更新搜索组件单测 ([8e33fe5](https://github.com/kdcloudone/kdesign/commit/8e33fe5540b4a7fb83d943ec94db77622620a9a8))
48
+ * [select] 更新select单测 ([0d8fb79](https://github.com/kdcloudone/kdesign/commit/0d8fb79b5b81a97fd34e2f0457903ad4e3c8a144))
49
+ * [transfer] 更新transfer单测 ([c18c053](https://github.com/kdcloudone/kdesign/commit/c18c053bd3f909a03a3c232f58d328a964df92d6))
50
+ * [tree-select] 更新树选择器单测 ([811d32e](https://github.com/kdcloudone/kdesign/commit/811d32e7a512d672639472efa0d6268e01d2948f))
51
+ * [tree] 更新树组件单测 ([949e795](https://github.com/kdcloudone/kdesign/commit/949e795c476d1e9054a54bde70ce33bb2c77084d))
52
+
53
+
54
+
1
55
  ## [1.7.14](https://github.com/kdcloudone/kdesign/compare/v1.7.13...v1.7.14) (2023-06-09)
2
56
 
3
57
 
@@ -3108,7 +3108,7 @@
3108
3108
  font-size: @color-picker-panel-select-font-size;
3109
3109
 
3110
3110
  &-no-recommend {
3111
- margin-bottom: 8px;
3111
+ margin-bottom: 0;
3112
3112
  }
3113
3113
 
3114
3114
  .@{kd-prefix}-select {
@@ -3165,6 +3165,10 @@
3165
3165
  grid-row-gap: 8px;
3166
3166
  margin-top: 12px;
3167
3167
 
3168
+ &-unset-color {
3169
+ margin-top: 0;
3170
+ }
3171
+
3168
3172
  li {
3169
3173
  position: relative;
3170
3174
  box-sizing: border-box;
@@ -4362,6 +4366,10 @@
4362
4366
 
4363
4367
  .@{dropdown-trigger-prefix-cls} {
4364
4368
  outline: none;
4369
+
4370
+ &-container {
4371
+ display: inline-block;
4372
+ }
4365
4373
  }
4366
4374
 
4367
4375
  .@{dropdown-prefix-cls} {
@@ -4645,7 +4653,7 @@
4645
4653
  display: block;
4646
4654
  }
4647
4655
  }
4648
-
4656
+
4649
4657
  &-condition {
4650
4658
  display: flex;
4651
4659
  font-size: @font-size-small;
@@ -4749,7 +4757,8 @@
4749
4757
  &-detail {
4750
4758
  list-style: none;
4751
4759
  > li {
4752
- line-height: 40px;
4760
+ line-height: normal;
4761
+ padding: 7px 0 5px 0;
4753
4762
  color: @color-text-primary;
4754
4763
  font-size: @font-size-small;
4755
4764
 
@@ -9603,6 +9612,16 @@ textarea {
9603
9612
  position: relative;
9604
9613
  }
9605
9614
 
9615
+ &-show-search {
9616
+ cursor: text;
9617
+
9618
+ &.@{select-prefix-cls}-single .@{select-prefix-cls}-selection-search {
9619
+ .@{select-prefix-cls}-selection-search-input {
9620
+ cursor: text;
9621
+ }
9622
+ }
9623
+ }
9624
+
9606
9625
  &-dropdown {
9607
9626
  display: block;
9608
9627
  left: 0;
@@ -9715,6 +9734,7 @@ textarea {
9715
9734
  background: transparent;
9716
9735
  height: 100%;
9717
9736
  width: 100%;
9737
+ cursor: pointer;
9718
9738
  }
9719
9739
  }
9720
9740
  &-item {
@@ -15381,6 +15401,10 @@ template {
15381
15401
  font-size: @upload-font-size;
15382
15402
  }
15383
15403
 
15404
+ &-name,&-icon {
15405
+ cursor: pointer;
15406
+ }
15407
+
15384
15408
  &-name {
15385
15409
  display: inline-block;
15386
15410
  margin: 0 @upload-text-list-item-name-padding-right 0 @upload-text-list-item-name-padding-left;
package/dist/kdesign.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.7.14
3
+ * @kdcloudjs/kdesign v1.7.16
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -6156,7 +6156,7 @@ template {
6156
6156
  font-size: var(--kd-c-color-picker-panel-select-font-size, var(--kd-g-font-size-middle, 14px));
6157
6157
  }
6158
6158
  .kd-color-picker-pop .kd-color-picker-panel-input-no-recommend {
6159
- margin-bottom: 8px;
6159
+ margin-bottom: 0;
6160
6160
  }
6161
6161
  .kd-color-picker-pop .kd-color-picker-panel-input .kd-select.bottomLeft,
6162
6162
  .kd-color-picker-pop .kd-color-picker-panel-input .kd-select.topLeft {
@@ -6205,6 +6205,9 @@ template {
6205
6205
  grid-row-gap: 8px;
6206
6206
  margin-top: 12px;
6207
6207
  }
6208
+ .kd-color-picker-pop .kd-color-picker-panel-colorDivContainer-unset-color {
6209
+ margin-top: 0;
6210
+ }
6208
6211
  .kd-color-picker-pop .kd-color-picker-panel-colorDivContainer li {
6209
6212
  position: relative;
6210
6213
  -webkit-box-sizing: border-box;
@@ -7526,6 +7529,9 @@ template {
7526
7529
  .kd-dropdown-trigger {
7527
7530
  outline: none;
7528
7531
  }
7532
+ .kd-dropdown-trigger-container {
7533
+ display: inline-block;
7534
+ }
7529
7535
  .kd-dropdown {
7530
7536
  -webkit-box-sizing: border-box;
7531
7537
  box-sizing: border-box;
@@ -8139,7 +8145,8 @@ template {
8139
8145
  list-style: none;
8140
8146
  }
8141
8147
  .kd-filter .kd-filter-body-scheme-detail > li {
8142
- line-height: 40px;
8148
+ line-height: normal;
8149
+ padding: 7px 0 5px 0;
8143
8150
  color: var(--kd-g-color-text-primary, #212121);
8144
8151
  font-size: var(--kd-g-font-size-small, 12px);
8145
8152
  }
@@ -15036,6 +15043,12 @@ textarea {
15036
15043
  overflow-x: hidden;
15037
15044
  position: relative;
15038
15045
  }
15046
+ .kd-select-show-search {
15047
+ cursor: text;
15048
+ }
15049
+ .kd-select-show-search.kd-select-single .kd-select-selection-search .kd-select-selection-search-input {
15050
+ cursor: text;
15051
+ }
15039
15052
  .kd-select-dropdown {
15040
15053
  display: block;
15041
15054
  left: 0;
@@ -15157,6 +15170,7 @@ textarea {
15157
15170
  background: transparent;
15158
15171
  height: 100%;
15159
15172
  width: 100%;
15173
+ cursor: pointer;
15160
15174
  }
15161
15175
  .kd-select .kd-select-single .kd-select-selection-item {
15162
15176
  display: inline-block;
@@ -20587,6 +20601,10 @@ h3.kd-typography,
20587
20601
  .kd-upload .kd-upload-text-list-item-icon > i {
20588
20602
  font-size: var(--kd-c-upload-font-size, var(--kd-g-font-size-middle, 14px));
20589
20603
  }
20604
+ .kd-upload .kd-upload-text-list-item-name,
20605
+ .kd-upload .kd-upload-text-list-item-icon {
20606
+ cursor: pointer;
20607
+ }
20590
20608
  .kd-upload .kd-upload-text-list-item-name {
20591
20609
  display: inline-block;
20592
20610
  margin: 0 var(--kd-c-upload-text-list-item-name-padding-right, 8px) 0 var(--kd-c-upload-text-list-item-name-padding-left, 4px);