@kdcloudjs/kdesign 1.7.5 → 1.7.7
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.
- package/CHANGELOG.md +37 -0
- package/dist/kdesign-complete.less +11 -3
- package/dist/kdesign.css +13 -10
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +309 -147
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +8 -8
- package/dist/kdesign.min.js.map +1 -1
- package/es/form/Field.js +1 -0
- package/es/input/ClearableLabeledInput.d.ts +1 -0
- package/es/input/ClearableLabeledInput.js +4 -3
- package/es/input/TextArea.d.ts +1 -0
- package/es/input/TextArea.js +3 -2
- package/es/input/input.d.ts +1 -0
- package/es/input/input.js +3 -2
- package/es/input/style/index.css +12 -9
- package/es/input/style/index.less +5 -1
- package/es/input/style/mixin.less +5 -2
- package/es/input/style/token.less +1 -0
- package/lib/form/Field.js +1 -0
- package/lib/input/ClearableLabeledInput.d.ts +1 -0
- package/lib/input/ClearableLabeledInput.js +4 -3
- package/lib/input/TextArea.d.ts +1 -0
- package/lib/input/TextArea.js +3 -2
- package/lib/input/input.d.ts +1 -0
- package/lib/input/input.js +3 -2
- package/lib/input/style/index.css +12 -9
- package/lib/input/style/index.less +5 -1
- package/lib/input/style/mixin.less +5 -2
- package/lib/input/style/token.less +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
## [1.7.6](https://github.com/kdcloudone/kdesign/compare/v1.7.5...v1.7.6) (2023-04-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [cli] 修改登录功能cookie中的domin ([e2ed910](https://github.com/kdcloudone/kdesign/commit/e2ed9103efe2971ee89ce812e542bf2d39052126))
|
|
7
|
+
* [input]修复校验状态样式 ([9feda12](https://github.com/kdcloudone/kdesign/commit/9feda129dd2b64ff208f9d6acec538edd8bc20fe))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* [form]传递校验属性 fix [#330](https://github.com/kdcloudone/kdesign/issues/330) ([e55685c](https://github.com/kdcloudone/kdesign/commit/e55685ce0b56a5e63dc239878d488e95053e9668))
|
|
13
|
+
* [input]添加校验状态 ([dce1364](https://github.com/kdcloudone/kdesign/commit/dce13646317ae9a8a7d3d847cff2f7885f23fae7))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [1.7.5](https://github.com/kdcloudone/kdesign/compare/v1.7.4...v1.7.5) (2023-04-27)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* [card] 更新卡片单测 ([d7c6eaf](https://github.com/kdcloudone/kdesign/commit/d7c6eaf2a1a7d1b8d6e27be399244874a14207a9))
|
|
23
|
+
* [carousel] 更新走马灯单测 ([3539ac5](https://github.com/kdcloudone/kdesign/commit/3539ac5276d373005fb7f235ed1e75de7dfe46a6))
|
|
24
|
+
* [color-picker] 更新颜色选择器单测 ([49c9975](https://github.com/kdcloudone/kdesign/commit/49c9975f60e16e29ea0e845fd88a90a8a5742d3e))
|
|
25
|
+
* [dropdown] Dropdown defaultKey 不生效[#326](https://github.com/kdcloudone/kdesign/issues/326) ([0216b46](https://github.com/kdcloudone/kdesign/commit/0216b46ad9e3083b1cbc42bcd11886969441b56e))
|
|
26
|
+
* [tree] 更新树组件单测 ([52b81ff](https://github.com/kdcloudone/kdesign/commit/52b81ff9b5bd37b27936e40733a51f25ea51e3cb))
|
|
27
|
+
* [tree] 修复单测报错 ([781aaa0](https://github.com/kdcloudone/kdesign/commit/781aaa02f5231f502d37de2356ce3fdd64017fc0))
|
|
28
|
+
* [tree] 修复重新设置scrollToKey父节点不展开问题 fix [#334](https://github.com/kdcloudone/kdesign/issues/334) ([3252d79](https://github.com/kdcloudone/kdesign/commit/3252d79407b2821e569250b9ad02c9ff0e78f94b))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* [color-picker] 透明度可配置隐藏 [#329](https://github.com/kdcloudone/kdesign/issues/329) ([42d8aa5](https://github.com/kdcloudone/kdesign/commit/42d8aa51c7513bc244c735e87276c23b6e7647f4))
|
|
34
|
+
* 新增登录登出功能 ([f428659](https://github.com/kdcloudone/kdesign/commit/f428659e3ca51366e485183a56f08c62e0f78055))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
1
38
|
## [1.7.4](https://github.com/kdcloudone/kdesign/compare/v1.7.3...v1.7.4) (2023-04-21)
|
|
2
39
|
|
|
3
40
|
|
|
@@ -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.
|
|
3
|
+
* @kdcloudjs/kdesign v1.7.6
|
|
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 */
|