@kne/react-modal 0.1.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/README.md +2050 -0
- package/dist/index.css +514 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js +595 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +602 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/locale/en-US.js +7 -0
- package/dist/locale/en-US.js.map +1 -0
- package/dist/locale/en-US.modern.js +7 -0
- package/dist/locale/en-US.modern.js.map +1 -0
- package/dist/locale/zh-CN.js +7 -0
- package/dist/locale/zh-CN.js.map +1 -0
- package/dist/locale/zh-CN.modern.js +7 -0
- package/dist/locale/zh-CN.modern.js.map +1 -0
- package/package.json +113 -0
package/dist/index.css
ADDED
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
.kne-react-modal_nfGH7.ant-tabs {
|
|
2
|
+
height: var(--kne-modal-content-height);
|
|
3
|
+
max-height: var(--kne-modal-content-height);
|
|
4
|
+
flex: 1 1 0%;
|
|
5
|
+
min-height: 0;
|
|
6
|
+
width: 100%;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
.kne-react-modal_nfGH7.ant-tabs > .ant-tabs-nav {
|
|
13
|
+
flex: none;
|
|
14
|
+
height: var(--kne-modal-close-align-height, 48px);
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0 86px 0 24px;
|
|
17
|
+
align-items: center;
|
|
18
|
+
}
|
|
19
|
+
.kne-react-modal_nfGH7.ant-tabs > .ant-tabs-nav::before {
|
|
20
|
+
border-bottom-color: #f0f0f0;
|
|
21
|
+
}
|
|
22
|
+
.kne-react-modal_nfGH7.ant-tabs > .ant-tabs-nav .ant-tabs-nav-wrap {
|
|
23
|
+
align-self: stretch;
|
|
24
|
+
}
|
|
25
|
+
.kne-react-modal_nfGH7.ant-tabs > .ant-tabs-nav .ant-tabs-tab {
|
|
26
|
+
margin: 0 28px 0 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
.kne-react-modal_nfGH7.ant-tabs > .ant-tabs-nav .ant-tabs-tab .ant-tabs-tab-btn {
|
|
33
|
+
padding: 0;
|
|
34
|
+
line-height: var(--kne-modal-close-align-height, 48px);
|
|
35
|
+
}
|
|
36
|
+
.kne-react-modal_nfGH7.ant-tabs > .ant-tabs-body-holder {
|
|
37
|
+
flex: 1 1 0% !important;
|
|
38
|
+
height: 0 !important;
|
|
39
|
+
min-height: 0;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
}
|
|
42
|
+
.kne-react-modal_nfGH7.ant-tabs .ant-tabs-body {
|
|
43
|
+
height: 100%;
|
|
44
|
+
min-height: 0;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
}
|
|
47
|
+
.kne-react-modal_nfGH7.ant-tabs .ant-tabs-content {
|
|
48
|
+
height: 100%;
|
|
49
|
+
min-height: 0;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
outline: none;
|
|
52
|
+
}
|
|
53
|
+
.kne-react-modal_nfGH7.ant-tabs .ant-tabs-content-hidden {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.kne-react-modal_ZjINn {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: row;
|
|
60
|
+
height: 100%;
|
|
61
|
+
max-height: 100%;
|
|
62
|
+
min-height: 0;
|
|
63
|
+
width: 100%;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.kne-react-modal_KJmX4 {
|
|
69
|
+
min-height: 0;
|
|
70
|
+
min-width: 0;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
}
|
|
75
|
+
.kne-react-modal_KJmX4:not(:first-child) {
|
|
76
|
+
border-left: 1px solid #f0f0f0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.kne-react-modal_KJmX4:first-child .modal-scroll-region {
|
|
80
|
+
background: #fafafa;
|
|
81
|
+
}
|
|
82
|
+
.kne-react-modal_KJmX4:first-child .modal-scroll-region .simplebar-content {
|
|
83
|
+
background: #fafafa;
|
|
84
|
+
}
|
|
85
|
+
.kne-react-modal_KJmX4:first-child .modal-scroll-region .modal-scroll-region-sticky {
|
|
86
|
+
background: #fafafa;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.kne-react-modal_KJmX4:last-child .modal-scroll-region {
|
|
90
|
+
background: #fff;
|
|
91
|
+
}
|
|
92
|
+
.kne-react-modal_KJmX4:last-child .modal-scroll-region .simplebar-content {
|
|
93
|
+
background: #fff;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.kne-react-modal_KJmX4:only-child .modal-scroll-region {
|
|
97
|
+
background: #fff;
|
|
98
|
+
}
|
|
99
|
+
.kne-react-modal_KJmX4:only-child .modal-scroll-region .simplebar-content {
|
|
100
|
+
background: #fff;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.kne-react-modal_86VYa {
|
|
104
|
+
height: 100%;
|
|
105
|
+
max-height: 100%;
|
|
106
|
+
min-height: 0;
|
|
107
|
+
box-sizing: border-box;
|
|
108
|
+
}
|
|
109
|
+
.kne-react-modal_86VYa .simplebar-wrapper,
|
|
110
|
+
.kne-react-modal_86VYa .simplebar-mask,
|
|
111
|
+
.kne-react-modal_86VYa .simplebar-offset {
|
|
112
|
+
height: 100%;
|
|
113
|
+
min-height: 0;
|
|
114
|
+
}
|
|
115
|
+
.kne-react-modal_86VYa .simplebar-content-wrapper {
|
|
116
|
+
height: 100%;
|
|
117
|
+
min-height: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.kne-react-modal_K9DGN {
|
|
121
|
+
box-sizing: border-box;
|
|
122
|
+
min-height: 100%;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.kne-react-modal_86VYa.kne-react-modal_HTvLy .kne-react-modal_K9DGN {
|
|
126
|
+
padding: 16px 20px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.modal-scroll-region-sticky {
|
|
130
|
+
position: sticky;
|
|
131
|
+
top: 0;
|
|
132
|
+
z-index: 1;
|
|
133
|
+
padding: 12px 16px 10px;
|
|
134
|
+
background: #fff;
|
|
135
|
+
border-bottom: 1px solid #f0f0f0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.react-modal-splitter.ant-splitter {
|
|
139
|
+
height: 100% !important;
|
|
140
|
+
max-height: 100%;
|
|
141
|
+
min-height: 0;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
box-sizing: border-box;
|
|
144
|
+
}
|
|
145
|
+
.react-modal-splitter.ant-splitter .ant-splitter-panel {
|
|
146
|
+
min-height: 0;
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
}
|
|
149
|
+
.react-modal-splitter.ant-splitter .ant-splitter-panel:first-child .modal-scroll-region {
|
|
150
|
+
background: #fafafa;
|
|
151
|
+
}
|
|
152
|
+
.react-modal-splitter.ant-splitter .ant-splitter-panel:first-child .modal-scroll-region .simplebar-content {
|
|
153
|
+
background: #fafafa;
|
|
154
|
+
}
|
|
155
|
+
.react-modal-splitter.ant-splitter .ant-splitter-panel:first-child .modal-scroll-region .modal-scroll-region-sticky {
|
|
156
|
+
background: #fafafa;
|
|
157
|
+
}
|
|
158
|
+
.react-modal-splitter.ant-splitter .ant-splitter-panel:last-child .modal-scroll-region {
|
|
159
|
+
background: #fff;
|
|
160
|
+
}
|
|
161
|
+
.react-modal-splitter.ant-splitter .ant-splitter-panel:last-child .modal-scroll-region .simplebar-content {
|
|
162
|
+
background: #fff;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.react-modal-steps-form .modal-body-inner {
|
|
166
|
+
min-width: 0;
|
|
167
|
+
max-width: 100%;
|
|
168
|
+
overflow-x: hidden;
|
|
169
|
+
}
|
|
170
|
+
.react-modal-steps-form .simplebar-content-wrapper,
|
|
171
|
+
.react-modal-steps-form .simplebar-content {
|
|
172
|
+
overflow-x: hidden !important;
|
|
173
|
+
}
|
|
174
|
+
.react-modal-steps-form .kne-form-steps.ant-steps-horizontal {
|
|
175
|
+
padding-inline: 0 !important;
|
|
176
|
+
width: 100%;
|
|
177
|
+
max-width: 100%;
|
|
178
|
+
box-sizing: border-box;
|
|
179
|
+
}
|
|
180
|
+
@charset "UTF-8";
|
|
181
|
+
.kne-react-modal_gh14z {
|
|
182
|
+
position: relative;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.kne-react-modal_Kfn6L {
|
|
186
|
+
overflow: auto;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:root {
|
|
190
|
+
--kne-viewport-width: 100vw;
|
|
191
|
+
--kne-viewport-height: 100dvh;
|
|
192
|
+
--kne-viewport-inline-size: 100vw;
|
|
193
|
+
--kne-viewport-block-size: 100dvh;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.kne-react-modal_gh14z {
|
|
197
|
+
--kne-viewport-width: 100vw;
|
|
198
|
+
--kne-viewport-height: 100dvh;
|
|
199
|
+
--kne-viewport-inline-size: 100vw;
|
|
200
|
+
--kne-viewport-block-size: 100dvh;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.kne-react-modal_Bk7-B {
|
|
204
|
+
--kne-modal-viewport-height: var(--kne-viewport-height, 100vh);
|
|
205
|
+
--kne-modal-viewport-width: var(--kne-viewport-width, 100vw);
|
|
206
|
+
--kne-modal-title-height: 48px;
|
|
207
|
+
--kne-modal-footer-height: 58px;
|
|
208
|
+
--kne-modal-viewport-gutter: 120px;
|
|
209
|
+
--kne-modal-body-padding-vertical: 48px;
|
|
210
|
+
--kne-modal-body-padding-horizontal: 48px;
|
|
211
|
+
--kne-modal-body-min-height: 394px;
|
|
212
|
+
--kne-modal-body-height: calc(var(--kne-modal-viewport-height) - var(--kne-modal-title-height) - var(--kne-modal-footer-height) - var(--kne-modal-viewport-gutter));
|
|
213
|
+
--kne-modal-body-max-height: var(--kne-modal-body-height);
|
|
214
|
+
--kne-modal-content-height: calc(var(--kne-modal-body-height) - var(--kne-modal-body-padding-vertical));
|
|
215
|
+
--kne-modal-content-min-height: calc(var(--kne-modal-body-min-height) - var(--kne-modal-body-padding-vertical));
|
|
216
|
+
--kne-modal-content-width: calc(100% - var(--kne-modal-body-padding-horizontal));
|
|
217
|
+
}
|
|
218
|
+
.kne-react-modal_Bk7-B.kne-react-modal_DZGD6 {
|
|
219
|
+
--kne-modal-body-min-height: 252px;
|
|
220
|
+
}
|
|
221
|
+
.kne-react-modal_Bk7-B.kne-react-modal_9sz-n .kne-react-modal_fFnva {
|
|
222
|
+
min-width: 1000px;
|
|
223
|
+
}
|
|
224
|
+
.kne-react-modal_Bk7-B.kne-react-modal_LtgJz {
|
|
225
|
+
--kne-modal-viewport-gutter: 0px;
|
|
226
|
+
--kne-modal-body-padding-vertical: 24px;
|
|
227
|
+
--kne-modal-body-padding-horizontal: 24px;
|
|
228
|
+
max-width: 100% !important;
|
|
229
|
+
width: 100% !important;
|
|
230
|
+
height: 100% !important;
|
|
231
|
+
max-height: 100% !important;
|
|
232
|
+
margin: 0 !important;
|
|
233
|
+
top: 0 !important;
|
|
234
|
+
padding-bottom: 0 !important;
|
|
235
|
+
}
|
|
236
|
+
.kne-react-modal_Bk7-B.kne-react-modal_LtgJz.kne-react-modal_9sz-n .kne-react-modal_fFnva {
|
|
237
|
+
min-width: 0;
|
|
238
|
+
}
|
|
239
|
+
.kne-react-modal_Bk7-B .kne-react-modal_aEoZq {
|
|
240
|
+
padding: 0;
|
|
241
|
+
border-radius: 8px;
|
|
242
|
+
/* 无 footer 时 body 贴底,需裁切子层直角才能露出底部圆角 */
|
|
243
|
+
overflow: hidden;
|
|
244
|
+
}
|
|
245
|
+
.kne-react-modal_Bk7-B .kne-react-modal_aEoZq.kne-react-modal_LtgJz {
|
|
246
|
+
border-radius: 0 !important;
|
|
247
|
+
height: 100% !important;
|
|
248
|
+
max-height: 100% !important;
|
|
249
|
+
overflow: hidden !important;
|
|
250
|
+
box-sizing: border-box;
|
|
251
|
+
padding: 0 !important;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.kne-react-modal_54n8W,
|
|
255
|
+
.kne-react-modal_AJ9pV {
|
|
256
|
+
display: none;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.kne-react-modal_u2IjN {
|
|
260
|
+
padding: 0;
|
|
261
|
+
}
|
|
262
|
+
.kne-react-modal_u2IjN.kne-react-modal_LtgJz {
|
|
263
|
+
height: 100%;
|
|
264
|
+
max-height: 100%;
|
|
265
|
+
overflow: hidden;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.kne-react-modal_kkILR {
|
|
269
|
+
position: relative;
|
|
270
|
+
display: flex;
|
|
271
|
+
flex-direction: column;
|
|
272
|
+
box-sizing: border-box;
|
|
273
|
+
}
|
|
274
|
+
.kne-react-modal_kkILR.kne-react-modal_8Iysr {
|
|
275
|
+
--kne-modal-title-height: 0px;
|
|
276
|
+
/* 无 title 时关闭按钮仍按标题栏高度垂直居中(如 Tabs 顶栏) */
|
|
277
|
+
--kne-modal-close-align-height: 48px;
|
|
278
|
+
}
|
|
279
|
+
.kne-react-modal_kkILR.kne-react-modal_VMxik {
|
|
280
|
+
--kne-modal-footer-height: 0px;
|
|
281
|
+
}
|
|
282
|
+
.kne-react-modal_kkILR.kne-react-modal_Fof-N {
|
|
283
|
+
--kne-modal-body-padding-vertical: 0px;
|
|
284
|
+
--kne-modal-body-padding-horizontal: 0px;
|
|
285
|
+
}
|
|
286
|
+
.kne-react-modal_kkILR.kne-react-modal_LtgJz {
|
|
287
|
+
width: 100%;
|
|
288
|
+
height: var(--kne-modal-viewport-height);
|
|
289
|
+
max-height: var(--kne-modal-viewport-height);
|
|
290
|
+
min-height: var(--kne-modal-viewport-height);
|
|
291
|
+
overflow: hidden;
|
|
292
|
+
}
|
|
293
|
+
.kne-react-modal_kkILR.kne-react-modal_LtgJz .kne-react-modal_tG9MF {
|
|
294
|
+
flex: none;
|
|
295
|
+
}
|
|
296
|
+
.kne-react-modal_kkILR.kne-react-modal_LtgJz .kne-react-modal_W-QFz {
|
|
297
|
+
flex: 1 1 auto;
|
|
298
|
+
min-height: 0;
|
|
299
|
+
}
|
|
300
|
+
.kne-react-modal_kkILR.kne-react-modal_LtgJz .kne-react-modal_meVfy {
|
|
301
|
+
flex: none;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.kne-react-modal_tG9MF {
|
|
305
|
+
flex: none;
|
|
306
|
+
height: var(--kne-modal-title-height);
|
|
307
|
+
display: flex;
|
|
308
|
+
align-items: center;
|
|
309
|
+
color: var(--font-color, rgba(0, 0, 0, 0.88));
|
|
310
|
+
font-size: 16px;
|
|
311
|
+
font-weight: 700;
|
|
312
|
+
line-height: 1.2;
|
|
313
|
+
padding: 0 48px 0 24px;
|
|
314
|
+
margin-bottom: 0;
|
|
315
|
+
box-sizing: border-box;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.kne-react-modal_W-QFz {
|
|
319
|
+
flex: 1 1 auto;
|
|
320
|
+
min-height: 0;
|
|
321
|
+
min-height: var(--kne-modal-body-min-height);
|
|
322
|
+
max-height: var(--kne-modal-body-max-height);
|
|
323
|
+
height: var(--kne-modal-body-height);
|
|
324
|
+
box-sizing: border-box;
|
|
325
|
+
}
|
|
326
|
+
.kne-react-modal_W-QFz.kne-react-modal_l627I {
|
|
327
|
+
display: flex;
|
|
328
|
+
flex-direction: column;
|
|
329
|
+
overflow: hidden;
|
|
330
|
+
--kne-modal-content-height: 100%;
|
|
331
|
+
--kne-modal-content-min-height: 0px;
|
|
332
|
+
}
|
|
333
|
+
.kne-react-modal_W-QFz.kne-react-modal_l627I .kne-react-modal_fFnva {
|
|
334
|
+
flex: 1 1 auto;
|
|
335
|
+
min-height: 0;
|
|
336
|
+
height: 100%;
|
|
337
|
+
max-height: 100%;
|
|
338
|
+
overflow: hidden;
|
|
339
|
+
display: flex;
|
|
340
|
+
flex-direction: column;
|
|
341
|
+
box-sizing: border-box;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.kne-react-modal_fFnva {
|
|
345
|
+
padding: calc(var(--kne-modal-body-padding-vertical) / 2) calc(var(--kne-modal-body-padding-horizontal) / 2);
|
|
346
|
+
min-height: var(--kne-modal-content-height);
|
|
347
|
+
width: 100%;
|
|
348
|
+
max-width: 100%;
|
|
349
|
+
box-sizing: border-box;
|
|
350
|
+
}
|
|
351
|
+
.kne-react-modal_fFnva.kne-react-modal_Fof-N {
|
|
352
|
+
padding: 0;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.kne-react-modal_meVfy {
|
|
356
|
+
flex: none;
|
|
357
|
+
display: flex;
|
|
358
|
+
align-items: center;
|
|
359
|
+
gap: 12px;
|
|
360
|
+
padding: 12px 24px 24px;
|
|
361
|
+
box-sizing: border-box;
|
|
362
|
+
}
|
|
363
|
+
.kne-react-modal_meVfy.kne-react-modal_LtgJz {
|
|
364
|
+
justify-content: center;
|
|
365
|
+
border-top: 1px solid var(--bg-color-grey-3, #f0f0f0);
|
|
366
|
+
}
|
|
367
|
+
.kne-react-modal_meVfy {
|
|
368
|
+
/* footerButtons=[] + 宿主 footer(如 FormModal Submit/Cancel) */
|
|
369
|
+
}
|
|
370
|
+
.kne-react-modal_meVfy.kne-react-modal_LtgJz.kne-react-modal_17Eih .kne-react-modal_Fx8Z- {
|
|
371
|
+
flex: 1 1 100%;
|
|
372
|
+
width: 100%;
|
|
373
|
+
display: flex;
|
|
374
|
+
justify-content: center;
|
|
375
|
+
/* form-info ModalFooter:外层 Flex space-between → 移动端居中 */
|
|
376
|
+
}
|
|
377
|
+
.kne-react-modal_meVfy.kne-react-modal_LtgJz.kne-react-modal_17Eih .kne-react-modal_Fx8Z- > .ant-flex {
|
|
378
|
+
width: auto;
|
|
379
|
+
max-width: 100%;
|
|
380
|
+
justify-content: center !important;
|
|
381
|
+
}
|
|
382
|
+
.kne-react-modal_meVfy.kne-react-modal_LtgJz.kne-react-modal_17Eih .kne-react-modal_Fx8Z- > .ant-flex > div:first-child:empty {
|
|
383
|
+
display: none;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.kne-react-modal_Fx8Z- {
|
|
387
|
+
flex: 1 1 auto;
|
|
388
|
+
min-width: 0;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.kne-react-modal_V3ZrX {
|
|
392
|
+
flex: none;
|
|
393
|
+
min-width: 0;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.kne-react-modal_-EK8N {
|
|
397
|
+
position: absolute;
|
|
398
|
+
top: calc((var(--kne-modal-close-align-height, var(--kne-modal-title-height, 48px)) - 22px) / 2);
|
|
399
|
+
inset-inline-end: 17px;
|
|
400
|
+
z-index: 1010;
|
|
401
|
+
padding: 0;
|
|
402
|
+
color: var(--font-color-grey, rgba(0, 0, 0, 0.45));
|
|
403
|
+
flex-shrink: 0;
|
|
404
|
+
}
|
|
405
|
+
.kne-react-modal_-EK8N.ant-btn.ant-btn-icon-only.ant-btn-text {
|
|
406
|
+
width: 22px;
|
|
407
|
+
height: 22px;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.kne-react-modal_eNb-h {
|
|
411
|
+
position: absolute;
|
|
412
|
+
width: 0;
|
|
413
|
+
height: 0;
|
|
414
|
+
overflow: hidden;
|
|
415
|
+
pointer-events: none;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.ant-modal-root .kne-react-modal_3Sju5.ant-modal-wrap {
|
|
419
|
+
overflow: hidden;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.kne-react-modal_-qCIk.ant-modal-wrap {
|
|
423
|
+
display: flex;
|
|
424
|
+
align-items: center !important;
|
|
425
|
+
justify-content: center;
|
|
426
|
+
min-height: var(--kne-viewport-height, 100vh);
|
|
427
|
+
max-height: var(--kne-viewport-height, 100vh);
|
|
428
|
+
padding: 16px;
|
|
429
|
+
box-sizing: border-box;
|
|
430
|
+
overflow: hidden;
|
|
431
|
+
}
|
|
432
|
+
.kne-react-modal_-qCIk.ant-modal-wrap::before {
|
|
433
|
+
display: none !important;
|
|
434
|
+
}
|
|
435
|
+
.kne-react-modal_-qCIk.ant-modal-wrap .ant-modal {
|
|
436
|
+
top: auto !important;
|
|
437
|
+
display: block;
|
|
438
|
+
padding-bottom: 0 !important;
|
|
439
|
+
margin: 0 auto;
|
|
440
|
+
vertical-align: initial;
|
|
441
|
+
}
|
|
442
|
+
.kne-react-modal_-qCIk.ant-modal-wrap.kne-is-boundary {
|
|
443
|
+
position: absolute !important;
|
|
444
|
+
inset: 0 !important;
|
|
445
|
+
width: 100% !important;
|
|
446
|
+
height: 100% !important;
|
|
447
|
+
min-height: 100% !important;
|
|
448
|
+
max-height: 100% !important;
|
|
449
|
+
}
|
|
450
|
+
.kne-react-modal_-qCIk.ant-modal-wrap.kne-is-viewport {
|
|
451
|
+
position: fixed !important;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.kne-react-modal_8lS2G.ant-modal-wrap {
|
|
455
|
+
display: block;
|
|
456
|
+
inset: 0 !important;
|
|
457
|
+
width: var(--kne-viewport-width, 100vw) !important;
|
|
458
|
+
height: var(--kne-viewport-height, 100vh) !important;
|
|
459
|
+
max-height: var(--kne-viewport-height, 100vh) !important;
|
|
460
|
+
padding: 0 !important;
|
|
461
|
+
box-sizing: border-box;
|
|
462
|
+
overflow: hidden !important;
|
|
463
|
+
overscroll-behavior: none;
|
|
464
|
+
touch-action: none;
|
|
465
|
+
text-align: start;
|
|
466
|
+
}
|
|
467
|
+
.kne-react-modal_8lS2G.ant-modal-wrap::before {
|
|
468
|
+
display: none !important;
|
|
469
|
+
content: none !important;
|
|
470
|
+
}
|
|
471
|
+
.kne-react-modal_8lS2G.ant-modal-wrap .ant-modal {
|
|
472
|
+
top: 0 !important;
|
|
473
|
+
width: 100% !important;
|
|
474
|
+
max-width: 100% !important;
|
|
475
|
+
height: 100% !important;
|
|
476
|
+
max-height: 100% !important;
|
|
477
|
+
padding-bottom: 0 !important;
|
|
478
|
+
margin: 0 !important;
|
|
479
|
+
vertical-align: initial;
|
|
480
|
+
touch-action: auto;
|
|
481
|
+
}
|
|
482
|
+
.kne-react-modal_8lS2G.ant-modal-wrap.kne-is-boundary {
|
|
483
|
+
position: absolute !important;
|
|
484
|
+
width: 100% !important;
|
|
485
|
+
height: 100% !important;
|
|
486
|
+
min-height: 100% !important;
|
|
487
|
+
max-height: 100% !important;
|
|
488
|
+
}
|
|
489
|
+
.kne-react-modal_8lS2G.ant-modal-wrap.kne-is-viewport {
|
|
490
|
+
position: fixed !important;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.kne-react-modal_XfLOC.kne-is-boundary {
|
|
494
|
+
position: absolute !important;
|
|
495
|
+
inset: 0 !important;
|
|
496
|
+
}
|
|
497
|
+
.kne-react-modal_XfLOC.kne-is-viewport {
|
|
498
|
+
position: fixed !important;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
@container kne-responsive (max-width: 768px) {
|
|
502
|
+
.kne-react-modal_fFnva:not(.kne-react-modal_Fof-N) {
|
|
503
|
+
--kne-modal-body-padding-vertical: 24px;
|
|
504
|
+
--kne-modal-body-padding-horizontal: 24px;
|
|
505
|
+
}
|
|
506
|
+
.kne-react-modal_tG9MF {
|
|
507
|
+
padding: 0 40px 0 16px;
|
|
508
|
+
}
|
|
509
|
+
.kne-react-modal_meVfy {
|
|
510
|
+
padding: 12px 16px 16px;
|
|
511
|
+
border-top: 1px solid var(--bg-color-grey-3, #f0f0f0);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["layouts.module.scss","style.module.scss"],"names":[],"mappings":"AAAA;EACE,uCAAuC;EACvC,2CAA2C;EAC3C,YAAY;EACZ,aAAa;EACb,WAAW;EACX,aAAa;EACb,sBAAsB;EACtB,gBAAgB;EAChB,sBAAsB;AACxB;AACA;EACE,UAAU;EACV,iDAAiD;EACjD,SAAS;EACT,sBAAsB;EACtB,mBAAmB;AACrB;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,mBAAmB;AACrB;AACA;EACE,kBAAkB;EAClB,UAAU;EACV,gBAAgB;EAChB,oBAAoB;EACpB,mBAAmB;AACrB;AACA;EACE,UAAU;EACV,sDAAsD;AACxD;AACA;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,gBAAgB;AAClB;AACA;EACE,YAAY;EACZ,aAAa;EACb,gBAAgB;AAClB;AACA;EACE,YAAY;EACZ,aAAa;EACb,gBAAgB;EAChB,aAAa;AACf;AACA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,WAAW;EACX,gBAAgB;EAChB,sBAAsB;AACxB;;AAEA;EACE,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,sBAAsB;AACxB;AACA;EACE,8BAA8B;AAChC;;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,sBAAsB;AACxB;AACA;;;EAGE,YAAY;EACZ,aAAa;AACf;AACA;EACE,YAAY;EACZ,aAAa;AACf;;AAEA;EACE,sBAAsB;EACtB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,MAAM;EACN,UAAU;E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E;IACE,uCAAuC;IACvC,yCAAyC;EAC3C;EACA;IACE,sBAAsB;EACxB;EACA;IACE,uBAAuB;IACvB,qDAAqD;EACvD;AACF","file":"index.css","sourcesContent":[".modal-tabs-layout:global(.ant-tabs) {\n height: var(--kne-modal-content-height);\n max-height: var(--kne-modal-content-height);\n flex: 1 1 0%;\n min-height: 0;\n width: 100%;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n box-sizing: border-box;\n}\n.modal-tabs-layout:global(.ant-tabs) > :global(.ant-tabs-nav) {\n flex: none;\n height: var(--kne-modal-close-align-height, 48px);\n margin: 0;\n padding: 0 86px 0 24px;\n align-items: center;\n}\n.modal-tabs-layout:global(.ant-tabs) > :global(.ant-tabs-nav)::before {\n border-bottom-color: #f0f0f0;\n}\n.modal-tabs-layout:global(.ant-tabs) > :global(.ant-tabs-nav) :global(.ant-tabs-nav-wrap) {\n align-self: stretch;\n}\n.modal-tabs-layout:global(.ant-tabs) > :global(.ant-tabs-nav) :global(.ant-tabs-tab) {\n margin: 0 28px 0 0;\n padding: 0;\n font-weight: 600;\n display: inline-flex;\n align-items: center;\n}\n.modal-tabs-layout:global(.ant-tabs) > :global(.ant-tabs-nav) :global(.ant-tabs-tab) :global(.ant-tabs-tab-btn) {\n padding: 0;\n line-height: var(--kne-modal-close-align-height, 48px);\n}\n.modal-tabs-layout:global(.ant-tabs) > :global(.ant-tabs-body-holder) {\n flex: 1 1 0% !important;\n height: 0 !important;\n min-height: 0;\n overflow: hidden;\n}\n.modal-tabs-layout:global(.ant-tabs) :global(.ant-tabs-body) {\n height: 100%;\n min-height: 0;\n overflow: hidden;\n}\n.modal-tabs-layout:global(.ant-tabs) :global(.ant-tabs-content) {\n height: 100%;\n min-height: 0;\n overflow: hidden;\n outline: none;\n}\n.modal-tabs-layout:global(.ant-tabs) :global(.ant-tabs-content-hidden) {\n display: none;\n}\n\n.modal-columns-layout {\n display: flex;\n flex-direction: row;\n height: 100%;\n max-height: 100%;\n min-height: 0;\n width: 100%;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n.modal-columns-layout__col {\n min-height: 0;\n min-width: 0;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n}\n.modal-columns-layout__col:not(:first-child) {\n border-left: 1px solid #f0f0f0;\n}\n\n.modal-columns-layout__col:first-child :global(.modal-scroll-region) {\n background: #fafafa;\n}\n.modal-columns-layout__col:first-child :global(.modal-scroll-region) :global(.simplebar-content) {\n background: #fafafa;\n}\n.modal-columns-layout__col:first-child :global(.modal-scroll-region) :global(.modal-scroll-region-sticky) {\n background: #fafafa;\n}\n\n.modal-columns-layout__col:last-child :global(.modal-scroll-region) {\n background: #fff;\n}\n.modal-columns-layout__col:last-child :global(.modal-scroll-region) :global(.simplebar-content) {\n background: #fff;\n}\n\n.modal-columns-layout__col:only-child :global(.modal-scroll-region) {\n background: #fff;\n}\n.modal-columns-layout__col:only-child :global(.modal-scroll-region) :global(.simplebar-content) {\n background: #fff;\n}\n\n.modal-scroll-region {\n height: 100%;\n max-height: 100%;\n min-height: 0;\n box-sizing: border-box;\n}\n.modal-scroll-region :global(.simplebar-wrapper),\n.modal-scroll-region :global(.simplebar-mask),\n.modal-scroll-region :global(.simplebar-offset) {\n height: 100%;\n min-height: 0;\n}\n.modal-scroll-region :global(.simplebar-content-wrapper) {\n height: 100%;\n min-height: 0;\n}\n\n.modal-scroll-region-inner {\n box-sizing: border-box;\n min-height: 100%;\n}\n\n.modal-scroll-region.is-inset .modal-scroll-region-inner {\n padding: 16px 20px;\n}\n\n:global(.modal-scroll-region-sticky) {\n position: sticky;\n top: 0;\n z-index: 1;\n padding: 12px 16px 10px;\n background: #fff;\n border-bottom: 1px solid #f0f0f0;\n}\n\n:global(.react-modal-splitter.ant-splitter) {\n height: 100% !important;\n max-height: 100%;\n min-height: 0;\n overflow: hidden;\n box-sizing: border-box;\n}\n:global(.react-modal-splitter.ant-splitter) :global(.ant-splitter-panel) {\n min-height: 0;\n overflow: hidden;\n}\n:global(.react-modal-splitter.ant-splitter) :global(.ant-splitter-panel:first-child) :global(.modal-scroll-region) {\n background: #fafafa;\n}\n:global(.react-modal-splitter.ant-splitter) :global(.ant-splitter-panel:first-child) :global(.modal-scroll-region) :global(.simplebar-content) {\n background: #fafafa;\n}\n:global(.react-modal-splitter.ant-splitter) :global(.ant-splitter-panel:first-child) :global(.modal-scroll-region) :global(.modal-scroll-region-sticky) {\n background: #fafafa;\n}\n:global(.react-modal-splitter.ant-splitter) :global(.ant-splitter-panel:last-child) :global(.modal-scroll-region) {\n background: #fff;\n}\n:global(.react-modal-splitter.ant-splitter) :global(.ant-splitter-panel:last-child) :global(.modal-scroll-region) :global(.simplebar-content) {\n background: #fff;\n}\n\n:global(.react-modal-steps-form) :global(.modal-body-inner) {\n min-width: 0;\n max-width: 100%;\n overflow-x: hidden;\n}\n:global(.react-modal-steps-form) :global(.simplebar-content-wrapper),\n:global(.react-modal-steps-form) :global(.simplebar-content) {\n overflow-x: hidden !important;\n}\n:global(.react-modal-steps-form) :global(.kne-form-steps.ant-steps-horizontal) {\n padding-inline: 0 !important;\n width: 100%;\n max-width: 100%;\n box-sizing: border-box;\n}","@charset \"UTF-8\";\n.kne-responsive-boundary {\n position: relative;\n}\n\n.kne-responsive-scroll {\n overflow: auto;\n}\n\n:root {\n --kne-viewport-width: 100vw;\n --kne-viewport-height: 100dvh;\n --kne-viewport-inline-size: 100vw;\n --kne-viewport-block-size: 100dvh;\n}\n\n.kne-responsive-boundary {\n --kne-viewport-width: 100vw;\n --kne-viewport-height: 100dvh;\n --kne-viewport-inline-size: 100vw;\n --kne-viewport-block-size: 100dvh;\n}\n\n.modal {\n --kne-modal-viewport-height: var(--kne-viewport-height, 100vh);\n --kne-modal-viewport-width: var(--kne-viewport-width, 100vw);\n --kne-modal-title-height: 48px;\n --kne-modal-footer-height: 58px;\n --kne-modal-viewport-gutter: 120px;\n --kne-modal-body-padding-vertical: 48px;\n --kne-modal-body-padding-horizontal: 48px;\n --kne-modal-body-min-height: 394px;\n --kne-modal-body-height: calc(var(--kne-modal-viewport-height) - var(--kne-modal-title-height) - var(--kne-modal-footer-height) - var(--kne-modal-viewport-gutter));\n --kne-modal-body-max-height: var(--kne-modal-body-height);\n --kne-modal-content-height: calc(var(--kne-modal-body-height) - var(--kne-modal-body-padding-vertical));\n --kne-modal-content-min-height: calc(var(--kne-modal-body-min-height) - var(--kne-modal-body-padding-vertical));\n --kne-modal-content-width: calc(100% - var(--kne-modal-body-padding-horizontal));\n}\n.modal.small {\n --kne-modal-body-min-height: 252px;\n}\n.modal.large .modal-body-inner {\n min-width: 1000px;\n}\n.modal.is-mobile {\n --kne-modal-viewport-gutter: 0px;\n --kne-modal-body-padding-vertical: 24px;\n --kne-modal-body-padding-horizontal: 24px;\n max-width: 100% !important;\n width: 100% !important;\n height: 100% !important;\n max-height: 100% !important;\n margin: 0 !important;\n top: 0 !important;\n padding-bottom: 0 !important;\n}\n.modal.is-mobile.large .modal-body-inner {\n min-width: 0;\n}\n.modal .modal-container {\n padding: 0;\n border-radius: 8px;\n /* 无 footer 时 body 贴底,需裁切子层直角才能露出底部圆角 */\n overflow: hidden;\n}\n.modal .modal-container.is-mobile {\n border-radius: 0 !important;\n height: 100% !important;\n max-height: 100% !important;\n overflow: hidden !important;\n box-sizing: border-box;\n padding: 0 !important;\n}\n\n.modal-antd-header,\n.modal-antd-footer {\n display: none;\n}\n\n.modal-antd-body {\n padding: 0;\n}\n.modal-antd-body.is-mobile {\n height: 100%;\n max-height: 100%;\n overflow: hidden;\n}\n\n.modal-outer {\n position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n}\n.modal-outer.no-title {\n --kne-modal-title-height: 0px;\n /* 无 title 时关闭按钮仍按标题栏高度垂直居中(如 Tabs 顶栏) */\n --kne-modal-close-align-height: 48px;\n}\n.modal-outer.no-footer {\n --kne-modal-footer-height: 0px;\n}\n.modal-outer.no-padding {\n --kne-modal-body-padding-vertical: 0px;\n --kne-modal-body-padding-horizontal: 0px;\n}\n.modal-outer.is-mobile {\n width: 100%;\n height: var(--kne-modal-viewport-height);\n max-height: var(--kne-modal-viewport-height);\n min-height: var(--kne-modal-viewport-height);\n overflow: hidden;\n}\n.modal-outer.is-mobile .modal-title {\n flex: none;\n}\n.modal-outer.is-mobile .modal-body {\n flex: 1 1 auto;\n min-height: 0;\n}\n.modal-outer.is-mobile .modal-footer {\n flex: none;\n}\n\n.modal-title {\n flex: none;\n height: var(--kne-modal-title-height);\n display: flex;\n align-items: center;\n color: var(--font-color, rgba(0, 0, 0, 0.88));\n font-size: 16px;\n font-weight: 700;\n line-height: 1.2;\n padding: 0 48px 0 24px;\n margin-bottom: 0;\n box-sizing: border-box;\n}\n\n.modal-body {\n flex: 1 1 auto;\n min-height: 0;\n min-height: var(--kne-modal-body-min-height);\n max-height: var(--kne-modal-body-max-height);\n height: var(--kne-modal-body-height);\n box-sizing: border-box;\n}\n.modal-body.body-scroll-off {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n --kne-modal-content-height: 100%;\n --kne-modal-content-min-height: 0px;\n}\n.modal-body.body-scroll-off .modal-body-inner {\n flex: 1 1 auto;\n min-height: 0;\n height: 100%;\n max-height: 100%;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n}\n\n.modal-body-inner {\n padding: calc(var(--kne-modal-body-padding-vertical) / 2) calc(var(--kne-modal-body-padding-horizontal) / 2);\n min-height: var(--kne-modal-content-height);\n width: 100%;\n max-width: 100%;\n box-sizing: border-box;\n}\n.modal-body-inner.no-padding {\n padding: 0;\n}\n\n.modal-footer {\n flex: none;\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 12px 24px 24px;\n box-sizing: border-box;\n}\n.modal-footer.is-mobile {\n justify-content: center;\n border-top: 1px solid var(--bg-color-grey-3, #f0f0f0);\n}\n.modal-footer {\n /* footerButtons=[] + 宿主 footer(如 FormModal Submit/Cancel) */\n}\n.modal-footer.is-mobile.is-embedded-footer .modal-footer-extra {\n flex: 1 1 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n /* form-info ModalFooter:外层 Flex space-between → 移动端居中 */\n}\n.modal-footer.is-mobile.is-embedded-footer .modal-footer-extra > :global(.ant-flex) {\n width: auto;\n max-width: 100%;\n justify-content: center !important;\n}\n.modal-footer.is-mobile.is-embedded-footer .modal-footer-extra > :global(.ant-flex) > :global(div:first-child:empty) {\n display: none;\n}\n\n.modal-footer-extra {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.modal-footer-actions {\n flex: none;\n min-width: 0;\n}\n\n.modal-close {\n position: absolute;\n top: calc((var(--kne-modal-close-align-height, var(--kne-modal-title-height, 48px)) - 22px) / 2);\n inset-inline-end: 17px;\n z-index: 1010;\n padding: 0;\n color: var(--font-color-grey, rgba(0, 0, 0, 0.45));\n flex-shrink: 0;\n}\n.modal-close:global(.ant-btn.ant-btn-icon-only.ant-btn-text) {\n width: 22px;\n height: 22px;\n}\n\n.modal-host {\n position: absolute;\n width: 0;\n height: 0;\n overflow: hidden;\n pointer-events: none;\n}\n\n:global(.ant-modal-root) .modal-wrap:global(.ant-modal-wrap) {\n overflow: hidden;\n}\n\n.modal-wrap-centered:global(.ant-modal-wrap) {\n display: flex;\n align-items: center !important;\n justify-content: center;\n min-height: var(--kne-viewport-height, 100vh);\n max-height: var(--kne-viewport-height, 100vh);\n padding: 16px;\n box-sizing: border-box;\n overflow: hidden;\n}\n.modal-wrap-centered:global(.ant-modal-wrap)::before {\n display: none !important;\n}\n.modal-wrap-centered:global(.ant-modal-wrap) :global(.ant-modal) {\n top: auto !important;\n display: block;\n padding-bottom: 0 !important;\n margin: 0 auto;\n vertical-align: initial;\n}\n.modal-wrap-centered:global(.ant-modal-wrap):global(.kne-is-boundary) {\n position: absolute !important;\n inset: 0 !important;\n width: 100% !important;\n height: 100% !important;\n min-height: 100% !important;\n max-height: 100% !important;\n}\n.modal-wrap-centered:global(.ant-modal-wrap):global(.kne-is-viewport) {\n position: fixed !important;\n}\n\n.modal-wrap-fullscreen:global(.ant-modal-wrap) {\n display: block;\n inset: 0 !important;\n width: var(--kne-viewport-width, 100vw) !important;\n height: var(--kne-viewport-height, 100vh) !important;\n max-height: var(--kne-viewport-height, 100vh) !important;\n padding: 0 !important;\n box-sizing: border-box;\n overflow: hidden !important;\n overscroll-behavior: none;\n touch-action: none;\n text-align: start;\n}\n.modal-wrap-fullscreen:global(.ant-modal-wrap)::before {\n display: none !important;\n content: none !important;\n}\n.modal-wrap-fullscreen:global(.ant-modal-wrap) :global(.ant-modal) {\n top: 0 !important;\n width: 100% !important;\n max-width: 100% !important;\n height: 100% !important;\n max-height: 100% !important;\n padding-bottom: 0 !important;\n margin: 0 !important;\n vertical-align: initial;\n touch-action: auto;\n}\n.modal-wrap-fullscreen:global(.ant-modal-wrap):global(.kne-is-boundary) {\n position: absolute !important;\n width: 100% !important;\n height: 100% !important;\n min-height: 100% !important;\n max-height: 100% !important;\n}\n.modal-wrap-fullscreen:global(.ant-modal-wrap):global(.kne-is-viewport) {\n position: fixed !important;\n}\n\n.modal-mask-fullscreen:global(.kne-is-boundary) {\n position: absolute !important;\n inset: 0 !important;\n}\n.modal-mask-fullscreen:global(.kne-is-viewport) {\n position: fixed !important;\n}\n\n@container kne-responsive (max-width: 768px) {\n .modal-body-inner:not(.no-padding) {\n --kne-modal-body-padding-vertical: 24px;\n --kne-modal-body-padding-horizontal: 24px;\n }\n .modal-title {\n padding: 0 40px 0 16px;\n }\n .modal-footer {\n padding: 12px 16px 16px;\n border-top: 1px solid var(--bg-color-grey-3, #f0f0f0);\n }\n}"]}
|