@kdcloudjs/kdesign 1.7.26 → 1.7.28

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 (53) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/default-theme.js +1 -1
  3. package/dist/kdesign-complete.less +30 -14
  4. package/dist/kdesign.css +29 -14
  5. package/dist/kdesign.css.map +1 -1
  6. package/dist/kdesign.js +168 -42
  7. package/dist/kdesign.js.map +1 -1
  8. package/dist/kdesign.min.css +3 -3
  9. package/dist/kdesign.min.js +8 -8
  10. package/dist/kdesign.min.js.map +1 -1
  11. package/es/anchor/style/index.css +1 -1
  12. package/es/anchor/style/index.less +1 -1
  13. package/es/anchor/style/token.less +1 -0
  14. package/es/cascader/style/index.css +2 -2
  15. package/es/cascader/style/index.less +2 -2
  16. package/es/cascader/style/token.less +1 -0
  17. package/es/city-picker/city-picker.js +121 -12
  18. package/es/city-picker/interface.d.ts +5 -1
  19. package/es/city-picker/option.js +14 -3
  20. package/es/city-picker/style/index.css +21 -10
  21. package/es/city-picker/style/index.less +17 -10
  22. package/es/grid/col.js +1 -1
  23. package/es/grid/row.js +1 -1
  24. package/es/select/select.js +2 -2
  25. package/es/select/style/index.css +1 -0
  26. package/es/select/style/index.less +1 -0
  27. package/es/select/style/token.less +1 -0
  28. package/es/style/themes/default.less +2 -2
  29. package/es/tabs/style/index.css +3 -0
  30. package/es/tabs/style/index.less +3 -0
  31. package/es/tabs/style/token.less +1 -0
  32. package/lib/anchor/style/index.css +1 -1
  33. package/lib/anchor/style/index.less +1 -1
  34. package/lib/anchor/style/token.less +1 -0
  35. package/lib/cascader/style/index.css +2 -2
  36. package/lib/cascader/style/index.less +2 -2
  37. package/lib/cascader/style/token.less +1 -0
  38. package/lib/city-picker/city-picker.js +120 -11
  39. package/lib/city-picker/interface.d.ts +5 -1
  40. package/lib/city-picker/option.js +14 -3
  41. package/lib/city-picker/style/index.css +21 -10
  42. package/lib/city-picker/style/index.less +17 -10
  43. package/lib/grid/col.js +1 -1
  44. package/lib/grid/row.js +1 -1
  45. package/lib/select/select.js +2 -2
  46. package/lib/select/style/index.css +1 -0
  47. package/lib/select/style/index.less +1 -0
  48. package/lib/select/style/token.less +1 -0
  49. package/lib/style/themes/default.less +2 -2
  50. package/lib/tabs/style/index.css +3 -0
  51. package/lib/tabs/style/index.less +3 -0
  52. package/lib/tabs/style/token.less +1 -0
  53. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,44 @@
