@vortex-ui/env-puzzle 2.0.0-beta.9 → 3.0.0-beta.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.
Files changed (216) hide show
  1. package/README.md +46 -46
  2. package/lib/b-map/b-map.d.ts +1 -1
  3. package/lib/b-map/b-map.js +100 -162
  4. package/lib/b-map/b-map.js.map +1 -1
  5. package/lib/b-map/custom-overlay.js +17 -37
  6. package/lib/b-map/custom-overlay.js.map +1 -1
  7. package/lib/b-map/drawing.js +11 -25
  8. package/lib/b-map/drawing.js.map +1 -1
  9. package/lib/b-map/index.d.ts +2 -2
  10. package/lib/b-map/index.js +4 -16
  11. package/lib/b-map/index.js.map +1 -1
  12. package/lib/b-map/js/marker-clusterer.js +223 -339
  13. package/lib/b-map/js/marker-clusterer.js.map +1 -1
  14. package/lib/b-map/lushu.js +17 -36
  15. package/lib/b-map/lushu.js.map +1 -1
  16. package/lib/b-map/marker-clusterer.js +6 -14
  17. package/lib/b-map/marker-clusterer.js.map +1 -1
  18. package/lib/b-map/marker.js +32 -70
  19. package/lib/b-map/marker.js.map +1 -1
  20. package/lib/b-map/polygon.js +5 -13
  21. package/lib/b-map/polygon.js.map +1 -1
  22. package/lib/b-map/style/css.js.map +1 -1
  23. package/lib/b-map/style/index.js.map +1 -1
  24. package/lib/b-map/style/index.less +10 -10
  25. package/lib/create-modal/create-modal.js +150 -288
  26. package/lib/create-modal/create-modal.js.map +1 -1
  27. package/lib/create-modal/index.d.ts +1 -2
  28. package/lib/create-modal/index.js +2 -8
  29. package/lib/create-modal/index.js.map +1 -1
  30. package/lib/create-modal/style/css.js +0 -18
  31. package/lib/create-modal/style/css.js.map +1 -1
  32. package/lib/create-modal/style/index.css +2 -2
  33. package/lib/create-modal/style/index.d.ts +0 -9
  34. package/lib/create-modal/style/index.js +0 -18
  35. package/lib/create-modal/style/index.js.map +1 -1
  36. package/lib/create-modal/style/index.less +116 -119
  37. package/lib/global.less +5 -6
  38. package/lib/import-modal/import-modal.d.ts +2 -0
  39. package/lib/import-modal/import-modal.js +133 -192
  40. package/lib/import-modal/import-modal.js.map +1 -1
  41. package/lib/import-modal/index.js +2 -6
  42. package/lib/import-modal/index.js.map +1 -1
  43. package/lib/import-modal/style/css.js +0 -10
  44. package/lib/import-modal/style/css.js.map +1 -1
  45. package/lib/import-modal/style/index.d.ts +0 -5
  46. package/lib/import-modal/style/index.js +0 -10
  47. package/lib/import-modal/style/index.js.map +1 -1
  48. package/lib/import-modal/style/index.less +14 -15
  49. package/lib/index.js +1 -14
  50. package/lib/index.js.map +1 -1
  51. package/lib/interface/index.js.map +1 -1
  52. package/lib/mapv-Layer/Function.js +0 -2
  53. package/lib/mapv-Layer/Function.js.map +1 -1
  54. package/lib/mapv-Layer/index.js +2 -6
  55. package/lib/mapv-Layer/index.js.map +1 -1
  56. package/lib/mapv-Layer/mapv-Layer.js +19 -40
  57. package/lib/mapv-Layer/mapv-Layer.js.map +1 -1
  58. package/lib/mapv-Layer/style/css.js.map +1 -1
  59. package/lib/mapv-Layer/style/index.js.map +1 -1
  60. package/lib/percent/index.d.ts +1 -1
  61. package/lib/percent/index.js +2 -7
  62. package/lib/percent/index.js.map +1 -1
  63. package/lib/percent/interface.js.map +1 -1
  64. package/lib/percent/line-percent.js +20 -37
  65. package/lib/percent/line-percent.js.map +1 -1
  66. package/lib/percent/percent.js +20 -43
  67. package/lib/percent/percent.js.map +1 -1
  68. package/lib/percent/style/css.js.map +1 -1
  69. package/lib/percent/style/index.js.map +1 -1
  70. package/lib/percent/style/index.less +41 -41
  71. package/lib/scroll/index.js +2 -6
  72. package/lib/scroll/index.js.map +1 -1
  73. package/lib/scroll/scroll.d.ts +1 -1
  74. package/lib/scroll/scroll.js +19 -47
  75. package/lib/scroll/scroll.js.map +1 -1
  76. package/lib/scroll/style/css.js.map +1 -1
  77. package/lib/scroll/style/index.js.map +1 -1
  78. package/lib/scroll/style/index.less +3 -3
  79. package/lib/scroll-select/index.js +2 -6
  80. package/lib/scroll-select/index.js.map +1 -1
  81. package/lib/scroll-select/scrollSelect.d.ts +2 -1
  82. package/lib/scroll-select/scrollSelect.js +141 -215
  83. package/lib/scroll-select/scrollSelect.js.map +1 -1
  84. package/lib/scroll-select/style/css.js +0 -2
  85. package/lib/scroll-select/style/css.js.map +1 -1
  86. package/lib/scroll-select/style/index.d.ts +0 -1
  87. package/lib/scroll-select/style/index.js +0 -2
  88. package/lib/scroll-select/style/index.js.map +1 -1
  89. package/lib/scroll-select/style/index.less +7 -7
  90. package/lib/style/color.less +1 -1
  91. package/lib/table/index.js +2 -6
  92. package/lib/table/index.js.map +1 -1
  93. package/lib/table/style/css.js +0 -2
  94. package/lib/table/style/css.js.map +1 -1
  95. package/lib/table/style/index.d.ts +0 -1
  96. package/lib/table/style/index.js +0 -2
  97. package/lib/table/style/index.js.map +1 -1
  98. package/lib/table/table.js +22 -54
  99. package/lib/table/table.js.map +1 -1
  100. package/lib/template/action.d.ts +3 -1
  101. package/lib/template/action.js +80 -116
  102. package/lib/template/action.js.map +1 -1
  103. package/lib/template/card-table.d.ts +4 -4
  104. package/lib/template/card-table.js +40 -82
  105. package/lib/template/card-table.js.map +1 -1
  106. package/lib/template/card.d.ts +1 -1
  107. package/lib/template/card.js +20 -38
  108. package/lib/template/card.js.map +1 -1
  109. package/lib/template/check-row.d.ts +2 -1
  110. package/lib/template/check-row.js +7 -12
  111. package/lib/template/check-row.js.map +1 -1
  112. package/lib/template/field.js +8 -24
  113. package/lib/template/field.js.map +1 -1
  114. package/lib/template/filter.d.ts +0 -1
  115. package/lib/template/filter.js +25 -63
  116. package/lib/template/filter.js.map +1 -1
  117. package/lib/template/icon.js +4 -15
  118. package/lib/template/icon.js.map +1 -1
  119. package/lib/template/index.d.ts +2 -3
  120. package/lib/template/index.js +4 -12
  121. package/lib/template/index.js.map +1 -1
  122. package/lib/template/interface.js.map +1 -1
  123. package/lib/template/renderColumnButtons.js +64 -95
  124. package/lib/template/renderColumnButtons.js.map +1 -1
  125. package/lib/template/style/action.css +3 -2
  126. package/lib/template/style/action.less +74 -71
  127. package/lib/template/style/card.css +2 -2
  128. package/lib/template/style/card.less +87 -88
  129. package/lib/template/style/check-row.less +27 -27
  130. package/lib/template/style/css.js +0 -36
  131. package/lib/template/style/css.js.map +1 -1
  132. package/lib/template/style/field.less +11 -11
  133. package/lib/template/style/filter.css +0 -29
  134. package/lib/template/style/filter.less +46 -72
  135. package/lib/template/style/icon.less +7 -7
  136. package/lib/template/style/index.css +8 -42
  137. package/lib/template/style/index.d.ts +0 -18
  138. package/lib/template/style/index.js +0 -36
  139. package/lib/template/style/index.js.map +1 -1
  140. package/lib/template/style/index.less +48 -49
  141. package/lib/template/style/table.css +0 -6
  142. package/lib/template/style/table.less +79 -91
  143. package/lib/template/table.d.ts +5 -4
  144. package/lib/template/table.js +21 -43
  145. package/lib/template/table.js.map +1 -1
  146. package/lib/template/template.d.ts +3 -3
  147. package/lib/template/template.js +134 -258
  148. package/lib/template/template.js.map +1 -1
  149. package/lib/template/toolbar.d.ts +1 -1
  150. package/lib/template/toolbar.js +52 -56
  151. package/lib/template/toolbar.js.map +1 -1
  152. package/lib/to-map/container.js +48 -95
  153. package/lib/to-map/container.js.map +1 -1
  154. package/lib/to-map/draw-area.js +12 -32
  155. package/lib/to-map/draw-area.js.map +1 -1
  156. package/lib/to-map/index.d.ts +1 -1
  157. package/lib/to-map/index.js +2 -7
  158. package/lib/to-map/index.js.map +1 -1
  159. package/lib/to-map/style/css.js +0 -2
  160. package/lib/to-map/style/css.js.map +1 -1
  161. package/lib/to-map/style/index.d.ts +0 -1
  162. package/lib/to-map/style/index.js +0 -2
  163. package/lib/to-map/style/index.js.map +1 -1
  164. package/lib/to-map/style/index.less +86 -86
  165. package/lib/to-map/to-map.js +20 -47
  166. package/lib/to-map/to-map.js.map +1 -1
  167. package/lib/upload/index.js +2 -6
  168. package/lib/upload/index.js.map +1 -1
  169. package/lib/upload/style/css.js +0 -5
  170. package/lib/upload/style/css.js.map +1 -1
  171. package/lib/upload/style/index.d.ts +0 -2
  172. package/lib/upload/style/index.js +0 -5
  173. package/lib/upload/style/index.js.map +1 -1
  174. package/lib/upload/upload.d.ts +3 -0
  175. package/lib/upload/upload.js +158 -237
  176. package/lib/upload/upload.js.map +1 -1
  177. package/lib/use-simple-res/demos/index.d.ts +2 -1
  178. package/lib/use-simple-res/demos/index.js +31 -59
  179. package/lib/use-simple-res/demos/index.js.map +1 -1
  180. package/lib/use-simple-res/index.js +60 -73
  181. package/lib/use-simple-res/index.js.map +1 -1
  182. package/lib/use-simple-res/style/css.js.map +1 -1
  183. package/lib/use-simple-res/style/index.js.map +1 -1
  184. package/lib/utils/dom-util.js +8 -27
  185. package/lib/utils/dom-util.js.map +1 -1
  186. package/lib/utils/request-util.d.ts +10 -1
  187. package/lib/utils/request-util.js +170 -45
  188. package/lib/utils/request-util.js.map +1 -1
  189. package/lib/utils/string-util.d.ts +2 -0
  190. package/lib/utils/string-util.js +34 -16
  191. package/lib/utils/string-util.js.map +1 -1
  192. package/lib/view-modal/index.d.ts +0 -1
  193. package/lib/view-modal/index.js +2 -8
  194. package/lib/view-modal/index.js.map +1 -1
  195. package/lib/view-modal/style/css.js +0 -12
  196. package/lib/view-modal/style/css.js.map +1 -1
  197. package/lib/view-modal/style/index.css +3 -41
  198. package/lib/view-modal/style/index.d.ts +0 -7
  199. package/lib/view-modal/style/index.js +0 -12
  200. package/lib/view-modal/style/index.js.map +1 -1
  201. package/lib/view-modal/style/index.less +42 -57
  202. package/lib/view-modal/view-modal.js +28 -75
  203. package/lib/view-modal/view-modal.js.map +1 -1
  204. package/package.json +157 -143
  205. package/lib/style/css.js +0 -13
  206. package/lib/style/css.js.map +0 -1
  207. package/lib/style/darkGreen.css +0 -719
  208. package/lib/style/darkGreen.less +0 -482
  209. package/lib/style/index.d.ts +0 -2
  210. package/lib/style/index.js +0 -13
  211. package/lib/style/index.js.map +0 -1
  212. package/lib/template/vtx-search/index.d.ts +0 -2
  213. package/lib/template/vtx-search/index.js +0 -126
  214. package/lib/template/vtx-search/index.js.map +0 -1
  215. package/lib/template/vtx-search/style/index.css +0 -92
  216. package/lib/template/vtx-search/style/index.less +0 -92
