@kdcloudjs/kdesign 1.7.34 → 1.7.37

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 (109) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/kdesign-complete.less +244 -77
  3. package/dist/kdesign.css +263 -42
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +614 -168
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +5 -5
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/city-picker/city-picker.js +1 -1
  11. package/es/clipboard/clipboard.d.ts +21 -0
  12. package/es/clipboard/clipboard.js +106 -0
  13. package/es/clipboard/index.d.ts +4 -0
  14. package/es/clipboard/index.js +3 -0
  15. package/es/clipboard/style/css.js +2 -0
  16. package/es/clipboard/style/index.css +190 -0
  17. package/es/clipboard/style/index.d.ts +2 -0
  18. package/es/clipboard/style/index.js +2 -0
  19. package/es/clipboard/style/index.less +32 -0
  20. package/es/clipboard/style/mixin.less +39 -0
  21. package/es/clipboard/style/token.less +52 -0
  22. package/es/clipboard/util.d.ts +13 -0
  23. package/es/clipboard/util.js +197 -0
  24. package/es/color-picker/color-picker-panel.js +15 -6
  25. package/es/color-picker/color-picker.js +17 -3
  26. package/es/color-picker/interface.d.ts +5 -0
  27. package/es/color-picker/style/index.css +30 -13
  28. package/es/color-picker/style/index.less +49 -43
  29. package/es/config-provider/compDefaultProps.d.ts +5 -0
  30. package/es/config-provider/compDefaultProps.js +5 -0
  31. package/es/index.d.ts +1 -0
  32. package/es/index.js +2 -1
  33. package/es/locale/locale.d.ts +2 -0
  34. package/es/locale/zh-CN.d.ts +2 -0
  35. package/es/locale/zh-CN.js +3 -1
  36. package/es/message/content.js +1 -4
  37. package/es/select/interface.d.ts +1 -0
  38. package/es/select/select.js +15 -12
  39. package/es/select/style/index.css +12 -9
  40. package/es/select/style/index.less +22 -12
  41. package/es/select/style/token.less +1 -0
  42. package/es/tree/style/index.css +22 -15
  43. package/es/tree/style/index.less +33 -18
  44. package/es/tree/tree.d.ts +1 -0
  45. package/es/tree/tree.js +29 -13
  46. package/es/tree/treeHooks.d.ts +2 -2
  47. package/es/tree/treeHooks.js +11 -6
  48. package/es/tree/treeNode.d.ts +2 -3
  49. package/es/tree/treeNode.js +6 -5
  50. package/es/tree/utils/treeUtils.d.ts +2 -2
  51. package/es/tree/utils/treeUtils.js +5 -6
  52. package/es/tree-select/interface.d.ts +1 -0
  53. package/es/tree-select/style/index.css +7 -4
  54. package/es/tree-select/style/index.less +12 -4
  55. package/es/tree-select/style/token.less +1 -0
  56. package/es/tree-select/tree-select.js +6 -2
  57. package/lib/city-picker/city-picker.js +1 -1
  58. package/lib/clipboard/clipboard.d.ts +21 -0
  59. package/lib/clipboard/clipboard.js +121 -0
  60. package/lib/clipboard/index.d.ts +4 -0
  61. package/lib/clipboard/index.js +11 -0
  62. package/lib/clipboard/style/css.js +4 -0
  63. package/lib/clipboard/style/index.css +190 -0
  64. package/lib/clipboard/style/index.d.ts +2 -0
  65. package/lib/clipboard/style/index.js +4 -0
  66. package/lib/clipboard/style/index.less +32 -0
  67. package/lib/clipboard/style/mixin.less +39 -0
  68. package/lib/clipboard/style/token.less +52 -0
  69. package/lib/clipboard/util.d.ts +13 -0
  70. package/lib/clipboard/util.js +204 -0
  71. package/lib/color-picker/color-picker-panel.js +16 -7
  72. package/lib/color-picker/color-picker.js +17 -3
  73. package/lib/color-picker/interface.d.ts +5 -0
  74. package/lib/color-picker/style/index.css +30 -13
  75. package/lib/color-picker/style/index.less +49 -43
  76. package/lib/config-provider/compDefaultProps.d.ts +5 -0
  77. package/lib/config-provider/compDefaultProps.js +5 -0
  78. package/lib/index.d.ts +1 -0
  79. package/lib/index.js +7 -0
  80. package/lib/locale/locale.d.ts +2 -0
  81. package/lib/locale/zh-CN.d.ts +2 -0
  82. package/lib/locale/zh-CN.js +3 -1
  83. package/lib/message/content.js +1 -4
  84. package/lib/select/interface.d.ts +1 -0
  85. package/lib/select/select.js +15 -12
  86. package/lib/select/style/index.css +12 -9
  87. package/lib/select/style/index.less +22 -12
  88. package/lib/select/style/token.less +1 -0
  89. package/lib/style/components.less +1 -0
  90. package/lib/tree/style/index.css +22 -15
  91. package/lib/tree/style/index.less +33 -18
  92. package/lib/tree/tree.d.ts +1 -0
  93. package/lib/tree/tree.js +28 -12
  94. package/lib/tree/treeHooks.d.ts +2 -2
  95. package/lib/tree/treeHooks.js +10 -5
  96. package/lib/tree/treeNode.d.ts +2 -3
  97. package/lib/tree/treeNode.js +6 -5
  98. package/lib/tree/utils/treeUtils.d.ts +2 -2
  99. package/lib/tree/utils/treeUtils.js +5 -6
  100. package/lib/tree-select/interface.d.ts +1 -0
  101. package/lib/tree-select/style/index.css +7 -4
  102. package/lib/tree-select/style/index.less +12 -4
  103. package/lib/tree-select/style/token.less +1 -0
  104. package/lib/tree-select/tree-select.js +6 -2
  105. package/package.json +1 -1
  106. package/es/color-picker/utils/hooks/useOnClickOutside.d.ts +0 -2
  107. package/es/color-picker/utils/hooks/useOnClickOutside.js +0 -16
  108. package/lib/color-picker/utils/hooks/useOnClickOutside.d.ts +0 -2
  109. package/lib/color-picker/utils/hooks/useOnClickOutside.js +0 -23
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## [1.7.34](https://github.com/kdcloudone/kdesign/compare/v1.7.33...v1.7.34) (2023-10-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [date-picker]表单校验问题 fix [#619](https://github.com/kdcloudone/kdesign/issues/619) ([e963693](https://github.com/kdcloudone/kdesign/commit/e9636937e7c954a0f5324d25a368eb1ba1eb2fd2))
7
+ * [date-picker]修复safari组件异常问题 fix [#609](https://github.com/kdcloudone/kdesign/issues/609) ([3c6e54a](https://github.com/kdcloudone/kdesign/commit/3c6e54a4f3b00cfe5ad61817f945dd0f29551c4d))
8
+ * [upload]ie兼容性问题处理 fix [#620](https://github.com/kdcloudone/kdesign/issues/620) ([602b961](https://github.com/kdcloudone/kdesign/commit/602b9612c3fca3466f6bdfe640197148533bb6a0))
9
+
10
+
11
+
1
12
  ## [1.7.33](https://github.com/kdcloudone/kdesign/compare/v1.7.32...v1.7.33) (2023-10-07)
2
13
 
3
14
 
@@ -2953,6 +2953,132 @@
2953
2953
 
2954
2954
 
2955
2955
 
2956
+ @clipboard-prefix-cls: ~'@{kd-prefix}-clipboard';
2957
+
2958
+ .@{clipboard-prefix-cls} {
2959
+ .clipboard;
2960
+
2961
+ &-size-small {
2962
+ .clipboard-size(@clipboard-small-height, @clipboard-small-font-size, @clipboard-small-padding-vertical, @clipboard-small-padding-horizontal);
2963
+ &.@{clipboard-prefix-cls}-icon-only {
2964
+ .clipboard-icon-only(@clipboard-icon-small-font-size, @clipboard-icon-padding-horizontal);
2965
+ }
2966
+ }
2967
+
2968
+ &-size-middle {
2969
+ .clipboard-size(@clipboard-middle-height, @clipboard-middle-font-size, @clipboard-middle-padding-vertical, @clipboard-middle-padding-horizontal);
2970
+ &.@{clipboard-prefix-cls}-icon-only {
2971
+ .clipboard-icon-only(@clipboard-icon-middle-font-size, @clipboard-icon-padding-horizontal);
2972
+ }
2973
+ }
2974
+
2975
+ &-size-large {
2976
+ .clipboard-size(@clipboard-large-height, @clipboard-large-font-size, @clipboard-large-padding-vertical, @clipboard-large-padding-horizontal);
2977
+ &.@{clipboard-prefix-cls}-icon-only {
2978
+ .clipboard-icon-only(@clipboard-icon-large-font-size, @clipboard-icon-padding-horizontal);
2979
+ }
2980
+ }
2981
+
2982
+ &:not(.@{clipboard-prefix-cls}-icon-only) > i:not(:last-child) {
2983
+ margin-right: 2px;
2984
+ }
2985
+ }
2986
+
2987
+
2988
+
2989
+ .clipboard() {
2990
+ padding: 0;
2991
+ position: relative;
2992
+ display: inline-block;
2993
+ vertical-align: middle;
2994
+ box-sizing: border-box;
2995
+ font-weight: @clipboard-g-font-weight;
2996
+ color: #bbbbbb;
2997
+ cursor: pointer;
2998
+ white-space: nowrap;
2999
+ overflow: hidden;
3000
+ user-select: none;
3001
+
3002
+ &:hover {
3003
+ color: #5582f3;
3004
+ }
3005
+ &:disabled,
3006
+ &[disabled] {
3007
+ color: #bbbbbb;
3008
+ cursor: not-allowed;
3009
+ }
3010
+ }
3011
+
3012
+ .clipboard-size(@height, @font-size, @padding-vertical, @padding-horizontal) {
3013
+ height: @height;
3014
+ padding: @padding-vertical @padding-horizontal;
3015
+ font-size: @font-size;
3016
+ line-height: calc(@height - (@padding-vertical) * 2);
3017
+ }
3018
+
3019
+ .clipboard-icon-only(@font-size, @padding-horizontal) {
3020
+ font-size: @font-size;
3021
+ padding: 0 @padding-horizontal;
3022
+ display: inline-flex;
3023
+ justify-content: center;
3024
+ align-items: center;
3025
+ }
3026
+
3027
+
3028
+
3029
+ @clipboard-custom-prefix: ~'--@{kd-prefix}-c-clipboard';
3030
+
3031
+ // color
3032
+ @clipboard-font-color: var(~'@{clipboard-custom-prefix}-color-text', @color-theme); // color-theme为全局token
3033
+
3034
+ // font
3035
+ @clipboard-g-font-weight: var(~'@{clipboard-custom-prefix}-font-weight', @font-weight-light); // 字体粗细
3036
+ @clipboard-small-font-size: var(~'@{clipboard-custom-prefix}-font-size-small', @font-size-small); // 小号 文字大小
3037
+ @clipboard-middle-font-size: var(~'@{clipboard-custom-prefix}-font-size-middle', @font-size-middle); // 中号 文字大小
3038
+ @clipboard-large-font-size: var(~'@{clipboard-custom-prefix}-font-size-large', @font-size-large); // 大号 文字大小
3039
+
3040
+ @clipboard-icon-small-font-size: var(~'@{clipboard-custom-prefix}-icon-font-size-small', 14px); // 小号 图标大小
3041
+ @clipboard-icon-middle-font-size: var(~'@{clipboard-custom-prefix}-icon-font-size-middle', 16px); // 中号 图标大小
3042
+ @clipboard-icon-large-font-size: var(~'@{clipboard-custom-prefix}-icon-font-size-large', 18px); // 大号 图标大小
3043
+
3044
+ // motion
3045
+ @clipboard-duration-fade: var(~'@{clipboard-custom-prefix}-motion-duration-fade', @duration-slowly);
3046
+ @clipboard-duration-wave: var(~'@{clipboard-custom-prefix}-motion-duration-wave', @duration-quickly);
3047
+
3048
+ // sizing
3049
+ @clipboard-small-height: var(~'@{clipboard-custom-prefix}-sizing-height-small', 24px); // 小号 高度
3050
+ @clipboard-middle-height: var(~'@{clipboard-custom-prefix}-sizing-height-middle', 28px); // 中号 高度
3051
+ @clipboard-large-height: var(~'@{clipboard-custom-prefix}-sizing-height-large', 32px); // 大号 高度
3052
+
3053
+ // spacing
3054
+ @clipboard-small-padding-vertical: var(
3055
+ ~'@{clipboard-custom-prefix}-spacing-padding-vertical-small',
3056
+ 3px
3057
+ ); // 小号 内间距 纵向
3058
+ @clipboard-small-padding-horizontal: var(
3059
+ ~'@{clipboard-custom-prefix}-spacing-padding-horizontal-small',
3060
+ 8px
3061
+ ); // 小号 内间距 横向
3062
+ @clipboard-middle-padding-vertical: var(
3063
+ ~'@{clipboard-custom-prefix}-spacing-padding-vertical-middle',
3064
+ 5px
3065
+ ); // 中号 内间距 纵向
3066
+ @clipboard-middle-padding-horizontal: var(
3067
+ ~'@{clipboard-custom-prefix}-spacing-padding-horizontal-middle',
3068
+ 8px
3069
+ ); // 中号 内间距 横向
3070
+ @clipboard-large-padding-vertical: var(
3071
+ ~'@{clipboard-custom-prefix}-spacing-padding-vertical-large',
3072
+ 6px
3073
+ ); // 大号 内间距 纵向
3074
+ @clipboard-large-padding-horizontal: var(
3075
+ ~'@{clipboard-custom-prefix}-spacing-padding-horizontal-large',
3076
+ 8px
3077
+ ); // 大号 内间距 横向
3078
+ @clipboard-icon-padding-horizontal: var(~'@{clipboard-custom-prefix}-icon-spacing-padding-horizontal', 4px);
3079
+
3080
+
3081
+
2956
3082
 
2957
3083
  @collapse-prefix-cls: ~'@{kd-prefix}-collapse';
2958
3084
  .@{collapse-prefix-cls} {
@@ -3105,6 +3231,7 @@
3105
3231
 
3106
3232
  .@{color-picker-prefix-cls}-container {
3107
3233
  position: relative;
3234
+ width: @color-picker-input-sizing-width;
3108
3235
 
3109
3236
  .@{color-picker-prefix-cls}-input {
3110
3237
  width: @color-picker-input-sizing-width;
@@ -3151,6 +3278,7 @@
3151
3278
  }
3152
3279
 
3153
3280
  .@{color-picker-prefix-cls}-pop {
3281
+ width: @color-picker-panel-sizing-width;
3154
3282
 
3155
3283
  &.topLeft.hidden,
3156
3284
  &.bottomLeft.hidden,
@@ -3301,61 +3429,65 @@
3301
3429
  }
3302
3430
  }
3303
3431
 
3304
- &-input {
3305
- display: inline-block;
3306
- position: relative;
3307
- margin-top: 12px;
3308
- font-size: @color-picker-panel-select-font-size;
3432
+ &-container {
3433
+ display: flex;
3434
+ flex-wrap: nowrap;
3435
+ margin-top: 10px;
3309
3436
 
3310
- &-no-recommend {
3311
- margin-bottom: 0;
3312
- }
3437
+ &-input {
3438
+ flex: 1 1 auto;
3439
+ display: inline-block;
3440
+ position: relative;
3441
+ font-size: @color-picker-panel-select-font-size;
3313
3442
 
3314
- .@{kd-prefix}-select {
3443
+ .@{kd-prefix}-select-dropdown-panel {
3444
+ margin: 0 !important;
3315
3445
 
3316
- &.bottomLeft,
3317
- &.topLeft {
3318
- position: absolute;
3319
- width: 60px !important;
3320
- background: #FFFFFF;
3321
- right: 0;
3322
- left: unset !important;
3323
- box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.20);
3324
- border-radius: 2px;
3325
- }
3446
+ &.bottomLeft,
3447
+ &.topLeft {
3448
+ position: absolute;
3449
+ width: 60px !important;
3450
+ min-width: unset !important;
3451
+ background: #FFFFFF;
3452
+ right: 0;
3453
+ left: unset !important;
3454
+ box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.20);
3455
+ border-radius: 2px;
3456
+ }
3326
3457
 
3327
- .@{kd-prefix}-select-dropdown {
3328
- .@{kd-prefix}-select-item-option {
3329
- display: flex;
3330
- justify-content: center;
3331
- min-width: unset;
3458
+ .@{kd-prefix}-select-dropdown {
3459
+ .@{kd-prefix}-select-item-option {
3460
+ display: flex;
3461
+ justify-content: center;
3462
+ min-width: unset;
3463
+ }
3332
3464
  }
3333
3465
  }
3334
- }
3335
3466
 
3336
- .@{kd-prefix}-select-bordered {
3337
- border-radius: 2px;
3338
- width: @color-picker-panel-select-sizing-width;
3339
- height: @color-picker-panel-select-sizing-height;
3340
- min-height: 28px;
3341
- margin-top: -2px;
3467
+ .@{kd-prefix}-select-bordered {
3468
+ border-radius: 2px;
3469
+ width: @color-picker-panel-select-sizing-width;
3470
+ height: @color-picker-panel-select-sizing-height;
3471
+ min-height: 28px;
3472
+ padding: 0 28px 0 0;
3342
3473
 
3343
- .@{kd-prefix}-select-placeholder {
3344
- left: 8px;
3474
+ .@{kd-prefix}-select-placeholder {
3475
+ left: 8px;
3476
+ }
3345
3477
  }
3346
- }
3347
3478
 
3348
- .active-option {
3349
- background-color: @color-picker-panel-option-color-background;
3479
+ .active-option {
3480
+ background-color: @color-picker-panel-option-color-background;
3481
+ }
3350
3482
  }
3351
- }
3352
3483
 
3353
- &-transparent {
3354
- width: 60px;
3355
- height: 28px;
3356
- margin-left: 8px;
3357
- text-align: center;
3358
- font-size: @color-picker-panel-alpha-font-size;
3484
+ &-transparent {
3485
+ flex: 0 0 60px;
3486
+ height: 28px;
3487
+ margin-left: 8px;
3488
+ text-align: center;
3489
+ font-size: @color-picker-panel-alpha-font-size;
3490
+ }
3359
3491
  }
3360
3492
 
3361
3493
  &-colorDivContainer {
@@ -9791,7 +9923,7 @@ textarea {
9791
9923
  }
9792
9924
  }
9793
9925
 
9794
- &-focused {
9926
+ &-focused:not(.@{select-prefix-cls}-error) {
9795
9927
  .focusColor();
9796
9928
  }
9797
9929
  &-placeholder {
@@ -9815,7 +9947,9 @@ textarea {
9815
9947
 
9816
9948
  &-underline {
9817
9949
  border-bottom: 1px solid @select-g-color-border;
9818
- &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
9950
+ &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled):not(
9951
+ .@{select-prefix-cls}-error
9952
+ ) {
9819
9953
  border-bottom: 1px solid @select-g-color-border-hover;
9820
9954
  }
9821
9955
  }
@@ -9824,7 +9958,9 @@ textarea {
9824
9958
  border: 1px solid @select-border-g-color-border;
9825
9959
  padding-left: @select-bordered !important;
9826
9960
  border-radius: @select-border-radius-border;
9827
- &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
9961
+ &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled):not(
9962
+ .@{select-prefix-cls}-error
9963
+ ) {
9828
9964
  border: 1px solid @select-g-color-border-hover;
9829
9965
  }
9830
9966
 
@@ -9997,7 +10133,7 @@ textarea {
9997
10133
  .over();
9998
10134
  }
9999
10135
  }
10000
- &-focused {
10136
+ &-focused:not(.@{select-prefix-cls}-error) {
10001
10137
  .focusColor();
10002
10138
  }
10003
10139
  &-disabled {
@@ -10163,7 +10299,7 @@ textarea {
10163
10299
  &-hadSelected {
10164
10300
  color: #999999;
10165
10301
  padding-left: 12px;
10166
- > span {
10302
+ &-number {
10167
10303
  color: @select-footer-g-text-color-selected;
10168
10304
  padding: 0 2px;
10169
10305
  }
@@ -10171,13 +10307,19 @@ textarea {
10171
10307
  }
10172
10308
  }
10173
10309
 
10174
- &.topLeft.hidden,
10175
- &.bottomLeft.hidden,
10176
- &.topRight.hidden,
10177
- &.bottomRight.hidden {
10178
- opacity: 0;
10179
- visibility: hidden;
10180
- transition: all calc(@transition-duration - 0.1s) @ease;
10310
+ &-error:not(.@{select-prefix-cls}-single-disabled):not(.@{select-prefix-cls}-multiple-disabled) {
10311
+ border-color: @select-error-color;
10312
+ }
10313
+
10314
+ &-dropdown-panel {
10315
+ &.topLeft.hidden,
10316
+ &.bottomLeft.hidden,
10317
+ &.topRight.hidden,
10318
+ &.bottomRight.hidden {
10319
+ opacity: 0;
10320
+ visibility: hidden;
10321
+ transition: all calc(@transition-duration - 0.1s) @ease;
10322
+ }
10181
10323
  }
10182
10324
  }
10183
10325
 
@@ -10290,6 +10432,7 @@ textarea {
10290
10432
  @select-single-color-text: var(~'@{select-custom-prefix}-single-color-text', @color-text-primary);
10291
10433
  @select-clear-color: var(~'@{select-custom-prefix}-icon-clear-color-text', #d9d9d9);
10292
10434
  @select-clear-color-hover: var(~'@{select-custom-prefix}-icon-clear-color-text-hover', #999);
10435
+ @select-error-color: var(~'@{select-custom-prefix}-color-error', @color-error);
10293
10436
 
10294
10437
  // font
10295
10438
  @select-list-font-size: var(~'@{select-custom-prefix}-dropdown-font-size', 12px); // 下拉列表文字大小
@@ -14623,10 +14766,26 @@ template {
14623
14766
  min-width: 100%;
14624
14767
  flex-shrink: 0;
14625
14768
  }
14626
- &-plantom {
14627
- position: absolute;
14628
- min-width: 100%;
14629
- z-index: -1;
14769
+
14770
+ &-show-line {
14771
+ .@{tree-node-prefix-cls}-indent {
14772
+ position: relative;
14773
+ &::before {
14774
+ position: absolute;
14775
+ left: 50%;
14776
+ transform: translateX(-50%);
14777
+ width: 1px;
14778
+ border-left: 1px solid #d9d9d9;
14779
+ content: '';
14780
+ box-sizing: border-box;
14781
+ top: 0;
14782
+ bottom: 0;
14783
+ }
14784
+
14785
+ &-active::before {
14786
+ border-color: @tree-color-theme;
14787
+ }
14788
+ }
14630
14789
  }
14631
14790
  }
14632
14791
 
@@ -14660,21 +14819,13 @@ template {
14660
14819
 
14661
14820
  &-indent {
14662
14821
  display: flex;
14663
- width: 1px;
14664
- border-top: 0;
14665
- border-left: 11px;
14666
- border-bottom: 0;
14667
- border-right: 10px;
14668
- border-color: white;
14669
- border-style: solid;
14822
+ width: @tree-expand-icon-width;
14823
+ margin-right: 6px;
14824
+
14670
14825
  height: 100%;
14671
14826
  cursor: default;
14672
- opacity: 0;
14673
- }
14674
- &-indent-line {
14675
- background-color: black;
14676
- opacity: 1;
14677
14827
  }
14828
+
14678
14829
  &-icon {
14679
14830
  cursor: pointer;
14680
14831
  height: @tree-expand-icon-height;
@@ -14739,6 +14890,12 @@ template {
14739
14890
  align-items: center;
14740
14891
  width: 100%;
14741
14892
  height: 100%;
14893
+
14894
+ &.@{tree-node-prefix-cls}-dragging {
14895
+ .@{tree-node-prefix-cls}-indent::before {
14896
+ border-color: transparent;
14897
+ }
14898
+ }
14742
14899
  }
14743
14900
 
14744
14901
  &-drag-over {
@@ -14747,13 +14904,14 @@ template {
14747
14904
  }
14748
14905
 
14749
14906
  &-drag-line {
14750
- &-top, &-bottom {
14907
+ &-top,
14908
+ &-bottom {
14751
14909
  position: absolute;
14752
14910
  left: 0;
14753
14911
  top: 0;
14754
14912
  width: 100%;
14755
14913
  border-top: 2px solid @tree-node-drag-line-border-color;
14756
-
14914
+
14757
14915
  &::before {
14758
14916
  content: '';
14759
14917
  width: 4px;
@@ -14908,7 +15066,7 @@ template {
14908
15066
  }
14909
15067
  }
14910
15068
 
14911
- &-focused {
15069
+ &-focused:not(.@{tree-select-prefix-cls}-error) {
14912
15070
  .focusColor();
14913
15071
  }
14914
15072
  &-placeholder {
@@ -14927,7 +15085,9 @@ template {
14927
15085
 
14928
15086
  &-underline {
14929
15087
  border-bottom: 1px solid @tree-select-g-color-border;
14930
- &:hover:not(.@{tree-select-prefix-cls}-multiple-disabled):not(.@{tree-select-prefix-cls}-single-disabled) {
15088
+ &:hover:not(.@{tree-select-prefix-cls}-multiple-disabled):not(.@{tree-select-prefix-cls}-single-disabled):not(
15089
+ .@{tree-select-prefix-cls}-error
15090
+ ) {
14931
15091
  border-bottom: 1px solid @tree-select-g-color-border-hover;
14932
15092
  }
14933
15093
  }
@@ -14936,7 +15096,9 @@ template {
14936
15096
  border: 1px solid @tree-select-border-g-color-border;
14937
15097
  padding-left: @tree-select-bordered !important;
14938
15098
  border-radius: @tree-select-border-radius-border;
14939
- &:hover:not(.@{tree-select-prefix-cls}-multiple-disabled):not(.@{tree-select-prefix-cls}-single-disabled) {
15099
+ &:hover:not(.@{tree-select-prefix-cls}-multiple-disabled):not(.@{tree-select-prefix-cls}-single-disabled):not(
15100
+ .@{tree-select-prefix-cls}-error
15101
+ ) {
14940
15102
  border: 1px solid @tree-select-g-color-border-hover;
14941
15103
  }
14942
15104
 
@@ -15055,7 +15217,7 @@ template {
15055
15217
  .over();
15056
15218
  }
15057
15219
  }
15058
- &-focused {
15220
+ &-focused:not(.@{tree-select-prefix-cls}-error) {
15059
15221
  .focusColor();
15060
15222
  }
15061
15223
  &-disabled {
@@ -15232,6 +15394,10 @@ template {
15232
15394
  }
15233
15395
  }
15234
15396
 
15397
+ &-error:not(.@{tree-select-prefix-cls}-single-disabled):not(.@{tree-select-prefix-cls}-multiple-disabled) {
15398
+ border-color: @tree-select-error-color;
15399
+ }
15400
+
15235
15401
  &.topLeft.hidden,
15236
15402
  &.bottomLeft.hidden,
15237
15403
  &.topRight.hidden,
@@ -15296,6 +15462,7 @@ template {
15296
15462
  @tree-select-single-color-text: var(~'@{tree-select-custom-prefix}-single-color-text', @color-text-primary);
15297
15463
  @tree-select-clear-color: var(~'@{tree-select-custom-prefix}-icon-clear-color-text', #d9d9d9);
15298
15464
  @tree-select-clear-color-hover: var(~'@{tree-select-custom-prefix}-icon-clear-color-text-hover', #999);
15465
+ @tree-select-error-color: var(~'@{tree-select-custom-prefix}-color-error', @color-error);
15299
15466
 
15300
15467
  // font
15301
15468
  @tree-select-list-font-size: var(~'@{tree-select-custom-prefix}-dropdown-font-size', 12px); // 下拉列表文字大小