@kdcloudjs/kdesign 1.7.4 → 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.
- package/CHANGELOG.md +10 -0
- package/dist/kdesign-complete.less +268 -212
- package/dist/kdesign.css +34 -10
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +64 -34
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +3 -3
- package/dist/kdesign.min.js +3 -3
- package/dist/kdesign.min.js.map +1 -1
- package/es/color-picker/color-picker-panel.js +3 -6
- package/es/color-picker/interface.d.ts +10 -2
- package/es/color-picker/style/index.css +21 -0
- package/es/color-picker/style/index.less +260 -213
- package/es/config-provider/compDefaultProps.d.ts +5 -0
- package/es/config-provider/compDefaultProps.js +6 -1
- package/es/dropdown/dropdown.js +3 -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/es/tree/tree.d.ts +1 -0
- package/es/tree/treeHooks.js +1 -1
- package/lib/color-picker/color-picker-panel.js +3 -6
- package/lib/color-picker/interface.d.ts +10 -2
- package/lib/color-picker/style/index.css +21 -0
- package/lib/color-picker/style/index.less +260 -213
- package/lib/config-provider/compDefaultProps.d.ts +5 -0
- package/lib/config-provider/compDefaultProps.js +6 -1
- package/lib/dropdown/dropdown.js +3 -1
- 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/lib/tree/tree.d.ts +1 -0
- package/lib/tree/treeHooks.js +1 -1
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [1.7.4](https://github.com/kdcloudone/kdesign/compare/v1.7.3...v1.7.4) (2023-04-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [cli] 修复由于postcss升级导致的ts报错 ([74dee75](https://github.com/kdcloudone/kdesign/commit/74dee75525c688a824eae607a6f6f1ec7716024c))
|
|
7
|
+
* [table] 修复筛选条件等于\&不等于不生效的问题 fix [#310](https://github.com/kdcloudone/kdesign/issues/310) ([ed889ef](https://github.com/kdcloudone/kdesign/commit/ed889ef31bbbd29e3696d0c6274554ff32f4e2e2))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
## [1.7.3](https://github.com/kdcloudone/kdesign/compare/v1.7.2...v1.7.3) (2023-04-13)
|
|
2
12
|
|
|
3
13
|
|
|
@@ -2894,257 +2894,305 @@
|
|
|
2894
2894
|
@color-picker-prefix-cls: ~'@{kd-prefix}-color-picker';
|
|
2895
2895
|
|
|
2896
2896
|
.@{color-picker-prefix-cls}-container {
|
|
2897
|
-
|
|
2897
|
+
position: relative;
|
|
2898
2898
|
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2899
|
+
.@{color-picker-prefix-cls}-input {
|
|
2900
|
+
width: @color-picker-input-sizing-width;
|
|
2901
|
+
height: @color-picker-input-sizing-height;
|
|
2902
|
+
border-bottom: 1px solid rgba(217, 217, 217, 1);
|
|
2903
|
+
font-size: @color-picker-input-font-size;
|
|
2904
|
+
}
|
|
2905
2905
|
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2906
|
+
.@{color-picker-prefix-cls}-icon-container {
|
|
2907
|
+
position: absolute;
|
|
2908
|
+
top: 3px;
|
|
2909
|
+
right: 6px;
|
|
2910
|
+
cursor: pointer;
|
|
2911
2911
|
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2912
|
+
.@{color-picker-prefix-cls}-icon {
|
|
2913
|
+
width: @color-picker-input-suffix-sizing-width;
|
|
2914
|
+
height: @color-picker-input-suffix-sizing-height;
|
|
2915
|
+
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
2916
|
+
border-radius: 2px;
|
|
2917
|
+
line-height: 18px;
|
|
2918
|
+
text-align: center;
|
|
2919
|
+
color: @bg;
|
|
2920
2920
|
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2921
|
+
&-underline {
|
|
2922
|
+
margin-right: -6px;
|
|
2923
|
+
}
|
|
2924
2924
|
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2925
|
+
&-up {
|
|
2926
|
+
.kdicon-arrow-down {
|
|
2927
|
+
transform: rotate(180deg);
|
|
2928
|
+
transition: transform @transition-duration-quickly ease-in-out;
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
2931
|
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
}
|
|
2937
|
-
}
|
|
2932
|
+
&-down {
|
|
2933
|
+
.kdicon-arrow-down {
|
|
2934
|
+
transform: rotate(0deg);
|
|
2935
|
+
transition: transform @transition-duration-quickly ease-in-out;
|
|
2938
2936
|
}
|
|
2937
|
+
}
|
|
2939
2938
|
}
|
|
2939
|
+
}
|
|
2940
2940
|
|
|
2941
2941
|
}
|
|
2942
2942
|
|
|
2943
2943
|
.@{color-picker-prefix-cls}-pop {
|
|
2944
2944
|
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2945
|
+
&.topLeft.hidden,
|
|
2946
|
+
&.bottomLeft.hidden,
|
|
2947
|
+
&.topRight.hidden,
|
|
2948
|
+
&.bottomRight.hidden {
|
|
2949
|
+
opacity: 0;
|
|
2950
|
+
visibility: hidden;
|
|
2951
|
+
transition: all calc(@transition-duration - 0.1s) @ease;
|
|
2952
|
+
}
|
|
2953
2953
|
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2954
|
+
.@{color-picker-prefix-cls}-panel {
|
|
2955
|
+
box-sizing: border-box;
|
|
2956
|
+
width: @color-picker-panel-sizing-width;
|
|
2957
|
+
padding: 4px 12px 16px;
|
|
2958
|
+
background: #FFFFFF;
|
|
2959
|
+
box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
|
|
2960
|
+
border-radius: 2px;
|
|
2961
|
+
transform-origin: top left;
|
|
2962
|
+
z-index: @color-picker-panel-z-index;
|
|
2963
|
+
|
|
2964
|
+
&-chrome {
|
|
2965
|
+
width: 278px !important;
|
|
2966
|
+
margin-top: 12px;
|
|
2967
|
+
box-shadow: none !important;
|
|
2968
|
+
|
|
2969
|
+
&>div:last-child {
|
|
2970
|
+
padding: 9px 0 4px !important;
|
|
2971
|
+
|
|
2972
|
+
.flexbox-fix:first-child {
|
|
2973
|
+
display: flex;
|
|
2974
|
+
flex-direction: row-reverse;
|
|
2975
|
+
|
|
2976
|
+
&>div:first-child {
|
|
2977
|
+
&>div {
|
|
2978
|
+
width: 28px !important;
|
|
2979
|
+
height: 28px !important;
|
|
2980
|
+
border-radius: 50% !important;
|
|
2981
|
+
margin-top: -1px !important;
|
|
2982
|
+
margin-left: 4px !important;
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2963
2985
|
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2986
|
+
&>div:last-child {
|
|
2987
|
+
|
|
2988
|
+
.hue-horizontal {
|
|
2989
|
+
width: 240px !important;
|
|
2990
|
+
height: 12px !important;
|
|
2991
|
+
border-radius: 6px !important;
|
|
2992
|
+
padding: unset !important;
|
|
2993
|
+
|
|
2994
|
+
&>div>div {
|
|
2995
|
+
margin-top: 1px;
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2968
2998
|
|
|
2969
2999
|
&>div:last-child {
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
flex-direction: row-reverse;
|
|
2975
|
-
|
|
2976
|
-
&>div:first-child {
|
|
2977
|
-
&>div {
|
|
2978
|
-
width: 28px !important;
|
|
2979
|
-
height: 28px !important;
|
|
2980
|
-
border-radius: 50% !important;
|
|
2981
|
-
margin-top: -1px !important;
|
|
2982
|
-
margin-left: 4px !important;
|
|
2983
|
-
}
|
|
2984
|
-
}
|
|
2985
|
-
|
|
2986
|
-
&>div:last-child {
|
|
2987
|
-
|
|
2988
|
-
.hue-horizontal {
|
|
2989
|
-
width: 240px !important;
|
|
2990
|
-
height: 12px !important;
|
|
2991
|
-
border-radius: 6px !important;
|
|
2992
|
-
padding: unset !important;
|
|
2993
|
-
|
|
2994
|
-
&>div>div {
|
|
2995
|
-
margin-top: 1px;
|
|
2996
|
-
}
|
|
2997
|
-
}
|
|
2998
|
-
|
|
2999
|
-
&>div:last-child {
|
|
3000
|
-
&>div {
|
|
3001
|
-
width: 240px !important;
|
|
3002
|
-
height: 12px !important;
|
|
3003
|
-
margin: unset;
|
|
3004
|
-
|
|
3005
|
-
&>div:first-child {
|
|
3006
|
-
border-radius: 6px !important;
|
|
3007
|
-
}
|
|
3008
|
-
|
|
3009
|
-
&>div:nth-child(2) {
|
|
3010
|
-
border-radius: 6px !important;
|
|
3011
|
-
}
|
|
3012
|
-
|
|
3013
|
-
&>div:last-child {
|
|
3014
|
-
margin: unset !important;
|
|
3015
|
-
|
|
3016
|
-
&>div>div {
|
|
3017
|
-
margin-top: 1px;
|
|
3018
|
-
}
|
|
3019
|
-
}
|
|
3020
|
-
}
|
|
3021
|
-
}
|
|
3022
|
-
}
|
|
3000
|
+
&>div {
|
|
3001
|
+
width: 240px !important;
|
|
3002
|
+
height: 12px !important;
|
|
3003
|
+
margin: unset;
|
|
3023
3004
|
|
|
3005
|
+
&>div:first-child {
|
|
3006
|
+
border-radius: 6px !important;
|
|
3024
3007
|
}
|
|
3025
3008
|
|
|
3026
|
-
|
|
3027
|
-
|
|
3009
|
+
&>div:nth-child(2) {
|
|
3010
|
+
border-radius: 6px !important;
|
|
3011
|
+
}
|
|
3012
|
+
|
|
3013
|
+
&>div:last-child {
|
|
3014
|
+
margin: unset !important;
|
|
3015
|
+
|
|
3016
|
+
&>div>div {
|
|
3017
|
+
margin-top: 1px;
|
|
3018
|
+
}
|
|
3028
3019
|
}
|
|
3020
|
+
}
|
|
3029
3021
|
}
|
|
3022
|
+
}
|
|
3030
3023
|
|
|
3031
3024
|
}
|
|
3032
3025
|
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
font-size: 12px;
|
|
3036
|
-
color: #666666;
|
|
3037
|
-
letter-spacing: 0;
|
|
3038
|
-
line-height: 16px;
|
|
3039
|
-
font-weight: 400;
|
|
3040
|
-
|
|
3041
|
-
span {
|
|
3042
|
-
vertical-align: middle;
|
|
3043
|
-
margin-right: 9px;
|
|
3044
|
-
}
|
|
3026
|
+
.flexbox-fix:last-child {
|
|
3027
|
+
display: none !important;
|
|
3045
3028
|
}
|
|
3029
|
+
}
|
|
3046
3030
|
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3031
|
+
&-no-box {
|
|
3032
|
+
&>div:first-child {
|
|
3033
|
+
display: none;
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
&-no-hue {
|
|
3038
|
+
&>div:last-child {
|
|
3039
|
+
.flexbox-fix:first-child {
|
|
3040
|
+
&>div:last-child {
|
|
3041
|
+
&>div:first-child {
|
|
3042
|
+
display: none;
|
|
3043
|
+
}
|
|
3052
3044
|
|
|
3053
|
-
|
|
3054
|
-
margin-
|
|
3045
|
+
&>div:last-child {
|
|
3046
|
+
margin-top: 8px;
|
|
3047
|
+
}
|
|
3055
3048
|
}
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3056
3052
|
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
right: 0;
|
|
3065
|
-
left: unset !important;
|
|
3066
|
-
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.20);
|
|
3067
|
-
border-radius: 2px;
|
|
3068
|
-
}
|
|
3053
|
+
&-no-opacity {
|
|
3054
|
+
&>div:last-child {
|
|
3055
|
+
.flexbox-fix:first-child {
|
|
3056
|
+
&>div:last-child {
|
|
3057
|
+
&>div:last-child {
|
|
3058
|
+
display: none;
|
|
3059
|
+
}
|
|
3069
3060
|
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
justify-content: center;
|
|
3074
|
-
min-width: unset;
|
|
3075
|
-
}
|
|
3076
|
-
}
|
|
3061
|
+
&>div:first-child {
|
|
3062
|
+
margin-top: 8px;
|
|
3063
|
+
}
|
|
3077
3064
|
}
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3078
3069
|
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
height: @color-picker-panel-select-sizing-height;
|
|
3083
|
-
min-height: 28px;
|
|
3084
|
-
margin-top: -2px;
|
|
3070
|
+
.@{color-picker-prefix-cls}-panel-chrome-no-box.@{color-picker-prefix-cls}-panel-chrome-no-hue.@{color-picker-prefix-cls}-panel-chrome-no-opacity {
|
|
3071
|
+
display: none;
|
|
3072
|
+
}
|
|
3085
3073
|
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3074
|
+
.@{color-picker-prefix-cls}-panel-chrome-no-hue.@{color-picker-prefix-cls}-panel-chrome-no-opacity {
|
|
3075
|
+
&>div:last-child {
|
|
3076
|
+
display: none;
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3090
3079
|
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3080
|
+
&-switch {
|
|
3081
|
+
margin: 12px 0 0;
|
|
3082
|
+
font-size: 12px;
|
|
3083
|
+
color: #666666;
|
|
3084
|
+
letter-spacing: 0;
|
|
3085
|
+
line-height: 16px;
|
|
3086
|
+
font-weight: 400;
|
|
3087
|
+
|
|
3088
|
+
span {
|
|
3089
|
+
vertical-align: middle;
|
|
3090
|
+
margin-right: 9px;
|
|
3091
|
+
}
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
&-input {
|
|
3095
|
+
display: inline-block;
|
|
3096
|
+
position: relative;
|
|
3097
|
+
margin-top: 12px;
|
|
3098
|
+
font-size: @color-picker-panel-select-font-size;
|
|
3099
|
+
|
|
3100
|
+
&-no-recommend {
|
|
3101
|
+
margin-bottom: 8px;
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
.@{kd-prefix}-select {
|
|
3105
|
+
|
|
3106
|
+
&.bottomLeft,
|
|
3107
|
+
&.topLeft {
|
|
3108
|
+
position: absolute;
|
|
3109
|
+
width: 60px !important;
|
|
3110
|
+
background: #FFFFFF;
|
|
3111
|
+
right: 0;
|
|
3112
|
+
left: unset !important;
|
|
3113
|
+
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.20);
|
|
3114
|
+
border-radius: 2px;
|
|
3094
3115
|
}
|
|
3095
3116
|
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
}
|
|
3103
|
-
|
|
3104
|
-
&-colorDivContainer {
|
|
3105
|
-
display: grid;
|
|
3106
|
-
grid-template-columns: repeat(12, 1fr);
|
|
3107
|
-
grid-column-gap: 8px;
|
|
3108
|
-
grid-row-gap: 8px;
|
|
3109
|
-
margin-top: 12px;
|
|
3110
|
-
|
|
3111
|
-
li {
|
|
3112
|
-
position: relative;
|
|
3113
|
-
box-sizing: border-box;
|
|
3114
|
-
width: @color-picker-panel-preset-sizing-width;
|
|
3115
|
-
height: @color-picker-panel-preset-sizing-height;
|
|
3116
|
-
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
3117
|
-
border-radius: 2px;
|
|
3118
|
-
list-style: none;
|
|
3119
|
-
cursor: pointer;
|
|
3120
|
-
|
|
3121
|
-
.square {
|
|
3122
|
-
display: none;
|
|
3123
|
-
position: absolute;
|
|
3124
|
-
box-sizing: inherit;
|
|
3125
|
-
top: -3px;
|
|
3126
|
-
left: -3px;
|
|
3127
|
-
width: calc(@color-picker-panel-preset-sizing-width + 4px);
|
|
3128
|
-
height: calc(@color-picker-panel-preset-sizing-height + 4px);
|
|
3129
|
-
border: 1px solid rgba(178, 178, 176, 1);
|
|
3130
|
-
border-radius: 4px;
|
|
3131
|
-
|
|
3132
|
-
&-click {
|
|
3133
|
-
display: block;
|
|
3134
|
-
box-shadow: 0 0 0 1px #e5e5e5 !important;
|
|
3135
|
-
}
|
|
3136
|
-
}
|
|
3117
|
+
.@{kd-prefix}-select-dropdown {
|
|
3118
|
+
.@{kd-prefix}-select-item-option {
|
|
3119
|
+
display: flex;
|
|
3120
|
+
justify-content: center;
|
|
3121
|
+
min-width: unset;
|
|
3122
|
+
}
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3137
3125
|
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3126
|
+
.@{kd-prefix}-select-bordered {
|
|
3127
|
+
border-radius: 2px;
|
|
3128
|
+
width: @color-picker-panel-select-sizing-width;
|
|
3129
|
+
height: @color-picker-panel-select-sizing-height;
|
|
3130
|
+
min-height: 28px;
|
|
3131
|
+
margin-top: -2px;
|
|
3132
|
+
|
|
3133
|
+
.@{kd-prefix}-select-placeholder {
|
|
3134
|
+
left: 8px;
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3138
|
+
.active-option {
|
|
3139
|
+
background-color: #E3EBFF;
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
|
|
3143
|
+
&-transparent {
|
|
3144
|
+
width: 60px;
|
|
3145
|
+
height: 28px;
|
|
3146
|
+
margin-left: 8px;
|
|
3147
|
+
text-align: center;
|
|
3148
|
+
font-size: @color-picker-panel-alpha-font-size;
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
&-colorDivContainer {
|
|
3152
|
+
display: grid;
|
|
3153
|
+
grid-template-columns: repeat(12, 1fr);
|
|
3154
|
+
grid-column-gap: 8px;
|
|
3155
|
+
grid-row-gap: 8px;
|
|
3156
|
+
margin-top: 12px;
|
|
3157
|
+
|
|
3158
|
+
li {
|
|
3159
|
+
position: relative;
|
|
3160
|
+
box-sizing: border-box;
|
|
3161
|
+
width: @color-picker-panel-preset-sizing-width;
|
|
3162
|
+
height: @color-picker-panel-preset-sizing-height;
|
|
3163
|
+
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
3164
|
+
border-radius: 2px;
|
|
3165
|
+
list-style: none;
|
|
3166
|
+
cursor: pointer;
|
|
3167
|
+
|
|
3168
|
+
.square {
|
|
3169
|
+
display: none;
|
|
3170
|
+
position: absolute;
|
|
3171
|
+
box-sizing: inherit;
|
|
3172
|
+
top: -3px;
|
|
3173
|
+
left: -3px;
|
|
3174
|
+
width: calc(@color-picker-panel-preset-sizing-width + 4px);
|
|
3175
|
+
height: calc(@color-picker-panel-preset-sizing-height + 4px);
|
|
3176
|
+
border: 1px solid rgba(178, 178, 176, 1);
|
|
3177
|
+
border-radius: 4px;
|
|
3178
|
+
|
|
3179
|
+
&-click {
|
|
3180
|
+
display: block;
|
|
3181
|
+
box-shadow: 0 0 0 1px #e5e5e5 !important;
|
|
3182
|
+
}
|
|
3144
3183
|
}
|
|
3184
|
+
|
|
3185
|
+
&:hover {
|
|
3186
|
+
.square {
|
|
3187
|
+
display: block;
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3145
3191
|
}
|
|
3192
|
+
}
|
|
3146
3193
|
}
|
|
3147
3194
|
|
|
3195
|
+
|
|
3148
3196
|
// code component mixin here
|
|
3149
3197
|
.test() {
|
|
3150
3198
|
display: inline;
|
|
@@ -5654,7 +5702,7 @@ textarea {
|
|
|
5654
5702
|
.underline;
|
|
5655
5703
|
}
|
|
5656
5704
|
|
|
5657
|
-
&-focused {
|
|
5705
|
+
&-focused:not(.@{input-prefix-cls}-error) {
|
|
5658
5706
|
border-color: @input-border-color-focused;
|
|
5659
5707
|
}
|
|
5660
5708
|
|
|
@@ -5810,13 +5858,20 @@ textarea {
|
|
|
5810
5858
|
&-input-mark-inner {
|
|
5811
5859
|
color: @input-placeholder-color-inner;
|
|
5812
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
|
+
}
|
|
5813
5865
|
}
|
|
5814
5866
|
|
|
5815
5867
|
|
|
5816
5868
|
|
|
5869
|
+
@input-prefix-cls: ~'@{kd-prefix}-input';
|
|
5870
|
+
|
|
5817
5871
|
// 输入框默认样式Mixins
|
|
5818
5872
|
.input(@prefix) {
|
|
5819
5873
|
@disabled-prefix-cls: ~'@{prefix}-disabled';
|
|
5874
|
+
@error-prefix-cls: ~'@{input-prefix-cls}-error';
|
|
5820
5875
|
width: 100%;
|
|
5821
5876
|
min-width: 0;
|
|
5822
5877
|
border: @input-border-width-inner solid @input-border-color-disabled-inner;
|
|
@@ -5843,10 +5898,10 @@ textarea {
|
|
|
5843
5898
|
box-shadow: none;
|
|
5844
5899
|
outline: none;
|
|
5845
5900
|
}
|
|
5846
|
-
&:not(.@{disabled-prefix-cls}):hover {
|
|
5901
|
+
&:not(.@{disabled-prefix-cls}):not(.@{error-prefix-cls}):hover {
|
|
5847
5902
|
border-color: @input-border-color-focused;
|
|
5848
5903
|
}
|
|
5849
|
-
&:not(.@{disabled-prefix-cls}):focus {
|
|
5904
|
+
&:not(.@{disabled-prefix-cls}):not(.@{error-prefix-cls}):focus {
|
|
5850
5905
|
color: @input-focus-color;
|
|
5851
5906
|
border-color: @input-border-color-focused;
|
|
5852
5907
|
}
|
|
@@ -5908,6 +5963,7 @@ textarea {
|
|
|
5908
5963
|
);
|
|
5909
5964
|
@input-color-disabled-inner: var(~'@{input-prefix}-color-disabled', @color-disabled);
|
|
5910
5965
|
@input-affix-color: var(~'@{input-prefix}-affix-color-text', #666);
|
|
5966
|
+
@input-error-color: var(~'@{input-prefix}-color-error', @color-error);
|
|
5911
5967
|
|
|
5912
5968
|
// font
|
|
5913
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.5
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -6108,6 +6108,27 @@ template {
|
|
|
6108
6108
|
.kd-color-picker-pop .kd-color-picker-panel-chrome > div:last-child .flexbox-fix:last-child {
|
|
6109
6109
|
display: none !important;
|
|
6110
6110
|
}
|
|
6111
|
+
.kd-color-picker-pop .kd-color-picker-panel-chrome-no-box > div:first-child {
|
|
6112
|
+
display: none;
|
|
6113
|
+
}
|
|
6114
|
+
.kd-color-picker-pop .kd-color-picker-panel-chrome-no-hue > div:last-child .flexbox-fix:first-child > div:last-child > div:first-child {
|
|
6115
|
+
display: none;
|
|
6116
|
+
}
|
|
6117
|
+
.kd-color-picker-pop .kd-color-picker-panel-chrome-no-hue > div:last-child .flexbox-fix:first-child > div:last-child > div:last-child {
|
|
6118
|
+
margin-top: 8px;
|
|
6119
|
+
}
|
|
6120
|
+
.kd-color-picker-pop .kd-color-picker-panel-chrome-no-opacity > div:last-child .flexbox-fix:first-child > div:last-child > div:last-child {
|
|
6121
|
+
display: none;
|
|
6122
|
+
}
|
|
6123
|
+
.kd-color-picker-pop .kd-color-picker-panel-chrome-no-opacity > div:last-child .flexbox-fix:first-child > div:last-child > div:first-child {
|
|
6124
|
+
margin-top: 8px;
|
|
6125
|
+
}
|
|
6126
|
+
.kd-color-picker-pop .kd-color-picker-panel .kd-color-picker-panel-chrome-no-box.kd-color-picker-panel-chrome-no-hue.kd-color-picker-panel-chrome-no-opacity {
|
|
6127
|
+
display: none;
|
|
6128
|
+
}
|
|
6129
|
+
.kd-color-picker-pop .kd-color-picker-panel .kd-color-picker-panel-chrome-no-hue.kd-color-picker-panel-chrome-no-opacity > div:last-child {
|
|
6130
|
+
display: none;
|
|
6131
|
+
}
|
|
6111
6132
|
.kd-color-picker-pop .kd-color-picker-panel-switch {
|
|
6112
6133
|
margin: 12px 0 0;
|
|
6113
6134
|
font-size: 12px;
|
|
@@ -9693,10 +9714,10 @@ textarea {
|
|
|
9693
9714
|
box-shadow: none;
|
|
9694
9715
|
outline: none;
|
|
9695
9716
|
}
|
|
9696
|
-
.kd-input:not(.kd-input-disabled):hover {
|
|
9717
|
+
.kd-input:not(.kd-input-disabled):not(.kd-input-error):hover {
|
|
9697
9718
|
border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
|
|
9698
9719
|
}
|
|
9699
|
-
.kd-input:not(.kd-input-disabled):focus {
|
|
9720
|
+
.kd-input:not(.kd-input-disabled):not(.kd-input-error):focus {
|
|
9700
9721
|
color: #212121;
|
|
9701
9722
|
border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
|
|
9702
9723
|
}
|
|
@@ -9740,10 +9761,10 @@ textarea {
|
|
|
9740
9761
|
box-shadow: none;
|
|
9741
9762
|
outline: none;
|
|
9742
9763
|
}
|
|
9743
|
-
.kd-input-textarea:not(.kd-input-disabled):hover {
|
|
9764
|
+
.kd-input-textarea:not(.kd-input-disabled):not(.kd-input-error):hover {
|
|
9744
9765
|
border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
|
|
9745
9766
|
}
|
|
9746
|
-
.kd-input-textarea:not(.kd-input-disabled):focus {
|
|
9767
|
+
.kd-input-textarea:not(.kd-input-disabled):not(.kd-input-error):focus {
|
|
9747
9768
|
color: #212121;
|
|
9748
9769
|
border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
|
|
9749
9770
|
}
|
|
@@ -9847,10 +9868,10 @@ textarea {
|
|
|
9847
9868
|
box-shadow: none;
|
|
9848
9869
|
outline: none;
|
|
9849
9870
|
}
|
|
9850
|
-
.kd-input-wrapper:not(.kd-input-wrapper-disabled):hover {
|
|
9871
|
+
.kd-input-wrapper:not(.kd-input-wrapper-disabled):not(.kd-input-error):hover {
|
|
9851
9872
|
border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
|
|
9852
9873
|
}
|
|
9853
|
-
.kd-input-wrapper:not(.kd-input-wrapper-disabled):focus {
|
|
9874
|
+
.kd-input-wrapper:not(.kd-input-wrapper-disabled):not(.kd-input-error):focus {
|
|
9854
9875
|
color: #212121;
|
|
9855
9876
|
border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
|
|
9856
9877
|
}
|
|
@@ -9910,7 +9931,7 @@ textarea {
|
|
|
9910
9931
|
border-radius: 0 !important;
|
|
9911
9932
|
padding-left: 0;
|
|
9912
9933
|
}
|
|
9913
|
-
.kd-input-wrapper-focused {
|
|
9934
|
+
.kd-input-wrapper-focused:not(.kd-input-error) {
|
|
9914
9935
|
border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
|
|
9915
9936
|
}
|
|
9916
9937
|
.kd-input-wrapper-disabled {
|
|
@@ -9955,10 +9976,10 @@ textarea {
|
|
|
9955
9976
|
box-shadow: none;
|
|
9956
9977
|
outline: none;
|
|
9957
9978
|
}
|
|
9958
|
-
.kd-input-wrapper-textarea:not(.kd-input-disabled):hover {
|
|
9979
|
+
.kd-input-wrapper-textarea:not(.kd-input-disabled):not(.kd-input-error):hover {
|
|
9959
9980
|
border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
|
|
9960
9981
|
}
|
|
9961
|
-
.kd-input-wrapper-textarea:not(.kd-input-disabled):focus {
|
|
9982
|
+
.kd-input-wrapper-textarea:not(.kd-input-disabled):not(.kd-input-error):focus {
|
|
9962
9983
|
color: #212121;
|
|
9963
9984
|
border-color: var(--kd-c-input-color-border-focused, var(--kd-g-color-theme, #5582f3));
|
|
9964
9985
|
}
|
|
@@ -10084,6 +10105,9 @@ textarea {
|
|
|
10084
10105
|
.kd-input-input-mark-inner {
|
|
10085
10106
|
color: var(--kd-c-input-placeholder-color-text, var(--kd-g-color-text-placeholder, #ccc));
|
|
10086
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
|
+
}
|
|
10087
10111
|
|
|
10088
10112
|
/* ----------- color ——————---- start */
|
|
10089
10113
|
/* ----------- color ——————---- end */
|