@@ -1,482 +0,0 @@
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
- @middle-font-color: #666;
8
-
9
- .darkGreenFormItem {
10
- .ant-modal-body {
11
- padding: 0;
12
- position: relative;
13
- &::after {
14
- content: '';
15
- position: absolute;
16
- right: 0;
17
- top: 0;
18
- bottom: 0;
19
- width: 1px;
20
- background: @border-color;
21
- }
22
- .vtx-form-layout {
23
- > .vtx-form-layout {
24
- border: none;
25
- }
26
-
27
- > .vtx-form-pane:nth-child(1) {
28
- border-top: 1px solid @border-color;
29
- .vtx-form-pane-title {
30
- padding-top: 16px;
31
- }
32
- }
33
- position: relative;
34
- padding: 0;
35
- border-left: 1px solid @border-color;
36
- border-bottom: 1px solid @border-color;
37
- .vtx-form-item-col {
38
- position: relative;
39
- z-index: 9;
40
- margin-bottom: 0;
41
- //border-bottom: 1px solid @border-color;
42
- border-right: 1px solid @border-color;
43
- border-top: 1px solid @border-color;
44
- min-height: 60px;
45
- }
46
- .ant-col-8,
47
- .ant-col-12,
48
- .ant-col-24 {
49
- &.vtx-form-item-col {
50
- border-bottom: 1px solid @border-color;
51
- margin-bottom: -1px;
52
- }
53
- }
54
- .vtx-form-card {
55
- border: none;
56
- }
57
- .vtx-form-pane {
58
- .ant-divider {
59
- height: 0;
60
- border: none;
61
- }
62
- }
63
- .vtx-form-pane-content {
64
- //border-left: 1px solid @border-color;
65
- }
66
- .ant-card:not(:nth-last-child(1)) {
67
- .vtx-form-card-content {
68
- border-bottom: 1px solid @border-color;
69
- }
70
- }
71
- .vtx-form-card-content {
72
- padding: 20px 0 0 0;
73
- }
74
- .ant-card.vtx-form-card {
75
- border-bottom: none;
76
- }
77
- .ant-tabs-tabpane {
78
- .ant-divider {
79
- height: 0;
80
- border: none;
81
- }
82
- }
83
- .ant-card-head {
84
- background: @normal-item-bg-color;
85
- .ant-card-head-title {
86
- font-weight: normal;
87
- color: @text-color;
88
- }
89
- .ant-card-extra {
90
- span {
91
- color: @middle-font-color;
92
- }
93
- }
94
- }
95
- }
96
- .ant-form-item {
97
- height: 100%;
98
- margin-bottom: 0 !important;
99
- margin-right: 0;
100
- .ant-form-item-row {
101
- height: 100%;
102
- align-items: center;
103
- }
104
- .ant-form-item-control {
105
- height: 100%;
106
- background: @bg-color;
107
-
108
- > *:only-child {
109
- height: 100%;
110
- }
111
- .ant-form-item-control-input {
112
- height: 100%;
113
- }
114
- .ant-form-item-explain {
115
- position: absolute;
116
- bottom: 0;
117
- left: 5px;
118
- right: 0;
119
- }
120
- }
121
- .ant-form-item-label {
122
- background: @normal-item-bg-color;
123
- height: 100%;
124
- min-height: 58px;
125
- display: flex;
126
- align-items: center;
127
- justify-content: flex-end;
128
- }
129
- // 各个表单样式控制
130
- .ant-form-item-control-input-content {
131
- > *:nth-child(1):not(.ant-select):not(.vtx-multi-select):not(.vtx-select):not(.vtx-input-textarea):not(.env-tree-select) {
132
- padding-left: 10px;
133
- }
134
- > .ant-select-disabled {
135
- height: calc(~'100% + 2px');
136
- position: relative;
137
- // top: -1px;
138
- .ant-select-selector {
139
- border-radius: 0;
140
- }
141
- }
142
- padding-top: 1px;
143
- padding-bottom: 1px;
144
- height: 100%;
145
- display: flex;
146
- align-items: center;
147
- input,
148
- textarea {
149
- height: 100% !important;
150
- border: none;
151
- }
152
- }
153
- .ant-checkbox,
154
- .ant-radio {
155
- input {
156
- display: none;
157
- }
158
- }
159
- .vtx-multi-select {
160
- height: 100%;
161
- .ant-select {
162
- height: 100%;
163
- .ant-select-selector {
164
- height: 100%;
165
- }
166
- }
167
- .ant-select-selector {
168
- border: none;
169
- border-right: 1px solid @border-color;
170
- }
171
- .ant-btn {
172
- height: 100%;
173
- border: none;
174
- }
175
- }
176
- .vtx-input-textarea {
177
- width: 100%;
178
- height: 100%;
179
- }
180
- input {
181
- padding-left: 0;
182
- min-height: 56px;
183
- }
184
- textarea,
185
- .ant-input-number-disabled,
186
- .ant-input-affix-wrapper,
187
- .env-tree-select,
188
- .ant-select,
189
- .ant-input-number,
190
- .ant-picker {
191
- height: 100%;
192
- border: none;
193
- .ant-input-number-input-wrap {
194
- height: 100%;
195
- }
196
- }
197
- .ant-select {
198
- display: flex;
199
- align-items: center;
200
- .ant-select-selector {
201
- //height: calc(~'100% - 1px');
202
- height: 100%;
203
- width: 100%;
204
- border: none;
205
- input {
206
- height: 100%;
207
- overflow: visible;
208
- }
209
- }
210
- .ant-select-selection-placeholder,
211
- .ant-select-selection-item {
212
- height: 100%;
213
- display: flex;
214
- align-items: center;
215
- }
216
- }
217
- .ant-upload-picture-card-wrapper {
218
- padding-top: 10px;
219
- }
220
-
221
- .ant-select-focused,
222
- .ant-input-number-focused,
223
- .ant-input-affix-wrapper {
224
- outline: none;
225
- position: relative;
226
- z-index: 199;
227
- width: calc(~'100% - 1px');
228
- // height: calc(~'100% - 1px');
229
- }
230
- input:focus,
231
- textarea:focus {
232
- outline: none;
233
- position: relative;
234
- z-index: 199;
235
- width: calc(~'100% - 1px');
236
- // height: calc(~'100% - 1px');
237
- }
238
- }
239
- .ant-row {
240
- width: 100%;
241
- }
242
- .vtx-form-pane-title {
243
- padding-left: 24px;
244
- margin-bottom: 0;
245
- padding-bottom: 24px;
246
- border-right: 1px solid @border-color;
247
- }
248
- .ant-col:not(.ant-col-8):not(.ant-col-12):not(.ant-col-24):not(.ant-col-4) {
249
- &.ant-form-item-label {
250
- width: 150px;
251
- }
252
- }
253
- .text-node {
254
- box-sizing: border-box;
255
- padding-left: 10px;
256
- }
257
- .ant-col:not(:nth-child(1)) {
258
- .ant-row {
259
- .ant-col.vtx-form-item-col {
260
- border-top: none;
261
- }
262
- }
263
- }
264
- .ant-form-item-with-help {
265
- margin-bottom: 0 !important;
266
- }
267
- //.ant-col{
268
- // max-height: 62px ;
269
- // overflow: hidden;
270
- //}
271
- }
272
- .ant-tabs-nav-wrap {
273
- background: @table-header-bg;
274
- height: 42px;
275
- .ant-tabs-tab-active {
276
- background: #fff;
277
- }
278
- .ant-tabs-tab {
279
- height: 42px;
280
- padding-left: 18px !important;
281
- padding-right: 18px !important;
282
- margin-left: 0;
283
- }
284
- .ant-tabs-ink-bar.ant-tabs-ink-bar-animated {
285
- top: 0;
286
- }
287
- }
288
- }
289
-
290
- .darkGreen {
291
- .ant-table {
292
- .ant-table-tbody {
293
- > tr {
294
- > .ant-table-cell {
295
- color: @text-color !important;
296
- }
297
- }
298
- }
299
- }
300
- .env-template {
301
- background-color: #fff;
302
- .vtx-page--table {
303
- background-color: #fff;
304
- }
305
- .vtx-datagrid-toolbar {
306
- display: none;
307
- }
308
- .env-template-action {
309
- position: relative;
310
- display: inline-block;
311
- box-sizing: border-box;
312
- height: 48px;
313
- padding-top: 8px;
314
- padding-bottom: 8px;
315
- padding-right: 8px;
316
- line-height: 1.5715;
317
- vertical-align: top;
318
- }
319
- .vtx-datagrid-fit .ant-table-pagination {
320
- bottom: 10px;
321
- }
322
- .ant-table-pagination {
323
- margin: 12px 0;
324
- &.ant-pagination {
325
- &.ant-pagination-mini {
326
- .ant-pagination-item {
327
- min-width: 32px;
328
- height: 32px;
329
- margin: 0;
330
- line-height: 30px;
331
- background: #f0f1f4;
332
- border-color: #f0f1f4;
333
- margin-left: 6px;
334
- }
335
- .ant-pagination-total-text {
336
- height: 32px;
337
- line-height: 32px;
338
- }
339
- .ant-pagination-simple-pager {
340
- height: 32px;
341
- line-height: 32px;
342
- }
343
- .ant-pagination-prev {
344
- min-width: 32px;
345
- height: 32px;
346
- margin: 0;
347
- line-height: 32px;
348
- .ant-pagination-item-link {
349
- background: #f0f1f4;
350
- border-color: #f0f1f4;
351
- }
352
- }
353
- .ant-pagination-next {
354
- min-width: 32px;
355
- height: 32px;
356
- margin: 0;
357
- line-height: 32px;
358
- margin-left: 6px;
359
- .ant-pagination-item-link {
360
- background: #f0f1f4;
361
- border-color: #f0f1f4;
362
- }
363
- }
364
- .ant-pagination-options {
365
- .ant-pagination-options-quick-jumper {
366
- height: 32px;
367
- line-height: 32px;
368
- input {
369
- height: 32px;
370
- }
371
- }
372
- }
373
- }
374
- }
375
- }
376
- .vtx-datagrid {
377
- .ant-table-thead {
378
- > tr > th {
379
- background-color: @table-header-bg;
380
- font-weight: normal;
381
- color: @middle-font-color;
382
- }
383
- }
384
- .ant-table-tbody {
385
- > tr {
386
- > .ant-table-cell {
387
- color: @text-color !important;
388
- }
389
- }
390
- }
391
- }
392
- }
393
-
394
- .env-create-modal {
395
- .darkGreenFormItem();
396
- }
397
- .env-view-modal {
398
- .ant-modal-body {
399
- > .ant-row {
400
- position: relative;
401
- padding: 0;
402
- .left-border {
403
- position: absolute;
404
- left: 0;
405
- top: 0;
406
- bottom: 0;
407
- width: 1px;
408
- background: @border-color;
409
- }
410
- .right-border {
411
- position: absolute;
412
- right: 0;
413
- top: 0;
414
- bottom: 0;
415
- width: 1px;
416
- background: @border-color;
417
- }
418
- .top-border {
419
- position: absolute;
420
- right: 0;
421
- left: 0;
422
- top: 0;
423
- height: 1px;
424
- background: @border-color;
425
- }
426
- .bottom-border {
427
- position: absolute;
428
- right: 0;
429
- left: 0;
430
- bottom: 0;
431
- height: 1px;
432
- background: @border-color;
433
- }
434
- }
435
- }
436
- .env-view-modal-col {
437
- position: relative;
438
- background: #fff;
439
- z-index: 9;
440
- border-top: 1px solid @border-color;
441
- border-bottom: 1px solid @border-color;
442
- border-right: 1px solid @border-color;
443
- margin-bottom: -1px;
444
- }
445
- .env-view-modal-col-label {
446
- box-sizing: border-box;
447
- padding-left: 0;
448
- text-align: right;
449
- flex-basis: 100px;
450
- flex-shrink: 0;
451
- width: 100px;
452
- overflow: hidden;
453
- text-overflow: ellipsis;
454
- white-space: nowrap;
455
- background: @normal-item-bg-color;
456
- height: 100%;
457
- min-height: 58px;
458
- display: flex;
459
- align-items: center;
460
- justify-content: flex-end;
461
- }
462
- .env-view-modal-col-value {
463
- padding-left: 10px;
464
- display: flex;
465
- align-items: center;
466
-
467
- .ant-upload-picture-card-wrapper {
468
- padding-top: 10px;
469
- }
470
- }
471
- .ant-divider-horizontal {
472
- display: none;
473
- }
474
- }
475
- .ant-modal-header {
476
- height: 48px;
477
- box-sizing: border-box;
478
- }
479
- .ant-upload-list-picture-card {
480
- min-height: 112px;
481
- }
482
- }
@@ -1,2 +0,0 @@
1
- declare const iframeEnv = "darkGreen";
2
- declare const themeList: string[];
@@ -1,13 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- declare function VtxSearch(props: any): JSX.Element;
2
- export default VtxSearch;
@@ -1,126 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _classnames = _interopRequireDefault(require("classnames"));
13
-
14
- var _button = _interopRequireDefault(require("antd/lib/button"));
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
-
20
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
-
22
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
23
-
24
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25
-
26
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
27
-
28
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
29
-
30
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
31
-
32
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
33
-
34
- function VtxSearch(props) {
35
- // 参数列表
36
- var wrapClassName = props.wrapClassName,
37
- _props$isConfirmButto = props.isConfirmButton,
38
- isConfirmButton = _props$isConfirmButto === void 0 ? true : _props$isConfirmButto,
39
- _props$isClearButton = props.isClearButton,
40
- isClearButton = _props$isClearButton === void 0 ? false : _props$isClearButton,
41
- _props$confirmText = props.confirmText,
42
- confirmText = _props$confirmText === void 0 ? '查询' : _props$confirmText,
43
- _props$clearText = props.clearText,
44
- clearText = _props$clearText === void 0 ? '重置' : _props$clearText,
45
- onConfirm = props.onConfirm,
46
- onClear = props.onClear,
47
- buttonGroup = props.buttonGroup;
48
- var vtxSearchRef = (0, _react.useRef)();
49
- var newChildren = Array.isArray(props === null || props === void 0 ? void 0 : props.children) ? props === null || props === void 0 ? void 0 : props.children.filter(function (item) {
50
- return !!item;
51
- }) : props === null || props === void 0 ? void 0 : props.children;
52
-
53
- var analyzeChildren = function analyzeChildren(data) {
54
- var cData = data;
55
- if (!cData) return null;
56
-
57
- if (typeof data == 'function') {
58
- cData = data();
59
- }
60
-
61
- if (!cData.length) {
62
- return render(cData, 0);
63
- } else {
64
- var chData = [];
65
- cData.forEach(function (item) {
66
- if (typeof item == 'function') {
67
- var ite = item();
68
-
69
- if (Array.isArray(ite)) {
70
- chData.push.apply(chData, _toConsumableArray(ite));
71
- }
72
-
73
- chData.push(ite);
74
- return;
75
- }
76
-
77
- if (Array.isArray(item)) {
78
- chData.push.apply(chData, _toConsumableArray(item));
79
- return;
80
- }
81
-
82
- chData.push(item);
83
- });
84
- return chData.map(function (item, index) {
85
- return render(item, index);
86
- });
87
- }
88
- };
89
-
90
- var layoutH = function layoutH(d, i) {
91
- return /*#__PURE__*/_react["default"].createElement("div", {
92
- className: "env-template-lists"
93
- }, /*#__PURE__*/_react["default"].createElement("div", {
94
- className: "env-template-lists-item"
95
- }, " ", d));
96
- };
97
-
98
- var render = function render(d, i) {
99
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, layoutH(d, i));
100
- };
101
-
102
- return /*#__PURE__*/_react["default"].createElement("div", {
103
- className: (0, _classnames["default"])('env-template-search', wrapClassName),
104
- ref: vtxSearchRef
105
- }, analyzeChildren(newChildren), isConfirmButton && /*#__PURE__*/_react["default"].createElement("div", {
106
- className: "env-template-lists"
107
- }, /*#__PURE__*/_react["default"].createElement(_button["default"], {
108
- style: {
109
- width: 100
110
- },
111
- type: "primary",
112
- onClick: onConfirm
113
- }, confirmText)), isClearButton && /*#__PURE__*/_react["default"].createElement("span", {
114
- "data-type": 'bt',
115
- className: "vtx-search-buttons-default"
116
- }, /*#__PURE__*/_react["default"].createElement(_button["default"], {
117
- style: {
118
- width: '100%'
119
- },
120
- onClick: onClear
121
- }, clearText)), buttonGroup);
122
- }
123
-
124
- var _default = VtxSearch;
125
- exports["default"] = _default;
126
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["VtxSearch","props","wrapClassName","isConfirmButton","isClearButton","confirmText","clearText","onConfirm","onClear","buttonGroup","vtxSearchRef","useRef","newChildren","Array","isArray","children","filter","item","analyzeChildren","data","cData","length","render","chData","forEach","ite","push","map","index","layoutH","d","i","React","createElement","className","Fragment","classnames","ref","Button","style","width","type","onClick"],"sources":["template/vtx-search/index.js"],"sourcesContent":["import React, { useRef } from 'react';\nimport classnames from 'classnames';\nimport Button from 'antd/lib/button';\nfunction VtxSearch(props) {\n // 参数列表\n const { wrapClassName, isConfirmButton = true, // 是否显示确认按钮\n isClearButton = false, // 是否显示清空按钮\n confirmText = '查询', // 确认按钮文本\n clearText = '重置', // 情况按钮文本\n onConfirm, // 确认按钮回调\n onClear, buttonGroup, } = props;\n const vtxSearchRef = useRef();\n const newChildren = Array.isArray(props === null || props === void 0 ? void 0 : props.children)\n ? props === null || props === void 0 ? void 0 : props.children.filter((item) => !!item)\n : props === null || props === void 0 ? void 0 : props.children;\n const analyzeChildren = (data) => {\n let cData = data;\n if (!cData)\n return null;\n if (typeof data == 'function') {\n cData = data();\n }\n if (!cData.length) {\n return render(cData, 0);\n }\n else {\n const chData = [];\n cData.forEach((item) => {\n if (typeof item == 'function') {\n const ite = item();\n if (Array.isArray(ite)) {\n chData.push(...ite);\n }\n chData.push(ite);\n return;\n }\n if (Array.isArray(item)) {\n chData.push(...item);\n return;\n }\n chData.push(item);\n });\n return chData.map((item, index) => {\n return render(item, index);\n });\n }\n };\n const layoutH = (d, i) => (React.createElement(\"div\", { className: \"env-template-lists\" },\n React.createElement(\"div\", { className: \"env-template-lists-item\" },\n \" \",\n d)));\n const render = (d, i) => {\n return React.createElement(React.Fragment, null, layoutH(d, i));\n };\n return (React.createElement(\"div\", { className: classnames('env-template-search', wrapClassName), ref: vtxSearchRef },\n analyzeChildren(newChildren),\n isConfirmButton && (React.createElement(\"div\", { className: \"env-template-lists\" },\n React.createElement(Button, { style: { width: 100 }, type: \"primary\", onClick: onConfirm }, confirmText))),\n isClearButton && (React.createElement(\"span\", { \"data-type\": 'bt', className: \"vtx-search-buttons-default\" },\n React.createElement(Button, { style: { width: '100%' }, onClick: onClear }, clearText))),\n buttonGroup));\n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