@kdcloudjs/kdesign 1.7.26 → 1.7.27

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 (44) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/kdesign-complete.less +21 -13
  3. package/dist/kdesign.css +18 -14
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +114 -9
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +2 -2
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/anchor/style/index.css +1 -1
  11. package/es/anchor/style/index.less +1 -1
  12. package/es/anchor/style/token.less +1 -0
  13. package/es/cascader/style/index.css +2 -2
  14. package/es/cascader/style/index.less +2 -2
  15. package/es/cascader/style/token.less +1 -0
  16. package/es/city-picker/city-picker.js +102 -10
  17. package/es/city-picker/interface.d.ts +3 -0
  18. package/es/city-picker/option.js +14 -3
  19. package/es/city-picker/style/index.css +10 -10
  20. package/es/city-picker/style/index.less +10 -10
  21. package/es/select/style/index.css +1 -0
  22. package/es/select/style/index.less +1 -0
  23. package/es/select/style/token.less +1 -0
  24. package/es/tabs/style/index.css +3 -0
  25. package/es/tabs/style/index.less +3 -0
  26. package/es/tabs/style/token.less +1 -0
  27. package/lib/anchor/style/index.css +1 -1
  28. package/lib/anchor/style/index.less +1 -1
  29. package/lib/anchor/style/token.less +1 -0
  30. package/lib/cascader/style/index.css +2 -2
  31. package/lib/cascader/style/index.less +2 -2
  32. package/lib/cascader/style/token.less +1 -0
  33. package/lib/city-picker/city-picker.js +101 -9
  34. package/lib/city-picker/interface.d.ts +3 -0
  35. package/lib/city-picker/option.js +14 -3
  36. package/lib/city-picker/style/index.css +10 -10
  37. package/lib/city-picker/style/index.less +10 -10
  38. package/lib/select/style/index.css +1 -0
  39. package/lib/select/style/index.less +1 -0
  40. package/lib/select/style/token.less +1 -0
  41. package/lib/tabs/style/index.css +3 -0
  42. package/lib/tabs/style/index.less +3 -0
  43. package/lib/tabs/style/token.less +1 -0
  44. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## [1.7.26](https://github.com/kdcloudone/kdesign/compare/v1.7.25...v1.7.26) (2023-09-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [cascader]修复清空时显示问题 fix [#528](https://github.com/kdcloudone/kdesign/issues/528) ([4b1c711](https://github.com/kdcloudone/kdesign/commit/4b1c7110b11a4c9c600348ccc2c4993256ee9552))
