@kdcloudjs/kdesign 1.6.14 → 1.6.16
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 +53 -0
- package/dist/kdesign-complete.less +307 -239
- package/dist/kdesign.css +77 -5
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +950 -347
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +8 -8
- 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 +1 -0
- package/es/config-provider/compDefaultProps.js +2 -1
- package/es/date-picker/range/input-range.js +1 -1
- package/es/date-picker/single/input-date.js +1 -1
- package/es/form/Field.js +7 -1
- package/es/form/FieldContext.js +1 -0
- package/es/form/hooks/useForm.js +14 -20
- package/es/form/interface.d.ts +1 -0
- 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 +11 -0
- package/es/modal/style/index.less +10 -0
- package/es/select/select.js +15 -11
- 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/feature/useFooterDataSource.d.ts +3 -0
- package/es/table/feature/useFooterDataSource.js +11 -0
- package/es/table/interface.d.ts +2 -0
- package/es/table/table.js +10 -9
- package/es/tooltip/tooltip.d.ts +1 -1
- package/es/tooltip/tooltip.js +10 -2
- package/es/tree/tree.d.ts +8 -0
- package/es/tree/tree.js +46 -17
- package/es/tree/treeHooks.d.ts +3 -3
- package/es/tree/treeHooks.js +9 -9
- package/es/tree/utils/treeUtils.d.ts +20 -6
- package/es/tree/utils/treeUtils.js +222 -40
- 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 +1 -0
- package/lib/config-provider/compDefaultProps.js +2 -1
- package/lib/date-picker/range/input-range.js +1 -1
- package/lib/date-picker/single/input-date.js +1 -1
- package/lib/form/Field.js +7 -1
- package/lib/form/FieldContext.js +1 -0
- package/lib/form/hooks/useForm.js +13 -20
- package/lib/form/interface.d.ts +1 -0
- 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 +11 -0
- package/lib/modal/style/index.less +10 -0
- package/lib/select/select.js +15 -14
- 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/feature/useFooterDataSource.d.ts +3 -0
- package/lib/table/feature/useFooterDataSource.js +19 -0
- package/lib/table/interface.d.ts +2 -0
- package/lib/table/table.js +11 -9
- package/lib/tooltip/tooltip.d.ts +1 -1
- package/lib/tooltip/tooltip.js +16 -5
- package/lib/tree/tree.d.ts +8 -0
- package/lib/tree/tree.js +45 -16
- package/lib/tree/treeHooks.d.ts +3 -3
- package/lib/tree/treeHooks.js +8 -8
- package/lib/tree/utils/treeUtils.d.ts +20 -6
- package/lib/tree/utils/treeUtils.js +234 -39
- package/package.json +1 -1
|
@@ -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
|
-
|
package/lib/modal/modal.js
CHANGED
|
@@ -57,7 +57,7 @@ var ModalTypes = (0, _type.tuple)('confirm', 'warning', 'error', 'normal');
|
|
|
57
57
|
exports.ModalTypes = ModalTypes;
|
|
58
58
|
|
|
59
59
|
var Modal = function Modal(props) {
|
|
60
|
-
var _classNames4, _context2, _context3;
|
|
60
|
+
var _classNames3, _classNames4, _context2, _context3;
|
|
61
61
|
|
|
62
62
|
var _useContext = (0, _react.useContext)(_ConfigContext.default),
|
|
63
63
|
getPrefixCls = _useContext.getPrefixCls,
|
|
@@ -223,7 +223,8 @@ var Modal = function Modal(props) {
|
|
|
223
223
|
proxyCloseModal(onCancel);
|
|
224
224
|
}
|
|
225
225
|
}, [proxyCloseModal, onCancel, maskClosable]);
|
|
226
|
-
var
|
|
226
|
+
var isHidden = !destroyOnClose && !(isForceController ? visible : innerVisible);
|
|
227
|
+
var modalClasses = (0, _classnames.default)(modalPrefixCls, className, (_classNames3 = {}, (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container"), true), (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container-hidden"), isHidden), (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container-show"), !isHidden), _classNames3));
|
|
227
228
|
var headerClass = "".concat(modalPrefixCls, "-header");
|
|
228
229
|
|
|
229
230
|
var container = /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -269,14 +270,9 @@ var Modal = function Modal(props) {
|
|
|
269
270
|
x: 0,
|
|
270
271
|
y: 0
|
|
271
272
|
};
|
|
272
|
-
var isHidden = !destroyOnClose && !(isForceController ? visible : innerVisible);
|
|
273
|
-
var compStyle = isHidden ? {
|
|
274
|
-
display: 'none'
|
|
275
|
-
} : {};
|
|
276
273
|
|
|
277
274
|
var comp = /*#__PURE__*/_react.default.createElement("div", {
|
|
278
|
-
className: modalClasses
|
|
279
|
-
style: compStyle
|
|
275
|
+
className: modalClasses
|
|
280
276
|
}, mask && /*#__PURE__*/_react.default.createElement("div", {
|
|
281
277
|
onClick: handleMaskClick,
|
|
282
278
|
className: "".concat(modalPrefixCls, "-mask"),
|
|
@@ -111,6 +111,13 @@
|
|
|
111
111
|
position: relative;
|
|
112
112
|
z-index: var(--kd-c-modal-z-index, var(--kd-g-z-index-dialog, 1050));
|
|
113
113
|
}
|
|
114
|
+
.kd-modal-container-show {
|
|
115
|
+
-webkit-animation: kdModalEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) both;
|
|
116
|
+
animation: kdModalEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) both;
|
|
117
|
+
}
|
|
118
|
+
.kd-modal-container-hidden {
|
|
119
|
+
display: none;
|
|
120
|
+
}
|
|
114
121
|
.kd-modal-mask {
|
|
115
122
|
position: fixed;
|
|
116
123
|
background-color: var(--kd-c-modal-mask-color-background, rgba(55, 55, 55, 0.5));
|
|
@@ -153,6 +160,8 @@
|
|
|
153
160
|
-ms-flex-align: center;
|
|
154
161
|
align-items: center;
|
|
155
162
|
height: var(--kd-c-modal-header-sizing-height, 50px);
|
|
163
|
+
-ms-flex-negative: 0;
|
|
164
|
+
flex-shrink: 0;
|
|
156
165
|
}
|
|
157
166
|
.kd-modal-container-box .kd-modal-header .kd-modal-title-container {
|
|
158
167
|
display: -webkit-box;
|
|
@@ -235,6 +244,8 @@
|
|
|
235
244
|
align-items: center;
|
|
236
245
|
font-size: var(--kd-c-modal-footer-font-size, 14px);
|
|
237
246
|
color: var(--kd-c-modal-footer-text-color, var(--kd-g-color-text-secondary, #666));
|
|
247
|
+
-ms-flex-negative: 0;
|
|
248
|
+
flex-shrink: 0;
|
|
238
249
|
}
|
|
239
250
|
.kd-modal-margin-btn {
|
|
240
251
|
margin-right: var(--kd-c-modal-footer-button-spacing, 12px);
|
|
@@ -23,6 +23,14 @@
|
|
|
23
23
|
&-container {
|
|
24
24
|
position: relative;
|
|
25
25
|
z-index: @modal-z-index-dialog;
|
|
26
|
+
|
|
27
|
+
&-show {
|
|
28
|
+
animation: kdModalEffect calc(@transition-duration - 0.1s) @ease both;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-hidden {
|
|
32
|
+
display: none
|
|
33
|
+
}
|
|
26
34
|
}
|
|
27
35
|
&-mask {
|
|
28
36
|
.overlay(@modal-mask-color-background, 0);
|
|
@@ -50,6 +58,7 @@
|
|
|
50
58
|
padding: @modal-header-sizing-padding-vertical @modal-header-sizing-padding-horizontal;
|
|
51
59
|
align-items: center;
|
|
52
60
|
height: @modal-header-sizing-height;
|
|
61
|
+
flex-shrink: 0;
|
|
53
62
|
.@{modal-prefix-cls}-title-container {
|
|
54
63
|
display: flex;
|
|
55
64
|
justify-content: center;
|
|
@@ -105,6 +114,7 @@
|
|
|
105
114
|
align-items: center;
|
|
106
115
|
font-size: @modal-footer-font-size;
|
|
107
116
|
color: @modal-footer-font-color;
|
|
117
|
+
flex-shrink: 0;
|
|
108
118
|
}
|
|
109
119
|
// each(@modal-footer-type-set, {
|
|
110
120
|
// .@{modal-prefix-cls}-@{key}-footer {
|