@vtx/modals2 2.10.20 → 2.10.21

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 (886) hide show
  1. package/lib/index.js +126 -0
  2. package/lib/index.js.map +1 -0
  3. package/lib/style/css.js +16 -0
  4. package/lib/style/css.js.map +1 -0
  5. package/lib/style/index.js +16 -0
  6. package/lib/style/index.js.map +1 -0
  7. package/lib/typings.d.ts +14 -0
  8. package/lib/util/index.js +25 -0
  9. package/lib/util/index.js.map +1 -0
  10. package/lib/vm-alarm-info/Components/AlarmRecord.js +83 -0
  11. package/lib/vm-alarm-info/Components/AlarmRecord.js.map +1 -0
  12. package/lib/vm-alarm-info/Components/AlarmStatistics.js +99 -0
  13. package/lib/vm-alarm-info/Components/AlarmStatistics.js.map +1 -0
  14. package/lib/vm-alarm-info/Components/AlarmTrend.js +203 -0
  15. package/lib/vm-alarm-info/Components/AlarmTrend.js.map +1 -0
  16. package/lib/vm-alarm-info/Components/CurrentAlarm.js +35 -0
  17. package/lib/vm-alarm-info/Components/CurrentAlarm.js.map +1 -0
  18. package/lib/vm-alarm-info/Components/CurrentAlarmNew.js +87 -0
  19. package/lib/vm-alarm-info/Components/CurrentAlarmNew.js.map +1 -0
  20. package/lib/vm-alarm-info/api.js +169 -0
  21. package/lib/vm-alarm-info/api.js.map +1 -0
  22. package/lib/vm-alarm-info/index.js +95 -0
  23. package/lib/vm-alarm-info/index.js.map +1 -0
  24. package/lib/vm-alarm-info/style/css.js +4 -0
  25. package/lib/vm-alarm-info/style/css.js.map +1 -0
  26. package/lib/vm-alarm-info/style/index.js +4 -0
  27. package/lib/vm-alarm-info/style/index.js.map +1 -0
  28. package/lib/vm-alarm-situation/api.js +87 -0
  29. package/lib/vm-alarm-situation/api.js.map +1 -0
  30. package/lib/vm-alarm-situation/index.js +212 -0
  31. package/lib/vm-alarm-situation/index.js.map +1 -0
  32. package/lib/vm-alarm-situation/style/css.js +4 -0
  33. package/lib/vm-alarm-situation/style/css.js.map +1 -0
  34. package/lib/vm-alarm-situation/style/index.js +4 -0
  35. package/lib/vm-alarm-situation/style/index.js.map +1 -0
  36. package/lib/vm-alarm-situation-pt/api.js +75 -0
  37. package/lib/vm-alarm-situation-pt/api.js.map +1 -0
  38. package/lib/vm-alarm-situation-pt/index.js +146 -0
  39. package/lib/vm-alarm-situation-pt/index.js.map +1 -0
  40. package/lib/vm-alarm-situation-pt/style/css.js +4 -0
  41. package/lib/vm-alarm-situation-pt/style/css.js.map +1 -0
  42. package/lib/vm-alarm-situation-pt/style/index.js +4 -0
  43. package/lib/vm-alarm-situation-pt/style/index.js.map +1 -0
  44. package/lib/vm-analysis-comparison/api.js +178 -0
  45. package/lib/vm-analysis-comparison/api.js.map +1 -0
  46. package/lib/vm-analysis-comparison/index.js +368 -0
  47. package/lib/vm-analysis-comparison/index.js.map +1 -0
  48. package/lib/vm-analysis-comparison/style/css.js +4 -0
  49. package/lib/vm-analysis-comparison/style/css.js.map +1 -0
  50. package/lib/vm-analysis-comparison/style/index.js +4 -0
  51. package/lib/vm-analysis-comparison/style/index.js.map +1 -0
  52. package/lib/vm-appraisal-info/AppraisalBase.js +57 -0
  53. package/lib/vm-appraisal-info/AppraisalBase.js.map +1 -0
  54. package/lib/vm-appraisal-info/AppraisalTop5.js +69 -0
  55. package/lib/vm-appraisal-info/AppraisalTop5.js.map +1 -0
  56. package/lib/vm-appraisal-info/List.js +57 -0
  57. package/lib/vm-appraisal-info/List.js.map +1 -0
  58. package/lib/vm-appraisal-info/ListKh.js +154 -0
  59. package/lib/vm-appraisal-info/ListKh.js.map +1 -0
  60. package/lib/vm-appraisal-info/ListZg.js +159 -0
  61. package/lib/vm-appraisal-info/ListZg.js.map +1 -0
  62. package/lib/vm-appraisal-info/Wtlx.js +96 -0
  63. package/lib/vm-appraisal-info/Wtlx.js.map +1 -0
  64. package/lib/vm-appraisal-info/Zgxxhz.js +47 -0
  65. package/lib/vm-appraisal-info/Zgxxhz.js.map +1 -0
  66. package/lib/vm-appraisal-info/api.js +164 -0
  67. package/lib/vm-appraisal-info/api.js.map +1 -0
  68. package/lib/vm-appraisal-info/index.js +133 -0
  69. package/lib/vm-appraisal-info/index.js.map +1 -0
  70. package/lib/vm-appraisal-info/style/css.js +4 -0
  71. package/lib/vm-appraisal-info/style/css.js.map +1 -0
  72. package/lib/vm-appraisal-info/style/index.js +4 -0
  73. package/lib/vm-appraisal-info/style/index.js.map +1 -0
  74. package/lib/vm-base-list/OpenArrow.js +42 -0
  75. package/lib/vm-base-list/OpenArrow.js.map +1 -0
  76. package/lib/vm-base-list/index.js +86 -0
  77. package/lib/vm-base-list/index.js.map +1 -0
  78. package/lib/vm-base-list/style/css.js +4 -0
  79. package/lib/vm-base-list/style/css.js.map +1 -0
  80. package/lib/vm-base-list/style/index.js +4 -0
  81. package/lib/vm-base-list/style/index.js.map +1 -0
  82. package/lib/vm-button/index.js +27 -0
  83. package/lib/vm-button/index.js.map +1 -0
  84. package/lib/vm-button/style/css.js +4 -0
  85. package/lib/vm-button/style/css.js.map +1 -0
  86. package/lib/vm-button/style/index.js +4 -0
  87. package/lib/vm-button/style/index.js.map +1 -0
  88. package/lib/vm-charts/Distribute1.js +137 -0
  89. package/lib/vm-charts/Distribute1.js.map +1 -0
  90. package/lib/vm-charts/Gauge1.js +149 -0
  91. package/lib/vm-charts/Gauge1.js.map +1 -0
  92. package/lib/vm-charts/Line.js +215 -0
  93. package/lib/vm-charts/Line.js.map +1 -0
  94. package/lib/vm-charts/Line1.js +96 -0
  95. package/lib/vm-charts/Line1.js.map +1 -0
  96. package/lib/vm-charts/Pie.js +117 -0
  97. package/lib/vm-charts/Pie.js.map +1 -0
  98. package/lib/vm-charts/index.js +42 -0
  99. package/lib/vm-charts/index.js.map +1 -0
  100. package/lib/vm-checkbox/index.js +34 -0
  101. package/lib/vm-checkbox/index.js.map +1 -0
  102. package/lib/vm-checkbox/style/css.js +4 -0
  103. package/lib/vm-checkbox/style/css.js.map +1 -0
  104. package/lib/vm-checkbox/style/index.js +4 -0
  105. package/lib/vm-checkbox/style/index.js.map +1 -0
  106. package/lib/vm-common-components/common/index.js +28 -0
  107. package/lib/vm-common-components/common/index.js.map +1 -0
  108. package/lib/vm-common-components/common/vm-modal/index.js +35 -0
  109. package/lib/vm-common-components/common/vm-modal/index.js.map +1 -0
  110. package/lib/vm-common-components/common/vm-modal/style/css.js +4 -0
  111. package/lib/vm-common-components/common/vm-modal/style/css.js.map +1 -0
  112. package/lib/vm-common-components/common/vm-modal/style/index.js +4 -0
  113. package/lib/vm-common-components/common/vm-modal/style/index.js.map +1 -0
  114. package/lib/vm-common-components/common/vm-select/index.js +22 -0
  115. package/lib/vm-common-components/common/vm-select/index.js.map +1 -0
  116. package/lib/vm-common-components/common/vm-select/style/css.js +4 -0
  117. package/lib/vm-common-components/common/vm-select/style/css.js.map +1 -0
  118. package/lib/vm-common-components/common/vm-select/style/index.js +4 -0
  119. package/lib/vm-common-components/common/vm-select/style/index.js.map +1 -0
  120. package/lib/vm-common-components/common/vm-tabs/index.js +75 -0
  121. package/lib/vm-common-components/common/vm-tabs/index.js.map +1 -0
  122. package/lib/vm-common-components/common/vm-tabs/style/css.js +4 -0
  123. package/lib/vm-common-components/common/vm-tabs/style/css.js.map +1 -0
  124. package/lib/vm-common-components/common/vm-tabs/style/index.js +4 -0
  125. package/lib/vm-common-components/common/vm-tabs/style/index.js.map +1 -0
  126. package/lib/vm-common-components/components/Compare/index.js +52 -0
  127. package/lib/vm-common-components/components/Compare/index.js.map +1 -0
  128. package/lib/vm-common-components/components/Compare/style/css.js +4 -0
  129. package/lib/vm-common-components/components/Compare/style/css.js.map +1 -0
  130. package/lib/vm-common-components/components/Compare/style/index.js +4 -0
  131. package/lib/vm-common-components/components/Compare/style/index.js.map +1 -0
  132. package/lib/vm-common-components/components/ImagesGroup/index.js +30 -0
  133. package/lib/vm-common-components/components/ImagesGroup/index.js.map +1 -0
  134. package/lib/vm-common-components/components/ImagesGroup/style/css.js +4 -0
  135. package/lib/vm-common-components/components/ImagesGroup/style/css.js.map +1 -0
  136. package/lib/vm-common-components/components/ImagesGroup/style/index.js +4 -0
  137. package/lib/vm-common-components/components/ImagesGroup/style/index.js.map +1 -0
  138. package/lib/vm-common-components/components/RadionButton/index.js +44 -0
  139. package/lib/vm-common-components/components/RadionButton/index.js.map +1 -0
  140. package/lib/vm-common-components/components/RadionButton/style/css.js +4 -0
  141. package/lib/vm-common-components/components/RadionButton/style/css.js.map +1 -0
  142. package/lib/vm-common-components/components/RadionButton/style/index.js +4 -0
  143. package/lib/vm-common-components/components/RadionButton/style/index.js.map +1 -0
  144. package/lib/vm-common-components/components/Statistics/index.js +177 -0
  145. package/lib/vm-common-components/components/Statistics/index.js.map +1 -0
  146. package/lib/vm-common-components/components/Statistics/style/css.js +4 -0
  147. package/lib/vm-common-components/components/Statistics/style/css.js.map +1 -0
  148. package/lib/vm-common-components/components/Statistics/style/index.js +4 -0
  149. package/lib/vm-common-components/components/Statistics/style/index.js.map +1 -0
  150. package/lib/vm-common-components/components/SubTitle/index.js +61 -0
  151. package/lib/vm-common-components/components/SubTitle/index.js.map +1 -0
  152. package/lib/vm-common-components/components/SubTitle/style/css.js +2 -0
  153. package/lib/vm-common-components/components/SubTitle/style/css.js.map +1 -0
  154. package/lib/vm-common-components/components/SubTitle/style/index.js +2 -0
  155. package/lib/vm-common-components/components/SubTitle/style/index.js.map +1 -0
  156. package/lib/vm-common-components/components/TimePeriodSwitch/index.js +44 -0
  157. package/lib/vm-common-components/components/TimePeriodSwitch/index.js.map +1 -0
  158. package/lib/vm-common-components/components/index.js +86 -0
  159. package/lib/vm-common-components/components/index.js.map +1 -0
  160. package/lib/vm-common-components/components/vm-alarm-title/index.js +31 -0
  161. package/lib/vm-common-components/components/vm-alarm-title/index.js.map +1 -0
  162. package/lib/vm-common-components/components/vm-alarm-title/style/css.js +4 -0
  163. package/lib/vm-common-components/components/vm-alarm-title/style/css.js.map +1 -0
  164. package/lib/vm-common-components/components/vm-alarm-title/style/index.js +4 -0
  165. package/lib/vm-common-components/components/vm-alarm-title/style/index.js.map +1 -0
  166. package/lib/vm-common-components/components/vm-chart/index.js +389 -0
  167. package/lib/vm-common-components/components/vm-chart/index.js.map +1 -0
  168. package/lib/vm-common-components/components/vm-collect/api.js +35 -0
  169. package/lib/vm-common-components/components/vm-collect/api.js.map +1 -0
  170. package/lib/vm-common-components/components/vm-collect/index.js +66 -0
  171. package/lib/vm-common-components/components/vm-collect/index.js.map +1 -0
  172. package/lib/vm-common-components/components/vm-collect/style/css.js +4 -0
  173. package/lib/vm-common-components/components/vm-collect/style/css.js.map +1 -0
  174. package/lib/vm-common-components/components/vm-collect/style/index.js +4 -0
  175. package/lib/vm-common-components/components/vm-collect/style/index.js.map +1 -0
  176. package/lib/vm-common-components/components/vm-container/index.js +48 -0
  177. package/lib/vm-common-components/components/vm-container/index.js.map +1 -0
  178. package/lib/vm-common-components/components/vm-container/style/css.js +4 -0
  179. package/lib/vm-common-components/components/vm-container/style/css.js.map +1 -0
  180. package/lib/vm-common-components/components/vm-container/style/index.js +4 -0
  181. package/lib/vm-common-components/components/vm-container/style/index.js.map +1 -0
  182. package/lib/vm-common-components/components/vm-nodata/index.js +73 -0
  183. package/lib/vm-common-components/components/vm-nodata/index.js.map +1 -0
  184. package/lib/vm-common-components/components/vm-nodata/style/css.js +4 -0
  185. package/lib/vm-common-components/components/vm-nodata/style/css.js.map +1 -0
  186. package/lib/vm-common-components/components/vm-nodata/style/index.js +4 -0
  187. package/lib/vm-common-components/components/vm-nodata/style/index.js.map +1 -0
  188. package/lib/vm-common-components/components/vm-water-wave/index.js +161 -0
  189. package/lib/vm-common-components/components/vm-water-wave/index.js.map +1 -0
  190. package/lib/vm-common-components/index.js +331 -0
  191. package/lib/vm-common-components/index.js.map +1 -0
  192. package/lib/vm-common-components/style/css.js +4 -0
  193. package/lib/vm-common-components/style/css.js.map +1 -0
  194. package/lib/vm-common-components/style/index.js +4 -0
  195. package/lib/vm-common-components/style/index.js.map +1 -0
  196. package/lib/vm-container/index.js +35 -0
  197. package/lib/vm-container/index.js.map +1 -0
  198. package/lib/vm-container/style/css.js +4 -0
  199. package/lib/vm-container/style/css.js.map +1 -0
  200. package/lib/vm-container/style/index.js +4 -0
  201. package/lib/vm-container/style/index.js.map +1 -0
  202. package/lib/vm-correlation-comparison/api.js +237 -0
  203. package/lib/vm-correlation-comparison/api.js.map +1 -0
  204. package/lib/vm-correlation-comparison/index.js +309 -0
  205. package/lib/vm-correlation-comparison/index.js.map +1 -0
  206. package/lib/vm-correlation-comparison/style/css.js +4 -0
  207. package/lib/vm-correlation-comparison/style/css.js.map +1 -0
  208. package/lib/vm-correlation-comparison/style/index.js +4 -0
  209. package/lib/vm-correlation-comparison/style/index.js.map +1 -0
  210. package/lib/vm-empty/index.js +45 -0
  211. package/lib/vm-empty/index.js.map +1 -0
  212. package/lib/vm-empty/style/css.js +4 -0
  213. package/lib/vm-empty/style/css.js.map +1 -0
  214. package/lib/vm-empty/style/index.js +4 -0
  215. package/lib/vm-empty/style/index.js.map +1 -0
  216. package/lib/vm-filter/index.js +182 -0
  217. package/lib/vm-filter/index.js.map +1 -0
  218. package/lib/vm-filter/style/css.js +4 -0
  219. package/lib/vm-filter/style/css.js.map +1 -0
  220. package/lib/vm-filter/style/index.js +4 -0
  221. package/lib/vm-filter/style/index.js.map +1 -0
  222. package/lib/vm-hooks/useSettings.js +31 -0
  223. package/lib/vm-hooks/useSettings.js.map +1 -0
  224. package/lib/vm-image-text/index.js +42 -0
  225. package/lib/vm-image-text/index.js.map +1 -0
  226. package/lib/vm-image-text/style/css.js +4 -0
  227. package/lib/vm-image-text/style/css.js.map +1 -0
  228. package/lib/vm-image-text/style/index.js +4 -0
  229. package/lib/vm-image-text/style/index.js.map +1 -0
  230. package/lib/vm-info-collection/index.js +45 -0
  231. package/lib/vm-info-collection/index.js.map +1 -0
  232. package/lib/vm-info-collection/style/css.js +4 -0
  233. package/lib/vm-info-collection/style/css.js.map +1 -0
  234. package/lib/vm-info-collection/style/index.js +4 -0
  235. package/lib/vm-info-collection/style/index.js.map +1 -0
  236. package/lib/vm-map/index.js +209 -0
  237. package/lib/vm-map/index.js.map +1 -0
  238. package/lib/vm-map/mapStyle.js +4730 -0
  239. package/lib/vm-map/mapStyle.js.map +1 -0
  240. package/lib/vm-modal-table/index.js +35 -0
  241. package/lib/vm-modal-table/index.js.map +1 -0
  242. package/lib/vm-modal-table/style/css.js +4 -0
  243. package/lib/vm-modal-table/style/css.js.map +1 -0
  244. package/lib/vm-modal-table/style/index.js +4 -0
  245. package/lib/vm-modal-table/style/index.js.map +1 -0
  246. package/lib/vm-nodata/index.js +26 -0
  247. package/lib/vm-nodata/index.js.map +1 -0
  248. package/lib/vm-radio/index.js +29 -0
  249. package/lib/vm-radio/index.js.map +1 -0
  250. package/lib/vm-radio/style/css.js +4 -0
  251. package/lib/vm-radio/style/css.js.map +1 -0
  252. package/lib/vm-radio/style/index.js +4 -0
  253. package/lib/vm-radio/style/index.js.map +1 -0
  254. package/lib/vm-real-time-monitor/api.js +194 -0
  255. package/lib/vm-real-time-monitor/api.js.map +1 -0
  256. package/lib/vm-real-time-monitor/index.js +366 -0
  257. package/lib/vm-real-time-monitor/index.js.map +1 -0
  258. package/lib/vm-real-time-monitor/style/css.js +4 -0
  259. package/lib/vm-real-time-monitor/style/css.js.map +1 -0
  260. package/lib/vm-real-time-monitor/style/index.js +4 -0
  261. package/lib/vm-real-time-monitor/style/index.js.map +1 -0
  262. package/lib/vm-repair-maintain/RmInfoSummary.js +62 -0
  263. package/lib/vm-repair-maintain/RmInfoSummary.js.map +1 -0
  264. package/lib/vm-repair-maintain/RmMonthTrend.js +104 -0
  265. package/lib/vm-repair-maintain/RmMonthTrend.js.map +1 -0
  266. package/lib/vm-repair-maintain/RmRecord.js +151 -0
  267. package/lib/vm-repair-maintain/RmRecord.js.map +1 -0
  268. package/lib/vm-repair-maintain/RmType.js +104 -0
  269. package/lib/vm-repair-maintain/RmType.js.map +1 -0
  270. package/lib/vm-repair-maintain/api.js +95 -0
  271. package/lib/vm-repair-maintain/api.js.map +1 -0
  272. package/lib/vm-repair-maintain/index.js +56 -0
  273. package/lib/vm-repair-maintain/index.js.map +1 -0
  274. package/lib/vm-repair-maintain/style/css.js +4 -0
  275. package/lib/vm-repair-maintain/style/css.js.map +1 -0
  276. package/lib/vm-repair-maintain/style/index.js +4 -0
  277. package/lib/vm-repair-maintain/style/index.js.map +1 -0
  278. package/lib/vm-round-content/index.js +68 -0
  279. package/lib/vm-round-content/index.js.map +1 -0
  280. package/lib/vm-round-content/style/css.js +4 -0
  281. package/lib/vm-round-content/style/css.js.map +1 -0
  282. package/lib/vm-round-content/style/index.js +4 -0
  283. package/lib/vm-round-content/style/index.js.map +1 -0
  284. package/lib/vm-row-col/index.js +28 -0
  285. package/lib/vm-row-col/index.js.map +1 -0
  286. package/lib/vm-row-col/style/css.js +4 -0
  287. package/lib/vm-row-col/style/css.js.map +1 -0
  288. package/lib/vm-row-col/style/index.js +4 -0
  289. package/lib/vm-row-col/style/index.js.map +1 -0
  290. package/lib/vm-select-device/index.js +90 -0
  291. package/lib/vm-select-device/index.js.map +1 -0
  292. package/lib/vm-select-device/style/css.js +4 -0
  293. package/lib/vm-select-device/style/css.js.map +1 -0
  294. package/lib/vm-select-device/style/index.js +4 -0
  295. package/lib/vm-select-device/style/index.js.map +1 -0
  296. package/lib/vm-sub-tabs/index.js +43 -0
  297. package/lib/vm-sub-tabs/index.js.map +1 -0
  298. package/lib/vm-sub-tabs/style/css.js +4 -0
  299. package/lib/vm-sub-tabs/style/css.js.map +1 -0
  300. package/lib/vm-sub-tabs/style/index.js +4 -0
  301. package/lib/vm-sub-tabs/style/index.js.map +1 -0
  302. package/lib/vm-sub-title/index.js +28 -0
  303. package/lib/vm-sub-title/index.js.map +1 -0
  304. package/lib/vm-sub-title/style/css.js +4 -0
  305. package/lib/vm-sub-title/style/css.js.map +1 -0
  306. package/lib/vm-sub-title/style/index.js +4 -0
  307. package/lib/vm-sub-title/style/index.js.map +1 -0
  308. package/lib/vm-table/index.js +200 -0
  309. package/lib/vm-table/index.js.map +1 -0
  310. package/lib/vm-table/style/css.js +4 -0
  311. package/lib/vm-table/style/css.js.map +1 -0
  312. package/lib/vm-table/style/index.js +4 -0
  313. package/lib/vm-table/style/index.js.map +1 -0
  314. package/lib/vm-time-line/index.js +25 -0
  315. package/lib/vm-time-line/index.js.map +1 -0
  316. package/lib/vm-time-line/style/css.js +4 -0
  317. package/lib/vm-time-line/style/css.js.map +1 -0
  318. package/lib/vm-time-line/style/index.js +4 -0
  319. package/lib/vm-time-line/style/index.js.map +1 -0
  320. package/lib/vm-video/api.js +30 -0
  321. package/lib/vm-video/api.js.map +1 -0
  322. package/lib/vm-video/index.js +37 -0
  323. package/lib/vm-video/index.js.map +1 -0
  324. package/lib/vtx-base-modal/api.js +35 -0
  325. package/lib/vtx-base-modal/api.js.map +1 -0
  326. package/lib/vtx-base-modal/index.js +210 -0
  327. package/lib/vtx-base-modal/index.js.map +1 -0
  328. package/lib/vtx-base-modal/style/css.js +4 -0
  329. package/lib/vtx-base-modal/style/css.js.map +1 -0
  330. package/lib/vtx-base-modal/style/index.js +4 -0
  331. package/lib/vtx-base-modal/style/index.js.map +1 -0
  332. package/lib/vtx-base-modal-hz/index.js +40 -0
  333. package/lib/vtx-base-modal-hz/index.js.map +1 -0
  334. package/lib/vtx-car-modal/api.js +611 -0
  335. package/lib/vtx-car-modal/api.js.map +1 -0
  336. package/lib/vtx-car-modal/components/AlarmInfo/Charts.js +198 -0
  337. package/lib/vtx-car-modal/components/AlarmInfo/Charts.js.map +1 -0
  338. package/lib/vtx-car-modal/components/AlarmInfo/List.js +186 -0
  339. package/lib/vtx-car-modal/components/AlarmInfo/List.js.map +1 -0
  340. package/lib/vtx-car-modal/components/AlarmInfo/index.js +139 -0
  341. package/lib/vtx-car-modal/components/AlarmInfo/index.js.map +1 -0
  342. package/lib/vtx-car-modal/components/BaseInfo/Charts.js +66 -0
  343. package/lib/vtx-car-modal/components/BaseInfo/Charts.js.map +1 -0
  344. package/lib/vtx-car-modal/components/BaseInfo/TodayRun.js +83 -0
  345. package/lib/vtx-car-modal/components/BaseInfo/TodayRun.js.map +1 -0
  346. package/lib/vtx-car-modal/components/BaseInfo/TodayWorkCC.js +51 -0
  347. package/lib/vtx-car-modal/components/BaseInfo/TodayWorkCC.js.map +1 -0
  348. package/lib/vtx-car-modal/components/BaseInfo/TodayWorkJXH.js +68 -0
  349. package/lib/vtx-car-modal/components/BaseInfo/TodayWorkJXH.js.map +1 -0
  350. package/lib/vtx-car-modal/components/BaseInfo/TodayWorkLJSY.js +115 -0
  351. package/lib/vtx-car-modal/components/BaseInfo/TodayWorkLJSY.js.map +1 -0
  352. package/lib/vtx-car-modal/components/BaseInfo/Wgfx.js +116 -0
  353. package/lib/vtx-car-modal/components/BaseInfo/Wgfx.js.map +1 -0
  354. package/lib/vtx-car-modal/components/BaseInfo/WorkSummary.js +56 -0
  355. package/lib/vtx-car-modal/components/BaseInfo/WorkSummary.js.map +1 -0
  356. package/lib/vtx-car-modal/components/BaseInfo/WorkSummaryJxh.js +102 -0
  357. package/lib/vtx-car-modal/components/BaseInfo/WorkSummaryJxh.js.map +1 -0
  358. package/lib/vtx-car-modal/components/BaseInfo/ZyfxCC.js +138 -0
  359. package/lib/vtx-car-modal/components/BaseInfo/ZyfxCC.js.map +1 -0
  360. package/lib/vtx-car-modal/components/BaseInfo/ZyfxJXH.js +126 -0
  361. package/lib/vtx-car-modal/components/BaseInfo/ZyfxJXH.js.map +1 -0
  362. package/lib/vtx-car-modal/components/BaseInfo/ZyfxLJSY.js +137 -0
  363. package/lib/vtx-car-modal/components/BaseInfo/ZyfxLJSY.js.map +1 -0
  364. package/lib/vtx-car-modal/components/BaseInfo/index.js +231 -0
  365. package/lib/vtx-car-modal/components/BaseInfo/index.js.map +1 -0
  366. package/lib/vtx-car-modal/components/Maintenance/index.js +134 -0
  367. package/lib/vtx-car-modal/components/Maintenance/index.js.map +1 -0
  368. package/lib/vtx-car-modal/components/OilConsumption/List.js +88 -0
  369. package/lib/vtx-car-modal/components/OilConsumption/List.js.map +1 -0
  370. package/lib/vtx-car-modal/components/OilConsumption/OilLIne.js +100 -0
  371. package/lib/vtx-car-modal/components/OilConsumption/OilLIne.js.map +1 -0
  372. package/lib/vtx-car-modal/components/OilConsumption/index.js +140 -0
  373. package/lib/vtx-car-modal/components/OilConsumption/index.js.map +1 -0
  374. package/lib/vtx-car-modal/components/StaticInfo/Charts.js +70 -0
  375. package/lib/vtx-car-modal/components/StaticInfo/Charts.js.map +1 -0
  376. package/lib/vtx-car-modal/components/StaticInfo/List.js +92 -0
  377. package/lib/vtx-car-modal/components/StaticInfo/List.js.map +1 -0
  378. package/lib/vtx-car-modal/components/StaticInfo/index.js +99 -0
  379. package/lib/vtx-car-modal/components/StaticInfo/index.js.map +1 -0
  380. package/lib/vtx-car-modal/components/WaterConsumption/index.js +118 -0
  381. package/lib/vtx-car-modal/components/WaterConsumption/index.js.map +1 -0
  382. package/lib/vtx-car-modal/components/WorkInfo/Wcl.js +122 -0
  383. package/lib/vtx-car-modal/components/WorkInfo/Wcl.js.map +1 -0
  384. package/lib/vtx-car-modal/components/WorkInfo/WorkJxh.js +317 -0
  385. package/lib/vtx-car-modal/components/WorkInfo/WorkJxh.js.map +1 -0
  386. package/lib/vtx-car-modal/components/WorkInfo/WorkLjsy.js +249 -0
  387. package/lib/vtx-car-modal/components/WorkInfo/WorkLjsy.js.map +1 -0
  388. package/lib/vtx-car-modal/components/WorkInfo/index.js +35 -0
  389. package/lib/vtx-car-modal/components/WorkInfo/index.js.map +1 -0
  390. package/lib/vtx-car-modal/components/index.js +56 -0
  391. package/lib/vtx-car-modal/components/index.js.map +1 -0
  392. package/lib/vtx-car-modal/index.js +128 -0
  393. package/lib/vtx-car-modal/index.js.map +1 -0
  394. package/lib/vtx-car-modal/style/css.js +12 -0
  395. package/lib/vtx-car-modal/style/css.js.map +1 -0
  396. package/lib/vtx-car-modal/style/index.js +12 -0
  397. package/lib/vtx-car-modal/style/index.js.map +1 -0
  398. package/lib/vtx-cc-cp-modal/api.js +308 -0
  399. package/lib/vtx-cc-cp-modal/api.js.map +1 -0
  400. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +153 -0
  401. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js.map +1 -0
  402. package/lib/vtx-cc-cp-modal/components/AlarmInfo/MonthTrend.js +104 -0
  403. package/lib/vtx-cc-cp-modal/components/AlarmInfo/MonthTrend.js.map +1 -0
  404. package/lib/vtx-cc-cp-modal/components/AlarmInfo/Summary.js +135 -0
  405. package/lib/vtx-cc-cp-modal/components/AlarmInfo/Summary.js.map +1 -0
  406. package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +35 -0
  407. package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js.map +1 -0
  408. package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +77 -0
  409. package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js.map +1 -0
  410. package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +45 -0
  411. package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js.map +1 -0
  412. package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +49 -0
  413. package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js.map +1 -0
  414. package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +126 -0
  415. package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js.map +1 -0
  416. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +67 -0
  417. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js.map +1 -0
  418. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionRecord.js +131 -0
  419. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionRecord.js.map +1 -0
  420. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/MonthTrend.js +104 -0
  421. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/MonthTrend.js.map +1 -0
  422. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/Summary.js +135 -0
  423. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/Summary.js.map +1 -0
  424. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +35 -0
  425. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js.map +1 -0
  426. package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +125 -0
  427. package/lib/vtx-cc-cp-modal/components/Restaurant/index.js.map +1 -0
  428. package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +111 -0
  429. package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js.map +1 -0
  430. package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +118 -0
  431. package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js.map +1 -0
  432. package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +84 -0
  433. package/lib/vtx-cc-cp-modal/components/SyInfo/index.js.map +1 -0
  434. package/lib/vtx-cc-cp-modal/components/index.js +42 -0
  435. package/lib/vtx-cc-cp-modal/components/index.js.map +1 -0
  436. package/lib/vtx-cc-cp-modal/index.js +67 -0
  437. package/lib/vtx-cc-cp-modal/index.js.map +1 -0
  438. package/lib/vtx-cc-cp-modal/style/css.js +5 -0
  439. package/lib/vtx-cc-cp-modal/style/css.js.map +1 -0
  440. package/lib/vtx-cc-cp-modal/style/index.js +5 -0
  441. package/lib/vtx-cc-cp-modal/style/index.js.map +1 -0
  442. package/lib/vtx-cc-cp-modal/type.js +6 -0
  443. package/lib/vtx-cc-cp-modal/type.js.map +1 -0
  444. package/lib/vtx-cp-modal/api.js +336 -0
  445. package/lib/vtx-cp-modal/api.js.map +1 -0
  446. package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +170 -0
  447. package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js.map +1 -0
  448. package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +106 -0
  449. package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js.map +1 -0
  450. package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +164 -0
  451. package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js.map +1 -0
  452. package/lib/vtx-cp-modal/components/AlarmInfo/index.js +46 -0
  453. package/lib/vtx-cp-modal/components/AlarmInfo/index.js.map +1 -0
  454. package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +110 -0
  455. package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js.map +1 -0
  456. package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +52 -0
  457. package/lib/vtx-cp-modal/components/BaseInfo/Rules.js.map +1 -0
  458. package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +123 -0
  459. package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js.map +1 -0
  460. package/lib/vtx-cp-modal/components/BaseInfo/index.js +88 -0
  461. package/lib/vtx-cp-modal/components/BaseInfo/index.js.map +1 -0
  462. package/lib/vtx-cp-modal/components/ExeceptionInfo/ExeceptionRecord.js +196 -0
  463. package/lib/vtx-cp-modal/components/ExeceptionInfo/ExeceptionRecord.js.map +1 -0
  464. package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +106 -0
  465. package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js.map +1 -0
  466. package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +164 -0
  467. package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js.map +1 -0
  468. package/lib/vtx-cp-modal/components/ExeceptionInfo/index.js +46 -0
  469. package/lib/vtx-cp-modal/components/ExeceptionInfo/index.js.map +1 -0
  470. package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +128 -0
  471. package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js.map +1 -0
  472. package/lib/vtx-cp-modal/components/SyInfo/index.js +345 -0
  473. package/lib/vtx-cp-modal/components/SyInfo/index.js.map +1 -0
  474. package/lib/vtx-cp-modal/components/index.js +35 -0
  475. package/lib/vtx-cp-modal/components/index.js.map +1 -0
  476. package/lib/vtx-cp-modal/index.js +107 -0
  477. package/lib/vtx-cp-modal/index.js.map +1 -0
  478. package/lib/vtx-cp-modal/style/css.js +5 -0
  479. package/lib/vtx-cp-modal/style/css.js.map +1 -0
  480. package/lib/vtx-cp-modal/style/index.js +5 -0
  481. package/lib/vtx-cp-modal/style/index.js.map +1 -0
  482. package/lib/vtx-default-modal/api.js +49 -0
  483. package/lib/vtx-default-modal/api.js.map +1 -0
  484. package/lib/vtx-default-modal/components/BaseInfo/index.js +53 -0
  485. package/lib/vtx-default-modal/components/BaseInfo/index.js.map +1 -0
  486. package/lib/vtx-default-modal/components/index.js +14 -0
  487. package/lib/vtx-default-modal/components/index.js.map +1 -0
  488. package/lib/vtx-default-modal/index.js +89 -0
  489. package/lib/vtx-default-modal/index.js.map +1 -0
  490. package/lib/vtx-default-modal/style/css.js +5 -0
  491. package/lib/vtx-default-modal/style/css.js.map +1 -0
  492. package/lib/vtx-default-modal/style/index.js +5 -0
  493. package/lib/vtx-default-modal/style/index.js.map +1 -0
  494. package/lib/vtx-device-modal/api.js +212 -0
  495. package/lib/vtx-device-modal/api.js.map +1 -0
  496. package/lib/vtx-device-modal/components/BaseInfo/index.js +51 -0
  497. package/lib/vtx-device-modal/components/BaseInfo/index.js.map +1 -0
  498. package/lib/vtx-device-modal/components/DataAnalysis/index.js +83 -0
  499. package/lib/vtx-device-modal/components/DataAnalysis/index.js.map +1 -0
  500. package/lib/vtx-device-modal/components/FacilityFile/index.js +48 -0
  501. package/lib/vtx-device-modal/components/FacilityFile/index.js.map +1 -0
  502. package/lib/vtx-device-modal/components/LiftInfo/index.js +32 -0
  503. package/lib/vtx-device-modal/components/LiftInfo/index.js.map +1 -0
  504. package/lib/vtx-device-modal/components/OverViewInfo/Left.js +27 -0
  505. package/lib/vtx-device-modal/components/OverViewInfo/Left.js.map +1 -0
  506. package/lib/vtx-device-modal/components/OverViewInfo/index.js +103 -0
  507. package/lib/vtx-device-modal/components/OverViewInfo/index.js.map +1 -0
  508. package/lib/vtx-device-modal/components/VideoInfo/index.js +36 -0
  509. package/lib/vtx-device-modal/components/VideoInfo/index.js.map +1 -0
  510. package/lib/vtx-device-modal/config.js +50 -0
  511. package/lib/vtx-device-modal/config.js.map +1 -0
  512. package/lib/vtx-device-modal/index.js +75 -0
  513. package/lib/vtx-device-modal/index.js.map +1 -0
  514. package/lib/vtx-device-modal/style/css.js +4 -0
  515. package/lib/vtx-device-modal/style/css.js.map +1 -0
  516. package/lib/vtx-device-modal/style/index.js +4 -0
  517. package/lib/vtx-device-modal/style/index.js.map +1 -0
  518. package/lib/vtx-device-modal/types.js +6 -0
  519. package/lib/vtx-device-modal/types.js.map +1 -0
  520. package/lib/vtx-df-modal/api.js +260 -0
  521. package/lib/vtx-df-modal/api.js.map +1 -0
  522. package/lib/vtx-df-modal/components/BaseInfo/AlarmDetail.js +115 -0
  523. package/lib/vtx-df-modal/components/BaseInfo/AlarmDetail.js.map +1 -0
  524. package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +146 -0
  525. package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js.map +1 -0
  526. package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +118 -0
  527. package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js.map +1 -0
  528. package/lib/vtx-df-modal/components/BaseInfo/Situation.js +52 -0
  529. package/lib/vtx-df-modal/components/BaseInfo/Situation.js.map +1 -0
  530. package/lib/vtx-df-modal/components/BaseInfo/index.js +134 -0
  531. package/lib/vtx-df-modal/components/BaseInfo/index.js.map +1 -0
  532. package/lib/vtx-df-modal/components/Metering/ChartJccc.js +121 -0
  533. package/lib/vtx-df-modal/components/Metering/ChartJccc.js.map +1 -0
  534. package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +133 -0
  535. package/lib/vtx-df-modal/components/Metering/ChartJcqs.js.map +1 -0
  536. package/lib/vtx-df-modal/components/Metering/List.js +110 -0
  537. package/lib/vtx-df-modal/components/Metering/List.js.map +1 -0
  538. package/lib/vtx-df-modal/components/Metering/index.js +174 -0
  539. package/lib/vtx-df-modal/components/Metering/index.js.map +1 -0
  540. package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +112 -0
  541. package/lib/vtx-df-modal/components/WorkCondition/Monitor.js.map +1 -0
  542. package/lib/vtx-df-modal/components/WorkCondition/Situation.js +106 -0
  543. package/lib/vtx-df-modal/components/WorkCondition/Situation.js.map +1 -0
  544. package/lib/vtx-df-modal/components/WorkCondition/index.js +89 -0
  545. package/lib/vtx-df-modal/components/WorkCondition/index.js.map +1 -0
  546. package/lib/vtx-df-modal/components/index.js +28 -0
  547. package/lib/vtx-df-modal/components/index.js.map +1 -0
  548. package/lib/vtx-df-modal/index.js +122 -0
  549. package/lib/vtx-df-modal/index.js.map +1 -0
  550. package/lib/vtx-df-modal/style/css.js +7 -0
  551. package/lib/vtx-df-modal/style/css.js.map +1 -0
  552. package/lib/vtx-df-modal/style/index.js +7 -0
  553. package/lib/vtx-df-modal/style/index.js.map +1 -0
  554. package/lib/vtx-facility-modal/api.js +123 -0
  555. package/lib/vtx-facility-modal/api.js.map +1 -0
  556. package/lib/vtx-facility-modal/components/OverView/Left.js +49 -0
  557. package/lib/vtx-facility-modal/components/OverView/Left.js.map +1 -0
  558. package/lib/vtx-facility-modal/components/OverView/index.js +285 -0
  559. package/lib/vtx-facility-modal/components/OverView/index.js.map +1 -0
  560. package/lib/vtx-facility-modal/components/index.js +14 -0
  561. package/lib/vtx-facility-modal/components/index.js.map +1 -0
  562. package/lib/vtx-facility-modal/config.js +68 -0
  563. package/lib/vtx-facility-modal/config.js.map +1 -0
  564. package/lib/vtx-facility-modal/index.js +48 -0
  565. package/lib/vtx-facility-modal/index.js.map +1 -0
  566. package/lib/vtx-facility-modal/style/css.js +5 -0
  567. package/lib/vtx-facility-modal/style/css.js.map +1 -0
  568. package/lib/vtx-facility-modal/style/index.js +5 -0
  569. package/lib/vtx-facility-modal/style/index.js.map +1 -0
  570. package/lib/vtx-facility-modal/types.js +6 -0
  571. package/lib/vtx-facility-modal/types.js.map +1 -0
  572. package/lib/vtx-housing-estate-modal/api.js +539 -0
  573. package/lib/vtx-housing-estate-modal/api.js.map +1 -0
  574. package/lib/vtx-housing-estate-modal/components/Alarm/FLZL.js +390 -0
  575. package/lib/vtx-housing-estate-modal/components/Alarm/FLZL.js.map +1 -0
  576. package/lib/vtx-housing-estate-modal/components/Alarm/LDB.js +209 -0
  577. package/lib/vtx-housing-estate-modal/components/Alarm/LDB.js.map +1 -0
  578. package/lib/vtx-housing-estate-modal/components/Alarm/MY.js +290 -0
  579. package/lib/vtx-housing-estate-modal/components/Alarm/MY.js.map +1 -0
  580. package/lib/vtx-housing-estate-modal/components/Alarm/Rank.js +34 -0
  581. package/lib/vtx-housing-estate-modal/components/Alarm/Rank.js.map +1 -0
  582. package/lib/vtx-housing-estate-modal/components/Alarm/index.js +104 -0
  583. package/lib/vtx-housing-estate-modal/components/Alarm/index.js.map +1 -0
  584. package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +290 -0
  585. package/lib/vtx-housing-estate-modal/components/OverView/Hot.js.map +1 -0
  586. package/lib/vtx-housing-estate-modal/components/OverView/Left.js +89 -0
  587. package/lib/vtx-housing-estate-modal/components/OverView/Left.js.map +1 -0
  588. package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +122 -0
  589. package/lib/vtx-housing-estate-modal/components/OverView/Manage.js.map +1 -0
  590. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +213 -0
  591. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js.map +1 -0
  592. package/lib/vtx-housing-estate-modal/components/OverView/Trend.js +60 -0
  593. package/lib/vtx-housing-estate-modal/components/OverView/Trend.js.map +1 -0
  594. package/lib/vtx-housing-estate-modal/components/OverView/index.js +41 -0
  595. package/lib/vtx-housing-estate-modal/components/OverView/index.js.map +1 -0
  596. package/lib/vtx-housing-estate-modal/components/SPJK/index.js +58 -0
  597. package/lib/vtx-housing-estate-modal/components/SPJK/index.js.map +1 -0
  598. package/lib/vtx-housing-estate-modal/components/TFRD/index.js +139 -0
  599. package/lib/vtx-housing-estate-modal/components/TFRD/index.js.map +1 -0
  600. package/lib/vtx-housing-estate-modal/components/WGGS/Content.js +59 -0
  601. package/lib/vtx-housing-estate-modal/components/WGGS/Content.js.map +1 -0
  602. package/lib/vtx-housing-estate-modal/components/WGGS/index.js +104 -0
  603. package/lib/vtx-housing-estate-modal/components/WGGS/index.js.map +1 -0
  604. package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +68 -0
  605. package/lib/vtx-housing-estate-modal/components/WGXW/Content.js.map +1 -0
  606. package/lib/vtx-housing-estate-modal/components/WGXW/index.js +142 -0
  607. package/lib/vtx-housing-estate-modal/components/WGXW/index.js.map +1 -0
  608. package/lib/vtx-housing-estate-modal/components/index.js +49 -0
  609. package/lib/vtx-housing-estate-modal/components/index.js.map +1 -0
  610. package/lib/vtx-housing-estate-modal/config.js +88 -0
  611. package/lib/vtx-housing-estate-modal/config.js.map +1 -0
  612. package/lib/vtx-housing-estate-modal/index.js +100 -0
  613. package/lib/vtx-housing-estate-modal/index.js.map +1 -0
  614. package/lib/vtx-housing-estate-modal/style/css.js +7 -0
  615. package/lib/vtx-housing-estate-modal/style/css.js.map +1 -0
  616. package/lib/vtx-housing-estate-modal/style/index.js +7 -0
  617. package/lib/vtx-housing-estate-modal/style/index.js.map +1 -0
  618. package/lib/vtx-housing-estate-modal/types.js +6 -0
  619. package/lib/vtx-housing-estate-modal/types.js.map +1 -0
  620. package/lib/vtx-hz-facility-modal/api.js +776 -0
  621. package/lib/vtx-hz-facility-modal/api.js.map +1 -0
  622. package/lib/vtx-hz-facility-modal/components/DetectedData/index.js +234 -0
  623. package/lib/vtx-hz-facility-modal/components/DetectedData/index.js.map +1 -0
  624. package/lib/vtx-hz-facility-modal/components/DetectedData/style/css.js +4 -0
  625. package/lib/vtx-hz-facility-modal/components/DetectedData/style/css.js.map +1 -0
  626. package/lib/vtx-hz-facility-modal/components/DetectedData/style/index.js +4 -0
  627. package/lib/vtx-hz-facility-modal/components/DetectedData/style/index.js.map +1 -0
  628. package/lib/vtx-hz-facility-modal/components/FacilityFile/index.js +25 -0
  629. package/lib/vtx-hz-facility-modal/components/FacilityFile/index.js.map +1 -0
  630. package/lib/vtx-hz-facility-modal/components/FacilityFile/style/css.js +4 -0
  631. package/lib/vtx-hz-facility-modal/components/FacilityFile/style/css.js.map +1 -0
  632. package/lib/vtx-hz-facility-modal/components/FacilityFile/style/index.js +4 -0
  633. package/lib/vtx-hz-facility-modal/components/FacilityFile/style/index.js.map +1 -0
  634. package/lib/vtx-hz-facility-modal/components/FacilityFile1/index.js +272 -0
  635. package/lib/vtx-hz-facility-modal/components/FacilityFile1/index.js.map +1 -0
  636. package/lib/vtx-hz-facility-modal/components/FacilityFile1/style/css.js +4 -0
  637. package/lib/vtx-hz-facility-modal/components/FacilityFile1/style/css.js.map +1 -0
  638. package/lib/vtx-hz-facility-modal/components/FacilityFile1/style/index.js +4 -0
  639. package/lib/vtx-hz-facility-modal/components/FacilityFile1/style/index.js.map +1 -0
  640. package/lib/vtx-hz-facility-modal/components/FacilityFile2/index.js +279 -0
  641. package/lib/vtx-hz-facility-modal/components/FacilityFile2/index.js.map +1 -0
  642. package/lib/vtx-hz-facility-modal/components/FacilityFile2/style/css.js +4 -0
  643. package/lib/vtx-hz-facility-modal/components/FacilityFile2/style/css.js.map +1 -0
  644. package/lib/vtx-hz-facility-modal/components/FacilityFile2/style/index.js +4 -0
  645. package/lib/vtx-hz-facility-modal/components/FacilityFile2/style/index.js.map +1 -0
  646. package/lib/vtx-hz-facility-modal/components/MonitorData/index.js +386 -0
  647. package/lib/vtx-hz-facility-modal/components/MonitorData/index.js.map +1 -0
  648. package/lib/vtx-hz-facility-modal/components/MonitorData/style/css.js +4 -0
  649. package/lib/vtx-hz-facility-modal/components/MonitorData/style/css.js.map +1 -0
  650. package/lib/vtx-hz-facility-modal/components/MonitorData/style/index.js +4 -0
  651. package/lib/vtx-hz-facility-modal/components/MonitorData/style/index.js.map +1 -0
  652. package/lib/vtx-hz-facility-modal/components/OverViewInfo/index.js +27 -0
  653. package/lib/vtx-hz-facility-modal/components/OverViewInfo/index.js.map +1 -0
  654. package/lib/vtx-hz-facility-modal/components/OverViewInfo1/index.js +402 -0
  655. package/lib/vtx-hz-facility-modal/components/OverViewInfo1/index.js.map +1 -0
  656. package/lib/vtx-hz-facility-modal/components/OverViewInfo1/style/css.js +4 -0
  657. package/lib/vtx-hz-facility-modal/components/OverViewInfo1/style/css.js.map +1 -0
  658. package/lib/vtx-hz-facility-modal/components/OverViewInfo1/style/index.js +4 -0
  659. package/lib/vtx-hz-facility-modal/components/OverViewInfo1/style/index.js.map +1 -0
  660. package/lib/vtx-hz-facility-modal/components/OverViewInfo2/index.js +270 -0
  661. package/lib/vtx-hz-facility-modal/components/OverViewInfo2/index.js.map +1 -0
  662. package/lib/vtx-hz-facility-modal/components/OverViewInfo2/style/css.js +4 -0
  663. package/lib/vtx-hz-facility-modal/components/OverViewInfo2/style/css.js.map +1 -0
  664. package/lib/vtx-hz-facility-modal/components/OverViewInfo2/style/index.js +4 -0
  665. package/lib/vtx-hz-facility-modal/components/OverViewInfo2/style/index.js.map +1 -0
  666. package/lib/vtx-hz-facility-modal/components/OverViewInfo3/index.js +97 -0
  667. package/lib/vtx-hz-facility-modal/components/OverViewInfo3/index.js.map +1 -0
  668. package/lib/vtx-hz-facility-modal/components/OverViewInfo3/style/css.js +4 -0
  669. package/lib/vtx-hz-facility-modal/components/OverViewInfo3/style/css.js.map +1 -0
  670. package/lib/vtx-hz-facility-modal/components/OverViewInfo3/style/index.js +4 -0
  671. package/lib/vtx-hz-facility-modal/components/OverViewInfo3/style/index.js.map +1 -0
  672. package/lib/vtx-hz-facility-modal/components/index.js +21 -0
  673. package/lib/vtx-hz-facility-modal/components/index.js.map +1 -0
  674. package/lib/vtx-hz-facility-modal/index.js +87 -0
  675. package/lib/vtx-hz-facility-modal/index.js.map +1 -0
  676. package/lib/vtx-hz-facility-modal/style/css.js +4 -0
  677. package/lib/vtx-hz-facility-modal/style/css.js.map +1 -0
  678. package/lib/vtx-hz-facility-modal/style/index.js +4 -0
  679. package/lib/vtx-hz-facility-modal/style/index.js.map +1 -0
  680. package/lib/vtx-kh-modal/api.js +74 -0
  681. package/lib/vtx-kh-modal/api.js.map +1 -0
  682. package/lib/vtx-kh-modal/components/BaseInfo/index.js +93 -0
  683. package/lib/vtx-kh-modal/components/BaseInfo/index.js.map +1 -0
  684. package/lib/vtx-kh-modal/components/index.js +14 -0
  685. package/lib/vtx-kh-modal/components/index.js.map +1 -0
  686. package/lib/vtx-kh-modal/index.js +92 -0
  687. package/lib/vtx-kh-modal/index.js.map +1 -0
  688. package/lib/vtx-kh-modal/style/css.js +5 -0
  689. package/lib/vtx-kh-modal/style/css.js.map +1 -0
  690. package/lib/vtx-kh-modal/style/index.js +5 -0
  691. package/lib/vtx-kh-modal/style/index.js.map +1 -0
  692. package/lib/vtx-restaurant-modal/api.js +152 -0
  693. package/lib/vtx-restaurant-modal/api.js.map +1 -0
  694. package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +50 -0
  695. package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js.map +1 -0
  696. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +78 -0
  697. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js.map +1 -0
  698. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +92 -0
  699. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js.map +1 -0
  700. package/lib/vtx-restaurant-modal/components/Alarm/index.js +74 -0
  701. package/lib/vtx-restaurant-modal/components/Alarm/index.js.map +1 -0
  702. package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +60 -0
  703. package/lib/vtx-restaurant-modal/components/Basic/DetailList.js.map +1 -0
  704. package/lib/vtx-restaurant-modal/components/Basic/Info.js +57 -0
  705. package/lib/vtx-restaurant-modal/components/Basic/Info.js.map +1 -0
  706. package/lib/vtx-restaurant-modal/components/Basic/Summary.js +67 -0
  707. package/lib/vtx-restaurant-modal/components/Basic/Summary.js.map +1 -0
  708. package/lib/vtx-restaurant-modal/components/Basic/index.js +48 -0
  709. package/lib/vtx-restaurant-modal/components/Basic/index.js.map +1 -0
  710. package/lib/vtx-restaurant-modal/components/Collection/index.js +64 -0
  711. package/lib/vtx-restaurant-modal/components/Collection/index.js.map +1 -0
  712. package/lib/vtx-restaurant-modal/components/index.js +28 -0
  713. package/lib/vtx-restaurant-modal/components/index.js.map +1 -0
  714. package/lib/vtx-restaurant-modal/config.js +58 -0
  715. package/lib/vtx-restaurant-modal/config.js.map +1 -0
  716. package/lib/vtx-restaurant-modal/index.js +57 -0
  717. package/lib/vtx-restaurant-modal/index.js.map +1 -0
  718. package/lib/vtx-restaurant-modal/style/css.js +5 -0
  719. package/lib/vtx-restaurant-modal/style/css.js.map +1 -0
  720. package/lib/vtx-restaurant-modal/style/index.js +5 -0
  721. package/lib/vtx-restaurant-modal/style/index.js.map +1 -0
  722. package/lib/vtx-restaurant-modal/type.js +6 -0
  723. package/lib/vtx-restaurant-modal/type.js.map +1 -0
  724. package/lib/vtx-road-modal/api.js +136 -0
  725. package/lib/vtx-road-modal/api.js.map +1 -0
  726. package/lib/vtx-road-modal/components/BaseInfo/Rules.js +55 -0
  727. package/lib/vtx-road-modal/components/BaseInfo/Rules.js.map +1 -0
  728. package/lib/vtx-road-modal/components/BaseInfo/TodayWork.js +152 -0
  729. package/lib/vtx-road-modal/components/BaseInfo/TodayWork.js.map +1 -0
  730. package/lib/vtx-road-modal/components/BaseInfo/TodayWorkTable.js +83 -0
  731. package/lib/vtx-road-modal/components/BaseInfo/TodayWorkTable.js.map +1 -0
  732. package/lib/vtx-road-modal/components/BaseInfo/index.js +64 -0
  733. package/lib/vtx-road-modal/components/BaseInfo/index.js.map +1 -0
  734. package/lib/vtx-road-modal/components/Statistical/Zylc.js +142 -0
  735. package/lib/vtx-road-modal/components/Statistical/Zylc.js.map +1 -0
  736. package/lib/vtx-road-modal/components/Statistical/Zywcl.js +111 -0
  737. package/lib/vtx-road-modal/components/Statistical/Zywcl.js.map +1 -0
  738. package/lib/vtx-road-modal/components/Statistical/index.js +183 -0
  739. package/lib/vtx-road-modal/components/Statistical/index.js.map +1 -0
  740. package/lib/vtx-road-modal/components/index.js +21 -0
  741. package/lib/vtx-road-modal/components/index.js.map +1 -0
  742. package/lib/vtx-road-modal/index.js +89 -0
  743. package/lib/vtx-road-modal/index.js.map +1 -0
  744. package/lib/vtx-road-modal/style/css.js +6 -0
  745. package/lib/vtx-road-modal/style/css.js.map +1 -0
  746. package/lib/vtx-road-modal/style/index.js +6 -0
  747. package/lib/vtx-road-modal/style/index.js.map +1 -0
  748. package/lib/vtx-staff-modal/api.js +311 -0
  749. package/lib/vtx-staff-modal/api.js.map +1 -0
  750. package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +175 -0
  751. package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js.map +1 -0
  752. package/lib/vtx-staff-modal/components/AlarmInfo/List.js +122 -0
  753. package/lib/vtx-staff-modal/components/AlarmInfo/List.js.map +1 -0
  754. package/lib/vtx-staff-modal/components/AlarmInfo/index.js +106 -0
  755. package/lib/vtx-staff-modal/components/AlarmInfo/index.js.map +1 -0
  756. package/lib/vtx-staff-modal/components/Attendance/Exeception.js +98 -0
  757. package/lib/vtx-staff-modal/components/Attendance/Exeception.js.map +1 -0
  758. package/lib/vtx-staff-modal/components/Attendance/Record.js +152 -0
  759. package/lib/vtx-staff-modal/components/Attendance/Record.js.map +1 -0
  760. package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +119 -0
  761. package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js.map +1 -0
  762. package/lib/vtx-staff-modal/components/Attendance/index.js +52 -0
  763. package/lib/vtx-staff-modal/components/Attendance/index.js.map +1 -0
  764. package/lib/vtx-staff-modal/components/BaseInfo/Lcfx.js +106 -0
  765. package/lib/vtx-staff-modal/components/BaseInfo/Lcfx.js.map +1 -0
  766. package/lib/vtx-staff-modal/components/BaseInfo/TodayWork.js +40 -0
  767. package/lib/vtx-staff-modal/components/BaseInfo/TodayWork.js.map +1 -0
  768. package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +124 -0
  769. package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js.map +1 -0
  770. package/lib/vtx-staff-modal/components/BaseInfo/index.js +211 -0
  771. package/lib/vtx-staff-modal/components/BaseInfo/index.js.map +1 -0
  772. package/lib/vtx-staff-modal/components/Equipment/index.js +125 -0
  773. package/lib/vtx-staff-modal/components/Equipment/index.js.map +1 -0
  774. package/lib/vtx-staff-modal/components/index.js +35 -0
  775. package/lib/vtx-staff-modal/components/index.js.map +1 -0
  776. package/lib/vtx-staff-modal/index.js +78 -0
  777. package/lib/vtx-staff-modal/index.js.map +1 -0
  778. package/lib/vtx-staff-modal/style/css.js +8 -0
  779. package/lib/vtx-staff-modal/style/css.js.map +1 -0
  780. package/lib/vtx-staff-modal/style/index.js +8 -0
  781. package/lib/vtx-staff-modal/style/index.js.map +1 -0
  782. package/lib/vtx-theme-provider/index.js +21 -0
  783. package/lib/vtx-theme-provider/index.js.map +1 -0
  784. package/lib/vtx-throw-point-modal/api.js +531 -0
  785. package/lib/vtx-throw-point-modal/api.js.map +1 -0
  786. package/lib/vtx-throw-point-modal/components/Alarm/FLZL.js +391 -0
  787. package/lib/vtx-throw-point-modal/components/Alarm/FLZL.js.map +1 -0
  788. package/lib/vtx-throw-point-modal/components/Alarm/LDB.js +209 -0
  789. package/lib/vtx-throw-point-modal/components/Alarm/LDB.js.map +1 -0
  790. package/lib/vtx-throw-point-modal/components/Alarm/MY.js +291 -0
  791. package/lib/vtx-throw-point-modal/components/Alarm/MY.js.map +1 -0
  792. package/lib/vtx-throw-point-modal/components/Alarm/Rank.js +34 -0
  793. package/lib/vtx-throw-point-modal/components/Alarm/Rank.js.map +1 -0
  794. package/lib/vtx-throw-point-modal/components/Alarm/index.js +104 -0
  795. package/lib/vtx-throw-point-modal/components/Alarm/index.js.map +1 -0
  796. package/lib/vtx-throw-point-modal/components/OverView/Hot.js +278 -0
  797. package/lib/vtx-throw-point-modal/components/OverView/Hot.js.map +1 -0
  798. package/lib/vtx-throw-point-modal/components/OverView/Left.js +120 -0
  799. package/lib/vtx-throw-point-modal/components/OverView/Left.js.map +1 -0
  800. package/lib/vtx-throw-point-modal/components/OverView/Manage.js +119 -0
  801. package/lib/vtx-throw-point-modal/components/OverView/Manage.js.map +1 -0
  802. package/lib/vtx-throw-point-modal/components/OverView/RightBottom.js +213 -0
  803. package/lib/vtx-throw-point-modal/components/OverView/RightBottom.js.map +1 -0
  804. package/lib/vtx-throw-point-modal/components/OverView/Trend.js +60 -0
  805. package/lib/vtx-throw-point-modal/components/OverView/Trend.js.map +1 -0
  806. package/lib/vtx-throw-point-modal/components/OverView/index.js +39 -0
  807. package/lib/vtx-throw-point-modal/components/OverView/index.js.map +1 -0
  808. package/lib/vtx-throw-point-modal/components/SBZJ/Content.js +84 -0
  809. package/lib/vtx-throw-point-modal/components/SBZJ/Content.js.map +1 -0
  810. package/lib/vtx-throw-point-modal/components/SBZJ/index.js +334 -0
  811. package/lib/vtx-throw-point-modal/components/SBZJ/index.js.map +1 -0
  812. package/lib/vtx-throw-point-modal/components/TFRD/index.js +136 -0
  813. package/lib/vtx-throw-point-modal/components/TFRD/index.js.map +1 -0
  814. package/lib/vtx-throw-point-modal/components/WGGS/Content.js +56 -0
  815. package/lib/vtx-throw-point-modal/components/WGGS/Content.js.map +1 -0
  816. package/lib/vtx-throw-point-modal/components/WGGS/index.js +90 -0
  817. package/lib/vtx-throw-point-modal/components/WGGS/index.js.map +1 -0
  818. package/lib/vtx-throw-point-modal/components/WGXW/Content.js +66 -0
  819. package/lib/vtx-throw-point-modal/components/WGXW/Content.js.map +1 -0
  820. package/lib/vtx-throw-point-modal/components/WGXW/index.js +128 -0
  821. package/lib/vtx-throw-point-modal/components/WGXW/index.js.map +1 -0
  822. package/lib/vtx-throw-point-modal/components/index.js +49 -0
  823. package/lib/vtx-throw-point-modal/components/index.js.map +1 -0
  824. package/lib/vtx-throw-point-modal/config.js +67 -0
  825. package/lib/vtx-throw-point-modal/config.js.map +1 -0
  826. package/lib/vtx-throw-point-modal/index.js +104 -0
  827. package/lib/vtx-throw-point-modal/index.js.map +1 -0
  828. package/lib/vtx-throw-point-modal/style/css.js +7 -0
  829. package/lib/vtx-throw-point-modal/style/css.js.map +1 -0
  830. package/lib/vtx-throw-point-modal/style/index.js +7 -0
  831. package/lib/vtx-throw-point-modal/style/index.js.map +1 -0
  832. package/lib/vtx-throw-point-modal/types.js +6 -0
  833. package/lib/vtx-throw-point-modal/types.js.map +1 -0
  834. package/lib/vtx-wr-modal/api.js +381 -0
  835. package/lib/vtx-wr-modal/api.js.map +1 -0
  836. package/lib/vtx-wr-modal/components/AlarmInfo/AlarmRecord.js +249 -0
  837. package/lib/vtx-wr-modal/components/AlarmInfo/AlarmRecord.js.map +1 -0
  838. package/lib/vtx-wr-modal/components/AlarmInfo/MonthTrend.js +112 -0
  839. package/lib/vtx-wr-modal/components/AlarmInfo/MonthTrend.js.map +1 -0
  840. package/lib/vtx-wr-modal/components/AlarmInfo/Summary.js +163 -0
  841. package/lib/vtx-wr-modal/components/AlarmInfo/Summary.js.map +1 -0
  842. package/lib/vtx-wr-modal/components/AlarmInfo/index.js +46 -0
  843. package/lib/vtx-wr-modal/components/AlarmInfo/index.js.map +1 -0
  844. package/lib/vtx-wr-modal/components/BaseInfo/AlarmType.js +110 -0
  845. package/lib/vtx-wr-modal/components/BaseInfo/AlarmType.js.map +1 -0
  846. package/lib/vtx-wr-modal/components/BaseInfo/BaseInner.js +39 -0
  847. package/lib/vtx-wr-modal/components/BaseInfo/BaseInner.js.map +1 -0
  848. package/lib/vtx-wr-modal/components/BaseInfo/Situation.js +109 -0
  849. package/lib/vtx-wr-modal/components/BaseInfo/Situation.js.map +1 -0
  850. package/lib/vtx-wr-modal/components/BaseInfo/index.js +330 -0
  851. package/lib/vtx-wr-modal/components/BaseInfo/index.js.map +1 -0
  852. package/lib/vtx-wr-modal/components/Evaluate/AppraiseRecord.js +101 -0
  853. package/lib/vtx-wr-modal/components/Evaluate/AppraiseRecord.js.map +1 -0
  854. package/lib/vtx-wr-modal/components/Evaluate/Radar.js +69 -0
  855. package/lib/vtx-wr-modal/components/Evaluate/Radar.js.map +1 -0
  856. package/lib/vtx-wr-modal/components/Evaluate/Summary.js +141 -0
  857. package/lib/vtx-wr-modal/components/Evaluate/Summary.js.map +1 -0
  858. package/lib/vtx-wr-modal/components/Evaluate/index.js +47 -0
  859. package/lib/vtx-wr-modal/components/Evaluate/index.js.map +1 -0
  860. package/lib/vtx-wr-modal/components/Monitor/MonitorInfo.js +156 -0
  861. package/lib/vtx-wr-modal/components/Monitor/MonitorInfo.js.map +1 -0
  862. package/lib/vtx-wr-modal/components/Monitor/RealtimeInfo.js +162 -0
  863. package/lib/vtx-wr-modal/components/Monitor/RealtimeInfo.js.map +1 -0
  864. package/lib/vtx-wr-modal/components/Monitor/index.js +28 -0
  865. package/lib/vtx-wr-modal/components/Monitor/index.js.map +1 -0
  866. package/lib/vtx-wr-modal/components/index.js +35 -0
  867. package/lib/vtx-wr-modal/components/index.js.map +1 -0
  868. package/lib/vtx-wr-modal/index.js +101 -0
  869. package/lib/vtx-wr-modal/index.js.map +1 -0
  870. package/lib/vtx-wr-modal/style/css.js +8 -0
  871. package/lib/vtx-wr-modal/style/css.js.map +1 -0
  872. package/lib/vtx-wr-modal/style/index.js +8 -0
  873. package/lib/vtx-wr-modal/style/index.js.map +1 -0
  874. package/lib/vtx-zg-modal/api.js +69 -0
  875. package/lib/vtx-zg-modal/api.js.map +1 -0
  876. package/lib/vtx-zg-modal/components/BaseInfo/index.js +178 -0
  877. package/lib/vtx-zg-modal/components/BaseInfo/index.js.map +1 -0
  878. package/lib/vtx-zg-modal/components/index.js +14 -0
  879. package/lib/vtx-zg-modal/components/index.js.map +1 -0
  880. package/lib/vtx-zg-modal/index.js +95 -0
  881. package/lib/vtx-zg-modal/index.js.map +1 -0
  882. package/lib/vtx-zg-modal/style/css.js +5 -0
  883. package/lib/vtx-zg-modal/style/css.js.map +1 -0
  884. package/lib/vtx-zg-modal/style/index.js +5 -0
  885. package/lib/vtx-zg-modal/style/index.js.map +1 -0
  886. package/package.json +1 -1
