@kdcloudjs/kdesign 1.7.5 → 1.7.6

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.
@@ -5702,7 +5702,7 @@ textarea {
5702
5702
  .underline;
5703
5703
  }
5704
5704
 
5705
- &-focused {
5705
+ &-focused:not(.@{input-prefix-cls}-error) {
5706
5706
  border-color: @input-border-color-focused;
5707
5707
  }
5708
5708
 
@@ -5858,13 +5858,20 @@ textarea {
5858
5858
  &-input-mark-inner {
5859
5859
  color: @input-placeholder-color-inner;
5860
5860
  }
5861
+
5862
+ &-error:not(.@{input-prefix-cls}-disabled):not(.@{input-prefix-cls}-wrapper-disabled):not(.@{input-prefix-cls}-group-addon-disabled) {
5863
+ border-color: @input-error-color;
5864
+ }
5861
5865
  }
5862
5866
 
5863
5867
 
5864
5868
 
5869
+ @input-prefix-cls: ~'@{kd-prefix}-input';
5870
+
5865
5871
  // 输入框默认样式Mixins
5866
5872
  .input(@prefix) {
5867
5873
  @disabled-prefix-cls: ~'@{prefix}-disabled';
5874
+ @error-prefix-cls: ~'@{input-prefix-cls}-error';
5868
5875
  width: 100%;
5869
5876
  min-width: 0;
5870
5877
  border: @input-border-width-inner solid @input-border-color-disabled-inner;
@@ -5891,10 +5898,10 @@ textarea {
5891
5898
  box-shadow: none;
5892
5899
  outline: none;
5893
5900
  }
5894
- &:not(.@{disabled-prefix-cls}):hover {
5901
+ &:not(.@{disabled-prefix-cls}):not(.@{error-prefix-cls}):hover {
5895
5902
  border-color: @input-border-color-focused;
5896
5903
  }
5897
- &:not(.@{disabled-prefix-cls}):focus {
5904
+ &:not(.@{disabled-prefix-cls}):not(.@{error-prefix-cls}):focus {
5898
5905
  color: @input-focus-color;
5899
5906
  border-color: @input-border-color-focused;
5900
5907
  }
@@ -5956,6 +5963,7 @@ textarea {
5956
5963
  );
5957
5964
  @input-color-disabled-inner: var(~'@{input-prefix}-color-disabled', @color-disabled);
5958
5965
  @input-affix-color: var(~'@{input-prefix}-affix-color-text', #666);
5966
+ @input-error-color: var(~'@{input-prefix}-color-error', @color-error);
5959
5967
 
5960
5968
  // font
5961
5969
  @input-small-font-size-inner: var(~'@{input-prefix}-font-size-small', @font-size-small);
package/dist/kdesign.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.7.4
3
+ * @kdcloudjs/kdesign v1.7.5
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -9714,10 +9714,10 @@ textarea {
9714
9714
  box-shadow: none;
9715
9715
  outline: none;
9716
9716
  }
9717
- .kd-input:not(.kd-input-disabled):hover {
9717
+ .kd-input:not(.kd-input-disabled):not(.kd-input-error):hover {
9718
9718
  border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
9719
9719
  }
9720
- .kd-input:not(.kd-input-disabled):focus {
9720
+ .kd-input:not(.kd-input-disabled):not(.kd-input-error):focus {
9721
9721
  color: #212121;
9722
9722
  border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
9723
9723
  }
@@ -9761,10 +9761,10 @@ textarea {
9761
9761
  box-shadow: none;
9762
9762
  outline: none;
9763
9763
  }
9764
- .kd-input-textarea:not(.kd-input-disabled):hover {
9764
+ .kd-input-textarea:not(.kd-input-disabled):not(.kd-input-error):hover {
9765
9765
  border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
9766
9766
  }
9767
- .kd-input-textarea:not(.kd-input-disabled):focus {
9767
+ .kd-input-textarea:not(.kd-input-disabled):not(.kd-input-error):focus {
9768
9768
  color: #212121;
9769
9769
  border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
9770
9770
  }
@@ -9868,10 +9868,10 @@ textarea {
9868
9868
  box-shadow: none;
9869
9869
  outline: none;
9870
9870
  }
9871
- .kd-input-wrapper:not(.kd-input-wrapper-disabled):hover {
9871
+ .kd-input-wrapper:not(.kd-input-wrapper-disabled):not(.kd-input-error):hover {
9872
9872
  border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
9873
9873
  }
9874
- .kd-input-wrapper:not(.kd-input-wrapper-disabled):focus {
9874
+ .kd-input-wrapper:not(.kd-input-wrapper-disabled):not(.kd-input-error):focus {
9875
9875
  color: #212121;
9876
9876
  border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
9877
9877
  }
@@ -9931,7 +9931,7 @@ textarea {
9931
9931
  border-radius: 0 !important;
9932
9932
  padding-left: 0;
9933
9933
  }
9934
- .kd-input-wrapper-focused {
9934
+ .kd-input-wrapper-focused:not(.kd-input-error) {
9935
9935
  border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
9936
9936
  }
9937
9937
  .kd-input-wrapper-disabled {
@@ -9976,10 +9976,10 @@ textarea {
9976
9976
  box-shadow: none;
9977
9977
  outline: none;
9978
9978
  }
9979
- .kd-input-wrapper-textarea:not(.kd-input-disabled):hover {
9979
+ .kd-input-wrapper-textarea:not(.kd-input-disabled):not(.kd-input-error):hover {
9980
9980
  border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
9981
9981
  }
9982
- .kd-input-wrapper-textarea:not(.kd-input-disabled):focus {
9982
+ .kd-input-wrapper-textarea:not(.kd-input-disabled):not(.kd-input-error):focus {
9983
9983
  color: #212121;
9984
9984
  border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
9985
9985
  }
@@ -10105,6 +10105,9 @@ textarea {
10105
10105
  .kd-input-input-mark-inner {
10106
10106
  color: var(--kd-c-input-placeholder-color-text, var(--kd-g-color-text-placeholder, #ccc));
10107
10107
  }
10108
+ .kd-input-error:not(.kd-input-disabled):not(.kd-input-wrapper-disabled):not(.kd-input-group-addon-disabled) {
10109
+ border-color: var(--kd-c-input-color-error, var(--kd-g-color-error, #fb2323));
10110
+ }
10108
10111
 
10109
10112
  /* ----------- color ——————---- start */
10110
10113
  /* ----------- color ——————---- end */