@kdcloudjs/kdesign 1.6.13 → 1.6.15
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 +26 -0
- package/dist/kdesign-complete.less +326 -249
- package/dist/kdesign.css +88 -17
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +732 -399
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +5 -5
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/usePopper.d.ts +1 -0
- package/es/_utils/usePopper.js +3 -1
- package/es/button/button.js +1 -1
- package/es/button/style/index.css +3 -0
- package/es/button/style/index.less +4 -0
- package/es/button/style/token.less +1 -0
- package/es/carousel/carousel.d.ts +1 -0
- package/es/carousel/carousel.js +66 -3
- package/es/carousel/style/index.css +39 -0
- package/es/carousel/style/index.less +40 -0
- package/es/carousel/style/token.less +2 -0
- package/es/config-provider/compDefaultProps.d.ts +2 -0
- package/es/config-provider/compDefaultProps.js +4 -2
- package/es/date-picker/range-picker.js +6 -17
- package/es/date-picker/style/index.css +9 -9
- package/es/date-picker/style/index.less +1 -1
- package/es/date-picker/style/token.less +1 -1
- package/es/form/Field.js +67 -33
- package/es/form/FieldContext.js +1 -1
- package/es/form/hooks/useForm.js +29 -42
- package/es/form/interface.d.ts +7 -3
- package/es/icon/icon.js +23 -4
- package/es/image/preview.d.ts +1 -0
- package/es/image/preview.js +31 -6
- package/es/input/style/index.css +4 -3
- package/es/input/style/index.less +230 -227
- package/es/input/style/token.less +11 -12
- package/es/modal/modal.js +4 -8
- package/es/modal/style/index.css +7 -0
- package/es/modal/style/index.less +8 -0
- package/es/select/select.js +11 -8
- package/es/select/style/index.css +6 -3
- package/es/select/style/index.less +9 -3
- package/es/select/style/token.less +10 -5
- package/es/style/core/motion/other.less +9 -0
- package/es/style/icon/kdicon.css +3 -1
- package/es/style/icon/kdicon.woff +0 -0
- package/es/style/index.css +16 -0
- package/es/table/interface.d.ts +1 -0
- package/es/tooltip/tooltip.d.ts +1 -1
- package/es/tooltip/tooltip.js +9 -2
- package/es/tree/tree.d.ts +8 -0
- package/es/tree/tree.js +32 -17
- package/es/tree/treeHooks.d.ts +3 -3
- package/es/tree/treeHooks.js +7 -7
- package/es/tree/utils/treeUtils.d.ts +19 -6
- package/es/tree/utils/treeUtils.js +183 -33
- package/lib/_utils/usePopper.d.ts +1 -0
- package/lib/_utils/usePopper.js +3 -1
- package/lib/button/button.js +1 -1
- package/lib/button/style/index.css +3 -0
- package/lib/button/style/index.less +4 -0
- package/lib/button/style/token.less +1 -0
- package/lib/carousel/carousel.d.ts +1 -0
- package/lib/carousel/carousel.js +69 -2
- package/lib/carousel/style/index.css +39 -0
- package/lib/carousel/style/index.less +40 -0
- package/lib/carousel/style/token.less +2 -0
- package/lib/config-provider/compDefaultProps.d.ts +2 -0
- package/lib/config-provider/compDefaultProps.js +4 -2
- package/lib/date-picker/range-picker.js +6 -17
- package/lib/date-picker/style/index.css +9 -9
- package/lib/date-picker/style/index.less +1 -1
- package/lib/date-picker/style/token.less +1 -1
- package/lib/form/Field.js +68 -33
- package/lib/form/FieldContext.js +1 -1
- package/lib/form/hooks/useForm.js +28 -42
- package/lib/form/interface.d.ts +7 -3
- package/lib/icon/icon.js +22 -4
- package/lib/image/preview.d.ts +1 -0
- package/lib/image/preview.js +31 -6
- package/lib/input/style/index.css +4 -3
- package/lib/input/style/index.less +230 -227
- package/lib/input/style/token.less +11 -12
- package/lib/modal/modal.js +4 -8
- package/lib/modal/style/index.css +7 -0
- package/lib/modal/style/index.less +8 -0
- package/lib/select/select.js +11 -11
- package/lib/select/style/index.css +6 -3
- package/lib/select/style/index.less +9 -3
- package/lib/select/style/token.less +10 -5
- package/lib/style/core/motion/other.less +9 -0
- package/lib/style/icon/kdicon.css +3 -1
- package/lib/style/icon/kdicon.woff +0 -0
- package/lib/style/index.css +16 -0
- package/lib/table/interface.d.ts +1 -0
- package/lib/tooltip/tooltip.d.ts +1 -1
- package/lib/tooltip/tooltip.js +15 -5
- package/lib/tree/tree.d.ts +8 -0
- package/lib/tree/tree.js +30 -16
- package/lib/tree/treeHooks.d.ts +3 -3
- package/lib/tree/treeHooks.js +6 -6
- package/lib/tree/utils/treeUtils.d.ts +19 -6
- package/lib/tree/utils/treeUtils.js +193 -33
- package/package.json +1 -1
package/lib/image/preview.js
CHANGED
|
@@ -13,6 +13,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
13
13
|
});
|
|
14
14
|
exports.default = void 0;
|
|
15
15
|
|
|
16
|
+
var _find = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find"));
|
|
17
|
+
|
|
16
18
|
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
17
19
|
|
|
18
20
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
@@ -53,6 +55,7 @@ var Preview = function Preview(props) {
|
|
|
53
55
|
alt = allProps.alt,
|
|
54
56
|
name = allProps.name,
|
|
55
57
|
size = allProps.size,
|
|
58
|
+
scales = allProps.scales,
|
|
56
59
|
visible = allProps.visible,
|
|
57
60
|
onClose = allProps.onClose,
|
|
58
61
|
current = allProps.current,
|
|
@@ -82,14 +85,28 @@ var Preview = function Preview(props) {
|
|
|
82
85
|
scale = _React$useState6[0],
|
|
83
86
|
setScale = _React$useState6[1];
|
|
84
87
|
|
|
88
|
+
var maxScale = scales[scales.length - 1] / 100;
|
|
89
|
+
var minScale = scales[0] / 100;
|
|
85
90
|
React.useEffect(function () {
|
|
86
91
|
if (show) {
|
|
87
92
|
document.body.style.overflow = 'hidden';
|
|
88
93
|
var throMouseWheel = (0, _throttle.default)(function (e) {
|
|
89
94
|
if (e.wheelDelta > 0) {
|
|
90
|
-
|
|
95
|
+
if (scale > maxScale) return;
|
|
96
|
+
|
|
97
|
+
if (scale + 0.1 > maxScale) {
|
|
98
|
+
setScale(maxScale);
|
|
99
|
+
} else {
|
|
100
|
+
setScale(scale + 0.1);
|
|
101
|
+
}
|
|
91
102
|
} else if (e.wheelDelta < 0) {
|
|
92
|
-
if (scale
|
|
103
|
+
if (scale < minScale) return;
|
|
104
|
+
|
|
105
|
+
if (scale - 0.1 < minScale) {
|
|
106
|
+
setScale(minScale);
|
|
107
|
+
} else {
|
|
108
|
+
setScale(scale - 0.1);
|
|
109
|
+
}
|
|
93
110
|
}
|
|
94
111
|
}, 200);
|
|
95
112
|
document.addEventListener('mousewheel', throMouseWheel);
|
|
@@ -103,12 +120,17 @@ var Preview = function Preview(props) {
|
|
|
103
120
|
}, [show, scale]);
|
|
104
121
|
|
|
105
122
|
var handleZoomOut = function handleZoomOut() {
|
|
106
|
-
var
|
|
107
|
-
|
|
123
|
+
var nextScale = scales.findLast(function (s) {
|
|
124
|
+
return s / 100 < scale;
|
|
125
|
+
});
|
|
126
|
+
if (nextScale !== undefined) setScale(nextScale / 100);
|
|
108
127
|
};
|
|
109
128
|
|
|
110
129
|
var handleZoomIn = function handleZoomIn() {
|
|
111
|
-
|
|
130
|
+
var nextScale = (0, _find.default)(scales).call(scales, function (s) {
|
|
131
|
+
return s / 100 > scale;
|
|
132
|
+
});
|
|
133
|
+
if (nextScale !== undefined) setScale(nextScale / 100);
|
|
112
134
|
};
|
|
113
135
|
|
|
114
136
|
var previewImgProps = {
|
|
@@ -150,11 +172,14 @@ var Preview = function Preview(props) {
|
|
|
150
172
|
}), /*#__PURE__*/React.createElement(_icon.default, {
|
|
151
173
|
type: "shrink",
|
|
152
174
|
className: (0, _classnames.default)({
|
|
153
|
-
disabled: scale <=
|
|
175
|
+
disabled: scale <= minScale
|
|
154
176
|
}),
|
|
155
177
|
onClick: handleZoomOut
|
|
156
178
|
}), /*#__PURE__*/React.createElement(_icon.default, {
|
|
157
179
|
type: "zoom",
|
|
180
|
+
className: (0, _classnames.default)({
|
|
181
|
+
disabled: scale >= maxScale
|
|
182
|
+
}),
|
|
158
183
|
onClick: handleZoomIn
|
|
159
184
|
}), props.type !== 'upload' && operations, props.type !== 'upload' && length && /*#__PURE__*/React.createElement(_icon.default, {
|
|
160
185
|
type: "arrow-right",
|
|
@@ -259,6 +259,7 @@ textarea {
|
|
|
259
259
|
padding: var(--kd-c-input-spacing-padding-vertical-small, 3px) var(--kd-c-input-spacing-padding-horizontal-small, 9px);
|
|
260
260
|
}
|
|
261
261
|
.kd-input-wrapper {
|
|
262
|
+
padding-left: var(--kd-c-input-wrapper-padding-left, 0px) !important;
|
|
262
263
|
width: 100%;
|
|
263
264
|
min-width: 0;
|
|
264
265
|
border: var(--kd-c-input-sizing-border, 1px) solid var(--kd-c-input-color-border-disabled, var(--kd-g-color-border-strong, #d9d9d9));
|
|
@@ -306,7 +307,7 @@ textarea {
|
|
|
306
307
|
}
|
|
307
308
|
.kd-input-wrapper .kd-input {
|
|
308
309
|
border: none;
|
|
309
|
-
padding-left:
|
|
310
|
+
padding-left: var(--kd-c-input-padding-left, 9px);
|
|
310
311
|
padding-right: 0;
|
|
311
312
|
height: 100%;
|
|
312
313
|
}
|
|
@@ -453,8 +454,8 @@ textarea {
|
|
|
453
454
|
font-size: 14px;
|
|
454
455
|
font-variant: tabular-nums;
|
|
455
456
|
list-style: none;
|
|
456
|
-
-webkit-font-feature-settings:
|
|
457
|
-
font-feature-settings:
|
|
457
|
+
-webkit-font-feature-settings: 'tnum';
|
|
458
|
+
font-feature-settings: 'tnum';
|
|
458
459
|
position: relative;
|
|
459
460
|
display: -webkit-box;
|
|
460
461
|
display: -ms-flexbox;
|
|
@@ -4,258 +4,261 @@
|
|
|
4
4
|
@input-prefix-cls: ~'@{kd-prefix}-input';
|
|
5
5
|
@wrapper-prefix-cls: ~'@{input-prefix-cls}-wrapper';
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
textarea {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
color: inherit;
|
|
11
|
+
font-size: inherit;
|
|
12
|
+
font-family: inherit;
|
|
13
|
+
line-height: inherit;
|
|
14
|
+
-webkit-appearance: none;
|
|
15
|
+
overflow: auto;
|
|
16
|
+
resize: vertical;
|
|
18
17
|
}
|
|
19
18
|
.@{input-prefix-cls} {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
19
|
+
.input(@input-prefix-cls);
|
|
20
|
+
transition: border-color @transition-duration-inner;
|
|
21
|
+
&-countWrapper {
|
|
22
|
+
position: relative;
|
|
23
|
+
display: inline-block;
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
&-textarea {
|
|
27
|
+
.input(@input-prefix-cls);
|
|
28
|
+
transition: border-color @transition-duration-inner;
|
|
29
|
+
max-width: 100%;
|
|
30
|
+
height: auto;
|
|
31
|
+
vertical-align: bottom;
|
|
32
|
+
&-mark {
|
|
33
|
+
position: absolute;
|
|
34
|
+
right: 0;
|
|
35
|
+
top: ~'calc(100% + 1px)';
|
|
36
|
+
z-index: 1;
|
|
37
|
+
color: @input-placeholder-color-inner;
|
|
38
|
+
font-size: @input-small-font-size-inner;
|
|
40
39
|
line-height: 18px;
|
|
41
40
|
background-color: #fff;
|
|
42
|
-
|
|
41
|
+
}
|
|
43
42
|
&-mark-inner {
|
|
44
43
|
top: auto;
|
|
45
44
|
bottom: 5px;
|
|
46
45
|
right: 8px;
|
|
47
46
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
47
|
+
}
|
|
48
|
+
&-no-resize {
|
|
49
|
+
resize: none;
|
|
50
|
+
}
|
|
51
|
+
&-borderless {
|
|
52
|
+
border: 0;
|
|
53
|
+
padding-left: 0 !important;
|
|
54
|
+
&:focus {
|
|
55
|
+
border: 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
&-underline {
|
|
59
|
+
border: none;
|
|
60
|
+
border-bottom: 1px solid @input-color-border;
|
|
61
|
+
border-radius: 0;
|
|
62
|
+
padding-left: 0 !important;
|
|
63
|
+
}
|
|
64
|
+
&-disabled {
|
|
65
|
+
background-color: @input-background-color-disabled-inner;
|
|
66
|
+
border-color: @input-border-color-disabled-inner;
|
|
68
67
|
color: @input-affix-color;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
cursor: not-allowed;
|
|
69
|
+
}
|
|
70
|
+
&-underline&-disabled {
|
|
72
71
|
color: @input-color-disabled-inner;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
72
|
+
background-color: @input-background-color-inner;
|
|
73
|
+
border-color: @input-underline-border-color-disabled-inner;
|
|
74
|
+
}
|
|
75
|
+
&-size-small {
|
|
76
|
+
.input-size(@input-small-height-inner, @input-small-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
|
|
77
|
+
}
|
|
78
|
+
&-size-middle {
|
|
79
|
+
.input-size(@input-middle-height-inner, @input-middle-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
|
|
80
|
+
}
|
|
81
|
+
&-size-large {
|
|
82
|
+
.input-size(@input-large-height-inner, @input-large-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
|
|
83
|
+
}
|
|
84
|
+
&-wrapper {
|
|
85
|
+
padding-left: @input-wrapper-padding-left !important;
|
|
86
|
+
.input(@wrapper-prefix-cls);
|
|
87
|
+
transition: border-color @transition-duration-inner;
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
position: relative;
|
|
90
|
+
padding-top: 0 !important;
|
|
91
|
+
padding-bottom: 0 !important;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
.@{input-prefix-cls} {
|
|
94
|
+
border: none;
|
|
95
|
+
padding-left: @input-padding-left;
|
|
96
|
+
padding-right: 0;
|
|
97
|
+
height: 100%;
|
|
98
|
+
&-suffix,
|
|
99
|
+
&-prefix {
|
|
100
|
+
display: flex;
|
|
101
|
+
flex: 0;
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
word-break: keep-all;
|
|
104
105
|
color: @input-affix-color;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
106
|
+
}
|
|
107
|
+
&-suffix {
|
|
108
|
+
margin-left: 4px;
|
|
109
|
+
}
|
|
110
|
+
&-prefix {
|
|
111
|
+
margin-right: 4px;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
&-size-small {
|
|
115
|
+
.input-size(@input-small-height-inner, @input-small-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
|
|
116
|
+
}
|
|
117
|
+
&-size-middle {
|
|
118
|
+
.input-size(@input-middle-height-inner, @input-middle-font-size-inner, @input-small-padding-vertical-inner, @input-middle-padding-horizontal-inner);
|
|
119
|
+
}
|
|
120
|
+
&-size-large {
|
|
121
|
+
.input-size(@input-large-height-inner, @input-large-font-size-inner, @input-small-padding-vertical-inner, @input-large-padding-horizontal-inner);
|
|
122
|
+
}
|
|
123
|
+
&-borderless {
|
|
124
|
+
.border-less;
|
|
125
|
+
}
|
|
126
|
+
&-underline {
|
|
127
|
+
.underline;
|
|
128
|
+
}
|
|
128
129
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
&-focused {
|
|
131
|
+
border-color: @input-border-color-focused;
|
|
132
|
+
}
|
|
132
133
|
|
|
133
134
|
&-disabled {
|
|
134
135
|
background-color: @input-background-color-disabled-inner;
|
|
135
136
|
border-color: @input-border-color-disabled-inner;
|
|
136
137
|
cursor: not-allowed;
|
|
137
138
|
|
|
138
|
-
.@{input-prefix-cls}-suffix,
|
|
139
|
+
.@{input-prefix-cls}-suffix,
|
|
140
|
+
.@{input-prefix-cls}-prefix {
|
|
139
141
|
color: @input-color-disabled-inner;
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
144
|
+
}
|
|
145
|
+
&-wrapper-textarea {
|
|
146
|
+
.input(@input-prefix-cls);
|
|
147
|
+
border: none !important;
|
|
148
|
+
padding: 0 !important;
|
|
149
|
+
position: relative;
|
|
150
|
+
display: inline-block;
|
|
151
|
+
.@{input-prefix-cls} {
|
|
152
|
+
&-textarea-clear-icon {
|
|
153
|
+
position: absolute;
|
|
152
154
|
z-index: 2;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
155
|
+
right: 8px;
|
|
156
|
+
top: 3px;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
&-clear-icon,
|
|
161
|
+
&-textarea-clear-icon {
|
|
162
|
+
.input-clear-icon;
|
|
163
|
+
}
|
|
164
|
+
&-clear-icon-hidden {
|
|
165
|
+
visibility: hidden;
|
|
166
|
+
}
|
|
167
|
+
&-clear-icon-rightSpace {
|
|
168
|
+
margin-right: 4px;
|
|
169
|
+
}
|
|
167
170
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
171
|
+
&-group-wrapper {
|
|
172
|
+
display: inline-block;
|
|
173
|
+
width: 100%;
|
|
174
|
+
text-align: start;
|
|
175
|
+
vertical-align: top;
|
|
176
|
+
.@{input-prefix-cls} {
|
|
177
|
+
&-group {
|
|
178
|
+
box-sizing: border-box;
|
|
179
|
+
margin: 0;
|
|
180
|
+
padding: 0;
|
|
181
|
+
color: rgba(0, 0, 0, 0.85);
|
|
182
|
+
font-size: 14px;
|
|
183
|
+
font-variant: tabular-nums;
|
|
184
|
+
// line-height: 1.5715;
|
|
185
|
+
list-style: none;
|
|
186
|
+
font-feature-settings: 'tnum';
|
|
187
|
+
position: relative;
|
|
188
|
+
display: flex;
|
|
189
|
+
width: 100%;
|
|
190
|
+
border-collapse: separate;
|
|
191
|
+
border-spacing: 0;
|
|
192
|
+
& > .@{input-prefix-cls}-wrapper {
|
|
193
|
+
&:not(:first-child):not(:last-child) {
|
|
194
|
+
border-radius: 0;
|
|
195
|
+
}
|
|
196
|
+
&:first-child:not(:last-child) {
|
|
197
|
+
border-top-right-radius: 0;
|
|
198
|
+
border-bottom-right-radius: 0;
|
|
199
|
+
}
|
|
200
|
+
&:not(:first-child):last-child {
|
|
201
|
+
border-top-left-radius: 0;
|
|
202
|
+
border-bottom-left-radius: 0;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
.@{input-prefix-cls}-group-addon {
|
|
206
|
+
position: relative;
|
|
207
|
+
color: @input-affix-color;
|
|
208
|
+
padding: 0 9px;
|
|
209
|
+
font-weight: 400;
|
|
210
|
+
font-size: 14px;
|
|
211
|
+
text-align: center;
|
|
212
|
+
border: 1px solid @input-border-color-disabled-inner;
|
|
213
|
+
border-radius: @input-border-radius-inner;
|
|
214
|
+
white-space: nowrap;
|
|
215
|
+
box-sizing: border-box;
|
|
216
|
+
display: flex;
|
|
217
|
+
align-items: center;
|
|
218
|
+
height: @input-middle-height-inner;
|
|
219
|
+
&:first-child {
|
|
220
|
+
border-top-right-radius: 0;
|
|
221
|
+
border-bottom-right-radius: 0;
|
|
222
|
+
border-right: none;
|
|
223
|
+
}
|
|
224
|
+
&:last-child {
|
|
225
|
+
border-top-left-radius: 0;
|
|
226
|
+
border-bottom-left-radius: 0;
|
|
227
|
+
border-left: none;
|
|
228
|
+
}
|
|
226
229
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
230
|
+
&-borderless {
|
|
231
|
+
.border-less;
|
|
232
|
+
}
|
|
233
|
+
&-underline {
|
|
234
|
+
.underline;
|
|
235
|
+
}
|
|
236
|
+
&-disabled {
|
|
237
|
+
background-color: @input-background-color-disabled-inner;
|
|
238
|
+
border-color: @input-border-color-disabled-inner;
|
|
236
239
|
color: @input-color-disabled-inner;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
240
|
+
cursor: not-allowed;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
&-group-size-small {
|
|
245
|
+
.@{input-prefix-cls}-group-addon {
|
|
246
|
+
height: @input-small-height-inner;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
&-group-middle-small {
|
|
250
|
+
.@{input-prefix-cls}-group-addon {
|
|
251
|
+
height: @input-middle-height-inner;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
&-group-large-small {
|
|
255
|
+
.@{input-prefix-cls}-group-addon {
|
|
256
|
+
height: @input-large-height-inner;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
&-allowClear-spacing {
|
|
262
|
+
padding-right: 20px;
|
|
263
|
+
}
|
|
261
264
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import '../../style/themes/token.less';
|
|
2
2
|
|
|
3
3
|
@input-prefix: '--@{kd-prefix}-c-input';
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// color
|
|
7
6
|
@input-font-color-inner: var(~'@{input-prefix}-color-text', @color-text-primary);
|
|
8
7
|
@input-placeholder-color-inner: var(~'@{input-prefix}-placeholder-color-text', @color-text-placeholder);
|
|
@@ -10,10 +9,16 @@
|
|
|
10
9
|
@input-clear-color: var(~'@{input-prefix}-clear-color', #d9d9d9);
|
|
11
10
|
@input-clear-color-hover: var(~'@{input-prefix}-clear-color-hover', #999);
|
|
12
11
|
@input-background-color-inner: var(~'@{input-prefix}-color-background', @color-white);
|
|
13
|
-
@input-background-color-disabled-inner: var(
|
|
12
|
+
@input-background-color-disabled-inner: var(
|
|
13
|
+
~'@{input-prefix}-color-background-disabled',
|
|
14
|
+
@color-background-contain-disabled
|
|
15
|
+
);
|
|
14
16
|
@input-border-color-focused: var(~'@{input-prefix}-color-border-focused', @color-theme);
|
|
15
17
|
@input-border-color-disabled-inner: var(~'@{input-prefix}-color-border-disabled', @color-border-strong);
|
|
16
|
-
@input-underline-border-color-disabled-inner: var(
|
|
18
|
+
@input-underline-border-color-disabled-inner: var(
|
|
19
|
+
~'@{input-prefix}-underline-color-border-disabled',
|
|
20
|
+
@color-border-weak
|
|
21
|
+
);
|
|
17
22
|
@input-color-disabled-inner: var(~'@{input-prefix}-color-disabled', @color-disabled);
|
|
18
23
|
@input-affix-color: var(~'@{input-prefix}-affix-color-text', #666);
|
|
19
24
|
|
|
@@ -33,6 +38,8 @@
|
|
|
33
38
|
@input-middle-height-inner: var(~'@{input-prefix}-sizing-height-middle', 30px);
|
|
34
39
|
@input-large-height-inner: var(~'@{input-prefix}-sizing-height-large', 36px);
|
|
35
40
|
@input-border-width-inner: var(~'@{input-prefix}-sizing-border', 1px);
|
|
41
|
+
@input-wrapper-padding-left: var(~'@{input-prefix}-wrapper-padding-left', 0px);
|
|
42
|
+
@input-padding-left: var(~'@{input-prefix}-padding-left', 9px);
|
|
36
43
|
|
|
37
44
|
// spacing
|
|
38
45
|
@input-small-padding-vertical-inner: var(~'@{input-prefix}-spacing-padding-vertical-small', 3px);
|
|
@@ -41,11 +48,3 @@
|
|
|
41
48
|
@input-middle-padding-horizontal-inner: var(~'@{input-prefix}-spacing-padding-horizontal-middle', 9px);
|
|
42
49
|
@input-large-padding-vertical-inner: var(~'@{input-prefix}-spacing-padding-vertical-large', 8px);
|
|
43
50
|
@input-large-padding-horizontal-inner: var(~'@{input-prefix}-spacing-padding-horizontal-large', 9px);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|