@kdcloudjs/kdesign 1.6.40 → 1.7.1
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 +32 -0
- package/dist/default-theme.js +4 -5
- package/dist/kdesign-complete.less +806 -35
- package/dist/kdesign.css +1051 -35
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +59352 -40542
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +3 -3
- package/dist/kdesign.min.js +9 -9
- package/dist/kdesign.min.js.map +1 -1
- package/es/alert/style/index.css +2 -0
- package/es/anchor/style/index.css +2 -0
- package/es/avatar/style/index.css +2 -0
- package/es/badge/style/index.css +2 -0
- package/es/base-data/style/index.css +2 -0
- package/es/button/style/index.css +2 -0
- package/es/card/style/index.css +2 -0
- package/es/carousel/style/index.css +2 -0
- package/es/cascader/cascader.js +14 -3
- package/es/cascader/style/index.css +2 -0
- package/es/cascader/util.js +13 -4
- package/es/checkbox/style/index.css +2 -0
- package/es/city-picker/style/index.css +2 -0
- package/es/collapse/style/index.css +2 -0
- package/es/color-picker/color-picker-panel.d.ts +4 -0
- package/es/color-picker/color-picker-panel.js +239 -0
- package/es/color-picker/color-picker.d.ts +4 -0
- package/es/color-picker/color-picker.js +201 -0
- package/es/color-picker/constant/colorTypes.d.ts +4 -0
- package/es/color-picker/constant/colorTypes.js +13 -0
- package/es/color-picker/constant/defaultColor.d.ts +1 -0
- package/es/color-picker/constant/defaultColor.js +1 -0
- package/es/color-picker/constant/systemPresetColor.d.ts +1 -0
- package/es/color-picker/constant/systemPresetColor.js +1 -0
- package/es/color-picker/index.d.ts +3 -0
- package/es/color-picker/index.js +3 -0
- package/es/color-picker/interface.d.ts +64 -0
- package/es/color-picker/interface.js +3 -0
- package/es/color-picker/style/css.js +2 -0
- package/es/color-picker/style/index.css +317 -0
- package/es/color-picker/style/index.d.ts +2 -0
- package/es/color-picker/style/index.js +2 -0
- package/es/color-picker/style/index.less +253 -0
- package/es/color-picker/style/mixin.less +5 -0
- package/es/color-picker/style/token.less +22 -0
- package/es/color-picker/utils/colorFormat.d.ts +18 -0
- package/es/color-picker/utils/colorFormat.js +153 -0
- package/es/color-picker/utils/convertLetters.d.ts +1 -0
- package/es/color-picker/utils/convertLetters.js +12 -0
- package/es/color-picker/utils/hooks/useOnClickOutside.d.ts +2 -0
- package/es/color-picker/utils/hooks/useOnClickOutside.js +16 -0
- package/es/color-picker/utils/validateColor.d.ts +1 -0
- package/es/color-picker/utils/validateColor.js +24 -0
- package/es/config-provider/compDefaultProps.d.ts +25 -0
- package/es/config-provider/compDefaultProps.js +29 -0
- package/es/date-picker/style/index.css +2 -0
- package/es/drawer/style/index.css +2 -0
- package/es/dropdown/style/index.css +2 -0
- package/es/empty/style/index.css +2 -0
- package/es/filter/style/index.css +2 -0
- package/es/form/style/index.css +2 -0
- package/es/grid/style/index.css +2 -0
- package/es/icon/style/index.css +2 -0
- package/es/image/style/index.css +2 -0
- package/es/image-cropper/style/index.css +2 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/input/ClearableLabeledInput.js +8 -2
- package/es/input/input.js +1 -5
- package/es/input/style/index.css +2 -0
- package/es/input-number/style/index.css +2 -0
- package/es/layout/style/index.css +2 -0
- package/es/link/style/index.css +2 -0
- package/es/locale/locale.d.ts +4 -0
- package/es/locale/locale.js +6 -4
- package/es/locale/zh-CN.d.ts +1 -0
- package/es/locale/zh-CN.js +1 -0
- package/es/menu/style/index.css +2 -0
- package/es/message/style/index.css +2 -0
- package/es/modal/style/index.css +2 -0
- package/es/notification/style/index.css +2 -0
- package/es/pagination/style/index.css +116 -29
- package/es/pagination/style/index.less +38 -29
- package/es/popconfirm/style/index.css +2 -0
- package/es/progress/style/index.css +2 -0
- package/es/radio/style/index.css +2 -0
- package/es/rate/style/index.css +2 -0
- package/es/search/style/index.css +2 -0
- package/es/select/style/index.css +2 -0
- package/es/slider/style/index.css +2 -0
- package/es/space/style/index.css +2 -0
- package/es/spin/style/index.css +2 -0
- package/es/split-panel/style/index.css +2 -0
- package/es/stepper/style/index.css +2 -0
- package/es/steps/style/index.css +2 -0
- package/es/style/index.css +2 -0
- package/es/style/themes/default.less +10 -6
- package/es/switch/style/index.css +2 -0
- package/es/table/style/index.css +2 -0
- package/es/tabs/style/index.css +2 -0
- package/es/tag/style/index.css +2 -0
- package/es/timeline/style/index.css +2 -0
- package/es/tooltip/style/index.css +2 -0
- package/es/transfer/style/index.css +2 -0
- package/es/tree/style/index.css +2 -0
- package/es/tree/tree.d.ts +2 -1
- package/es/tree/tree.js +4 -3
- package/es/tree-select/index.d.ts +3 -0
- package/es/tree-select/index.js +3 -0
- package/es/tree-select/interface.d.ts +68 -0
- package/es/tree-select/interface.js +4 -0
- package/es/tree-select/style/css.js +2 -0
- package/es/tree-select/style/index.css +504 -0
- package/es/tree-select/style/index.d.ts +2 -0
- package/es/tree-select/style/index.js +2 -0
- package/es/tree-select/style/index.less +392 -0
- package/es/tree-select/style/mixin.less +29 -0
- package/es/tree-select/style/token.less +54 -0
- package/es/tree-select/tree-select.d.ts +4 -0
- package/es/tree-select/tree-select.js +506 -0
- package/es/typography/style/index.css +2 -0
- package/es/upload/style/index.css +2 -0
- package/lib/alert/style/index.css +2 -0
- package/lib/anchor/style/index.css +2 -0
- package/lib/avatar/style/index.css +2 -0
- package/lib/badge/style/index.css +2 -0
- package/lib/base-data/style/index.css +2 -0
- package/lib/button/style/index.css +2 -0
- package/lib/card/style/index.css +2 -0
- package/lib/carousel/style/index.css +2 -0
- package/lib/cascader/cascader.js +14 -3
- package/lib/cascader/style/index.css +2 -0
- package/lib/cascader/util.js +13 -4
- package/lib/checkbox/style/index.css +2 -0
- package/lib/city-picker/style/index.css +2 -0
- package/lib/collapse/style/index.css +2 -0
- package/lib/color-picker/color-picker-panel.d.ts +4 -0
- package/lib/color-picker/color-picker-panel.js +253 -0
- package/lib/color-picker/color-picker.d.ts +4 -0
- package/lib/color-picker/color-picker.js +214 -0
- package/lib/color-picker/constant/colorTypes.d.ts +4 -0
- package/lib/color-picker/constant/colorTypes.js +20 -0
- package/lib/color-picker/constant/defaultColor.d.ts +1 -0
- package/lib/color-picker/constant/defaultColor.js +8 -0
- package/lib/color-picker/constant/systemPresetColor.d.ts +1 -0
- package/lib/color-picker/constant/systemPresetColor.js +8 -0
- package/lib/color-picker/index.d.ts +3 -0
- package/lib/color-picker/index.js +27 -0
- package/lib/color-picker/interface.d.ts +64 -0
- package/lib/color-picker/interface.js +11 -0
- package/lib/color-picker/style/css.js +4 -0
- package/lib/color-picker/style/index.css +317 -0
- package/lib/color-picker/style/index.d.ts +2 -0
- package/lib/color-picker/style/index.js +4 -0
- package/lib/color-picker/style/index.less +253 -0
- package/lib/color-picker/style/mixin.less +5 -0
- package/lib/color-picker/style/token.less +22 -0
- package/lib/color-picker/utils/colorFormat.d.ts +18 -0
- package/lib/color-picker/utils/colorFormat.js +166 -0
- package/lib/color-picker/utils/convertLetters.d.ts +1 -0
- package/lib/color-picker/utils/convertLetters.js +18 -0
- package/lib/color-picker/utils/hooks/useOnClickOutside.d.ts +2 -0
- package/lib/color-picker/utils/hooks/useOnClickOutside.js +23 -0
- package/lib/color-picker/utils/validateColor.d.ts +1 -0
- package/lib/color-picker/utils/validateColor.js +30 -0
- package/lib/config-provider/compDefaultProps.d.ts +25 -0
- package/lib/config-provider/compDefaultProps.js +29 -0
- package/lib/date-picker/style/index.css +2 -0
- package/lib/drawer/style/index.css +2 -0
- package/lib/dropdown/style/index.css +2 -0
- package/lib/empty/style/index.css +2 -0
- package/lib/filter/style/index.css +2 -0
- package/lib/form/style/index.css +2 -0
- package/lib/grid/style/index.css +2 -0
- package/lib/icon/style/index.css +2 -0
- package/lib/image/style/index.css +2 -0
- package/lib/image-cropper/style/index.css +2 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +14 -0
- package/lib/input/ClearableLabeledInput.js +8 -2
- package/lib/input/input.js +1 -5
- package/lib/input/style/index.css +2 -0
- package/lib/input-number/style/index.css +2 -0
- package/lib/layout/style/index.css +2 -0
- package/lib/link/style/index.css +2 -0
- package/lib/locale/locale.d.ts +4 -0
- package/lib/locale/locale.js +6 -4
- package/lib/locale/zh-CN.d.ts +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/menu/style/index.css +2 -0
- package/lib/message/style/index.css +2 -0
- package/lib/modal/style/index.css +2 -0
- package/lib/notification/style/index.css +2 -0
- package/lib/pagination/style/index.css +116 -29
- package/lib/pagination/style/index.less +38 -29
- package/lib/popconfirm/style/index.css +2 -0
- package/lib/progress/style/index.css +2 -0
- package/lib/radio/style/index.css +2 -0
- package/lib/rate/style/index.css +2 -0
- package/lib/search/style/index.css +2 -0
- package/lib/select/style/index.css +2 -0
- package/lib/slider/style/index.css +2 -0
- package/lib/space/style/index.css +2 -0
- package/lib/spin/style/index.css +2 -0
- package/lib/split-panel/style/index.css +2 -0
- package/lib/stepper/style/index.css +2 -0
- package/lib/steps/style/index.css +2 -0
- package/lib/style/components.less +2 -0
- package/lib/style/index.css +2 -0
- package/lib/style/themes/default.less +10 -6
- package/lib/switch/style/index.css +2 -0
- package/lib/table/style/index.css +2 -0
- package/lib/tabs/style/index.css +2 -0
- package/lib/tag/style/index.css +2 -0
- package/lib/timeline/style/index.css +2 -0
- package/lib/tooltip/style/index.css +2 -0
- package/lib/transfer/style/index.css +2 -0
- package/lib/tree/style/index.css +2 -0
- package/lib/tree/tree.d.ts +2 -1
- package/lib/tree/tree.js +4 -3
- package/lib/tree-select/index.d.ts +3 -0
- package/lib/tree-select/index.js +27 -0
- package/lib/tree-select/interface.d.ts +68 -0
- package/lib/tree-select/interface.js +13 -0
- package/lib/tree-select/style/css.js +4 -0
- package/lib/tree-select/style/index.css +504 -0
- package/lib/tree-select/style/index.d.ts +2 -0
- package/lib/tree-select/style/index.js +4 -0
- package/lib/tree-select/style/index.less +392 -0
- package/lib/tree-select/style/mixin.less +29 -0
- package/lib/tree-select/style/token.less +54 -0
- package/lib/tree-select/tree-select.d.ts +4 -0
- package/lib/tree-select/tree-select.js +519 -0
- package/lib/typography/style/index.css +2 -0
- package/lib/upload/style/index.css +2 -0
- package/package.json +5 -1
|
@@ -2891,6 +2891,287 @@
|
|
|
2891
2891
|
|
|
2892
2892
|
|
|
2893
2893
|
|
|
2894
|
+
@color-picker-prefix-cls: ~'@{kd-prefix}-color-picker';
|
|
2895
|
+
|
|
2896
|
+
.@{color-picker-prefix-cls}-container {
|
|
2897
|
+
position: relative;
|
|
2898
|
+
|
|
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
|
+
|
|
2906
|
+
.@{color-picker-prefix-cls}-icon-container {
|
|
2907
|
+
position: absolute;
|
|
2908
|
+
top: 3px;
|
|
2909
|
+
right: 6px;
|
|
2910
|
+
cursor: pointer;
|
|
2911
|
+
|
|
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
|
+
|
|
2921
|
+
&-underline {
|
|
2922
|
+
margin-right: -6px;
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2925
|
+
&-up {
|
|
2926
|
+
.kdicon-arrow-down {
|
|
2927
|
+
transform: rotate(180deg);
|
|
2928
|
+
transition: transform @transition-duration-quickly ease-in-out;
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
&-down {
|
|
2933
|
+
.kdicon-arrow-down {
|
|
2934
|
+
transform: rotate(0deg);
|
|
2935
|
+
transition: transform @transition-duration-quickly ease-in-out;
|
|
2936
|
+
}
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
.@{color-picker-prefix-cls}-pop {
|
|
2944
|
+
|
|
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
|
+
|
|
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
|
+
}
|
|
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
|
+
}
|
|
3023
|
+
|
|
3024
|
+
}
|
|
3025
|
+
|
|
3026
|
+
.flexbox-fix:last-child {
|
|
3027
|
+
display: none !important;
|
|
3028
|
+
}
|
|
3029
|
+
}
|
|
3030
|
+
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
&-switch {
|
|
3034
|
+
margin: 12px 0 0;
|
|
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
|
+
}
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3047
|
+
&-input {
|
|
3048
|
+
display: inline-block;
|
|
3049
|
+
position: relative;
|
|
3050
|
+
margin-top: 12px;
|
|
3051
|
+
font-size: @color-picker-panel-select-font-size;
|
|
3052
|
+
|
|
3053
|
+
&-no-recommend {
|
|
3054
|
+
margin-bottom: 8px;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
.@{kd-prefix}-select {
|
|
3058
|
+
|
|
3059
|
+
&.bottomLeft,
|
|
3060
|
+
&.topLeft {
|
|
3061
|
+
position: absolute;
|
|
3062
|
+
width: 60px !important;
|
|
3063
|
+
background: #FFFFFF;
|
|
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
|
+
}
|
|
3069
|
+
|
|
3070
|
+
.@{kd-prefix}-select-dropdown {
|
|
3071
|
+
overflow: hidden;
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
.@{kd-prefix}-select-bordered {
|
|
3076
|
+
border-radius: 2px;
|
|
3077
|
+
width: @color-picker-panel-select-sizing-width;
|
|
3078
|
+
height: @color-picker-panel-select-sizing-height;
|
|
3079
|
+
min-height: 28px;
|
|
3080
|
+
margin-top: -2px;
|
|
3081
|
+
|
|
3082
|
+
.@{kd-prefix}-select-placeholder {
|
|
3083
|
+
left: 8px;
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
.active-option {
|
|
3088
|
+
background-color: #E3EBFF;
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
&-transparent {
|
|
3093
|
+
width: 60px;
|
|
3094
|
+
height: 28px;
|
|
3095
|
+
margin-left: 8px;
|
|
3096
|
+
text-align: center;
|
|
3097
|
+
font-size: @color-picker-panel-alpha-font-size;
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
&-colorDivContainer {
|
|
3101
|
+
display: grid;
|
|
3102
|
+
grid-template-columns: repeat(12, 1fr);
|
|
3103
|
+
grid-column-gap: 8px;
|
|
3104
|
+
grid-row-gap: 8px;
|
|
3105
|
+
margin-top: 12px;
|
|
3106
|
+
|
|
3107
|
+
li {
|
|
3108
|
+
position: relative;
|
|
3109
|
+
box-sizing: border-box;
|
|
3110
|
+
width: @color-picker-panel-preset-sizing-width;
|
|
3111
|
+
height: @color-picker-panel-preset-sizing-height;
|
|
3112
|
+
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
3113
|
+
border-radius: 2px;
|
|
3114
|
+
list-style: none;
|
|
3115
|
+
cursor: pointer;
|
|
3116
|
+
|
|
3117
|
+
.square {
|
|
3118
|
+
display: none;
|
|
3119
|
+
position: absolute;
|
|
3120
|
+
box-sizing: inherit;
|
|
3121
|
+
top: -3px;
|
|
3122
|
+
left: -3px;
|
|
3123
|
+
width: calc(@color-picker-panel-preset-sizing-width + 4px);
|
|
3124
|
+
height: calc(@color-picker-panel-preset-sizing-height + 4px);
|
|
3125
|
+
border: 1px solid rgba(178, 178, 176, 1);
|
|
3126
|
+
border-radius: 4px;
|
|
3127
|
+
|
|
3128
|
+
&-click {
|
|
3129
|
+
display: block;
|
|
3130
|
+
box-shadow: 0 0 0 1px #e5e5e5 !important;
|
|
3131
|
+
}
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
&:hover {
|
|
3135
|
+
.square {
|
|
3136
|
+
display: block;
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
// code component mixin here
|
|
3145
|
+
.test() {
|
|
3146
|
+
display: inline;
|
|
3147
|
+
}
|
|
3148
|
+
|
|
3149
|
+
|
|
3150
|
+
|
|
3151
|
+
@color-picker-custom-prefix: ~'--@{kd-prefix}-c-color-picker';
|
|
3152
|
+
|
|
3153
|
+
// z-index
|
|
3154
|
+
@color-picker-panel-z-index: var(~'@{color-picker-custom-prefix}-panel-z-index', @z-index-popper);
|
|
3155
|
+
|
|
3156
|
+
// font
|
|
3157
|
+
@color-picker-input-font-size: var(~'@{color-picker-custom-prefix}-input-font-size', @font-size-middle);
|
|
3158
|
+
@color-picker-panel-select-font-size: var(~'@{color-picker-custom-prefix}-panel-select-font-size', @font-size-middle);
|
|
3159
|
+
@color-picker-panel-alpha-font-size: var(~'@{color-picker-custom-prefix}-panel-alpha-font-size', @font-size-middle);
|
|
3160
|
+
|
|
3161
|
+
// sizing
|
|
3162
|
+
@color-picker-input-sizing-width: var(~'@{color-picker-custom-prefix}-input-sizing-width', 230px);
|
|
3163
|
+
@color-picker-input-sizing-height: var(~'@{color-picker-custom-prefix}-input-sizing-height', 28px);
|
|
3164
|
+
@color-picker-input-suffix-sizing-width: var(~'@{color-picker-custom-prefix}-input-suffix-sizing-width', 20px);
|
|
3165
|
+
@color-picker-input-suffix-sizing-height: var(~'@{color-picker-custom-prefix}-input-suffix-sizing-height', 20px);
|
|
3166
|
+
@color-picker-panel-sizing-width: var(~'@{color-picker-custom-prefix}-panel-sizing-width', 304px);
|
|
3167
|
+
@color-picker-panel-select-sizing-width: var(~'@{color-picker-custom-prefix}-panel-select-sizing-width', 212px);
|
|
3168
|
+
@color-picker-panel-select-sizing-height: var(~'@{color-picker-custom-prefix}-panel-select-sizing-height', 28px);
|
|
3169
|
+
@color-picker-panel-preset-sizing-width: var(~'@{color-picker-custom-prefix}-panel-preset-sizing-width', 16px);
|
|
3170
|
+
@color-picker-panel-preset-sizing-height: var(~'@{color-picker-custom-prefix}-panel-preset-sizing-height', 16px);
|
|
3171
|
+
|
|
3172
|
+
|
|
3173
|
+
|
|
3174
|
+
|
|
2894
3175
|
|
|
2895
3176
|
@datePicker-prefix-cls: ~'@{kd-prefix}-date-picker';
|
|
2896
3177
|
@datePicker-prefix-cls-panel: ~'@{datePicker-prefix-cls}-panel';
|
|
@@ -7009,17 +7290,19 @@ textarea {
|
|
|
7009
7290
|
.reset-component;
|
|
7010
7291
|
color: @pagination-text-color;
|
|
7011
7292
|
font-size: @pagination-font-size;
|
|
7293
|
+
display: flex;
|
|
7294
|
+
align-items: center;
|
|
7012
7295
|
|
|
7013
7296
|
.@{pagination-prefix-cls}-total {
|
|
7014
|
-
display: inline-
|
|
7297
|
+
display: inline-flex;
|
|
7298
|
+
align-items: center;
|
|
7015
7299
|
margin-right: 12px;
|
|
7016
|
-
vertical-align: middle;
|
|
7017
7300
|
}
|
|
7018
7301
|
|
|
7019
7302
|
.@{pagination-prefix-cls}-current {
|
|
7020
|
-
display: inline-
|
|
7303
|
+
display: inline-flex;
|
|
7304
|
+
align-items: center;
|
|
7021
7305
|
margin-right: 12px;
|
|
7022
|
-
vertical-align: middle;
|
|
7023
7306
|
|
|
7024
7307
|
.@{pagination-prefix-cls}-current-input {
|
|
7025
7308
|
box-sizing: border-box;
|
|
@@ -7053,12 +7336,13 @@ textarea {
|
|
|
7053
7336
|
|
|
7054
7337
|
.@{pagination-action-prefix-cls} {
|
|
7055
7338
|
.reset-component;
|
|
7056
|
-
display: inline-
|
|
7057
|
-
|
|
7339
|
+
display: inline-flex;
|
|
7340
|
+
align-items: center;
|
|
7058
7341
|
|
|
7059
7342
|
.@{pagination-action-prefix-cls}-item {
|
|
7060
7343
|
.reset-component;
|
|
7061
|
-
display: inline-
|
|
7344
|
+
display: inline-flex;
|
|
7345
|
+
align-items: center;
|
|
7062
7346
|
|
|
7063
7347
|
&.bordered {
|
|
7064
7348
|
margin-right: calc(2 * @pagination-button-spacing);
|
|
@@ -7086,7 +7370,6 @@ textarea {
|
|
|
7086
7370
|
border-radius: @radius-border;
|
|
7087
7371
|
cursor: pointer;
|
|
7088
7372
|
outline: none;
|
|
7089
|
-
vertical-align: middle;
|
|
7090
7373
|
transition: border-color @duration-promptly;
|
|
7091
7374
|
|
|
7092
7375
|
&:hover,
|
|
@@ -7129,11 +7412,11 @@ textarea {
|
|
|
7129
7412
|
.@{pagination-selector-prefix-cls} {
|
|
7130
7413
|
.reset-component;
|
|
7131
7414
|
position: relative;
|
|
7132
|
-
display: inline-
|
|
7415
|
+
display: inline-flex;
|
|
7416
|
+
align-items: center;
|
|
7133
7417
|
margin-left: 20px;
|
|
7134
7418
|
outline: none;
|
|
7135
7419
|
height: @pagination-size;
|
|
7136
|
-
vertical-align: middle;
|
|
7137
7420
|
|
|
7138
7421
|
.@{pagination-selector-prefix-cls}-size {
|
|
7139
7422
|
box-sizing: border-box;
|
|
@@ -7210,11 +7493,11 @@ textarea {
|
|
|
7210
7493
|
|
|
7211
7494
|
&-item {
|
|
7212
7495
|
.reset-component;
|
|
7213
|
-
display: inline-block;
|
|
7214
7496
|
height: @pagination-size;
|
|
7215
7497
|
overflow: hidden;
|
|
7216
7498
|
margin: 0 8px;
|
|
7217
|
-
|
|
7499
|
+
display: inline-flex;
|
|
7500
|
+
align-items: center;
|
|
7218
7501
|
color: @color-text-primary;
|
|
7219
7502
|
|
|
7220
7503
|
&:first-child,
|
|
@@ -7224,7 +7507,6 @@ textarea {
|
|
|
7224
7507
|
|
|
7225
7508
|
.@{pagination-prefix-cls}-current {
|
|
7226
7509
|
margin-right: 2px;
|
|
7227
|
-
vertical-align: middle;
|
|
7228
7510
|
|
|
7229
7511
|
.@{pagination-prefix-cls}-current-input {
|
|
7230
7512
|
margin: 0;
|
|
@@ -7237,7 +7519,6 @@ textarea {
|
|
|
7237
7519
|
}
|
|
7238
7520
|
|
|
7239
7521
|
.@{pagination-prefix-cls}-total {
|
|
7240
|
-
vertical-align: middle;
|
|
7241
7522
|
margin-right: 0;
|
|
7242
7523
|
}
|
|
7243
7524
|
|
|
@@ -7255,7 +7536,9 @@ textarea {
|
|
|
7255
7536
|
border-radius: @radius-border;
|
|
7256
7537
|
cursor: pointer;
|
|
7257
7538
|
outline: none;
|
|
7258
|
-
|
|
7539
|
+
display: inline-flex;
|
|
7540
|
+
align-items: center;
|
|
7541
|
+
justify-content: center;
|
|
7259
7542
|
transition: border-color @duration-promptly;
|
|
7260
7543
|
|
|
7261
7544
|
&:hover,
|
|
@@ -7303,9 +7586,9 @@ textarea {
|
|
|
7303
7586
|
&-item {
|
|
7304
7587
|
.reset-component;
|
|
7305
7588
|
position: relative;
|
|
7306
|
-
display: inline-
|
|
7589
|
+
display: inline-flex;
|
|
7590
|
+
align-items: center;
|
|
7307
7591
|
margin-right: @pagination-button-spacing;
|
|
7308
|
-
vertical-align: middle;
|
|
7309
7592
|
|
|
7310
7593
|
&:last-child {
|
|
7311
7594
|
margin-right: 0;
|
|
@@ -7354,6 +7637,9 @@ textarea {
|
|
|
7354
7637
|
border: none;
|
|
7355
7638
|
background: @color-background;
|
|
7356
7639
|
transition: color @duration-promptly, border-color @duration-promptly;
|
|
7640
|
+
display: inline-flex;
|
|
7641
|
+
align-items: center;
|
|
7642
|
+
justify-content: center;
|
|
7357
7643
|
|
|
7358
7644
|
&:disabled {
|
|
7359
7645
|
cursor: not-allowed;
|
|
@@ -7368,14 +7654,15 @@ textarea {
|
|
|
7368
7654
|
&.nicety {
|
|
7369
7655
|
.@{pagination-pages-prefix-cls} {
|
|
7370
7656
|
.reset-component;
|
|
7371
|
-
display: inline-
|
|
7657
|
+
display: inline-flex;
|
|
7658
|
+
align-items: center;
|
|
7372
7659
|
|
|
7373
7660
|
&-item {
|
|
7374
7661
|
.reset-component;
|
|
7375
7662
|
position: relative;
|
|
7376
|
-
display: inline-
|
|
7663
|
+
display: inline-flex;
|
|
7664
|
+
align-items: center;
|
|
7377
7665
|
margin-right: @pagination-button-spacing;
|
|
7378
|
-
vertical-align: middle;
|
|
7379
7666
|
|
|
7380
7667
|
&:last-child {
|
|
7381
7668
|
margin-right: 0;
|
|
@@ -7424,6 +7711,9 @@ textarea {
|
|
|
7424
7711
|
padding: 0 6px;
|
|
7425
7712
|
cursor: pointer;
|
|
7426
7713
|
outline: none;
|
|
7714
|
+
display: inline-flex;
|
|
7715
|
+
align-items: center;
|
|
7716
|
+
justify-content: center;
|
|
7427
7717
|
font-size: @pagination-font-size;
|
|
7428
7718
|
color: @color-text-primary;
|
|
7429
7719
|
border-radius: @radius-border;
|
|
@@ -7457,9 +7747,9 @@ textarea {
|
|
|
7457
7747
|
}
|
|
7458
7748
|
|
|
7459
7749
|
.@{pagination-jumper-prefix-cls} {
|
|
7460
|
-
display: inline-
|
|
7750
|
+
display: inline-flex;
|
|
7751
|
+
align-items: center;
|
|
7461
7752
|
margin-left: 4px;
|
|
7462
|
-
vertical-align: middle;
|
|
7463
7753
|
|
|
7464
7754
|
.@{pagination-jumper-prefix-cls}-input {
|
|
7465
7755
|
box-sizing: border-box;
|
|
@@ -7494,8 +7784,9 @@ textarea {
|
|
|
7494
7784
|
width: @pagination-size;
|
|
7495
7785
|
height: @pagination-size;
|
|
7496
7786
|
margin-left: @pagination-button-spacing;
|
|
7497
|
-
|
|
7498
|
-
|
|
7787
|
+
display: inline-flex;
|
|
7788
|
+
align-items: center;
|
|
7789
|
+
justify-content: center;
|
|
7499
7790
|
cursor: pointer;
|
|
7500
7791
|
outline: none;
|
|
7501
7792
|
color: @color-text-primary;
|
|
@@ -7525,25 +7816,24 @@ textarea {
|
|
|
7525
7816
|
.@{pagination-options-prefix-cls} {
|
|
7526
7817
|
.reset-component;
|
|
7527
7818
|
position: relative;
|
|
7528
|
-
display: inline-
|
|
7819
|
+
display: inline-flex;
|
|
7820
|
+
align-items: center;
|
|
7529
7821
|
margin-left: 22px;
|
|
7530
7822
|
outline: none;
|
|
7531
7823
|
height: @pagination-size;
|
|
7532
7824
|
color: @color-text-primary;
|
|
7533
|
-
vertical-align: middle;
|
|
7534
7825
|
|
|
7535
7826
|
.@{pagination-options-prefix-cls}-size {
|
|
7536
7827
|
position: relative;
|
|
7537
7828
|
box-sizing: border-box;
|
|
7538
|
-
display: inline-
|
|
7829
|
+
display: inline-flex;
|
|
7830
|
+
align-items: center;
|
|
7539
7831
|
min-width: 64px;
|
|
7540
7832
|
height: @pagination-size;
|
|
7541
7833
|
margin-right: 8px;
|
|
7542
7834
|
padding: 0 24px 0 4px;
|
|
7543
|
-
line-height: @pagination-size;
|
|
7544
7835
|
font-size: @pagination-font-size;
|
|
7545
7836
|
color: @color-text-primary;
|
|
7546
|
-
text-align: left;
|
|
7547
7837
|
border-radius: @radius-border;
|
|
7548
7838
|
border: @pagination-border-size solid @color-border-strong;
|
|
7549
7839
|
background: @color-background;
|
|
@@ -11667,7 +11957,6 @@ template {
|
|
|
11667
11957
|
list-style: none;
|
|
11668
11958
|
font-feature-settings: @font-feature-settings;
|
|
11669
11959
|
}
|
|
11670
|
-
|
|
11671
11960
|
@kd-prefix: kd;
|
|
11672
11961
|
|
|
11673
11962
|
/* ----------- color ——————---- start */
|
|
@@ -11687,7 +11976,7 @@ template {
|
|
|
11687
11976
|
|
|
11688
11977
|
@theme-color-disabled: @theme-color-level3;
|
|
11689
11978
|
@theme-color-hover: @theme-color-level5;
|
|
11690
|
-
@theme-color-click: @theme-color-level7
|
|
11979
|
+
@theme-color-click: @theme-color-level7; // 点击色
|
|
11691
11980
|
@theme-color-active-light: @theme-color-level1; // 浅色选中
|
|
11692
11981
|
@theme-color-active-dark: @theme-color; // 深色选中
|
|
11693
11982
|
@hover-color: #f5f5f5; // 中性的悬停色
|
|
@@ -11737,9 +12026,9 @@ template {
|
|
|
11737
12026
|
/* ----------- color ——————---- end */
|
|
11738
12027
|
|
|
11739
12028
|
/* ----------- motion ——————---- start */
|
|
11740
|
-
@ease-out: cubic-bezier(0
|
|
11741
|
-
@ease-in: cubic-bezier(0.4,0,1,0.6);
|
|
11742
|
-
@ease: cubic-bezier(0.4,0,0.6,1);
|
|
12029
|
+
@ease-out: cubic-bezier(0, .4, .4, 1);
|
|
12030
|
+
@ease-in: cubic-bezier(0.4, 0, 1, 0.6);
|
|
12031
|
+
@ease: cubic-bezier(0.4, 0, 0.6, 1);
|
|
11743
12032
|
/* ----------- motion ——————---- end */
|
|
11744
12033
|
|
|
11745
12034
|
/* ----------- transition ——————---- start */
|
|
@@ -12157,6 +12446,11 @@ template {
|
|
|
12157
12446
|
@date-ranges-width: 160px;
|
|
12158
12447
|
|
|
12159
12448
|
/* ----------- DatePicker ——————---- end */
|
|
12449
|
+
|
|
12450
|
+
/* ----------- ColorPicker ——————---- start */
|
|
12451
|
+
|
|
12452
|
+
/* ----------- ColorPicker ——————---- end */
|
|
12453
|
+
|
|
12160
12454
|
/* ----------- Tree ——————---- start */
|
|
12161
12455
|
@tree-node-height: 28px;
|
|
12162
12456
|
@tree-font-size: @font-size;
|
|
@@ -12373,7 +12667,6 @@ template {
|
|
|
12373
12667
|
|
|
12374
12668
|
/* ----------- AdvancedSelector ——————---- end */
|
|
12375
12669
|
|
|
12376
|
-
|
|
12377
12670
|
@global-custom-prefix: '--@{kd-prefix}-g';
|
|
12378
12671
|
|
|
12379
12672
|
@color-theme: var(~'@{global-custom-prefix}-color-theme', @theme-color);
|
|
@@ -14163,6 +14456,484 @@ template {
|
|
|
14163
14456
|
|
|
14164
14457
|
|
|
14165
14458
|
|
|
14459
|
+
|
|
14460
|
+
@tree-select-prefix-cls: ~'@{kd-prefix}-tree-select';
|
|
14461
|
+
@tree-prefix-cls: ~'@{kd-prefix}-tree';
|
|
14462
|
+
|
|
14463
|
+
.@{tree-select-prefix-cls} {
|
|
14464
|
+
position: relative;
|
|
14465
|
+
display: inline-block;
|
|
14466
|
+
box-sizing: border-box;
|
|
14467
|
+
background-color: transparent;
|
|
14468
|
+
cursor: pointer;
|
|
14469
|
+
vertical-align: middle;
|
|
14470
|
+
|
|
14471
|
+
&-selector:hover {
|
|
14472
|
+
.@{tree-select-prefix-cls}-icon-active {
|
|
14473
|
+
color: #3761ca;
|
|
14474
|
+
}
|
|
14475
|
+
}
|
|
14476
|
+
&-visible {
|
|
14477
|
+
.@{tree-select-prefix-cls}-icon-active {
|
|
14478
|
+
color: #3761ca;
|
|
14479
|
+
}
|
|
14480
|
+
.@{tree-select-prefix-cls}-selection-item {
|
|
14481
|
+
color: @tree-select-placeholder-color;
|
|
14482
|
+
}
|
|
14483
|
+
}
|
|
14484
|
+
|
|
14485
|
+
&-icon {
|
|
14486
|
+
&-arrow {
|
|
14487
|
+
display: inline-flex;
|
|
14488
|
+
align-items: center;
|
|
14489
|
+
vertical-align: middle;
|
|
14490
|
+
&-up {
|
|
14491
|
+
transform: rotate(180deg);
|
|
14492
|
+
transition: transform calc(@transition-duration - 0.1s) @ease;
|
|
14493
|
+
}
|
|
14494
|
+
|
|
14495
|
+
&-down {
|
|
14496
|
+
transform: rotate(0deg);
|
|
14497
|
+
transition: transform calc(@transition-duration - 0.1s) @ease;
|
|
14498
|
+
}
|
|
14499
|
+
|
|
14500
|
+
&-focus {
|
|
14501
|
+
color: @tree-select-g-color-border-foucs;
|
|
14502
|
+
}
|
|
14503
|
+
}
|
|
14504
|
+
|
|
14505
|
+
&-clear {
|
|
14506
|
+
opacity: 0;
|
|
14507
|
+
z-index: 1;
|
|
14508
|
+
position: absolute;
|
|
14509
|
+
background: #fff;
|
|
14510
|
+
transition: opacity 0.15s ease;
|
|
14511
|
+
&:hover {
|
|
14512
|
+
color: @tree-select-g-color-border-hover;
|
|
14513
|
+
}
|
|
14514
|
+
}
|
|
14515
|
+
}
|
|
14516
|
+
|
|
14517
|
+
&-focused {
|
|
14518
|
+
.focusColor();
|
|
14519
|
+
}
|
|
14520
|
+
&-placeholder {
|
|
14521
|
+
position: absolute;
|
|
14522
|
+
color: @tree-select-placeholder-color;
|
|
14523
|
+
overflow: hidden;
|
|
14524
|
+
white-space: nowrap;
|
|
14525
|
+
text-overflow: ellipsis;
|
|
14526
|
+
right: 28px;
|
|
14527
|
+
left: 0;
|
|
14528
|
+
}
|
|
14529
|
+
|
|
14530
|
+
&-borderless {
|
|
14531
|
+
border: none;
|
|
14532
|
+
}
|
|
14533
|
+
|
|
14534
|
+
&-underline {
|
|
14535
|
+
border-bottom: 1px solid @tree-select-g-color-border;
|
|
14536
|
+
&:hover:not(.@{tree-select-prefix-cls}-multiple-disabled):not(.@{tree-select-prefix-cls}-single-disabled) {
|
|
14537
|
+
border-bottom: 1px solid @tree-select-g-color-border-hover;
|
|
14538
|
+
}
|
|
14539
|
+
}
|
|
14540
|
+
|
|
14541
|
+
&-bordered {
|
|
14542
|
+
border: 1px solid @tree-select-border-g-color-border;
|
|
14543
|
+
padding-left: @tree-select-bordered !important;
|
|
14544
|
+
border-radius: @tree-select-border-radius-border;
|
|
14545
|
+
&:hover:not(.@{tree-select-prefix-cls}-multiple-disabled):not(.@{tree-select-prefix-cls}-single-disabled) {
|
|
14546
|
+
border: 1px solid @tree-select-g-color-border-hover;
|
|
14547
|
+
}
|
|
14548
|
+
|
|
14549
|
+
.@{tree-select-prefix-cls}-suffix {
|
|
14550
|
+
padding-right: 8px;
|
|
14551
|
+
}
|
|
14552
|
+
|
|
14553
|
+
&.@{tree-select-prefix-cls}-single {
|
|
14554
|
+
.@{tree-select-prefix-cls}-selection-search {
|
|
14555
|
+
padding-left: @tree-select-bordered;
|
|
14556
|
+
}
|
|
14557
|
+
}
|
|
14558
|
+
|
|
14559
|
+
.@{tree-select-prefix-cls}-placeholder {
|
|
14560
|
+
padding-left: @tree-select-bordered;
|
|
14561
|
+
}
|
|
14562
|
+
}
|
|
14563
|
+
|
|
14564
|
+
&-wrapper {
|
|
14565
|
+
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
14566
|
+
padding: @tree-select-wrapper-padding;
|
|
14567
|
+
max-width: 100%;
|
|
14568
|
+
color: #212121;
|
|
14569
|
+
display: flex;
|
|
14570
|
+
flex-wrap: wrap;
|
|
14571
|
+
align-items: center;
|
|
14572
|
+
cursor: pointer;
|
|
14573
|
+
box-sizing: border-box;
|
|
14574
|
+
overflow-y: auto;
|
|
14575
|
+
overflow-x: hidden;
|
|
14576
|
+
position: relative;
|
|
14577
|
+
}
|
|
14578
|
+
|
|
14579
|
+
&-dropdown {
|
|
14580
|
+
display: block;
|
|
14581
|
+
left: 0;
|
|
14582
|
+
z-index: @tree-select-z-index;
|
|
14583
|
+
box-sizing: border-box;
|
|
14584
|
+
padding: 4px 0;
|
|
14585
|
+
margin: 0;
|
|
14586
|
+
overflow: auto;
|
|
14587
|
+
font-size: @tree-select-list-font-size;
|
|
14588
|
+
font-variant: initial;
|
|
14589
|
+
background-color: @tree-select-dropdown-bg;
|
|
14590
|
+
border-radius: @tree-select-g-radius-border;
|
|
14591
|
+
outline: none;
|
|
14592
|
+
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
14593
|
+
max-height: 200px;
|
|
14594
|
+
|
|
14595
|
+
.@{tree-prefix-cls} {
|
|
14596
|
+
padding-left: 16px;
|
|
14597
|
+
padding-right: 16px;
|
|
14598
|
+
}
|
|
14599
|
+
|
|
14600
|
+
|
|
14601
|
+
&-scroll {
|
|
14602
|
+
overflow-y: auto;
|
|
14603
|
+
}
|
|
14604
|
+
|
|
14605
|
+
&-empty {
|
|
14606
|
+
padding: 5px 12px;
|
|
14607
|
+
}
|
|
14608
|
+
|
|
14609
|
+
// 搜索框
|
|
14610
|
+
&-search {
|
|
14611
|
+
padding: 5px 6px;
|
|
14612
|
+
&-hidden {
|
|
14613
|
+
display: none;
|
|
14614
|
+
}
|
|
14615
|
+
}
|
|
14616
|
+
}
|
|
14617
|
+
|
|
14618
|
+
// 选择器框大小
|
|
14619
|
+
&-size-small {
|
|
14620
|
+
.select-input-size(@tree-select-small-height, @tree-select-small-height, @tree-select-small-line-height, @tree-select-small-font-size);
|
|
14621
|
+
}
|
|
14622
|
+
|
|
14623
|
+
&-size-middle {
|
|
14624
|
+
.select-input-size(@tree-select-middle-height, @tree-select-middle-height, @tree-select-middle-line-height, @tree-select-middle-font-size);
|
|
14625
|
+
}
|
|
14626
|
+
|
|
14627
|
+
&-size-large {
|
|
14628
|
+
.select-input-size(@tree-select-large-height, @tree-select-large-height, @tree-select-large-line-height, @tree-select-large-font-size);
|
|
14629
|
+
}
|
|
14630
|
+
|
|
14631
|
+
&-suffix {
|
|
14632
|
+
right: 0;
|
|
14633
|
+
position: absolute;
|
|
14634
|
+
display: flex;
|
|
14635
|
+
flex: 0;
|
|
14636
|
+
flex-wrap: wrap;
|
|
14637
|
+
align-items: center;
|
|
14638
|
+
justify-content: center;
|
|
14639
|
+
margin-left: 8px;
|
|
14640
|
+
}
|
|
14641
|
+
.@{tree-select-prefix-cls}-single {
|
|
14642
|
+
.@{tree-select-prefix-cls}-selection {
|
|
14643
|
+
&-search {
|
|
14644
|
+
position: absolute;
|
|
14645
|
+
right: 28px;
|
|
14646
|
+
left: 0;
|
|
14647
|
+
height: 100%;
|
|
14648
|
+
&-input {
|
|
14649
|
+
outline: 0;
|
|
14650
|
+
border-radius: 0;
|
|
14651
|
+
border: none;
|
|
14652
|
+
background: transparent;
|
|
14653
|
+
height: 100%;
|
|
14654
|
+
width: 100%;
|
|
14655
|
+
}
|
|
14656
|
+
}
|
|
14657
|
+
&-item {
|
|
14658
|
+
display: inline-block;
|
|
14659
|
+
.over();
|
|
14660
|
+
}
|
|
14661
|
+
}
|
|
14662
|
+
&-focused {
|
|
14663
|
+
.focusColor();
|
|
14664
|
+
}
|
|
14665
|
+
&-disabled {
|
|
14666
|
+
background-color: @tree-select-color-background-disabled;
|
|
14667
|
+
color: @tree-select-color-text-disabled;
|
|
14668
|
+
&:hover {
|
|
14669
|
+
cursor: not-allowed;
|
|
14670
|
+
}
|
|
14671
|
+
|
|
14672
|
+
.@{tree-select-prefix-cls}-suffix {
|
|
14673
|
+
color: @tree-select-arrow-icon-color-text-disabled;
|
|
14674
|
+
}
|
|
14675
|
+
}
|
|
14676
|
+
&:hover .@{tree-select-prefix-cls}-icon-clear {
|
|
14677
|
+
opacity: 1;
|
|
14678
|
+
}
|
|
14679
|
+
|
|
14680
|
+
.@{tree-select-prefix-cls}-icon-clear {
|
|
14681
|
+
color: @tree-select-clear-color;
|
|
14682
|
+
&:hover {
|
|
14683
|
+
color: @tree-select-clear-color-hover;
|
|
14684
|
+
}
|
|
14685
|
+
}
|
|
14686
|
+
&-text {
|
|
14687
|
+
color: @tree-select-single-color-text;
|
|
14688
|
+
.over();
|
|
14689
|
+
}
|
|
14690
|
+
&-disabled-text {
|
|
14691
|
+
color: @tree-select-color-text-disabled;
|
|
14692
|
+
}
|
|
14693
|
+
}
|
|
14694
|
+
|
|
14695
|
+
.@{tree-select-prefix-cls}-selection-item {
|
|
14696
|
+
display: inline-flex;
|
|
14697
|
+
box-sizing: border-box;
|
|
14698
|
+
align-items: center;
|
|
14699
|
+
vertical-align: middle;
|
|
14700
|
+
max-width: 100%;
|
|
14701
|
+
height: 20px;
|
|
14702
|
+
line-height: 20px;
|
|
14703
|
+
margin: 2px 8px 2px 0;
|
|
14704
|
+
cursor: default;
|
|
14705
|
+
user-select: none;
|
|
14706
|
+
&-small {
|
|
14707
|
+
height: 20px;
|
|
14708
|
+
line-height: 18px;
|
|
14709
|
+
font-size: 12px;
|
|
14710
|
+
}
|
|
14711
|
+
|
|
14712
|
+
&-middle {
|
|
14713
|
+
font-size: 12px;
|
|
14714
|
+
height: 20px;
|
|
14715
|
+
line-height: 18px;
|
|
14716
|
+
}
|
|
14717
|
+
|
|
14718
|
+
&-large {
|
|
14719
|
+
font-size: 14px;
|
|
14720
|
+
line-height: 22px;
|
|
14721
|
+
height: 22px;
|
|
14722
|
+
}
|
|
14723
|
+
|
|
14724
|
+
&-content {
|
|
14725
|
+
display: inline-flex;
|
|
14726
|
+
align-items: center;
|
|
14727
|
+
vertical-align: middle;
|
|
14728
|
+
padding: 0 7px;
|
|
14729
|
+
overflow: hidden;
|
|
14730
|
+
white-space: nowrap;
|
|
14731
|
+
text-overflow: ellipsis;
|
|
14732
|
+
border: 1px solid #ccc;
|
|
14733
|
+
color: #212121;
|
|
14734
|
+
}
|
|
14735
|
+
|
|
14736
|
+
&-span {
|
|
14737
|
+
position: relative;
|
|
14738
|
+
margin-left: 0.5px;
|
|
14739
|
+
box-sizing: border-box;
|
|
14740
|
+
}
|
|
14741
|
+
&-input {
|
|
14742
|
+
cursor: text;
|
|
14743
|
+
margin: 0;
|
|
14744
|
+
padding: 0;
|
|
14745
|
+
background: 0 0;
|
|
14746
|
+
border: none;
|
|
14747
|
+
outline: none;
|
|
14748
|
+
appearance: none;
|
|
14749
|
+
width: 100%;
|
|
14750
|
+
min-width: 20px;
|
|
14751
|
+
}
|
|
14752
|
+
}
|
|
14753
|
+
|
|
14754
|
+
// 多选
|
|
14755
|
+
&-multiple {
|
|
14756
|
+
.@{tree-select-prefix-cls}-selection {
|
|
14757
|
+
&-tag {
|
|
14758
|
+
max-width: calc(100% - 5px);
|
|
14759
|
+
|
|
14760
|
+
.@{kd-prefix}-tag {
|
|
14761
|
+
margin: 2px 8px 2px 0;
|
|
14762
|
+
max-width: 100%;
|
|
14763
|
+
}
|
|
14764
|
+
}
|
|
14765
|
+
&-search {
|
|
14766
|
+
position: relative;
|
|
14767
|
+
max-width: 100%;
|
|
14768
|
+
&-input {
|
|
14769
|
+
outline: 0;
|
|
14770
|
+
border-radius: 0;
|
|
14771
|
+
border: none;
|
|
14772
|
+
background: transparent;
|
|
14773
|
+
width: 100%;
|
|
14774
|
+
}
|
|
14775
|
+
&-mirror {
|
|
14776
|
+
position: absolute;
|
|
14777
|
+
top: 0;
|
|
14778
|
+
left: 0;
|
|
14779
|
+
z-index: 999;
|
|
14780
|
+
white-space: pre;
|
|
14781
|
+
visibility: hidden;
|
|
14782
|
+
}
|
|
14783
|
+
}
|
|
14784
|
+
}
|
|
14785
|
+
&-disabled {
|
|
14786
|
+
cursor: not-allowed;
|
|
14787
|
+
background-color: @tree-select-color-background-disabled;
|
|
14788
|
+
color: @tree-select-color-text-disabled;
|
|
14789
|
+
|
|
14790
|
+
.@{tree-select-prefix-cls}-suffix {
|
|
14791
|
+
color: @tree-select-arrow-icon-color-text-disabled;
|
|
14792
|
+
}
|
|
14793
|
+
}
|
|
14794
|
+
&:hover .@{tree-select-prefix-cls}-icon-clear {
|
|
14795
|
+
opacity: 1;
|
|
14796
|
+
}
|
|
14797
|
+
.@{tree-select-prefix-cls}-icon-clear {
|
|
14798
|
+
color: @tree-select-clear-color;
|
|
14799
|
+
&:hover {
|
|
14800
|
+
color: @tree-select-clear-color-hover;
|
|
14801
|
+
}
|
|
14802
|
+
}
|
|
14803
|
+
&-selector {
|
|
14804
|
+
position: relative;
|
|
14805
|
+
cursor: text;
|
|
14806
|
+
padding-right: 24px;
|
|
14807
|
+
display: flex;
|
|
14808
|
+
flex-wrap: wrap;
|
|
14809
|
+
align-items: center;
|
|
14810
|
+
}
|
|
14811
|
+
.@{tree-select-prefix-cls}-wrapper {
|
|
14812
|
+
&:hover:not(.@{tree-select-prefix-cls}-multiple-disabled) {
|
|
14813
|
+
border-bottom: 1px solid @tree-select-g-color-border-hover;
|
|
14814
|
+
}
|
|
14815
|
+
}
|
|
14816
|
+
|
|
14817
|
+
&-footer {
|
|
14818
|
+
color: @tree-select-font-color;
|
|
14819
|
+
display: inline-flex;
|
|
14820
|
+
align-items: center;
|
|
14821
|
+
width: 100%;
|
|
14822
|
+
padding: 0 12px;
|
|
14823
|
+
height: 32px;
|
|
14824
|
+
line-height: 32px;
|
|
14825
|
+
border-top: 1px solid #d9d9d9;
|
|
14826
|
+
box-sizing: border-box;
|
|
14827
|
+
|
|
14828
|
+
&-hadSelected {
|
|
14829
|
+
color: #999999;
|
|
14830
|
+
padding-left: 12px;
|
|
14831
|
+
> span {
|
|
14832
|
+
color: @tree-select-footer-g-text-color-selected;
|
|
14833
|
+
padding: 0 2px;
|
|
14834
|
+
}
|
|
14835
|
+
}
|
|
14836
|
+
}
|
|
14837
|
+
}
|
|
14838
|
+
|
|
14839
|
+
&.topLeft.hidden,
|
|
14840
|
+
&.bottomLeft.hidden,
|
|
14841
|
+
&.topRight.hidden,
|
|
14842
|
+
&.bottomRight.hidden {
|
|
14843
|
+
opacity: 0;
|
|
14844
|
+
visibility: hidden;
|
|
14845
|
+
transition: all calc(@transition-duration - 0.1s) @ease;
|
|
14846
|
+
}
|
|
14847
|
+
}
|
|
14848
|
+
|
|
14849
|
+
|
|
14850
|
+
|
|
14851
|
+
.item() {
|
|
14852
|
+
position: relative;
|
|
14853
|
+
display: block;
|
|
14854
|
+
font-weight: normal;
|
|
14855
|
+
font-size: @tree-select-list-font-size;
|
|
14856
|
+
min-height: @tree-select-dropdown-height;
|
|
14857
|
+
padding: 5px 12px;
|
|
14858
|
+
color: @tree-select-font-color;
|
|
14859
|
+
line-height: @tree-select-dropdown-line-height;
|
|
14860
|
+
}
|
|
14861
|
+
|
|
14862
|
+
.focusColor() {
|
|
14863
|
+
border-color: @tree-select-g-color-border-foucs !important;
|
|
14864
|
+
}
|
|
14865
|
+
|
|
14866
|
+
.select-input-size(@height, @maxHeight, @lineHeight, @fontSize) {
|
|
14867
|
+
min-height: @height;
|
|
14868
|
+
max-height: calc(@maxHeight * 3 - 10px);
|
|
14869
|
+
font-size: @fontSize;
|
|
14870
|
+
}
|
|
14871
|
+
|
|
14872
|
+
.over() {
|
|
14873
|
+
overflow: hidden;
|
|
14874
|
+
white-space: nowrap;
|
|
14875
|
+
text-overflow: ellipsis;
|
|
14876
|
+
}
|
|
14877
|
+
|
|
14878
|
+
|
|
14879
|
+
|
|
14880
|
+
|
|
14881
|
+
@select-custom-prefix: ~'--@{kd-prefix}-c-tree-select';
|
|
14882
|
+
|
|
14883
|
+
|
|
14884
|
+
// color
|
|
14885
|
+
@tree-select-dropdown-bg: var(~'@{select-custom-prefix}-dropdown-color-background', @color-background);
|
|
14886
|
+
@tree-select-disabled-option-bg: var(~'@{select-custom-prefix}-item-color-background-disabled', #fff);
|
|
14887
|
+
@tree-select-item-active-bg: var(~'@{select-custom-prefix}-color-background', #f5f5f5);
|
|
14888
|
+
@tree-select-item-selected-bg: var(~'@{select-custom-prefix}-color-background-selected', @color-theme-3);
|
|
14889
|
+
@tree-select-g-color-border: var(~'@{select-custom-prefix}-color-border', @color-input);
|
|
14890
|
+
@tree-select-g-color-border-foucs: var(~'@{select-custom-prefix}-color-border-foucs', @color-theme);
|
|
14891
|
+
@tree-select-g-color-border-hover: var(~'@{select-custom-prefix}-color-border-hover', @color-theme);
|
|
14892
|
+
@tree-select-border-g-color-border: var(~'@{select-custom-prefix}-border-color-border', @color-border-strong);
|
|
14893
|
+
@tree-select-placeholder-color: var(~'@{select-custom-prefix}-placeholder-color-text', #b2b2b2);
|
|
14894
|
+
@tree-select-item-selected-color: var(~'@{select-custom-prefix}-item-color-text-selected', @color-theme);
|
|
14895
|
+
@tree-select-font-color: var(~'@{select-custom-prefix}-footer-color-text', @color-text-primary);
|
|
14896
|
+
@tree-select-footer-g-text-color-selected: var(~'@{select-custom-prefix}-footer-color-text-selected', #0e5fd8);
|
|
14897
|
+
@tree-select-g-item-text-color-disabled: var(~'@{select-custom-prefix}-item-color-text-disabled', @color-disabled);
|
|
14898
|
+
@tree-select-color-background-disabled: var(~'@{select-custom-prefix}-color-background-disabled', #f5f5f5);
|
|
14899
|
+
@tree-select-color-text-disabled: var(~'@{select-custom-prefix}-color-text-disabled', @color-disabled);
|
|
14900
|
+
@tree-select-arrow-icon-color-text-disabled: var(~'@{select-custom-prefix}-arrow-icon-color-text-disabled', #b2b2b2);
|
|
14901
|
+
@tree-select-single-color-text: var(~'@{select-custom-prefix}-single-color-text', @color-text-primary);
|
|
14902
|
+
@tree-select-clear-color: var(~'@{select-custom-prefix}-icon-clear-color-text', #d9d9d9);
|
|
14903
|
+
@tree-select-clear-color-hover: var(~'@{select-custom-prefix}-icon-clear-color-text-hover', #999);
|
|
14904
|
+
|
|
14905
|
+
// font
|
|
14906
|
+
@tree-select-list-font-size: var(~'@{select-custom-prefix}-dropdown-font-size', 12px); // 下拉列表文字大小
|
|
14907
|
+
@tree-select-large-font-size: var(~'@{select-custom-prefix}-font-size-large', 16px); // 大号字体
|
|
14908
|
+
@tree-select-middle-font-size: var(~'@{select-custom-prefix}-font-size-middle', 14px); // 中号高度
|
|
14909
|
+
@tree-select-small-font-size: var(~'@{select-custom-prefix}-font-size-small', 12px); // 小号高度
|
|
14910
|
+
|
|
14911
|
+
// line-height
|
|
14912
|
+
@tree-select-dropdown-line-height: var(~'@{select-custom-prefix}-dropdown-line-height', 22px);
|
|
14913
|
+
@tree-select-large-line-height: var(~'@{select-custom-prefix}-line-height-large', 28px);
|
|
14914
|
+
@tree-select-middle-line-height: var(~'@{select-custom-prefix}-line-height-middle', 22px);
|
|
14915
|
+
@tree-select-small-line-height: var(~'@{select-custom-prefix}-line-height-small', 14px);
|
|
14916
|
+
|
|
14917
|
+
// sizing
|
|
14918
|
+
@tree-select-dropdown-height: var(~'@{select-custom-prefix}-item-sizing-height', 22px);
|
|
14919
|
+
@tree-select-large-height: var(~'@{select-custom-prefix}-sizing-height-large', 36px); // 大号高度 lh:28px
|
|
14920
|
+
@tree-select-middle-height: var(~'@{select-custom-prefix}-sizing-height-middle', 32px); // 中号高度lh:22px
|
|
14921
|
+
@tree-select-small-height: var(~'@{select-custom-prefix}-sizing-height-small', 24px); // 小号高度lh:12px
|
|
14922
|
+
|
|
14923
|
+
// spacing
|
|
14924
|
+
@tree-select-bordered: var(~'@{select-custom-prefix}-bordered-spacing-padding-left', 8px);
|
|
14925
|
+
@tree-select-wrapper-padding: var(~'@{select-custom-prefix}-wrapper-spacing-padding', 1px 28px 1px 0);
|
|
14926
|
+
|
|
14927
|
+
// radius
|
|
14928
|
+
@tree-select-g-radius-border: var(~'@{select-custom-prefix}-radius-border', @radius-border);
|
|
14929
|
+
@tree-select-border-radius-border: var(~'@{select-custom-prefix}-bordered-radius-border', 2px);
|
|
14930
|
+
|
|
14931
|
+
// z-index
|
|
14932
|
+
@tree-select-z-index: var(~'@{select-custom-prefix}-z-index', @z-index-popper);
|
|
14933
|
+
|
|
14934
|
+
|
|
14935
|
+
|
|
14936
|
+
|
|
14166
14937
|
@typography-prefix-cls: ~'@{kd-prefix}-typography';
|
|
14167
14938
|
.@{typography-prefix-cls} {
|
|
14168
14939
|
color: @typography-color-text-primary;
|