@vortex-ui/env-puzzle 2.0.0-beta.4 → 2.0.0-beta.6
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/create-modal.js +22 -15
- package/lib/create-modal/create-modal.js.map +1 -1
- 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/create-modal/style/index.css +0 -195
- package/lib/create-modal/style/index.less +14 -82
- package/lib/global.less +6 -0
- package/lib/style/css.js +17 -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 +1 -0
- package/lib/style/index.js +17 -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/template/style/index.css +6 -0
- package/lib/template/style/table.css +6 -0
- package/lib/template/style/table.less +11 -6
- 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/style/index.css +38 -0
- package/lib/view-modal/style/index.less +15 -0
- package/lib/view-modal/view-modal.js +12 -3
- 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 -3
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _stringUtil = _interopRequireDefault(require("../../@vortex-ui/env-puzzle/typings/src/utils/string-util"));
|
|
4
|
+
|
|
5
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6
|
+
|
|
7
|
+
// todo: 这里可以使用环境变量等更优雅的方法
|
|
8
|
+
var iframeEnv = _stringUtil["default"].getUrlParam('iframeEnv') || 'darkGreen';
|
|
9
|
+
var themeList = ['darkGreen'];
|
|
10
|
+
themeList.forEach(function (item) {
|
|
11
|
+
if (iframeEnv === item) {
|
|
12
|
+
document.body.className = 'darkGreen';
|
|
13
|
+
|
|
14
|
+
require('./darkGreen.less');
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["iframeEnv","StringUtil","getUrlParam","themeList","forEach","item","document","body","className","require"],"sources":["style/index.js"],"sourcesContent":["import StringUtil from '../../@vortex-ui/env-puzzle/typings/src/utils/string-util';\n// todo: 这里可以使用环境变量等更优雅的方法\nconst iframeEnv = StringUtil.getUrlParam('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;AACA,IAAMA,SAAS,GAAGC,sBAAA,CAAWC,WAAX,CAAuB,WAAvB,KAAuC,WAAzD;AACA,IAAMC,SAAS,GAAG,CAAC,WAAD,CAAlB;AACAA,SAAS,CAACC,OAAV,CAAkB,UAACC,IAAD,EAAU;EACxB,IAAIL,SAAS,KAAKK,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"}
|
|
@@ -45,6 +45,12 @@
|
|
|
45
45
|
-ms-transform: rotate(180deg);
|
|
46
46
|
transform: rotate(180deg);
|
|
47
47
|
}
|
|
48
|
+
.env-template .ant-pagination-item-active {
|
|
49
|
+
background: #1890ff;
|
|
50
|
+
}
|
|
51
|
+
.env-template .ant-pagination-item-active a {
|
|
52
|
+
color: #fff;
|
|
53
|
+
}
|
|
48
54
|
.env-template-table-wrap {
|
|
49
55
|
height: 100%;
|
|
50
56
|
display: -webkit-box;
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
|
+
|
|
2
3
|
@prefix-cls: env-template;
|
|
4
|
+
.@{prefix-cls} {
|
|
5
|
+
.ant-pagination-item-active {
|
|
6
|
+
background: @primary-color;
|
|
7
|
+
a {
|
|
8
|
+
color: #fff;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
3
12
|
|
|
4
13
|
.@{prefix-cls}-table-wrap {
|
|
5
14
|
height: 100%;
|
|
6
15
|
display: flex;
|
|
7
16
|
flex-direction: column;
|
|
8
17
|
}
|
|
18
|
+
|
|
9
19
|
.@{prefix-cls}-card-wrap {
|
|
10
20
|
flex: 1;
|
|
11
21
|
height: 0;
|
|
@@ -18,7 +28,6 @@
|
|
|
18
28
|
background-color: rgba(0, 0, 0, 0.05);
|
|
19
29
|
border-radius: 3px;
|
|
20
30
|
}
|
|
21
|
-
|
|
22
31
|
.@{prefix-cls}-card-list-empty {
|
|
23
32
|
margin-top: 200px;
|
|
24
33
|
}
|
|
@@ -43,12 +52,10 @@
|
|
|
43
52
|
flex: 1;
|
|
44
53
|
&-action-btn {
|
|
45
54
|
padding: 0;
|
|
46
|
-
|
|
47
55
|
> span + .anticon-down {
|
|
48
56
|
margin-left: 0;
|
|
49
57
|
}
|
|
50
58
|
}
|
|
51
|
-
|
|
52
59
|
&-action-btn + &-action-btn {
|
|
53
60
|
// margin-left: 8px;
|
|
54
61
|
}
|
|
@@ -56,13 +63,11 @@
|
|
|
56
63
|
.ant-popover-inner-content {
|
|
57
64
|
padding: 0;
|
|
58
65
|
}
|
|
59
|
-
|
|
60
66
|
.ant-list-item {
|
|
61
67
|
padding: 6px 28px;
|
|
62
68
|
cursor: pointer;
|
|
63
69
|
}
|
|
64
70
|
}
|
|
65
|
-
|
|
66
71
|
&-pagination {
|
|
67
72
|
display: flex;
|
|
68
73
|
justify-content: flex-end;
|
|
@@ -71,9 +76,9 @@
|
|
|
71
76
|
height: 32px;
|
|
72
77
|
box-sizing: content-box;
|
|
73
78
|
}
|
|
74
|
-
|
|
75
79
|
&-total-number {
|
|
76
80
|
font-weight: 400;
|
|
77
81
|
color: #5f5f5f;
|
|
78
82
|
}
|
|
79
83
|
}
|
|
84
|
+
|
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"}
|
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
.green .ant-modal-body {
|
|
2
|
+
padding: 0;
|
|
3
|
+
}
|
|
4
|
+
.green .ant-modal-body .ant-form-item-control-input {
|
|
5
|
+
display: -webkit-box;
|
|
6
|
+
display: -ms-flexbox;
|
|
7
|
+
display: flex;
|
|
8
|
+
-webkit-box-align: center;
|
|
9
|
+
-ms-flex-align: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
}
|
|
12
|
+
.green .ant-modal-body .ant-form-item-control-input .ant-form-item-control-input-content {
|
|
13
|
+
display: -webkit-box;
|
|
14
|
+
display: -ms-flexbox;
|
|
15
|
+
display: flex;
|
|
16
|
+
-webkit-box-align: center;
|
|
17
|
+
-ms-flex-align: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
.env-view-modal .ant-modal-body {
|
|
21
|
+
padding: 0;
|
|
22
|
+
}
|
|
23
|
+
.env-view-modal .ant-modal-body .ant-form-item-control-input {
|
|
24
|
+
display: -webkit-box;
|
|
25
|
+
display: -ms-flexbox;
|
|
26
|
+
display: flex;
|
|
27
|
+
-webkit-box-align: center;
|
|
28
|
+
-ms-flex-align: center;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
.env-view-modal .ant-modal-body .ant-form-item-control-input .ant-form-item-control-input-content {
|
|
32
|
+
display: -webkit-box;
|
|
33
|
+
display: -ms-flexbox;
|
|
34
|
+
display: flex;
|
|
35
|
+
-webkit-box-align: center;
|
|
36
|
+
-ms-flex-align: center;
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
1
39
|
.env-view-modal-title {
|
|
2
40
|
font-weight: 400;
|
|
3
41
|
color: #595959;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
2
|
|
|
3
|
+
.green {
|
|
4
|
+
.ant-modal-body {
|
|
5
|
+
padding: 0;
|
|
6
|
+
.ant-form-item-control-input{
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
.ant-form-item-control-input-content{
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
3
17
|
.env-view-modal {
|
|
18
|
+
.green();
|
|
4
19
|
&-title {
|
|
5
20
|
font-weight: 400;
|
|
6
21
|
color: @comment-action-hover-color;
|
|
@@ -177,13 +177,14 @@ var ViewModal = function ViewModal(props) {
|
|
|
177
177
|
return _vtxModal["default"].size.small;
|
|
178
178
|
|
|
179
179
|
case 'middle':
|
|
180
|
-
return
|
|
180
|
+
// return VtxModal.size.middle;
|
|
181
|
+
return 900;
|
|
181
182
|
|
|
182
183
|
case 'large':
|
|
183
184
|
return _vtxModal["default"].size.large;
|
|
184
185
|
|
|
185
186
|
default:
|
|
186
|
-
return
|
|
187
|
+
return 900;
|
|
187
188
|
}
|
|
188
189
|
};
|
|
189
190
|
|
|
@@ -200,7 +201,15 @@ var ViewModal = function ViewModal(props) {
|
|
|
200
201
|
style: {
|
|
201
202
|
width: "100%"
|
|
202
203
|
}
|
|
203
|
-
},
|
|
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)));
|
|
204
213
|
};
|
|
205
214
|
|
|
206
215
|
var _default = ViewModal;
|