7
+ * [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))
8
+ * [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))
9
+ * [cascader]修复hover样式问题 fix [#396](https://github.com/kdcloudone/kdesign/issues/396) ([0c9de4c](https://github.com/kdcloudone/kdesign/commit/0c9de4c867e5328a0ae3ed15408ce36cfbe5a15a))
10
+ * [city-picker] 更新下拉面板视觉规范 fix [#565](https://github.com/kdcloudone/kdesign/issues/565) ([db5ffd4](https://github.com/kdcloudone/kdesign/commit/db5ffd46f220319a973553e17abe82f745187b73))
11
+ * [city-picker] 修复国际版当数据无province时,下拉项无分隔符问题 fix [#567](https://github.com/kdcloudone/kdesign/issues/567) ([0ce1677](https://github.com/kdcloudone/kdesign/commit/0ce1677667ac9bb9c9ff0d5ca2485b682ad23143))
12
+ * [city-picker] 修复受控时将value设置为空字符串,城市选项没清空问题 fix [#569](https://github.com/kdcloudone/kdesign/issues/569) ([7e69ccd](https://github.com/kdcloudone/kdesign/commit/7e69ccd95b099a92a794899f92bd96ae3a3f031f))
13
+ * [city-picker] 修复ie浏览器下容器宽度过长问题 fix [#568](https://github.com/kdcloudone/kdesign/issues/568) ([d66e890](https://github.com/kdcloudone/kdesign/commit/d66e890d50de81cff720004d161d1ecdf283b62c))
14
+ * [collapse] 添加header描述性语句api ([1ea5824](https://github.com/kdcloudone/kdesign/commit/1ea5824d72ac8e9930cedc0f2184d46ae5d894bb))
15
+ * [collapse] 修复边框显示问题 fix [#564](https://github.com/kdcloudone/kdesign/issues/564) ([7437b36](https://github.com/kdcloudone/kdesign/commit/7437b36069d5b4ca3b895c1befe17f9920cbfaf7))
16
+ * [tree-select] 新增tag标签的title属性 fix [#570](https://github.com/kdcloudone/kdesign/issues/570) ([341e21a](https://github.com/kdcloudone/kdesign/commit/341e21ada13a124b1d7b08a686bcdbef33341ef9))
17
+
18
+
19
+ ### Features
20
+
21
+ * [form]新增extra属性 fix [#223](https://github.com/kdcloudone/kdesign/issues/223) ([6b42df7](https://github.com/kdcloudone/kdesign/commit/6b42df763728317f4414b68dc02f61052cc85bb5))
22
+
23
+
24
+
1
25
  ## [1.7.25](https://github.com/kdcloudone/kdesign/compare/v1.7.24...v1.7.25) (2023-08-31)
2
26
 
3
27
 
@@ -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);
@@ -2712,6 +2714,15 @@
2712
2714
  align-items: center;
2713
2715
  justify-content: center;
2714
2716
  }
2717
+
2718
+ &.topLeft.hidden,
2719
+ &.bottomLeft.hidden,
2720
+ &.topRight.hidden,
2721
+ &.bottomRight.hidden {
2722
+ opacity: 0;
2723
+ visibility: hidden;
2724
+ transition: all calc(@transition-duration - 0.1s) @ease;
2725
+ }
2715
2726
  }
2716
2727
 
2717
2728
  &-list {
@@ -2731,7 +2742,7 @@
2731
2742
  white-space: nowrap;
2732
2743
  }
2733
2744
 
2734
- &:hover {
2745
+ &-active:not(&-disabled) {
2735
2746
  background-color: @city-picker-item-active-bg;
2736
2747
  }
2737
2748
 
@@ -2847,15 +2858,6 @@
2847
2858
  .over();
2848
2859
  }
2849
2860
  }
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
2861
  }
2860
2862
 
2861
2863
 
@@ -9893,6 +9895,7 @@ textarea {
9893
9895
  min-width: 75px;
9894
9896
 
9895
9897
  &-content {
9898
+ max-width: @select-item-max-width;
9896
9899
  .over();
9897
9900
 
9898
9901
  .@{kd-prefix}-checkbox {
@@ -10275,6 +10278,7 @@ textarea {
10275
10278
  @select-large-height: var(~'@{select-custom-prefix}-sizing-height-large', 36px); // 大号高度 lh:28px
10276
10279
  @select-middle-height: var(~'@{select-custom-prefix}-sizing-height-middle', 30px); // 中号高度lh:22px
10277
10280
  @select-small-height: var(~'@{select-custom-prefix}-sizing-height-small', 24px); // 小号高度lh:12px
10281
+ @select-item-max-width: var(~'@{select-custom-prefix}-item-sizing-max-width');
10278
10282
 
10279
10283
  // spacing
10280
10284
  @select-bordered: var(~'@{select-custom-prefix}-bordered-spacing-padding-left', 8px);
@@ -13525,6 +13529,9 @@ template {
13525
13529
  &-text {
13526
13530
  display: inline-block;
13527
13531
  transition: color @tab-g-motion-duration;
13532
+ overflow: hidden;
13533
+ text-overflow: ellipsis;
13534
+ max-width: @tab-pane-text-max-width;
13528
13535
  &-active,
13529
13536
  &:hover {
13530
13537
  color: @tabPane-font-color-active;
@@ -13767,6 +13774,7 @@ template {
13767
13774
  @tab-pane-type-line-height-small: var(~'@{tabs-custom-prefix}-pane-type-line-sizing-height-small', 32px);
13768
13775
  @tab-pane-type-line-height-middle: var(~'@{tabs-custom-prefix}-pane-type-line-sizing-height-middle', 32px);
13769
13776
  @tab-pane-type-dynamic-height: var(~'@{tabs-custom-prefix}-pane-type-dynamic-sizing-height', 32px);
13777
+ @tab-pane-text-max-width: var(~'@{tabs-custom-prefix}-pane-text-sizing-max-width');
13770
13778
 
13771
13779
 
13772
13780
  // 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.26
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;
@@ -5591,6 +5591,15 @@ template {
5591
5591
  -ms-flex-pack: center;
5592
5592
  justify-content: center;
5593
5593
  }
5594
+ .kd-city-picker-dropdown.topLeft.hidden,
5595
+ .kd-city-picker-dropdown.bottomLeft.hidden,
5596
+ .kd-city-picker-dropdown.topRight.hidden,
5597
+ .kd-city-picker-dropdown.bottomRight.hidden {
5598
+ opacity: 0;
5599
+ visibility: hidden;
5600
+ -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
5601
+ transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
5602
+ }
5594
5603
  .kd-city-picker-list {
5595
5604
  padding: 8px 0;
5596
5605
  max-height: 320px;
@@ -5616,7 +5625,7 @@ template {
5616
5625
  color: var(--kd-c-city-picker-placeholder-color-text, #b2b2b2);
5617
5626
  white-space: nowrap;
5618
5627
  }
5619
- .kd-city-picker-list-item:hover {
5628
+ .kd-city-picker-list-item-active:not(.kd-city-picker-list-item-disabled) {
5620
5629
  background-color: var(--kd-c-city-picker-color-background, #f5f5f5);
5621
5630
  }
5622
5631
  .kd-city-picker-list-item-selected:not(.kd-city-picker-list-item-disabled) {
@@ -5737,15 +5746,6 @@ template {
5737
5746
  white-space: nowrap;
5738
5747
  text-overflow: ellipsis;
5739
5748
  }
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
5749
 
5750
5750
  /* ----------- color ——————---- start */
5751
5751
  /* ----------- color ——————---- end */
@@ -15243,6 +15243,7 @@ textarea {
15243
15243
  min-width: 75px;
15244
15244
  }
15245
15245
  .kd-select-item-option-content {
15246
+ max-width: var(--kd-c-select-item-sizing-max-width);
15246
15247
  overflow: hidden;
15247
15248
  white-space: nowrap;
15248
15249
  text-overflow: ellipsis;
@@ -17857,6 +17858,9 @@ textarea {
17857
17858
  display: inline-block;
17858
17859
  -webkit-transition: color var(--kd-c-tabs-motion-duration, var(--kd-g-duration, 0.3s));
17859
17860
  transition: color var(--kd-c-tabs-motion-duration, var(--kd-g-duration, 0.3s));
17861
+ overflow: hidden;
17862
+ text-overflow: ellipsis;
17863
+ max-width: var(--kd-c-tabs-pane-text-sizing-max-width);
17860
17864
  }
17861
17865
  .kd-tab-pane-text-active,
17862
17866
  .kd-tab-pane-text:hover {