@vortex-ui/env-puzzle 2.0.0-beta.5 → 2.0.0-beta.7
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/lib/create-modal/index.d.ts +1 -0
- package/lib/create-modal/index.js +2 -0
- package/lib/create-modal/index.js.map +1 -1
- package/lib/global.css +0 -257
- package/lib/global.less +1 -260
- package/lib/style/css.js +13 -0
- package/lib/style/css.js.map +1 -0
- package/lib/style/darkGreen.css +631 -0
- package/lib/style/darkGreen.less +370 -0
- package/lib/style/index.d.ts +2 -0
- package/lib/style/index.js +13 -0
- package/lib/style/index.js.map +1 -0
- package/lib/template/index.d.ts +1 -0
- package/lib/template/index.js +2 -0
- package/lib/template/index.js.map +1 -1
- package/lib/view-modal/index.d.ts +1 -0
- package/lib/view-modal/index.js +2 -0
- package/lib/view-modal/index.js.map +1 -1
- package/lib/view-modal/view-modal.js +9 -1
- package/lib/view-modal/view-modal.js.map +1 -1
- package/package.json +1 -1
- package/lib/va.css +0 -0
- package/lib/va.less +0 -6
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
@border-color: #e5e9f2;
|
|
2
|
+
@normal-item-bg-color: #f2f2f2;
|
|
3
|
+
@bg-color: #fff;
|
|
4
|
+
@middle-font-color: #666;
|
|
5
|
+
@table-header-bg: #f7f8fa;
|
|
6
|
+
@text-color: #333;
|
|
7
|
+
.darkGreenFormItem {
|
|
8
|
+
.ant-modal-body {
|
|
9
|
+
padding: 0;
|
|
10
|
+
position: relative;
|
|
11
|
+
&::after {
|
|
12
|
+
content: '';
|
|
13
|
+
position: absolute;
|
|
14
|
+
right: 0;
|
|
15
|
+
top: 0;
|
|
16
|
+
bottom: 0;
|
|
17
|
+
width: 1px;
|
|
18
|
+
background: @border-color;
|
|
19
|
+
}
|
|
20
|
+
.vtx-form-layout {
|
|
21
|
+
> .vtx-form-layout {
|
|
22
|
+
border: none;
|
|
23
|
+
}
|
|
24
|
+
> .vtx-form-pane:nth-child(1) {
|
|
25
|
+
border-top: 1px solid @border-color;
|
|
26
|
+
.vtx-form-pane-title {
|
|
27
|
+
padding-top: 16px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
position: relative;
|
|
31
|
+
padding: 0;
|
|
32
|
+
border-left: 1px solid @border-color;
|
|
33
|
+
border-bottom: 1px solid @border-color;
|
|
34
|
+
.vtx-form-item-col {
|
|
35
|
+
position: relative;
|
|
36
|
+
z-index: 9;
|
|
37
|
+
margin-bottom: 0;
|
|
38
|
+
//border-bottom: 1px solid @border-color;
|
|
39
|
+
border-right: 1px solid @border-color;
|
|
40
|
+
border-top: 1px solid @border-color;
|
|
41
|
+
min-height: 60px;
|
|
42
|
+
}
|
|
43
|
+
.ant-col-8,
|
|
44
|
+
.ant-col-12,
|
|
45
|
+
.ant-col-24 {
|
|
46
|
+
&.vtx-form-item-col {
|
|
47
|
+
border-bottom: 1px solid @border-color;
|
|
48
|
+
margin-bottom: -1px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
.vtx-form-card {
|
|
52
|
+
border: none;
|
|
53
|
+
}
|
|
54
|
+
.vtx-form-pane {
|
|
55
|
+
.ant-divider {
|
|
56
|
+
height: 0;
|
|
57
|
+
border: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.vtx-form-pane-content {
|
|
61
|
+
//border-left: 1px solid @border-color;
|
|
62
|
+
}
|
|
63
|
+
.ant-card:not(:nth-last-child(1)) {
|
|
64
|
+
.vtx-form-card-content {
|
|
65
|
+
border-bottom: 1px solid @border-color;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
.vtx-form-card-content {
|
|
69
|
+
padding: 20px 0 0 0;
|
|
70
|
+
}
|
|
71
|
+
.ant-card.vtx-form-card {
|
|
72
|
+
border-bottom: none;
|
|
73
|
+
}
|
|
74
|
+
.ant-tabs-tabpane {
|
|
75
|
+
.ant-divider {
|
|
76
|
+
height: 0;
|
|
77
|
+
border: none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.ant-card-head {
|
|
81
|
+
background: @normal-item-bg-color;
|
|
82
|
+
.ant-card-head-title {
|
|
83
|
+
font-weight: normal;
|
|
84
|
+
color: @text-color;
|
|
85
|
+
}
|
|
86
|
+
.ant-card-extra {
|
|
87
|
+
span {
|
|
88
|
+
color: @middle-font-color;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.ant-form-item {
|
|
94
|
+
height: 100%;
|
|
95
|
+
margin-bottom: 0 !important;
|
|
96
|
+
margin-right: 0;
|
|
97
|
+
.ant-form-item-row {
|
|
98
|
+
height: 100%;
|
|
99
|
+
align-items: center;
|
|
100
|
+
}
|
|
101
|
+
.ant-form-item-control {
|
|
102
|
+
height: 100%;
|
|
103
|
+
background: @bg-color;
|
|
104
|
+
> *:only-child {
|
|
105
|
+
height: 100%;
|
|
106
|
+
}
|
|
107
|
+
.ant-form-item-control-input {
|
|
108
|
+
height: 100%;
|
|
109
|
+
}
|
|
110
|
+
.ant-form-item-explain {
|
|
111
|
+
position: absolute;
|
|
112
|
+
bottom: 0;
|
|
113
|
+
left: 5px;
|
|
114
|
+
right: 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.ant-form-item-label {
|
|
118
|
+
background: @normal-item-bg-color;
|
|
119
|
+
height: 100%;
|
|
120
|
+
min-height: 58px;
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
justify-content: flex-end;
|
|
124
|
+
}
|
|
125
|
+
// 各个表单样式控制
|
|
126
|
+
.ant-form-item-control-input-content {
|
|
127
|
+
> *:nth-child(1):not(.ant-select):not(.vtx-multi-select):not(.vtx-select):not(.vtx-input-textarea):not(.env-tree-select) {
|
|
128
|
+
padding-left: 10px;
|
|
129
|
+
}
|
|
130
|
+
> .ant-select-disabled {
|
|
131
|
+
height: calc(~'100% + 2px');
|
|
132
|
+
position: relative;
|
|
133
|
+
// top: -1px;
|
|
134
|
+
.ant-select-selector {
|
|
135
|
+
border-radius: 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
padding-top: 1px;
|
|
139
|
+
padding-bottom: 1px;
|
|
140
|
+
height: 100%;
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
input,
|
|
144
|
+
textarea {
|
|
145
|
+
height: 100% !important;
|
|
146
|
+
border: none;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
.ant-checkbox,
|
|
150
|
+
.ant-radio {
|
|
151
|
+
input {
|
|
152
|
+
display: none;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
.vtx-multi-select {
|
|
156
|
+
height: 100%;
|
|
157
|
+
.ant-select {
|
|
158
|
+
height: 100%;
|
|
159
|
+
.ant-select-selector {
|
|
160
|
+
height: 100%;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
.ant-select-selector {
|
|
164
|
+
border: none;
|
|
165
|
+
border-right: 1px solid @border-color;
|
|
166
|
+
}
|
|
167
|
+
.ant-btn {
|
|
168
|
+
height: 100%;
|
|
169
|
+
border: none;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
.vtx-input-textarea {
|
|
173
|
+
width: 100%;
|
|
174
|
+
height: 100%;
|
|
175
|
+
}
|
|
176
|
+
input {
|
|
177
|
+
padding-left: 0;
|
|
178
|
+
min-height: 56px;
|
|
179
|
+
}
|
|
180
|
+
textarea,
|
|
181
|
+
.ant-input-number-disabled,
|
|
182
|
+
.ant-input-affix-wrapper,
|
|
183
|
+
.env-tree-select,
|
|
184
|
+
.ant-select,
|
|
185
|
+
.ant-input-number,
|
|
186
|
+
.ant-picker {
|
|
187
|
+
height: 100%;
|
|
188
|
+
border: none;
|
|
189
|
+
.ant-input-number-input-wrap {
|
|
190
|
+
height: 100%;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
.ant-select {
|
|
194
|
+
display: flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
.ant-select-selector {
|
|
197
|
+
//height: calc(~'100% - 1px');
|
|
198
|
+
height: 100%;
|
|
199
|
+
width: 100%;
|
|
200
|
+
border: none;
|
|
201
|
+
input {
|
|
202
|
+
height: 100%;
|
|
203
|
+
overflow: visible;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
.ant-select-selection-placeholder,
|
|
207
|
+
.ant-select-selection-item {
|
|
208
|
+
height: 100%;
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
.ant-upload-picture-card-wrapper {
|
|
214
|
+
padding-top: 10px;
|
|
215
|
+
}
|
|
216
|
+
.ant-select-focused,
|
|
217
|
+
.ant-input-number-focused,
|
|
218
|
+
.ant-input-affix-wrapper {
|
|
219
|
+
outline: none;
|
|
220
|
+
position: relative;
|
|
221
|
+
z-index: 199;
|
|
222
|
+
width: calc(~'100% - 1px');
|
|
223
|
+
// height: calc(~'100% - 1px');
|
|
224
|
+
}
|
|
225
|
+
input:focus,
|
|
226
|
+
textarea:focus {
|
|
227
|
+
outline: none;
|
|
228
|
+
position: relative;
|
|
229
|
+
z-index: 199;
|
|
230
|
+
width: calc(~'100% - 1px');
|
|
231
|
+
// height: calc(~'100% - 1px');
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
.ant-row {
|
|
235
|
+
width: 100%;
|
|
236
|
+
}
|
|
237
|
+
.vtx-form-pane-title {
|
|
238
|
+
padding-left: 24px;
|
|
239
|
+
margin-bottom: 0;
|
|
240
|
+
padding-bottom: 24px;
|
|
241
|
+
border-right: 1px solid @border-color;
|
|
242
|
+
}
|
|
243
|
+
.ant-col:not(.ant-col-8):not(.ant-col-12):not(.ant-col-24):not(.ant-col-4) {
|
|
244
|
+
&.ant-form-item-label {
|
|
245
|
+
width: 150px;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
.text-node {
|
|
249
|
+
box-sizing: border-box;
|
|
250
|
+
padding-left: 10px;
|
|
251
|
+
}
|
|
252
|
+
.ant-col:not(:nth-child(1)) {
|
|
253
|
+
.ant-row {
|
|
254
|
+
.ant-col.vtx-form-item-col {
|
|
255
|
+
border-top: none;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
.ant-form-item-with-help {
|
|
260
|
+
margin-bottom: 0 !important;
|
|
261
|
+
}
|
|
262
|
+
//.ant-col{
|
|
263
|
+
// max-height: 62px ;
|
|
264
|
+
// overflow: hidden;
|
|
265
|
+
//}
|
|
266
|
+
}
|
|
267
|
+
.ant-tabs-nav-wrap {
|
|
268
|
+
background: @table-header-bg;
|
|
269
|
+
height: 42px;
|
|
270
|
+
.ant-tabs-tab-active {
|
|
271
|
+
background: #fff;
|
|
272
|
+
}
|
|
273
|
+
.ant-tabs-tab {
|
|
274
|
+
height: 42px;
|
|
275
|
+
padding-left: 18px !important;
|
|
276
|
+
padding-right: 18px !important;
|
|
277
|
+
margin-left: 0;
|
|
278
|
+
}
|
|
279
|
+
.ant-tabs-ink-bar.ant-tabs-ink-bar-animated {
|
|
280
|
+
top: 0;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.darkGreen {
|
|
286
|
+
.env-create-modal {
|
|
287
|
+
.darkGreenFormItem();
|
|
288
|
+
}
|
|
289
|
+
.env-view-modal {
|
|
290
|
+
.ant-modal-body {
|
|
291
|
+
> .ant-row {
|
|
292
|
+
position: relative;
|
|
293
|
+
padding: 0;
|
|
294
|
+
.left-border {
|
|
295
|
+
position: absolute;
|
|
296
|
+
left: 0;
|
|
297
|
+
top: 0;
|
|
298
|
+
bottom: 0;
|
|
299
|
+
width: 1px;
|
|
300
|
+
background: @border-color;
|
|
301
|
+
}
|
|
302
|
+
.right-border {
|
|
303
|
+
position: absolute;
|
|
304
|
+
right: 0;
|
|
305
|
+
top: 0;
|
|
306
|
+
bottom: 0;
|
|
307
|
+
width: 1px;
|
|
308
|
+
background: @border-color;
|
|
309
|
+
}
|
|
310
|
+
.top-border {
|
|
311
|
+
position: absolute;
|
|
312
|
+
right: 0;
|
|
313
|
+
left: 0;
|
|
314
|
+
top: 0;
|
|
315
|
+
height: 1px;
|
|
316
|
+
background: @border-color;
|
|
317
|
+
}
|
|
318
|
+
.bottom-border {
|
|
319
|
+
position: absolute;
|
|
320
|
+
right: 0;
|
|
321
|
+
left: 0;
|
|
322
|
+
bottom: 0;
|
|
323
|
+
height: 1px;
|
|
324
|
+
background: @border-color;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
.env-view-modal-col {
|
|
329
|
+
position: relative;
|
|
330
|
+
background: #fff;
|
|
331
|
+
z-index: 9;
|
|
332
|
+
border-top: 1px solid @border-color;
|
|
333
|
+
border-bottom: 1px solid @border-color;
|
|
334
|
+
border-right: 1px solid @border-color;
|
|
335
|
+
margin-bottom: -1px;
|
|
336
|
+
}
|
|
337
|
+
.env-view-modal-col-label {
|
|
338
|
+
box-sizing: border-box;
|
|
339
|
+
padding-left: 0;
|
|
340
|
+
text-align: right;
|
|
341
|
+
flex-basis: 100px;
|
|
342
|
+
flex-shrink: 0;
|
|
343
|
+
width: 100px;
|
|
344
|
+
overflow: hidden;
|
|
345
|
+
text-overflow: ellipsis;
|
|
346
|
+
white-space: nowrap;
|
|
347
|
+
background: @normal-item-bg-color;
|
|
348
|
+
height: 100%;
|
|
349
|
+
min-height: 58px;
|
|
350
|
+
display: flex;
|
|
351
|
+
align-items: center;
|
|
352
|
+
justify-content: flex-end;
|
|
353
|
+
}
|
|
354
|
+
.env-view-modal-col-value {
|
|
355
|
+
padding-left: 10px;
|
|
356
|
+
display: flex;
|
|
357
|
+
align-items: center;
|
|
358
|
+
|
|
359
|
+
.ant-upload-picture-card-wrapper{
|
|
360
|
+
padding-top: 10px;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
.ant-divider-horizontal {
|
|
364
|
+
display: none;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
.ant-upload-list-picture-card {
|
|
368
|
+
min-height: 112px;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// todo: 这里可以使用环境变量等更优雅的方法
|
|
4
|
+
var iframeEnv = 'darkGreen';
|
|
5
|
+
var themeList = ['darkGreen'];
|
|
6
|
+
themeList.forEach(function (item) {
|
|
7
|
+
if (iframeEnv === item) {
|
|
8
|
+
document.body.className = 'darkGreen';
|
|
9
|
+
|
|
10
|
+
require('./darkGreen.less');
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["iframeEnv","themeList","forEach","item","document","body","className","require"],"sources":["style/index.js"],"sourcesContent":["// todo: 这里可以使用环境变量等更优雅的方法\nconst iframeEnv = 'darkGreen';\nconst themeList = ['darkGreen'];\nthemeList.forEach((item) => {\n if (iframeEnv === item) {\n document.body.className = 'darkGreen';\n require('./darkGreen.less');\n }\n});\n"],"mappings":";;AAAA;AACA,IAAMA,SAAS,GAAG,WAAlB;AACA,IAAMC,SAAS,GAAG,CAAC,WAAD,CAAlB;AACAA,SAAS,CAACC,OAAV,CAAkB,UAACC,IAAD,EAAU;EACxB,IAAIH,SAAS,KAAKG,IAAlB,EAAwB;IACpBC,QAAQ,CAACC,IAAT,CAAcC,SAAd,GAA0B,WAA1B;;IACAC,OAAO,CAAC,kBAAD,CAAP;EACH;AACJ,CALD"}
|
package/lib/template/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import InternalTemplate from './template';
|
|
2
2
|
import InternalCard from './card';
|
|
3
3
|
import Field from './field';
|
|
4
|
+
import '../style/index';
|
|
4
5
|
declare type InternalCardT = typeof InternalCard;
|
|
5
6
|
declare type InternalTemplateT = typeof InternalTemplate;
|
|
6
7
|
interface CardI extends InternalCardT {
|
package/lib/template/index.js
CHANGED
|
@@ -11,6 +11,8 @@ var _card = _interopRequireDefault(require("./card"));
|
|
|
11
11
|
|
|
12
12
|
var _field = _interopRequireDefault(require("./field"));
|
|
13
13
|
|
|
14
|
+
require("../style/index");
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
16
18
|
// 在 `Card` 组件中绑定 `Field`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Card","InternalCard","Field","Template","InternalTemplate"],"sources":["template/index.js"],"sourcesContent":["import InternalTemplate from './template';\nimport InternalCard from './card';\nimport Field from './field';\n// 在 `Card` 组件中绑定 `Field`\nconst Card = InternalCard;\nCard.Field = Field;\n// 在 `Template 组件中绑定 `Card`\nconst Template = InternalTemplate;\nTemplate.Card = Card;\nexport default Template;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AACA;AACA,IAAMA,IAAI,GAAGC,gBAAb;AACAD,IAAI,CAACE,KAAL,GAAaA,iBAAb,C,CACA;;AACA,IAAMC,QAAQ,GAAGC,oBAAjB;AACAD,QAAQ,CAACH,IAAT,GAAgBA,IAAhB;eACeG,Q"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["Card","InternalCard","Field","Template","InternalTemplate"],"sources":["template/index.js"],"sourcesContent":["import InternalTemplate from './template';\nimport InternalCard from './card';\nimport Field from './field';\nimport '../style/index';\n// 在 `Card` 组件中绑定 `Field`\nconst Card = InternalCard;\nCard.Field = Field;\n// 在 `Template 组件中绑定 `Card`\nconst Template = InternalTemplate;\nTemplate.Card = Card;\nexport default Template;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;AACA;AACA,IAAMA,IAAI,GAAGC,gBAAb;AACAD,IAAI,CAACE,KAAL,GAAaA,iBAAb,C,CACA;;AACA,IAAMC,QAAQ,GAAGC,oBAAjB;AACAD,QAAQ,CAACH,IAAT,GAAgBA,IAAhB;eACeG,Q"}
|
package/lib/view-modal/index.js
CHANGED
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _viewModal = _interopRequireDefault(require("./view-modal"));
|
|
9
9
|
|
|
10
|
+
require("../style/index");
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
13
|
|
|
12
14
|
var _default = _viewModal["default"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ViewModal"],"sources":["view-modal/index.js"],"sourcesContent":["import ViewModal from './view-modal';\nexport default ViewModal;\n"],"mappings":";;;;;;;AAAA;;;;eACeA,qB"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["ViewModal"],"sources":["view-modal/index.js"],"sourcesContent":["import ViewModal from './view-modal';\nimport '../style/index';\nexport default ViewModal;\n"],"mappings":";;;;;;;AAAA;;AACA;;;;eACeA,qB"}
|
|
@@ -201,7 +201,15 @@ var ViewModal = function ViewModal(props) {
|
|
|
201
201
|
style: {
|
|
202
202
|
width: "100%"
|
|
203
203
|
}
|
|
204
|
-
},
|
|
204
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
|
+
className: 'left-border'
|
|
206
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
207
|
+
className: 'right-border'
|
|
208
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
209
|
+
className: 'top-border'
|
|
210
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
211
|
+
className: 'bottom-border'
|
|
212
|
+
}), renderFieldItem(children)));
|
|
205
213
|
};
|
|
206
214
|
|
|
207
215
|
var _default = ViewModal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-modal.js","names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","ViewModal","props","size","visible","className","onCancel","children","width","rest","handleCancel","renderFieldItem","reactNode","parentNode","hasChildrenWithKeyProp","hasReactDOMWithKeyProp","React","Children","forEach","child","index","key","isValidElement","Array","isArray","resultArray","item","push","cloneElement","_a","node","result","map","title","createElement","Col","span","label","propChildren","clonedNode","undefined","Row","style","Tooltip","overflow","getWidth","VtxModal","xsmall","small","large","assign","classnames","footer","Button","onClick"],"sources":["view-modal/view-modal.js"],"sourcesContent":["var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React from 'react';\nimport Button from 'antd/lib/button';\nimport Col from 'antd/lib/col';\nimport Row from 'antd/lib/row';\nimport Tooltip from 'antd/lib/tooltip';\nimport classnames from 'classnames';\nimport VtxModal from '@vtx/components/lib/vtx-modal';\nconst ViewModal = (props) => {\n const { size, visible, className, onCancel, children, width } = props, rest = __rest(props, [\"size\", \"visible\", \"className\", \"onCancel\", \"children\", \"width\"]);\n const handleCancel = (e) => {\n onCancel && onCancel(e);\n };\n const renderFieldItem = (reactNode, parentNode) => {\n if (!reactNode) {\n return null;\n }\n let hasChildrenWithKeyProp = false;\n // 处理数组的方式传入的值\n let hasReactDOMWithKeyProp = false;\n React.Children.forEach(reactNode, (child, index) => {\n if ((child === null || child === void 0 ? void 0 : child.key) && child) {\n if (React.isValidElement(child.props.children)) {\n hasChildrenWithKeyProp = true;\n }\n else {\n hasReactDOMWithKeyProp = true;\n }\n }\n });\n if (hasReactDOMWithKeyProp) {\n if (Array.isArray(reactNode)) {\n const resultArray = [];\n reactNode.forEach((item) => {\n if (item) {\n resultArray.push(React.cloneElement(item, {}, renderFieldItem(item)));\n }\n });\n }\n }\n if (hasChildrenWithKeyProp) {\n if (Array.isArray(reactNode)) {\n const resultArray = [];\n reactNode.forEach((item) => {\n var _a;\n resultArray.push(React.cloneElement(item, {}, renderFieldItem((_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.children)));\n });\n return resultArray;\n }\n else {\n const node = reactNode;\n const result = React.cloneElement(node, {}, renderFieldItem(node.props.children));\n return result;\n }\n }\n return React.Children.map(reactNode, (child, index) => {\n if (child === null\n || typeof child === 'string'\n || typeof child === 'boolean'\n || typeof child === 'number') {\n return child;\n }\n const { props } = child;\n const title = props['data-title'];\n if (title) {\n return (React.createElement(Col, { key: title, span: 24 },\n React.createElement(\"div\", { className: \"env-view-modal-title\" }, title)));\n }\n const key = props['data-key'];\n const label = props['data-label'];\n // 自定义列 默认为24\n // form列 默认为12\n const span = props['data-span'];\n // const labelCol = props['data-label-col'];\n // const wrapperCol = props['data-wrapper-col'];\n if (!label) {\n const propChildren = props === null || props === void 0 ? void 0 : props.children;\n if (propChildren) {\n const clonedNode = React.cloneElement(child, {}, renderFieldItem(propChildren, child));\n if (parentNode == undefined) {\n return React.createElement(Row, { style: { width: `100%` } }, clonedNode);\n }\n else {\n return clonedNode;\n }\n }\n return (React.createElement(Col, { className: \"env-view-modal-col\", key: index, span: span || 24 }, child));\n }\n return (React.createElement(Col, { className: \"env-view-modal-col\", key: key || label, span: span || 12 },\n React.createElement(Col\n // {...(labelCol)}\n , { \n // {...(labelCol)}\n className: \"env-view-modal-col-label\" },\n React.createElement(Tooltip, { title: label },\n React.createElement(\"span\", null, label))),\n React.createElement(Col\n // {...(wrapperCol)}\n , { \n // {...(wrapperCol)}\n className: \"env-view-modal-col-value\", style: { overflow: 'auto' } },\n React.createElement(\"span\", null, child))));\n });\n };\n const getWidth = () => {\n if (typeof width === 'number') {\n return width;\n }\n switch (size) {\n case 'xsmall':\n return VtxModal.size.xsmall;\n case 'small':\n return VtxModal.size.small;\n case 'middle':\n // return VtxModal.size.middle;\n return 900;\n case 'large':\n return VtxModal.size.large;\n default:\n return 900;\n }\n };\n return (React.createElement(VtxModal, Object.assign({ className: classnames('env-view-modal', className), visible: visible, width: getWidth(), onCancel: handleCancel, footer: [\n React.createElement(Button, { key: \"confirm\", onClick: handleCancel }, \"\\u5173\\u95ED\"),\n ] }, rest),\n React.createElement(Row, { style: { width: `100%` } }, renderFieldItem(children))));\n};\nexport default ViewModal;\n"],"mappings":";;;;;;;AAWA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAjBA,IAAIA,MAAM,GAAI,UAAQ,SAAKA,MAAd,IAAyB,UAAUC,CAAV,EAAaC,CAAb,EAAgB;EAClD,IAAIC,CAAC,GAAG,EAAR;;EACA,KAAK,IAAIC,CAAT,IAAcH,CAAd;IAAiB,IAAII,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCP,CAArC,EAAwCG,CAAxC,KAA8CF,CAAC,CAACO,OAAF,CAAUL,CAAV,IAAe,CAAjE,EACbD,CAAC,CAACC,CAAD,CAAD,GAAOH,CAAC,CAACG,CAAD,CAAR;EADJ;;EAEA,IAAIH,CAAC,IAAI,IAAL,IAAa,OAAOI,MAAM,CAACK,qBAAd,KAAwC,UAAzD,EACI,KAAK,IAAIC,CAAC,GAAG,CAAR,EAAWP,CAAC,GAAGC,MAAM,CAACK,qBAAP,CAA6BT,CAA7B,CAApB,EAAqDU,CAAC,GAAGP,CAAC,CAACQ,MAA3D,EAAmED,CAAC,EAApE,EAAwE;IACpE,IAAIT,CAAC,CAACO,OAAF,CAAUL,CAAC,CAACO,CAAD,CAAX,IAAkB,CAAlB,IAAuBN,MAAM,CAACC,SAAP,CAAiBO,oBAAjB,CAAsCL,IAAtC,CAA2CP,CAA3C,EAA8CG,CAAC,CAACO,CAAD,CAA/C,CAA3B,EACIR,CAAC,CAACC,CAAC,CAACO,CAAD,CAAF,CAAD,GAAUV,CAAC,CAACG,CAAC,CAACO,CA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QACI,OAAO2C,oBAAA,CAAS3C,IAAT,CAAc4C,MAArB;;MACJ,KAAK,OAAL;QACI,OAAOD,oBAAA,CAAS3C,IAAT,CAAc6C,KAArB;;MACJ,KAAK,QAAL;QACI;QACA,OAAO,GAAP;;MACJ,KAAK,OAAL;QACI,OAAOF,oBAAA,CAAS3C,IAAT,CAAc8C,KAArB;;MACJ;QACI,OAAO,GAAP;IAXR;EAaH,CAjBD;;EAkBA,oBAAQjC,iBAAA,CAAMkB,aAAN,CAAoBY,oBAApB,EAA8BtD,MAAM,CAAC0D,MAAP,CAAc;IAAE7C,SAAS,EAAE,IAAA8C,sBAAA,EAAW,gBAAX,EAA6B9C,SAA7B,CAAb;IAAsDD,OAAO,EAAEA,OAA/D;IAAwEI,KAAK,EAAEqC,QAAQ,EAAvF;IAA2FvC,QAAQ,EAAEI,YAArG;IAAmH0C,MAAM,EAAE,cACvKpC,iBAAA,CAAMkB,aAAN,CAAoBmB,kBAApB,EAA4B;MAAEhC,GAAG,EAAE,SAAP;MAAkBiC,OAAO,EAAE5C;IAA3B,CAA5B,EAAuE,cAAvE,CADuK;EAA3H,CAAd,EAE7BD,IAF6B,CAA9B,eAGJO,iBAAA,CAAMkB,aAAN,CAAoBO,eAApB,EAAyB;IAAEC,KAAK,EAAE;MAAElC,KAAK;IAAP;EAAT,CAAzB,EAAuDG,eAAe,CAACJ,QAAD,CAAtE,CAHI,CAAR;AAIH,CAtHD;;eAuHeN,S"}
|
|
1
|
+
{"version":3,"file":"view-modal.js","names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","ViewModal","props","size","visible","className","onCancel","children","width","rest","handleCancel","renderFieldItem","reactNode","parentNode","hasChildrenWithKeyProp","hasReactDOMWithKeyProp","React","Children","forEach","child","index","key","isValidElement","Array","isArray","resultArray","item","push","cloneElement","_a","node","result","map","title","createElement","Col","span","label","propChildren","clonedNode","undefined","Row","style","Tooltip","overflow","getWidth","VtxModal","xsmall","small","large","assign","classnames","footer","Button","onClick"],"sources":["view-modal/view-modal.js"],"sourcesContent":["var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React from 'react';\nimport Button from 'antd/lib/button';\nimport Col from 'antd/lib/col';\nimport Row from 'antd/lib/row';\nimport Tooltip from 'antd/lib/tooltip';\nimport classnames from 'classnames';\nimport VtxModal from '@vtx/components/lib/vtx-modal';\nconst ViewModal = (props) => {\n const { size, visible, className, onCancel, children, width } = props, rest = __rest(props, [\"size\", \"visible\", \"className\", \"onCancel\", \"children\", \"width\"]);\n const handleCancel = (e) => {\n onCancel && onCancel(e);\n };\n const renderFieldItem = (reactNode, parentNode) => {\n if (!reactNode) {\n return null;\n }\n let hasChildrenWithKeyProp = false;\n // 处理数组的方式传入的值\n let hasReactDOMWithKeyProp = false;\n React.Children.forEach(reactNode, (child, index) => {\n if ((child === null || child === void 0 ? void 0 : child.key) && child) {\n if (React.isValidElement(child.props.children)) {\n hasChildrenWithKeyProp = true;\n }\n else {\n hasReactDOMWithKeyProp = true;\n }\n }\n });\n if (hasReactDOMWithKeyProp) {\n if (Array.isArray(reactNode)) {\n const resultArray = [];\n reactNode.forEach((item) => {\n if (item) {\n resultArray.push(React.cloneElement(item, {}, renderFieldItem(item)));\n }\n });\n }\n }\n if (hasChildrenWithKeyProp) {\n if (Array.isArray(reactNode)) {\n const resultArray = [];\n reactNode.forEach((item) => {\n var _a;\n resultArray.push(React.cloneElement(item, {}, renderFieldItem((_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.children)));\n });\n return resultArray;\n }\n else {\n const node = reactNode;\n const result = React.cloneElement(node, {}, renderFieldItem(node.props.children));\n return result;\n }\n }\n return React.Children.map(reactNode, (child, index) => {\n if (child === null\n || typeof child === 'string'\n || typeof child === 'boolean'\n || typeof child === 'number') {\n return child;\n }\n const { props } = child;\n const title = props['data-title'];\n if (title) {\n return (React.createElement(Col, { key: title, span: 24 },\n React.createElement(\"div\", { className: \"env-view-modal-title\" }, title)));\n }\n const key = props['data-key'];\n const label = props['data-label'];\n // 自定义列 默认为24\n // form列 默认为12\n const span = props['data-span'];\n // const labelCol = props['data-label-col'];\n // const wrapperCol = props['data-wrapper-col'];\n if (!label) {\n const propChildren = props === null || props === void 0 ? void 0 : props.children;\n if (propChildren) {\n const clonedNode = React.cloneElement(child, {}, renderFieldItem(propChildren, child));\n if (parentNode == undefined) {\n return React.createElement(Row, { style: { width: `100%` } }, clonedNode);\n }\n else {\n return clonedNode;\n }\n }\n return (React.createElement(Col, { className: \"env-view-modal-col\", key: index, span: span || 24 }, child));\n }\n return (React.createElement(Col, { className: \"env-view-modal-col\", key: key || label, span: span || 12 },\n React.createElement(Col\n // {...(labelCol)}\n , { \n // {...(labelCol)}\n className: \"env-view-modal-col-label\" },\n React.createElement(Tooltip, { title: label },\n React.createElement(\"span\", null, label))),\n React.createElement(Col\n // {...(wrapperCol)}\n , { \n // {...(wrapperCol)}\n className: \"env-view-modal-col-value\", style: { overflow: 'auto' } },\n React.createElement(\"span\", null, child))));\n });\n };\n const getWidth = () => {\n if (typeof width === 'number') {\n return width;\n }\n switch (size) {\n case 'xsmall':\n return VtxModal.size.xsmall;\n case 'small':\n return VtxModal.size.small;\n case 'middle':\n // return VtxModal.size.middle;\n return 900;\n case 'large':\n return VtxModal.size.large;\n default:\n return 900;\n }\n };\n return (React.createElement(VtxModal, Object.assign({ className: classnames('env-view-modal', className), visible: visible, width: getWidth(), onCancel: handleCancel, footer: [\n React.createElement(Button, { key: \"confirm\", onClick: handleCancel }, \"\\u5173\\u95ED\"),\n ] }, rest),\n React.createElement(Row, { style: { width: `100%` } },\n React.createElement(\"div\", { className: 'left-border' }),\n React.createElement(\"div\", { className: 'right-border' }),\n React.createElement(\"div\", { className: 'top-border' }),\n React.createElement(\"div\", { className: 'bottom-border' }),\n renderFieldItem(children))));\n};\nexport default ViewModal;\n"],"mappings":";;;;;;;AAWA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAjBA,IAAIA,MAAM,GAAI,UAAQ,SAAKA,MAAd,IAAyB,UAAUC,CAAV,EAAaC,CAAb,EAAgB;EAClD,IAAIC,CAAC,GAAG,EAAR;;EACA,KAAK,IAAIC,CAAT,IAAcH,CAAd;IAAiB,IAAII,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCP,CAArC,EAAwCG,CAAxC,KAA8CF,CAAC,CAACO,OAAF,CAAUL,CAAV,IAAe,CAAjE,EACbD,CAAC,CAACC,CAAD,CAAD,GAAOH,CAAC,CAACG,CAAD,CAAR;EADJ;;EAEA,IAAIH,CAAC,IAAI,IAAL,IAAa,OAAOI,MAAM,CAACK,qBAAd,KAAwC,UAAzD,EACI,KAAK,IAAIC,CAAC,GAAG,CAAR,EAAWP,CAAC,GAAGC,MAAM,CAACK,qBAAP,CAA6BT,CAA7B,CAApB,EAAqDU,CAAC,GAAGP,CAAC,CAACQ,MAA3D,EAAmED,CAAC,EAApE,EAAwE;IACpE,IAAIT,CAAC,CAACO,OAAF,CAAUL,CAAC,CAACO,CAAD,CAAX,IAAkB,CAAlB,IAAuBN,MAAM,CAACC,SAAP,CAAiBO,oBAAjB,CAAsCL,IAAtC,CAA2CP,CAA3C,EAA8CG,CAAC,CAACO,CAAD,CAA/C,CAA3B,EACIR,CAAC,CAACC,CAAC,CAACO,CAAD,CAAF,CAAD,GAAUV,CAAC,CAACG,CAAC,CAACO,CAAD,CAAF,CAAX;EACP;EACL,OAAOR,CAAP;AACH,CAVD;;AAkBA,IAAMW,SAAS,GAAG,SAAZA,SAA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