1
+ ## [1.7.27](https://github.com/kdcloudone/kdesign/compare/v1.7.26...v1.7.27) (2023-09-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [city-picker] 修复国内版常用面板无省份数据时显示国家名 fix [#576](https://github.com/kdcloudone/kdesign/issues/576) ([9783592](https://github.com/kdcloudone/kdesign/commit/9783592babfdaed9044ab9624b43922999163905))
7
+ * [city-picker] 修复下拉面板不关闭问题 fix [#575](https://github.com/kdcloudone/kdesign/issues/575) ([e274112](https://github.com/kdcloudone/kdesign/commit/e274112c10e53963233545fc4b16174d16c4ee68))
8
+
9
+
10
+ ### Features
11
+
12
+ * [city-picker] 新增快捷键功能 fix [#582](https://github.com/kdcloudone/kdesign/issues/582) ([4ee705c](https://github.com/kdcloudone/kdesign/commit/4ee705c43cc29c96bb497a42ffa3d46e8a657b03))
13
+ * [cli] 添加开发新组件说明文档 ([5d23b02](https://github.com/kdcloudone/kdesign/commit/5d23b029c3c10bba0099d885ec255ad9f48e150f))
14
+ * 国际化专项token开放第二批组件 ([fd2e704](https://github.com/kdcloudone/kdesign/commit/fd2e7044c7622c2e585242b030ba1fd58dfe201a))
15
+
16
+
17
+
18
+ ## [1.7.26](https://github.com/kdcloudone/kdesign/compare/v1.7.25...v1.7.26) (2023-09-08)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * [cascader]修复清空时显示问题 fix [#528](https://github.com/kdcloudone/kdesign/issues/528) ([4b1c711](https://github.com/kdcloudone/kdesign/commit/4b1c7110b11a4c9c600348ccc2c4993256ee9552))
24
+ * [cascader]修复disabled问题 fix [#397](https://github.com/kdcloudone/kdesign/issues/397),fix [#398](https://github.com/kdcloudone/kdesign/issues/398) ([91cc162](https://github.com/kdcloudone/kdesign/commit/91cc162a5308d7b9ce863f31f25fd2251861e487))
25
+ * [cascader]修复focus相关api及样式问题 fix [#338](https://github.com/kdcloudone/kdesign/issues/338), fix [#395](https://github.com/kdcloudone/kdesign/issues/395) ([bf255fc](https://github.com/kdcloudone/kdesign/commit/bf255fcbc4e261278ed346c917417af3fc145d45))
26
+ * [cascader]修复hover样式问题 fix [#396](https://github.com/kdcloudone/kdesign/issues/396) ([0c9de4c](https://github.com/kdcloudone/kdesign/commit/0c9de4c867e5328a0ae3ed15408ce36cfbe5a15a))
27
+ * [city-picker] 更新下拉面板视觉规范 fix [#565](https://github.com/kdcloudone/kdesign/issues/565) ([db5ffd4](https://github.com/kdcloudone/kdesign/commit/db5ffd46f220319a973553e17abe82f745187b73))
28
+ * [city-picker] 修复国际版当数据无province时,下拉项无分隔符问题 fix [#567](https://github.com/kdcloudone/kdesign/issues/567) ([0ce1677](https://github.com/kdcloudone/kdesign/commit/0ce1677667ac9bb9c9ff0d5ca2485b682ad23143))
29
+ * [city-picker] 修复受控时将value设置为空字符串,城市选项没清空问题 fix [#569](https://github.com/kdcloudone/kdesign/issues/569) ([7e69ccd](https://github.com/kdcloudone/kdesign/commit/7e69ccd95b099a92a794899f92bd96ae3a3f031f))
30
+ * [city-picker] 修复ie浏览器下容器宽度过长问题 fix [#568](https://github.com/kdcloudone/kdesign/issues/568) ([d66e890](https://github.com/kdcloudone/kdesign/commit/d66e890d50de81cff720004d161d1ecdf283b62c))
31
+ * [collapse] 添加header描述性语句api ([1ea5824](https://github.com/kdcloudone/kdesign/commit/1ea5824d72ac8e9930cedc0f2184d46ae5d894bb))
32
+ * [collapse] 修复边框显示问题 fix [#564](https://github.com/kdcloudone/kdesign/issues/564) ([7437b36](https://github.com/kdcloudone/kdesign/commit/7437b36069d5b4ca3b895c1befe17f9920cbfaf7))
33
+ * [tree-select] 新增tag标签的title属性 fix [#570](https://github.com/kdcloudone/kdesign/issues/570) ([341e21a](https://github.com/kdcloudone/kdesign/commit/341e21ada13a124b1d7b08a686bcdbef33341ef9))
34
+
35
+
36
+ ### Features
37
+
38
+ * [form]新增extra属性 fix [#223](https://github.com/kdcloudone/kdesign/issues/223) ([6b42df7](https://github.com/kdcloudone/kdesign/commit/6b42df763728317f4414b68dc02f61052cc85bb5))
39
+
40
+
41
+
1
42
  ## [1.7.25](https://github.com/kdcloudone/kdesign/compare/v1.7.24...v1.7.25) (2023-08-31)
2
43
 
3
44
 
@@ -216,7 +216,7 @@ module.exports = {
216
216
  "radio-border-width": "1px",
217
217
  "radio-margin-right": "8px",
218
218
  "radio-transition-fn": "cubic-bezier(0.075, 0.82, 0.165, 1)",
219
- "radio-circle-size": "13px",
219
+ "radio-circle-size": "14px",
220
220
  "radio-square-height": "32px",
221
221
  "radio-square-padding": "0 20px",
222
222
  "radio-button-height": "24px",
@@ -260,7 +260,7 @@
260
260
  display: inline-block;
261
261
  &-title {
262
262
  display: inline-block;
263
- max-width: 96px;
263
+ max-width: @anchor-horizontal-link-max-width;
264
264
  overflow: hidden;
265
265
  white-space: nowrap;
266
266
  text-overflow: ellipsis;
@@ -413,6 +413,7 @@
413
413
  // sizing
414
414
  @anchor-width: var(~'@{anchor-prefix}-sizing-width', 120px);
415
415
  @anchor-advanced-width: var(~'@{anchor-prefix}-advanced-sizing-width', 160px);
416
+ @anchor-horizontal-link-max-width: var(~'@{anchor-prefix}-horizontal-link-sizing-max-width', 96px);
416
417
 
417
418
  // spacing
418
419
  @anchor-link-top: var(~'@{anchor-prefix}-spacing-vertical', 7px);
@@ -1972,12 +1973,12 @@
1972
1973
  }
1973
1974
 
1974
1975
  &-label {
1975
- width: 72px;
1976
+ width: @cascader-menu-item-label-width;
1976
1977
  .ellipsis;
1977
1978
  }
1978
1979
 
1979
1980
  &.last .@{cascader-menu-prefix-cls}-item-label {
1980
- width: 92px;
1981
+ width: calc(@cascader-menu-item-label-width + 20px);
1981
1982
  }
1982
1983
 
1983
1984
  .@{kd-prefix}-cascader-checkbox {
@@ -2166,6 +2167,7 @@
2166
2167
  @cascader-height: var(~'@{cascader-prefix}-sizing-height', 192px);
2167
2168
  @cascader-menu-min-width: var(~'@{cascader-prefix}-menu-sizing-min-width', 116px);
2168
2169
  @cascader-menu-item-height: var(~'@{cascader-prefix}-menu-item-sizing-height', 32px);
2170
+ @cascader-menu-item-label-width: var(~'@{cascader-prefix}-menu-item-label-sizing-width', 72px);
2169
2171
 
2170
2172
  // spacing
2171
2173
  @cascader-menu-padding-vertical: var(~'@{cascader-prefix}-menu-spacing-padding-vertical', 8px);
@@ -2568,6 +2570,7 @@
2568
2570
  opacity: 0;
2569
2571
  z-index: 1;
2570
2572
  position: absolute;
2573
+ top: 0;
2571
2574
  background: #fff;
2572
2575
  transition: opacity 0.15s ease;
2573
2576
  &:hover {
@@ -2584,6 +2587,10 @@
2584
2587
  text-overflow: ellipsis;
2585
2588
  right: 24px;
2586
2589
  left: 0;
2590
+ top: 0;
2591
+ bottom: 0;
2592
+ display: flex;
2593
+ align-items: center;
2587
2594
  }
2588
2595
 
2589
2596
  &-borderless {
@@ -2712,6 +2719,15 @@
2712
2719
  align-items: center;
2713
2720
  justify-content: center;
2714
2721
  }
2722
+
2723
+ &.topLeft.hidden,
2724
+ &.bottomLeft.hidden,
2725
+ &.topRight.hidden,
2726
+ &.bottomRight.hidden {
2727
+ opacity: 0;
2728
+ visibility: hidden;
2729
+ transition: all calc(@transition-duration - 0.1s) @ease;
2730
+ }
2715
2731
  }
2716
2732
 
2717
2733
  &-list {
@@ -2731,7 +2747,7 @@
2731
2747
  white-space: nowrap;
2732
2748
  }
2733
2749
 
2734
- &:hover {
2750
+ &-active:not(&-disabled) {
2735
2751
  background-color: @city-picker-item-active-bg;
2736
2752
  }
2737
2753
 
@@ -2778,6 +2794,8 @@
2778
2794
 
2779
2795
  &-suffix {
2780
2796
  right: 0;
2797
+ top: 0;
2798
+ bottom: 0;
2781
2799
  position: absolute;
2782
2800
  display: flex;
2783
2801
  flex: 0;
@@ -2847,15 +2865,6 @@
2847
2865
  .over();
2848
2866
  }
2849
2867
  }
2850
-
2851
- &.topLeft.hidden,
2852
- &.bottomLeft.hidden,
2853
- &.topRight.hidden,
2854
- &.bottomRight.hidden {
2855
- opacity: 0;
2856
- visibility: hidden;
2857
- transition: all calc(@transition-duration - 0.1s) @ease;
2858
- }
2859
2868
  }
2860
2869
 
2861
2870
 
@@ -9893,6 +9902,7 @@ textarea {
9893
9902
  min-width: 75px;
9894
9903
 
9895
9904
  &-content {
9905
+ max-width: @select-item-max-width;
9896
9906
  .over();
9897
9907
 
9898
9908
  .@{kd-prefix}-checkbox {
@@ -10275,6 +10285,7 @@ textarea {
10275
10285
  @select-large-height: var(~'@{select-custom-prefix}-sizing-height-large', 36px); // 大号高度 lh:28px
10276
10286
  @select-middle-height: var(~'@{select-custom-prefix}-sizing-height-middle', 30px); // 中号高度lh:22px
10277
10287
  @select-small-height: var(~'@{select-custom-prefix}-sizing-height-small', 24px); // 小号高度lh:12px
10288
+ @select-item-max-width: var(~'@{select-custom-prefix}-item-sizing-max-width');
10278
10289
 
10279
10290
  // spacing
10280
10291
  @select-bordered: var(~'@{select-custom-prefix}-bordered-spacing-padding-left', 8px);
@@ -12583,7 +12594,7 @@ template {
12583
12594
  @radio-border-width: 1px;
12584
12595
  @radio-margin-right: 8px;
12585
12596
  @radio-transition-fn: cubic-bezier(0.075, 0.82, 0.165, 1);
12586
- @radio-circle-size: 13px;
12597
+ @radio-circle-size: 14px;
12587
12598
  @radio-square-height: 32px;
12588
12599
  @radio-square-padding: 0 20px;
12589
12600
  @radio-button-height: 24px;
@@ -13009,6 +13020,7 @@ template {
13009
13020
 
13010
13021
  /* ----------- AdvancedSelector ——————---- end */
13011
13022
 
13023
+
13012
13024
  @global-custom-prefix: '--@{kd-prefix}-g';
13013
13025
 
13014
13026
  @color-theme: var(~'@{global-custom-prefix}-color-theme', @theme-color);
@@ -13525,6 +13537,9 @@ template {
13525
13537
  &-text {
13526
13538
  display: inline-block;
13527
13539
  transition: color @tab-g-motion-duration;
13540
+ overflow: hidden;
13541
+ text-overflow: ellipsis;
13542
+ max-width: @tab-pane-text-max-width;
13528
13543
  &-active,
13529
13544
  &:hover {
13530
13545
  color: @tabPane-font-color-active;
@@ -13767,6 +13782,7 @@ template {
13767
13782
  @tab-pane-type-line-height-small: var(~'@{tabs-custom-prefix}-pane-type-line-sizing-height-small', 32px);
13768
13783
  @tab-pane-type-line-height-middle: var(~'@{tabs-custom-prefix}-pane-type-line-sizing-height-middle', 32px);
13769
13784
  @tab-pane-type-dynamic-height: var(~'@{tabs-custom-prefix}-pane-type-dynamic-sizing-height', 32px);
13785
+ @tab-pane-text-max-width: var(~'@{tabs-custom-prefix}-pane-text-sizing-max-width');
13770
13786
 
13771
13787
 
13772
13788
  // spacing
package/dist/kdesign.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.7.25
3
+ * @kdcloudjs/kdesign v1.7.27
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -2540,7 +2540,7 @@ template {
2540
2540
  }
2541
2541
  .kd-anchor-menu .kd-anchor-link-title {
2542
2542
  display: inline-block;
2543
- max-width: 96px;
2543
+ max-width: var(--kd-c-anchor-horizontal-link-sizing-max-width, 96px);
2544
2544
  overflow: hidden;
2545
2545
  white-space: nowrap;
2546
2546
  text-overflow: ellipsis;
@@ -4686,13 +4686,13 @@ template {
4686
4686
  background-color: var(--kd-c-cascader-color-background-selected, var(--kd-g-color-background-ongoing, #f2f9ff));
4687
4687
  }
4688
4688
  .kd-cascader-menus .kd-cascader-menu-item-label {
4689
- width: 72px;
4689
+ width: var(--kd-c-cascader-menu-item-label-sizing-width, 72px);
4690
4690
  white-space: nowrap;
4691
4691
  overflow: hidden;
4692
4692
  text-overflow: ellipsis;
4693
4693
  }
4694
4694
  .kd-cascader-menus .kd-cascader-menu-item.last .kd-cascader-menu-item-label {
4695
- width: 92px;
4695
+ width: calc(var(--kd-c-cascader-menu-item-label-sizing-width, 72px) + 20px);
4696
4696
  }
4697
4697
  .kd-cascader-menus .kd-cascader-menu-item .kd-cascader-checkbox {
4698
4698
  margin-right: 5px;
@@ -5445,6 +5445,7 @@ template {
5445
5445
  opacity: 0;
5446
5446
  z-index: 1;
5447
5447
  position: absolute;
5448
+ top: 0;
5448
5449
  background: #fff;
5449
5450
  -webkit-transition: opacity 0.15s ease;
5450
5451
  transition: opacity 0.15s ease;
@@ -5460,6 +5461,14 @@ template {
5460
5461
  text-overflow: ellipsis;
5461
5462
  right: 24px;
5462
5463
  left: 0;
5464
+ top: 0;
5465
+ bottom: 0;
5466
+ display: -webkit-box;
5467
+ display: -ms-flexbox;
5468
+ display: flex;
5469
+ -webkit-box-align: center;
5470
+ -ms-flex-align: center;
5471
+ align-items: center;
5463
5472
  }
5464
5473
  .kd-city-picker-borderless {
5465
5474
  border: none;
@@ -5591,6 +5600,15 @@ template {
5591
5600
  -ms-flex-pack: center;
5592
5601
  justify-content: center;
5593
5602
  }
5603
+ .kd-city-picker-dropdown.topLeft.hidden,
5604
+ .kd-city-picker-dropdown.bottomLeft.hidden,
5605
+ .kd-city-picker-dropdown.topRight.hidden,
5606
+ .kd-city-picker-dropdown.bottomRight.hidden {
5607
+ opacity: 0;
5608
+ visibility: hidden;
5609
+ -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
5610
+ transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
5611
+ }
5594
5612
  .kd-city-picker-list {
5595
5613
  padding: 8px 0;
5596
5614
  max-height: 320px;
@@ -5616,7 +5634,7 @@ template {
5616
5634
  color: var(--kd-c-city-picker-placeholder-color-text, #b2b2b2);
5617
5635
  white-space: nowrap;
5618
5636
  }
5619
- .kd-city-picker-list-item:hover {
5637
+ .kd-city-picker-list-item-active:not(.kd-city-picker-list-item-disabled) {
5620
5638
  background-color: var(--kd-c-city-picker-color-background, #f5f5f5);
5621
5639
  }
5622
5640
  .kd-city-picker-list-item-selected:not(.kd-city-picker-list-item-disabled) {
@@ -5657,6 +5675,8 @@ template {
5657
5675
  }
5658
5676
  .kd-city-picker-suffix {
5659
5677
  right: 0;
5678
+ top: 0;
5679
+ bottom: 0;
5660
5680
  position: absolute;
5661
5681
  display: -webkit-box;
5662
5682
  display: -ms-flexbox;
@@ -5737,15 +5757,6 @@ template {
5737
5757
  white-space: nowrap;
5738
5758
  text-overflow: ellipsis;
5739
5759
  }
5740
- .kd-city-picker.topLeft.hidden,
5741
- .kd-city-picker.bottomLeft.hidden,
5742
- .kd-city-picker.topRight.hidden,
5743
- .kd-city-picker.bottomRight.hidden {
5744
- opacity: 0;
5745
- visibility: hidden;
5746
- -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
5747
- transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
5748
- }
5749
5760
 
5750
5761
  /* ----------- color ——————---- start */
5751
5762
  /* ----------- color ——————---- end */
@@ -15243,6 +15254,7 @@ textarea {
15243
15254
  min-width: 75px;
15244
15255
  }
15245
15256
  .kd-select-item-option-content {
15257
+ max-width: var(--kd-c-select-item-sizing-max-width);
15246
15258
  overflow: hidden;
15247
15259
  white-space: nowrap;
15248
15260
  text-overflow: ellipsis;
@@ -17857,6 +17869,9 @@ textarea {
17857
17869
  display: inline-block;
17858
17870
  -webkit-transition: color var(--kd-c-tabs-motion-duration, var(--kd-g-duration, 0.3s));
17859
17871
  transition: color var(--kd-c-tabs-motion-duration, var(--kd-g-duration, 0.3s));
17872
+ overflow: hidden;
17873
+ text-overflow: ellipsis;
17874
+ max-width: var(--kd-c-tabs-pane-text-sizing-max-width);
17860
17875
  }
17861
17876
  .kd-tab-pane-text-active,
17862
17877
  .kd-tab-pane-text:hover {