@@ -0,0 +1,389 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _tslib = require("tslib");
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _echartsForReact = _interopRequireDefault(require("echarts-for-react"));
10
+ var _antd = require("antd");
11
+ var _vmNodata = _interopRequireDefault(require("../vm-nodata"));
12
+ var _useSettings2 = _interopRequireDefault(require("../../../vm-hooks/useSettings"));
13
+ require("./index.less");
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
16
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
+ 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); }
18
+ 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; }
19
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
20
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
+ 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); }
22
+ var getThemeColor = function getThemeColor(isDark) {
23
+ return isDark ? '#fff' : '#000';
24
+ };
25
+ /**
26
+ * 获取 tooltip
27
+ * @param options
28
+ * @returns {*&{trigger: string}}
29
+ */
30
+ var getTooltip = function getTooltip(options) {
31
+ return Object.assign({
32
+ trigger: 'axis'
33
+ }, options);
34
+ };
35
+ /**
36
+ * 获取单个 legend 配置
37
+ * @param options 参数可以是:"xx"、"{name: 'xx', ...其他配置}"
38
+ * @returns {{axisLabel: {textStyle: {color: string}, showMaxLabel: boolean}, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, splitLine: {show: boolean}, nameTextStyle: {color: string}}}
39
+ */
40
+ var getLegendItem = function getLegendItem(options, isDark) {
41
+ return Object.assign({
42
+ textStyle: {
43
+ color: getThemeColor(isDark)
44
+ },
45
+ pageIconColor: getThemeColor(isDark),
46
+ pageIconInactiveColor: getThemeColor(isDark),
47
+ pageTextStyle: {
48
+ color: getThemeColor(isDark)
49
+ }
50
+ }, options);
51
+ };
52
+ /**
53
+ * 获取 图例
54
+ * @param options
55
+ * @returns {*&{pageTextStyle: {color: string}, textStyle: {color: string}, type: string, pageIconInactiveColor: string, pageIconColor: string}}
56
+ */
57
+ var getLegend = function getLegend(options, isDark) {
58
+ //判断是否是数组
59
+ if (options && Array.isArray(options)) {
60
+ return options === null || options === void 0 ? void 0 : options.map(function (item) {
61
+ return getLegendItem(item, isDark);
62
+ });
63
+ }
64
+ return getLegendItem(options, isDark);
65
+ };
66
+ /**
67
+ * 获取布局
68
+ * @param options
69
+ * @returns {*&{top: string, left: number, bottom: string, right: number, containLabel: boolean}}
70
+ */
71
+ var getGrid = function getGrid(options) {
72
+ return Object.assign({
73
+ left: 30,
74
+ right: 40,
75
+ top: 50,
76
+ bottom: 30,
77
+ containLabel: true
78
+ }, options);
79
+ };
80
+ /**
81
+ * 获取 xAxis 单项
82
+ * @param options 参数可以是: "[xx, xx]"、"{data: [xx, xx], ...}"
83
+ * @returns {{axisLabel: {textStyle: {color: string}}, data: *, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, type: string, boundaryGap: boolean}}
84
+ */
85
+ var getXAxisItem = function getXAxisItem(options, isDark) {
86
+ var _a = Array.isArray(options) ? {
87
+ data: options
88
+ } : options,
89
+ data = _a.data,
90
+ other = (0, _tslib.__rest)(_a, ["data"]);
91
+ return Object.assign({
92
+ type: 'category',
93
+ boundaryGap: true,
94
+ axisTick: {
95
+ show: true
96
+ },
97
+ nameTextStyle: {
98
+ color: getThemeColor(isDark)
99
+ },
100
+ axisLabel: {
101
+ textStyle: {
102
+ fontSize: 12,
103
+ color: getThemeColor(isDark)
104
+ }
105
+ },
106
+ axisLine: {
107
+ lineStyle: {
108
+ color: 'rgba(255,255,255, .2)'
109
+ }
110
+ },
111
+ data: data
112
+ }, other);
113
+ };
114
+ /**
115
+ * 获取 xAxis 配置
116
+ * @param xAxis 参数说明:"[xx, xx]"、"[[xx, xx], [xx, xx]]"、"[{data: [xx, xx], ...}]"
117
+ * @returns {(*&{axisLabel: {textStyle: {color: string}}, data, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, type: string, boundaryGap: boolean})|*[]}
118
+ */
119
+ var getXAxis = function getXAxis(xAxis, isDark) {
120
+ if (xAxis) {
121
+ if (_typeof(xAxis === null || xAxis === void 0 ? void 0 : xAxis[0]) === 'object') {
122
+ var _xAxis = [];
123
+ xAxis.map(function (v) {
124
+ _xAxis === null || _xAxis === void 0 ? void 0 : _xAxis.push(getXAxisItem(v, isDark));
125
+ });
126
+ return _xAxis;
127
+ }
128
+ return getXAxisItem(xAxis, isDark);
129
+ }
130
+ return {
131
+ show: false
132
+ };
133
+ };
134
+ /**
135
+ * 获取单个 yAxis 配置
136
+ * @param options 参数可以是:"xx"、"{name: 'xx', ...其他配置}"
137
+ * @returns {{axisLabel: {textStyle: {color: string}, showMaxLabel: boolean}, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, splitLine: {show: boolean}, nameTextStyle: {color: string}}}
138
+ */
139
+ var getYAxisItem = function getYAxisItem(options, isDark) {
140
+ options = options || {};
141
+ var _a = typeof options === 'string' ? {
142
+ name: options
143
+ } : options,
144
+ name = _a.name,
145
+ other = (0, _tslib.__rest)(_a, ["name"]);
146
+ return Object.assign({
147
+ name: name,
148
+ nameTextStyle: {
149
+ color: getThemeColor(isDark)
150
+ },
151
+ axisLabel: {
152
+ textStyle: {
153
+ color: getThemeColor(isDark),
154
+ fontSize: 12
155
+ },
156
+ showMaxLabel: false
157
+ },
158
+ axisLine: {
159
+ lineStyle: {
160
+ color: getThemeColor(isDark)
161
+ }
162
+ },
163
+ axisTick: {
164
+ show: false
165
+ },
166
+ splitLine: {
167
+ lineStyle: {
168
+ color: 'rgba(255,255,255, .05)'
169
+ }
170
+ }
171
+ }, other);
172
+ };
173
+ /**
174
+ * 获取 yAxis 配置
175
+ * @param yAxis 参数可以是: "xx"、"['xx', 'xxx']"、"[{name: 'xx', ...其他配置}]"
176
+ * @returns {{axisLabel: {textStyle: {color: string}, showMaxLabel: boolean}, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, splitLine: {show: boolean}, nameTextStyle: {color: string}}|*[]}
177
+ */
178
+ var getYAxis = function getYAxis(yAxis, isDark) {
179
+ if (yAxis) {
180
+ if (Array.isArray(yAxis)) {
181
+ var _yAxis = [];
182
+ yAxis.map(function (v) {
183
+ _yAxis.push(getYAxisItem(v, isDark));
184
+ });
185
+ return _yAxis;
186
+ }
187
+ return getYAxisItem(yAxis, isDark);
188
+ }
189
+ return {
190
+ show: false
191
+ };
192
+ };
193
+ var getLineSeries = function getLineSeries(_a) {
194
+ var name = _a.name,
195
+ data = _a.data,
196
+ other = (0, _tslib.__rest)(_a, ["name", "data"]);
197
+ return Object.assign({
198
+ type: 'line',
199
+ symbolSize: 6,
200
+ smooth: true,
201
+ connectNulls: true,
202
+ name: name,
203
+ data: data
204
+ }, other);
205
+ };
206
+ var getBarSeries = function getBarSeries(_a) {
207
+ var name = _a.name,
208
+ data = _a.data,
209
+ type = _a.type,
210
+ other = (0, _tslib.__rest)(_a, ["name", "data", "type"]);
211
+ // 特殊样式处理
212
+ return type == 'pictorialBar' ? Object.assign({
213
+ type: 'pictorialBar',
214
+ name: name,
215
+ data: data
216
+ }, other) : Object.assign({
217
+ type: 'bar',
218
+ barMaxWidth: 20,
219
+ barMinWidth: 10,
220
+ connectNulls: true,
221
+ name: name,
222
+ data: data
223
+ }, other);
224
+ };
225
+ var getPieSeries = function getPieSeries(_a) {
226
+ var name = _a.name,
227
+ data = _a.data,
228
+ other = (0, _tslib.__rest)(_a, ["name", "data"]);
229
+ return Object.assign({
230
+ type: 'pie',
231
+ name: name,
232
+ data: data
233
+ }, other);
234
+ };
235
+ /**
236
+ * 获取颜色
237
+ * @param color 参数可为:"#xxx", "['#xxx', '#xxx]"
238
+ * @returns {string|{x: number, y: number, y2: number, x2: number, global: boolean, colorStops: *[], type: string}}
239
+ */
240
+ var getColor = function getColor(color) {
241
+ if (typeof color === 'string') {
242
+ return color;
243
+ } else if (Array.isArray(color)) {
244
+ var colorStops = [];
245
+ color.map(function (c, i) {
246
+ if (typeof c === 'string') {
247
+ colorStops.push({
248
+ offset: i,
249
+ color: color[i] // 0% 处的颜色
250
+ });
251
+ } else {
252
+ colorStops.push(Object.assign({
253
+ offset: i,
254
+ color: c.color
255
+ }, c));
256
+ }
257
+ });
258
+ return {
259
+ type: 'linear',
260
+ x: 0,
261
+ y: 0,
262
+ x2: 0,
263
+ y2: 1,
264
+ colorStops: colorStops,
265
+ global: false // 缺省为 false
266
+ };
267
+ }
268
+ };
269
+ /**
270
+ * 获取区间渐变颜色
271
+ * @param color 参数可为:"#xxx", "['#xxx', '#xxx]"
272
+ * @returns {{color: {x: number, y: number, y2: number, globalCoord: boolean, x2: number, colorStops: [{offset: number, color: string},{offset: number, color: string}], type: string}}}
273
+ */
274
+ var getAreaColor = function getAreaColor(color) {
275
+ var _ref = typeof color === 'string' ? [color, color] : color,
276
+ _ref2 = _slicedToArray(_ref, 2),
277
+ start = _ref2[0],
278
+ end = _ref2[1];
279
+ return {
280
+ color: {
281
+ type: 'linear',
282
+ x: 0,
283
+ y: 0,
284
+ x2: 0,
285
+ y2: 1,
286
+ colorStops: [{
287
+ offset: 0,
288
+ color: start
289
+ } /*0% 处的颜色*/, {
290
+ offset: 1,
291
+ color: end
292
+ } /* 100% 处的颜色*/],
293
+
294
+ globalCoord: false // 缺省为 false
295
+ }
296
+ };
297
+ };
298
+
299
+ var getSeries = function getSeries(series) {
300
+ var _series = [];
301
+ var FUN_MAP = {
302
+ bar: getBarSeries,
303
+ line: getLineSeries,
304
+ pie: getPieSeries,
305
+ pictorialBar: getBarSeries // 自定义样式的柱状图
306
+ };
307
+
308
+ series === null || series === void 0 ? void 0 : series.map(function (v) {
309
+ var type = v.type,
310
+ color = v.color,
311
+ areaColor = v.areaColor;
312
+ var _seriesItem;
313
+ if (FUN_MAP[type]) {
314
+ _seriesItem = FUN_MAP[type](v);
315
+ } else {
316
+ //其他类型
317
+ _seriesItem = v;
318
+ }
319
+ // 自身颜色
320
+ if (color) {
321
+ _seriesItem.itemStyle = _seriesItem.itemStyle || {};
322
+ _seriesItem.itemStyle.color = getColor(color);
323
+ }
324
+ // 区间颜色
325
+ if (areaColor && areaColor.length) {
326
+ _seriesItem.areaStyle = getAreaColor(areaColor);
327
+ }
328
+ _series === null || _series === void 0 ? void 0 : _series.push(_seriesItem);
329
+ });
330
+ return _series;
331
+ };
332
+ var Chart = function Chart(props) {
333
+ var _a, _b, _c;
334
+ var onEvents = props.onEvents,
335
+ color = props.color,
336
+ legend = props.legend,
337
+ tooltip = props.tooltip,
338
+ grid = props.grid,
339
+ xAxis = props.xAxis,
340
+ yAxis = props.yAxis,
341
+ _props$height = props.height,
342
+ height = _props$height === void 0 ? '100%' : _props$height,
343
+ _props$width = props.width,
344
+ width = _props$width === void 0 ? '100%' : _props$width,
345
+ series = props.series,
346
+ _props$loading = props.loading,
347
+ loading = _props$loading === void 0 ? false : _props$loading;
348
+ var _useSettings = (0, _useSettings2["default"])(),
349
+ theme = _useSettings.theme;
350
+ var isDark = theme == 'dark';
351
+ var option = {
352
+ legend: getLegend(legend, isDark),
353
+ tooltip: getTooltip(tooltip),
354
+ grid: getGrid(grid),
355
+ xAxis: getXAxis(xAxis, isDark),
356
+ yAxis: getYAxis(yAxis, isDark),
357
+ series: getSeries(series)
358
+ };
359
+ if (color) {
360
+ option['color'] = color;
361
+ }
362
+ return /*#__PURE__*/_react["default"].createElement("div", {
363
+ className: 'chartWrap',
364
+ style: {
365
+ height: height,
366
+ width: '100%'
367
+ }
368
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Spin, {
369
+ spinning: loading
370
+ }, ((_c = (_b = (_a = option.series) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.length) ? /*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
371
+ option: option,
372
+ notMerge: true,
373
+ lazyUpdate: true,
374
+ style: {
375
+ height: height,
376
+ width: width
377
+ },
378
+ onEvents: onEvents
379
+ }) : /*#__PURE__*/_react["default"].createElement(_vmNodata["default"], {
380
+ type: "NO_CHART",
381
+ style: {
382
+ width: '100%',
383
+ height: height
384
+ }
385
+ })));
386
+ };
387
+ var _default = Chart;
388
+ exports["default"] = _default;
389
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["getThemeColor","isDark","getTooltip","options","Object","assign","trigger","getLegendItem","textStyle","color","pageIconColor","pageIconInactiveColor","pageTextStyle","getLegend","Array","isArray","map","item","getGrid","left","right","top","bottom","containLabel","getXAxisItem","_a","data","other","__rest","type","boundaryGap","axisTick","show","nameTextStyle","axisLabel","fontSize","axisLine","lineStyle","getXAxis","xAxis","_xAxis","v","push","getYAxisItem","name","showMaxLabel","splitLine","getYAxis","yAxis","_yAxis","getLineSeries","symbolSize","smooth","connectNulls","getBarSeries","barMaxWidth","barMinWidth","getPieSeries","getColor","colorStops","c","i","offset","x","y","x2","y2","global","getAreaColor","start","end","globalCoord","getSeries","series","_series","FUN_MAP","bar","line","pie","pictorialBar","areaColor","_seriesItem","itemStyle","length","areaStyle","Chart","props","_b","_c","onEvents","legend","tooltip","grid","height","width","loading","useSettings","theme","option","React","createElement","className","style","Spin","spinning","ReactEcharts","notMerge","lazyUpdate","NoData"],"sources":["vm-common-components/components/vm-chart/index.js"],"sourcesContent":["import { __rest } from \"tslib\";\nimport React from 'react';\nimport ReactEcharts from 'echarts-for-react';\nimport { Spin } from 'antd';\nimport NoData from '../vm-nodata';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport './index.less';\nconst getThemeColor = (isDark) => {\n return isDark ? '#fff' : '#000';\n};\n/**\n * 获取 tooltip\n * @param options\n * @returns {*&{trigger: string}}\n */\nconst getTooltip = (options) => {\n return Object.assign({ trigger: 'axis' }, options);\n};\n/**\n * 获取单个 legend 配置\n * @param options 参数可以是:\"xx\"、\"{name: 'xx', ...其他配置}\"\n * @returns {{axisLabel: {textStyle: {color: string}, showMaxLabel: boolean}, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, splitLine: {show: boolean}, nameTextStyle: {color: string}}}\n */\nconst getLegendItem = (options, isDark) => {\n return Object.assign({ textStyle: {\n color: getThemeColor(isDark),\n }, pageIconColor: getThemeColor(isDark), pageIconInactiveColor: getThemeColor(isDark), pageTextStyle: {\n color: getThemeColor(isDark),\n } }, options);\n};\n/**\n * 获取 图例\n * @param options\n * @returns {*&{pageTextStyle: {color: string}, textStyle: {color: string}, type: string, pageIconInactiveColor: string, pageIconColor: string}}\n */\nconst getLegend = (options, isDark) => {\n //判断是否是数组\n if (options && Array.isArray(options)) {\n return options === null || options === void 0 ? void 0 : options.map((item) => {\n return getLegendItem(item, isDark);\n });\n }\n return getLegendItem(options, isDark);\n};\n/**\n * 获取布局\n * @param options\n * @returns {*&{top: string, left: number, bottom: string, right: number, containLabel: boolean}}\n */\nconst getGrid = (options) => {\n return Object.assign({ left: 30, right: 40, top: 50, bottom: 30, containLabel: true }, options);\n};\n/**\n * 获取 xAxis 单项\n * @param options 参数可以是: \"[xx, xx]\"、\"{data: [xx, xx], ...}\"\n * @returns {{axisLabel: {textStyle: {color: string}}, data: *, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, type: string, boundaryGap: boolean}}\n */\nconst getXAxisItem = (options, isDark) => {\n let _a = Array.isArray(options) ? { data: options } : options, { data } = _a, other = __rest(_a, [\"data\"]);\n return Object.assign({ type: 'category', boundaryGap: true, axisTick: { show: true }, nameTextStyle: {\n color: getThemeColor(isDark),\n }, axisLabel: {\n textStyle: { fontSize: 12, color: getThemeColor(isDark) },\n }, axisLine: {\n lineStyle: { color: 'rgba(255,255,255, .2)' },\n }, data }, other);\n};\n/**\n * 获取 xAxis 配置\n * @param xAxis 参数说明:\"[xx, xx]\"、\"[[xx, xx], [xx, xx]]\"、\"[{data: [xx, xx], ...}]\"\n * @returns {(*&{axisLabel: {textStyle: {color: string}}, data, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, type: string, boundaryGap: boolean})|*[]}\n */\nconst getXAxis = (xAxis, isDark) => {\n if (xAxis) {\n if (typeof (xAxis === null || xAxis === void 0 ? void 0 : xAxis[0]) === 'object') {\n let _xAxis = [];\n xAxis.map((v) => {\n _xAxis === null || _xAxis === void 0 ? void 0 : _xAxis.push(getXAxisItem(v, isDark));\n });\n return _xAxis;\n }\n return getXAxisItem(xAxis, isDark);\n }\n return {\n show: false,\n };\n};\n/**\n * 获取单个 yAxis 配置\n * @param options 参数可以是:\"xx\"、\"{name: 'xx', ...其他配置}\"\n * @returns {{axisLabel: {textStyle: {color: string}, showMaxLabel: boolean}, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, splitLine: {show: boolean}, nameTextStyle: {color: string}}}\n */\nconst getYAxisItem = (options, isDark) => {\n options = options || {};\n let _a = typeof options === 'string' ? { name: options } : options, { name } = _a, other = __rest(_a, [\"name\"]);\n return Object.assign({ name, nameTextStyle: {\n color: getThemeColor(isDark),\n }, axisLabel: {\n textStyle: {\n color: getThemeColor(isDark),\n fontSize: 12,\n },\n showMaxLabel: false,\n }, axisLine: {\n lineStyle: { color: getThemeColor(isDark) },\n }, axisTick: { show: false }, splitLine: { lineStyle: { color: 'rgba(255,255,255, .05)' } } }, other);\n};\n/**\n * 获取 yAxis 配置\n * @param yAxis 参数可以是: \"xx\"、\"['xx', 'xxx']\"、\"[{name: 'xx', ...其他配置}]\"\n * @returns {{axisLabel: {textStyle: {color: string}, showMaxLabel: boolean}, axisLine: {lineStyle: {color: string}}, axisTick: {show: boolean}, splitLine: {show: boolean}, nameTextStyle: {color: string}}|*[]}\n */\nconst getYAxis = (yAxis, isDark) => {\n if (yAxis) {\n if (Array.isArray(yAxis)) {\n let _yAxis = [];\n yAxis.map((v) => {\n _yAxis.push(getYAxisItem(v, isDark));\n });\n return _yAxis;\n }\n return getYAxisItem(yAxis, isDark);\n }\n return {\n show: false,\n };\n};\nconst getLineSeries = (_a) => {\n var { name, data } = _a, other = __rest(_a, [\"name\", \"data\"]);\n return Object.assign({ type: 'line', symbolSize: 6, smooth: true, connectNulls: true, name,\n data }, other);\n};\nconst getBarSeries = (_a) => {\n var { name, data, type } = _a, other = __rest(_a, [\"name\", \"data\", \"type\"]);\n // 特殊样式处理\n return type == 'pictorialBar'\n ? Object.assign({ type: 'pictorialBar', name,\n data }, other) : Object.assign({ type: 'bar', barMaxWidth: 20, barMinWidth: 10, connectNulls: true, name,\n data }, other);\n};\nconst getPieSeries = (_a) => {\n var { name, data } = _a, other = __rest(_a, [\"name\", \"data\"]);\n return Object.assign({ type: 'pie', name,\n data }, other);\n};\n/**\n * 获取颜色\n * @param color 参数可为:\"#xxx\", \"['#xxx', '#xxx]\"\n * @returns {string|{x: number, y: number, y2: number, x2: number, global: boolean, colorStops: *[], type: string}}\n */\nconst getColor = (color) => {\n if (typeof color === 'string') {\n return color;\n }\n else if (Array.isArray(color)) {\n let colorStops = [];\n color.map((c, i) => {\n if (typeof c === 'string') {\n colorStops.push({\n offset: i,\n color: color[i], // 0% 处的颜色\n });\n }\n else {\n colorStops.push(Object.assign({ offset: i, color: c.color }, c));\n }\n });\n return {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: colorStops,\n global: false, // 缺省为 false\n };\n }\n};\n/**\n * 获取区间渐变颜色\n * @param color 参数可为:\"#xxx\", \"['#xxx', '#xxx]\"\n * @returns {{color: {x: number, y: number, y2: number, globalCoord: boolean, x2: number, colorStops: [{offset: number, color: string},{offset: number, color: string}], type: string}}}\n */\nconst getAreaColor = (color) => {\n let [start, end] = typeof color === 'string' ? [color, color] : color;\n return {\n color: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [\n { offset: 0, color: start } /*0% 处的颜色*/,\n { offset: 1, color: end } /* 100% 处的颜色*/,\n ],\n globalCoord: false, // 缺省为 false\n },\n };\n};\nconst getSeries = (series) => {\n let _series = [];\n const FUN_MAP = {\n bar: getBarSeries,\n line: getLineSeries,\n pie: getPieSeries,\n pictorialBar: getBarSeries, // 自定义样式的柱状图\n };\n series === null || series === void 0 ? void 0 : series.map(v => {\n let { type, color, areaColor } = v;\n let _seriesItem;\n if (FUN_MAP[type]) {\n _seriesItem = FUN_MAP[type](v);\n }\n else {\n //其他类型\n _seriesItem = v;\n }\n // 自身颜色\n if (color) {\n _seriesItem.itemStyle = _seriesItem.itemStyle || {};\n _seriesItem.itemStyle.color = getColor(color);\n }\n // 区间颜色\n if (areaColor && areaColor.length) {\n _seriesItem.areaStyle = getAreaColor(areaColor);\n }\n _series === null || _series === void 0 ? void 0 : _series.push(_seriesItem);\n });\n return _series;\n};\nconst Chart = (props) => {\n var _a, _b, _c;\n const { onEvents, color, legend, tooltip, grid, xAxis, yAxis, height = '100%', width = '100%', series, loading = false, } = props;\n const { theme } = useSettings();\n const isDark = theme == 'dark';\n let option = {\n legend: getLegend(legend, isDark),\n tooltip: getTooltip(tooltip),\n grid: getGrid(grid),\n xAxis: getXAxis(xAxis, isDark),\n yAxis: getYAxis(yAxis, isDark),\n series: getSeries(series),\n };\n if (color) {\n option['color'] = color;\n }\n return (React.createElement(\"div\", { className: 'chartWrap', style: { height, width: '100%' } },\n React.createElement(Spin, { spinning: loading }, ((_c = (_b = (_a = option.series) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.length) ? (React.createElement(ReactEcharts, { option: option, notMerge: true, lazyUpdate: true, style: { height, width }, onEvents: onEvents })) : (React.createElement(NoData, { type: \"NO_CHART\", style: { width: '100%', height } })))));\n};\nexport default Chart;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACtB,IAAMA,aAAa,GAA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CAACG,UAAI,EAAE;IAAEC,QAAQ,EAAET;EAAQ,CAAC,EAAE,CAAC,CAACP,EAAE,GAAG,CAACD,EAAE,GAAG,CAAC9D,EAAE,GAAGyE,MAAM,CAACzB,MAAM,MAAM,IAAI,IAAIhD,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,IAAI8D,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,EAAE,CAAC7D,IAAI,MAAM,IAAI,IAAI8D,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,EAAE,CAACL,MAAM,iBAAKgB,iBAAK,CAACC,aAAa,CAACK,2BAAY,EAAE;IAAEP,MAAM,EAAEA,MAAM;IAAEQ,QAAQ,EAAE,IAAI;IAAEC,UAAU,EAAE,IAAI;IAAEL,KAAK,EAAE;MAAET,MAAM,EAANA,MAAM;MAAEC,KAAK,EAALA;IAAM,CAAC;IAAEL,QAAQ,EAAEA;EAAS,CAAC,CAAC,gBAAKU,iBAAK,CAACC,aAAa,CAACQ,oBAAM,EAAE;IAAE/E,IAAI,EAAE,UAAU;IAAEyE,KAAK,EAAE;MAAER,KAAK,EAAE,MAAM;MAAED,MAAM,EAANA;IAAO;EAAE,CAAC,CAAE,CAAC,CAAC;AACxc,CAAC;AAAC,eACaR,KAAK;AAAA"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.saveFavoriter = exports.fetchFavoriter = exports.delFavoriter = void 0;
7
+ var _utils = require("@vtx/utils");
8
+ var saveFavoriter = function saveFavoriter(objectIds, type) {
9
+ return _utils.request.post('/cloud/management/api/v101/user/favorites/saveUserFavorites', {
10
+ data: {
11
+ objectIds: objectIds,
12
+ collectionType: type
13
+ }
14
+ });
15
+ };
16
+ exports.saveFavoriter = saveFavoriter;
17
+ var delFavoriter = function delFavoriter(objectIds, type) {
18
+ return _utils.request.post('/cloud/management/api/v101/user/favorites/deleteUserFavorites', {
19
+ data: {
20
+ objectIds: objectIds,
21
+ collectionType: type
22
+ }
23
+ });
24
+ };
25
+ exports.delFavoriter = delFavoriter;
26
+ var fetchFavoriter = function fetchFavoriter(objectIds, type) {
27
+ return _utils.request.get('/cloud/management/api/v101/user/favorites/getUserFavoritesIds', {
28
+ data: {
29
+ objectIds: objectIds,
30
+ collectionTypes: type
31
+ }
32
+ });
33
+ };
34
+ exports.fetchFavoriter = fetchFavoriter;
35
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","names":["saveFavoriter","objectIds","type","request","post","data","collectionType","delFavoriter","fetchFavoriter","get","collectionTypes"],"sources":["vm-common-components/components/vm-collect/api.js"],"sourcesContent":["import { request } from '@vtx/utils';\nexport const saveFavoriter = (objectIds, type) => {\n return request.post('/cloud/management/api/v101/user/favorites/saveUserFavorites', {\n data: { objectIds, collectionType: type },\n });\n};\nexport const delFavoriter = (objectIds, type) => {\n return request.post('/cloud/management/api/v101/user/favorites/deleteUserFavorites', {\n data: { objectIds, collectionType: type },\n });\n};\nexport const fetchFavoriter = (objectIds, type) => {\n return request.get('/cloud/management/api/v101/user/favorites/getUserFavoritesIds', {\n data: { objectIds, collectionTypes: type },\n });\n};\n"],"mappings":";;;;;;AAAA;AACO,IAAMA,aAAa,GAAG,SAAhBA,aAAa,CAAIC,SAAS,EAAEC,IAAI,EAAK;EAC9C,OAAOC,cAAO,CAACC,IAAI,CAAC,6DAA6D,EAAE;IAC/EC,IAAI,EAAE;MAAEJ,SAAS,EAATA,SAAS;MAAEK,cAAc,EAAEJ;IAAK;EAC5C,CAAC,CAAC;AACN,CAAC;AAAC;AACK,IAAMK,YAAY,GAAG,SAAfA,YAAY,CAAIN,SAAS,EAAEC,IAAI,EAAK;EAC7C,OAAOC,cAAO,CAACC,IAAI,CAAC,+DAA+D,EAAE;IACjFC,IAAI,EAAE;MAAEJ,SAAS,EAATA,SAAS;MAAEK,cAAc,EAAEJ;IAAK;EAC5C,CAAC,CAAC;AACN,CAAC;AAAC;AACK,IAAMM,cAAc,GAAG,SAAjBA,cAAc,CAAIP,SAAS,EAAEC,IAAI,EAAK;EAC/C,OAAOC,cAAO,CAACM,GAAG,CAAC,+DAA+D,EAAE;IAChFJ,IAAI,EAAE;MAAEJ,SAAS,EAATA,SAAS;MAAES,eAAe,EAAER;IAAK;EAC7C,CAAC,CAAC;AACN,CAAC;AAAC"}
@@ -0,0 +1,66 @@
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
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _collect = _interopRequireDefault(require("./imgs/collect.png"));
10
+ var _collect_light = _interopRequireDefault(require("./imgs/collect_light.png"));
11
+ var _api = require("./api");
12
+ require("./style/index");
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
+ 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); }
15
+ 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; }
16
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
+ 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); }
19
+ 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; }
20
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
21
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
+ var Collect = function Collect(_ref) {
23
+ var id = _ref.id,
24
+ type = _ref.type;
25
+ var _useState = (0, _react.useState)(false),
26
+ _useState2 = _slicedToArray(_useState, 2),
27
+ hasCollect = _useState2[0],
28
+ setHasCollect = _useState2[1];
29
+ (0, _react.useEffect)(function () {
30
+ if (id && type) {
31
+ (0, _api.fetchFavoriter)(id, type).then(function (res) {
32
+ var _a;
33
+ if (((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.length) > 0) {
34
+ setHasCollect(res.data.includes(id));
35
+ }
36
+ });
37
+ }
38
+ }, [id, type]);
39
+ // 关注-取消关注
40
+ var toggleCollect = function toggleCollect() {
41
+ if (hasCollect) {
42
+ (0, _api.delFavoriter)(id, type).then(function (res) {
43
+ if (res.result === 0) {
44
+ setHasCollect(false);
45
+ }
46
+ });
47
+ } else {
48
+ (0, _api.saveFavoriter)(id, type).then(function (res) {
49
+ if (res.result === 0) {
50
+ setHasCollect(true);
51
+ }
52
+ });
53
+ }
54
+ };
55
+ return /*#__PURE__*/_react["default"].createElement("div", {
56
+ className: "btn",
57
+ onClick: function onClick() {
58
+ toggleCollect();
59
+ }
60
+ }, /*#__PURE__*/_react["default"].createElement("img", {
61
+ src: !hasCollect ? _collect["default"] : _collect_light["default"]
62
+ }), hasCollect ? '已关注' : '关注');
63
+ };
64
+ var _default = Collect;
65
+ exports["default"] = _default;
66
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["Collect","id","type","useState","hasCollect","setHasCollect","useEffect","fetchFavoriter","then","res","_a","data","length","includes","toggleCollect","delFavoriter","result","saveFavoriter","React","createElement","className","onClick","src","collect","collectLight"],"sources":["vm-common-components/components/vm-collect/index.js"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport collect from './imgs/collect.png';\nimport collectLight from './imgs/collect_light.png';\nimport { delFavoriter, fetchFavoriter, saveFavoriter } from './api';\nimport './style/index';\nconst Collect = ({ id, type }) => {\n const [hasCollect, setHasCollect] = useState(false);\n useEffect(() => {\n if (id && type) {\n fetchFavoriter(id, type).then((res) => {\n var _a;\n if (((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.length) > 0) {\n setHasCollect(res.data.includes(id));\n }\n });\n }\n }, [id, type]);\n // 关注-取消关注\n const toggleCollect = () => {\n if (hasCollect) {\n delFavoriter(id, type).then((res) => {\n if (res.result === 0) {\n setHasCollect(false);\n }\n });\n }\n else {\n saveFavoriter(id, type).then((res) => {\n if (res.result === 0) {\n setHasCollect(true);\n }\n });\n }\n };\n return (React.createElement(\"div\", { className: \"btn\", onClick: () => {\n toggleCollect();\n } },\n React.createElement(\"img\", { src: !hasCollect ? collect : collectLight }),\n hasCollect ? '已关注' : '关注'));\n};\nexport default Collect;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACvB,IAAMA,OAAO,GAAG,SAAVA,OAAO,OAAqB;EAAA,IAAfC,EAAE,QAAFA,EAAE;IAAEC,IAAI,QAAJA,IAAI;EACvB,gBAAoC,IAAAC,eAAQ,EAAC,KAAK,CAAC;IAAA;IAA5CC,UAAU;IAAEC,aAAa;EAChC,IAAAC,gBAAS,EAAC,YAAM;IACZ,IAAIL,EAAE,IAAIC,IAAI,EAAE;MACZ,IAAAK,mBAAc,EAACN,EAAE,EAAEC,IAAI,CAAC,CAACM,IAAI,CAAC,UAACC,GAAG,EAAK;QACnC,IAAIC,EAAE;QACN,IAAI,CAAC,CAACA,EAAE,GAAGD,GAAG,KAAK,IAAI,IAAIA,GAAG,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,GAAG,CAACE,IAAI,MAAM,IAAI,IAAID,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,EAAE,CAACE,MAAM,IAAI,CAAC,EAAE;UAChHP,aAAa,CAACI,GAAG,CAACE,IAAI,CAACE,QAAQ,CAACZ,EAAE,CAAC,CAAC;QACxC;MACJ,CAAC,CAAC;IACN;EACJ,CAAC,EAAE,CAACA,EAAE,EAAEC,IAAI,CAAC,CAAC;EACd;EACA,IAAMY,aAAa,GAAG,SAAhBA,aAAa,GAAS;IACxB,IAAIV,UAAU,EAAE;MACZ,IAAAW,iBAAY,EAACd,EAAE,EAAEC,IAAI,CAAC,CAACM,IAAI,CAAC,UAACC,GAAG,EAAK;QACjC,IAAIA,GAAG,CAACO,MAAM,KAAK,CAAC,EAAE;UAClBX,aAAa,CAAC,KAAK,CAAC;QACxB;MACJ,CAAC,CAAC;IACN,CAAC,MACI;MACD,IAAAY,kBAAa,EAAChB,EAAE,EAAEC,IAAI,CAAC,CAACM,IAAI,CAAC,UAACC,GAAG,EAAK;QAClC,IAAIA,GAAG,CAACO,MAAM,KAAK,CAAC,EAAE;UAClBX,aAAa,CAAC,IAAI,CAAC;QACvB;MACJ,CAAC,CAAC;IACN;EACJ,CAAC;EACD,oBAAQa,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEC,SAAS,EAAE,KAAK;IAAEC,OAAO,EAAE,mBAAM;MAC9DP,aAAa,EAAE;IACnB;EAAE,CAAC,eACHI,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEG,GAAG,EAAE,CAAClB,UAAU,GAAGmB,mBAAO,GAAGC;EAAa,CAAC,CAAC,EACzEpB,UAAU,GAAG,KAAK,GAAG,IAAI,CAAC;AAClC,CAAC;AAAC,eACaJ,OAAO;AAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ require("./index.css");
4
+ //# sourceMappingURL=css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.js","names":[],"sources":["vm-common-components/components/vm-collect/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ require("./index.less");
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["vm-common-components/components/vm-collect/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAA"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = exports.Wrap = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _SubTitle = _interopRequireDefault(require("../SubTitle"));
9
+ require("./style");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ /**
12
+ * 包裹
13
+ * @param props
14
+ * @returns {JSX.Element}
15
+ * @constructor
16
+ */
17
+ var Wrap = function Wrap(props) {
18
+ var children = props.children,
19
+ style = props.style;
20
+ return /*#__PURE__*/_react["default"].createElement("div", {
21
+ className: 'wrap',
22
+ style: style
23
+ }, children);
24
+ };
25
+ /**
26
+ * 容器
27
+ * @param props
28
+ * @returns {JSX.Element}
29
+ * @constructor
30
+ */
31
+ exports.Wrap = Wrap;
32
+ var Container = function Container(props) {
33
+ var title = props.title,
34
+ style = props.style,
35
+ children = props.children,
36
+ extraContent = props.extraContent;
37
+ return /*#__PURE__*/_react["default"].createElement(Wrap, {
38
+ style: style
39
+ }, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, title ? /*#__PURE__*/_react["default"].createElement(_SubTitle["default"], {
40
+ title: title,
41
+ extra: extraContent
42
+ }) : null, /*#__PURE__*/_react["default"].createElement("div", {
43
+ className: 'content'
44
+ }, children)));
45
+ };
46
+ var _default = Container;
47
+ exports["default"] = _default;
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["Wrap","props","children","style","React","createElement","className","Container","title","extraContent","Fragment","SubTitle","extra"],"sources":["vm-common-components/components/vm-container/index.js"],"sourcesContent":["import React from 'react';\nimport SubTitle from '../SubTitle';\nimport './style';\n/**\n * 包裹\n * @param props\n * @returns {JSX.Element}\n * @constructor\n */\nexport const Wrap = (props) => {\n const { children, style } = props;\n return (React.createElement(\"div\", { className: 'wrap', style: style }, children));\n};\n/**\n * 容器\n * @param props\n * @returns {JSX.Element}\n * @constructor\n */\nconst Container = (props) => {\n const { title, style, children, extraContent } = props;\n return (React.createElement(Wrap, { style: style },\n React.createElement(React.Fragment, null,\n title ? React.createElement(SubTitle, { title: title, extra: extraContent }) : null,\n React.createElement(\"div\", { className: 'content' }, children))));\n};\nexport default Container;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,IAAI,GAAG,SAAPA,IAAI,CAAIC,KAAK,EAAK;EAC3B,IAAQC,QAAQ,GAAYD,KAAK,CAAzBC,QAAQ;IAAEC,KAAK,GAAKF,KAAK,CAAfE,KAAK;EACvB,oBAAQC,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEC,SAAS,EAAE,MAAM;IAAEH,KAAK,EAAEA;EAAM,CAAC,EAAED,QAAQ,CAAC;AACrF,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AALA;AAMA,IAAMK,SAAS,GAAG,SAAZA,SAAS,CAAIN,KAAK,EAAK;EACzB,IAAQO,KAAK,GAAoCP,KAAK,CAA9CO,KAAK;IAAEL,KAAK,GAA6BF,KAAK,CAAvCE,KAAK;IAAED,QAAQ,GAAmBD,KAAK,CAAhCC,QAAQ;IAAEO,YAAY,GAAKR,KAAK,CAAtBQ,YAAY;EAC5C,oBAAQL,iBAAK,CAACC,aAAa,CAACL,IAAI,EAAE;IAAEG,KAAK,EAAEA;EAAM,CAAC,eAC9CC,iBAAK,CAACC,aAAa,CAACD,iBAAK,CAACM,QAAQ,EAAE,IAAI,EACpCF,KAAK,gBAAGJ,iBAAK,CAACC,aAAa,CAACM,oBAAQ,EAAE;IAAEH,KAAK,EAAEA,KAAK;IAAEI,KAAK,EAAEH;EAAa,CAAC,CAAC,GAAG,IAAI,eACnFL,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEC,SAAS,EAAE;EAAU,CAAC,EAAEJ,QAAQ,CAAC,CAAC,CAAC;AAC5E,CAAC;AAAC,eACaK,SAAS;AAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ require("./index.css");
4
+ //# sourceMappingURL=css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.js","names":[],"sources":["vm-common-components/components/vm-container/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ require("./index.less");
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["vm-common-components/components/vm-container/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAA"}