@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
|
@@ -1,72 +1,12 @@
|
|
|
1
1
|
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
|
-
@import "../../va.less";
|
|
3
2
|
|
|
4
|
-
.green{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
padding: 0;
|
|
10
|
-
.vtx-form-layout{
|
|
11
|
-
//border: 1px solid @border-color;
|
|
12
|
-
border-left: 1px solid @border-color;
|
|
13
|
-
//border-bottom: none;
|
|
14
|
-
padding: 0;
|
|
15
|
-
}
|
|
16
|
-
.vtx-form-item-col{
|
|
17
|
-
background: @normal-item-bg-color;
|
|
18
|
-
border: 1px solid @border-color;
|
|
19
|
-
border-top:none ;
|
|
20
|
-
border-left:none ;
|
|
21
|
-
height: 60px;
|
|
22
|
-
line-height: 60px;
|
|
23
|
-
&.ant-col-12:nth-child(-n+2){
|
|
24
|
-
border-top:1px solid @border-color;
|
|
25
|
-
}
|
|
26
|
-
.ant-form-item{
|
|
27
|
-
height: 100%;
|
|
28
|
-
margin-bottom: 0;
|
|
29
|
-
.ant-form-item-row{
|
|
30
|
-
height: 100%;
|
|
31
|
-
align-items: center;
|
|
32
|
-
.ant-form-item-control{
|
|
33
|
-
height: 100%;
|
|
34
|
-
background: @bg-color;
|
|
35
|
-
>*:only-child {
|
|
36
|
-
height: 100%;
|
|
37
|
-
}
|
|
38
|
-
.ant-form-item-control-input{
|
|
39
|
-
height: 100%;
|
|
40
|
-
}
|
|
41
|
-
:nth-last-child(1)[style]{
|
|
42
|
-
position: absolute;
|
|
43
|
-
bottom: 0;
|
|
44
|
-
left: 5px;
|
|
45
|
-
right: 0;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// 各个表单样式控制
|
|
51
|
-
.ant-form-item-control-input-content{
|
|
52
|
-
height: 100%;
|
|
53
|
-
input {
|
|
54
|
-
height: 100%;
|
|
55
|
-
border: none;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
3
|
+
.green {
|
|
4
|
+
.ant-modal-body {
|
|
5
|
+
//>*{
|
|
6
|
+
// box-sizing: border-box;
|
|
7
|
+
//}
|
|
58
8
|
|
|
59
|
-
.ant-checkbox-wrapper{
|
|
60
|
-
padding-left: 10px;
|
|
61
|
-
height: 100%;
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
9
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
10
|
}
|
|
71
11
|
|
|
72
12
|
.env-create-modal {
|
|
@@ -87,20 +27,16 @@
|
|
|
87
27
|
align-self: center;
|
|
88
28
|
}
|
|
89
29
|
}
|
|
90
|
-
|
|
91
30
|
&-col + &-col {
|
|
92
31
|
margin-top: 24px;
|
|
93
32
|
}
|
|
94
|
-
|
|
95
33
|
.ant-modal-body {
|
|
96
34
|
max-height: 600px;
|
|
97
35
|
overflow-x: hidden;
|
|
98
36
|
overflow-y: auto;
|
|
99
37
|
}
|
|
100
|
-
|
|
101
38
|
.ant-form-item-label {
|
|
102
39
|
// line-height: 1;
|
|
103
|
-
|
|
104
40
|
> label {
|
|
105
41
|
// display: flex;
|
|
106
42
|
// justify-content: flex-end;
|
|
@@ -115,32 +51,28 @@
|
|
|
115
51
|
}
|
|
116
52
|
}
|
|
117
53
|
}
|
|
118
|
-
|
|
119
54
|
.ant-form-item-control {
|
|
120
55
|
// line-height: 1;
|
|
121
56
|
// width: 0;
|
|
122
57
|
}
|
|
123
|
-
|
|
124
58
|
.ant-form-item-control-input-content {
|
|
125
59
|
> .ant-input-number {
|
|
126
60
|
width: 100%;
|
|
127
61
|
}
|
|
128
|
-
|
|
129
62
|
> .ant-picker {
|
|
130
63
|
width: 100%;
|
|
131
64
|
}
|
|
132
65
|
}
|
|
133
66
|
.ant-form:not(.ant-form-inline)
|
|
134
|
-
|
|
135
|
-
|
|
67
|
+
.vtx-form-layout-vertical
|
|
68
|
+
.vtx-form-item-vertical:not(.vtx-form-item--inline),
|
|
136
69
|
.ant-form-item-row,
|
|
137
70
|
.ant-form:not(.ant-form-inline)
|
|
138
|
-
|
|
139
|
-
|
|
71
|
+
.vtx-form-layout-vertical
|
|
72
|
+
.ant-form-item:not(.vtx-form-item-vertical, .vtx-form-item--view) {
|
|
140
73
|
.ant-form-item-row {
|
|
141
74
|
flex-direction: column;
|
|
142
75
|
align-items: flex-start;
|
|
143
|
-
|
|
144
76
|
.ant-form-item-label > label::after {
|
|
145
77
|
// content: ' ' !important;
|
|
146
78
|
}
|
|
@@ -149,10 +81,9 @@
|
|
|
149
81
|
}
|
|
150
82
|
}
|
|
151
83
|
}
|
|
152
|
-
|
|
153
84
|
.ant-form:not(.ant-form-inline)
|
|
154
|
-
|
|
155
|
-
|
|
85
|
+
.vtx-form-layout-vertical
|
|
86
|
+
.vtx-form-item-vertical.vtx-form-item--inline {
|
|
156
87
|
.ant-form-item-row {
|
|
157
88
|
flex-direction: row;
|
|
158
89
|
}
|
|
@@ -162,8 +93,8 @@
|
|
|
162
93
|
}
|
|
163
94
|
.ant-form-inline .vtx-form-layout-vertical .ant-form-item-row,
|
|
164
95
|
.ant-form-vertical
|
|
165
|
-
|
|
166
|
-
|
|
96
|
+
.vtx-form-item-vertical.vtx-form-item--inline
|
|
97
|
+
.ant-form-item-row,
|
|
167
98
|
.ant-form-vertical .vtx-form-item--inline.ant-row {
|
|
168
99
|
flex-direction: row;
|
|
169
100
|
.ant-form-item-label {
|
|
@@ -180,6 +111,7 @@
|
|
|
180
111
|
}
|
|
181
112
|
}
|
|
182
113
|
}
|
|
114
|
+
|
|
183
115
|
.env-create-view-modal {
|
|
184
116
|
.green();
|
|
185
117
|
.vtx-form-layout .vtx-form-item-col .ant-form-item {
|
package/lib/global.less
CHANGED
package/lib/style/css.js
ADDED
|
@@ -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.css');
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.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"}
|