@ecan-bi/datav 1.0.87 → 1.0.89

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 (512) hide show
  1. package/dist/index.es.js +319 -92
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.umd.js +318 -91
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/style.css +69 -69
  6. package/es/container/border/Border.js +7 -7
  7. package/es/container/border/Border.js.map +1 -1
  8. package/es/container/border/index.js +1 -1
  9. package/es/container/border/index.js.map +1 -1
  10. package/es/container/border/props.js +1 -1
  11. package/es/container/border/props.js.map +1 -1
  12. package/es/container/modal/Modal.js +6 -9
  13. package/es/container/modal/Modal.js.map +1 -1
  14. package/es/container/modal/index.js +1 -1
  15. package/es/container/modal/index.js.map +1 -1
  16. package/es/container/modal/props.js +2 -2
  17. package/es/container/modal/props.js.map +1 -1
  18. package/es/container/tabs/Tabs.js +8 -8
  19. package/es/container/tabs/Tabs.js.map +1 -1
  20. package/es/container/tabs/index.js +1 -1
  21. package/es/container/tabs/index.js.map +1 -1
  22. package/es/container/tabs/props.js +1 -1
  23. package/es/container/tabs/props.js.map +1 -1
  24. package/es/control/button/Button.js +5 -5
  25. package/es/control/button/Button.js.map +1 -1
  26. package/es/control/button/index.js +1 -1
  27. package/es/control/button/index.js.map +1 -1
  28. package/es/control/button/props.js +1 -1
  29. package/es/control/button/props.js.map +1 -1
  30. package/es/control/checkbox/Checkbox.js +12 -7
  31. package/es/control/checkbox/Checkbox.js.map +1 -1
  32. package/es/control/checkbox/index.js +1 -1
  33. package/es/control/checkbox/index.js.map +1 -1
  34. package/es/control/checkbox/props.js +1 -1
  35. package/es/control/checkbox/props.js.map +1 -1
  36. package/es/control/date-picker/DatePicker.js +14 -10
  37. package/es/control/date-picker/DatePicker.js.map +1 -1
  38. package/es/control/date-picker/DatePicker.vue_vue_type_style_index_0_lang.js +5 -0
  39. package/es/control/date-picker/DatePicker.vue_vue_type_style_index_0_lang.js.map +1 -0
  40. package/es/control/date-picker/index.js +1 -1
  41. package/es/control/date-picker/index.js.map +1 -1
  42. package/es/control/date-picker/props.js +1 -1
  43. package/es/control/date-picker/props.js.map +1 -1
  44. package/es/control/input/Input.js +4 -4
  45. package/es/control/input/Input.js.map +1 -1
  46. package/es/control/input/index.js +1 -1
  47. package/es/control/input/index.js.map +1 -1
  48. package/es/control/input/props.js +1 -1
  49. package/es/control/input/props.js.map +1 -1
  50. package/es/control/range-picker/RangePicker.js +6 -6
  51. package/es/control/range-picker/RangePicker.js.map +1 -1
  52. package/es/control/range-picker/index.js +1 -1
  53. package/es/control/range-picker/index.js.map +1 -1
  54. package/es/control/range-picker/props.js +1 -1
  55. package/es/control/range-picker/props.js.map +1 -1
  56. package/es/control/select/Select.js +7 -7
  57. package/es/control/select/Select.js.map +1 -1
  58. package/es/control/select/index.js +1 -1
  59. package/es/control/select/index.js.map +1 -1
  60. package/es/control/select/props.js +1 -1
  61. package/es/control/select/props.js.map +1 -1
  62. package/es/graph/bar/Bar.js +44 -13
  63. package/es/graph/bar/Bar.js.map +1 -1
  64. package/es/graph/bar/index.js +1 -1
  65. package/es/graph/bar/index.js.map +1 -1
  66. package/es/graph/bar/props.js +2 -3
  67. package/es/graph/bar/props.js.map +1 -1
  68. package/es/graph/combo-graph/ComboGraph.js +55 -23
  69. package/es/graph/combo-graph/ComboGraph.js.map +1 -1
  70. package/es/graph/combo-graph/index.js +1 -1
  71. package/es/graph/combo-graph/index.js.map +1 -1
  72. package/es/graph/combo-graph/props.js +2 -2
  73. package/es/graph/combo-graph/props.js.map +1 -1
  74. package/es/graph/custom-graph/CustomGraph.js +3 -3
  75. package/es/graph/custom-graph/CustomGraph.js.map +1 -1
  76. package/es/graph/custom-graph/index.js +1 -1
  77. package/es/graph/custom-graph/index.js.map +1 -1
  78. package/es/graph/custom-graph/props.js +1 -1
  79. package/es/graph/custom-graph/props.js.map +1 -1
  80. package/es/graph/line/Line.js +48 -14
  81. package/es/graph/line/Line.js.map +1 -1
  82. package/es/graph/line/index.js +1 -1
  83. package/es/graph/line/index.js.map +1 -1
  84. package/es/graph/line/props.js +8 -7
  85. package/es/graph/line/props.js.map +1 -1
  86. package/es/graph/pie/Pie.js +32 -11
  87. package/es/graph/pie/Pie.js.map +1 -1
  88. package/es/graph/pie/index.js +1 -1
  89. package/es/graph/pie/index.js.map +1 -1
  90. package/es/graph/pie/props.js +2 -2
  91. package/es/graph/pie/props.js.map +1 -1
  92. package/es/graph/scatter/Scatter.js +19 -10
  93. package/es/graph/scatter/Scatter.js.map +1 -1
  94. package/es/graph/scatter/index.js +1 -1
  95. package/es/graph/scatter/index.js.map +1 -1
  96. package/es/graph/scatter/props.js +2 -2
  97. package/es/graph/scatter/props.js.map +1 -1
  98. package/es/{_utils/hooks → hooks}/useDownloadFile.js +1 -1
  99. package/es/hooks/useDownloadFile.js.map +1 -0
  100. package/es/{_utils/hooks → hooks}/useEmitEvent.js +1 -1
  101. package/es/{_utils/hooks → hooks}/useEmitEvent.js.map +1 -1
  102. package/es/{_utils/hooks → hooks}/useHrefParamsToGlobalVariables.js +0 -0
  103. package/es/hooks/useHrefParamsToGlobalVariables.js.map +1 -0
  104. package/es/{_utils/hooks → hooks}/useImagePath.js +1 -1
  105. package/es/hooks/useImagePath.js.map +1 -0
  106. package/es/{_utils/hooks → hooks}/useIndicatorData.js +3 -3
  107. package/es/hooks/useIndicatorData.js.map +1 -0
  108. package/es/{_utils/hooks → hooks}/useOnEvent.js +1 -1
  109. package/es/hooks/useOnEvent.js.map +1 -0
  110. package/es/{_utils/hooks → hooks}/usePageUrl.js +1 -1
  111. package/es/hooks/usePageUrl.js.map +1 -0
  112. package/es/{_utils/hooks → hooks}/usePickComponentStyle.js +0 -0
  113. package/es/hooks/usePickComponentStyle.js.map +1 -0
  114. package/es/{_utils/hooks → hooks}/useRequestData.js +4 -9
  115. package/es/hooks/useRequestData.js.map +1 -0
  116. package/es/{_utils/hooks → hooks}/useRequestDiagramData.js +2 -2
  117. package/es/{_utils/hooks → hooks}/useRequestDiagramData.js.map +1 -1
  118. package/es/{_utils/hooks → hooks}/useTransformChartDataByAttrKey.js +0 -0
  119. package/es/hooks/useTransformChartDataByAttrKey.js.map +1 -0
  120. package/es/{_utils/hooks → hooks}/useTransformChartDataByAttrValue.js +0 -0
  121. package/es/hooks/useTransformChartDataByAttrValue.js.map +1 -0
  122. package/es/{_utils/hooks → hooks}/useValueFormatter.js +17 -10
  123. package/es/hooks/useValueFormatter.js.map +1 -0
  124. package/es/hooks/useVariablesInText.js +45 -0
  125. package/es/hooks/useVariablesInText.js.map +1 -0
  126. package/es/map/map/Map.js +5 -5
  127. package/es/map/map/Map.js.map +1 -1
  128. package/es/map/map/index.js +1 -1
  129. package/es/map/map/index.js.map +1 -1
  130. package/es/map/map/props.js +1 -1
  131. package/es/map/map/props.js.map +1 -1
  132. package/es/media/image/Image.js +7 -7
  133. package/es/media/image/Image.js.map +1 -1
  134. package/es/media/image/index.js +1 -1
  135. package/es/media/image/index.js.map +1 -1
  136. package/es/media/image/props.js +1 -1
  137. package/es/media/image/props.js.map +1 -1
  138. package/es/setting/page-config/PageConfig.js +4 -4
  139. package/es/setting/page-config/PageConfig.js.map +1 -1
  140. package/es/setting/page-config/index.js +1 -1
  141. package/es/setting/page-config/index.js.map +1 -1
  142. package/es/setting/page-config/props.js +1 -1
  143. package/es/setting/page-config/props.js.map +1 -1
  144. package/es/setting/provider-config/ProviderConfig.js +7 -5
  145. package/es/setting/provider-config/ProviderConfig.js.map +1 -1
  146. package/es/setting/provider-config/index.js +1 -1
  147. package/es/setting/provider-config/index.js.map +1 -1
  148. package/es/setting/provider-config/props.js +1 -1
  149. package/es/setting/provider-config/props.js.map +1 -1
  150. package/es/table/table/Table.js +96 -37
  151. package/es/table/table/Table.js.map +1 -1
  152. package/es/table/table/index.js +1 -1
  153. package/es/table/table/index.js.map +1 -1
  154. package/es/table/table/props.js +2 -1
  155. package/es/table/table/props.js.map +1 -1
  156. package/es/text/list/List.js +9 -9
  157. package/es/text/list/List.js.map +1 -1
  158. package/es/text/list/index.js +1 -1
  159. package/es/text/list/index.js.map +1 -1
  160. package/es/text/list/props.js +1 -1
  161. package/es/text/list/props.js.map +1 -1
  162. package/es/text/proportion/Proportion.js +7 -7
  163. package/es/text/proportion/Proportion.js.map +1 -1
  164. package/es/text/proportion/index.js +1 -1
  165. package/es/text/proportion/index.js.map +1 -1
  166. package/es/text/proportion/props.js +1 -1
  167. package/es/text/proportion/props.js.map +1 -1
  168. package/es/text/scroll-text/index.js +1 -1
  169. package/es/text/scroll-text/index.js.map +1 -1
  170. package/es/text/text/Text.js +27 -7
  171. package/es/text/text/Text.js.map +1 -1
  172. package/es/text/text/index.js +1 -1
  173. package/es/text/text/index.js.map +1 -1
  174. package/es/text/text/props.js +5 -2
  175. package/es/text/text/props.js.map +1 -1
  176. package/es/text/time-display/TimeDisplay.js +4 -4
  177. package/es/text/time-display/TimeDisplay.js.map +1 -1
  178. package/es/text/time-display/index.js +1 -1
  179. package/es/text/time-display/index.js.map +1 -1
  180. package/es/text/time-display/props.js +1 -1
  181. package/es/text/time-display/props.js.map +1 -1
  182. package/es/{_utils → utils}/constant.js +0 -0
  183. package/es/utils/constant.js.map +1 -0
  184. package/es/{_utils → utils}/props.js +0 -0
  185. package/es/utils/props.js.map +1 -0
  186. package/es/{_utils → utils}/request.js +0 -0
  187. package/es/utils/request.js.map +1 -0
  188. package/es/{_utils → utils}/util.js +0 -0
  189. package/es/utils/util.js.map +1 -0
  190. package/es/{_utils → utils}/withInstall.js +0 -0
  191. package/es/utils/withInstall.js.map +1 -0
  192. package/lib/container/border/Border.js +7 -7
  193. package/lib/container/border/Border.js.map +1 -1
  194. package/lib/container/border/index.js +1 -1
  195. package/lib/container/border/index.js.map +1 -1
  196. package/lib/container/border/props.js +1 -1
  197. package/lib/container/border/props.js.map +1 -1
  198. package/lib/container/modal/Modal.js +6 -9
  199. package/lib/container/modal/Modal.js.map +1 -1
  200. package/lib/container/modal/index.js +1 -1
  201. package/lib/container/modal/index.js.map +1 -1
  202. package/lib/container/modal/props.js +2 -2
  203. package/lib/container/modal/props.js.map +1 -1
  204. package/lib/container/tabs/Tabs.js +8 -8
  205. package/lib/container/tabs/Tabs.js.map +1 -1
  206. package/lib/container/tabs/index.js +1 -1
  207. package/lib/container/tabs/index.js.map +1 -1
  208. package/lib/container/tabs/props.js +1 -1
  209. package/lib/container/tabs/props.js.map +1 -1
  210. package/lib/control/button/Button.js +5 -5
  211. package/lib/control/button/Button.js.map +1 -1
  212. package/lib/control/button/index.js +1 -1
  213. package/lib/control/button/index.js.map +1 -1
  214. package/lib/control/button/props.js +1 -1
  215. package/lib/control/button/props.js.map +1 -1
  216. package/lib/control/checkbox/Checkbox.js +12 -7
  217. package/lib/control/checkbox/Checkbox.js.map +1 -1
  218. package/lib/control/checkbox/index.js +1 -1
  219. package/lib/control/checkbox/index.js.map +1 -1
  220. package/lib/control/checkbox/props.js +1 -1
  221. package/lib/control/checkbox/props.js.map +1 -1
  222. package/lib/control/date-picker/DatePicker.js +13 -9
  223. package/lib/control/date-picker/DatePicker.js.map +1 -1
  224. package/lib/control/date-picker/DatePicker.vue_vue_type_style_index_0_lang.js +5 -0
  225. package/lib/control/date-picker/DatePicker.vue_vue_type_style_index_0_lang.js.map +1 -0
  226. package/lib/control/date-picker/index.js +1 -1
  227. package/lib/control/date-picker/index.js.map +1 -1
  228. package/lib/control/date-picker/props.js +1 -1
  229. package/lib/control/date-picker/props.js.map +1 -1
  230. package/lib/control/input/Input.js +4 -4
  231. package/lib/control/input/Input.js.map +1 -1
  232. package/lib/control/input/index.js +1 -1
  233. package/lib/control/input/index.js.map +1 -1
  234. package/lib/control/input/props.js +1 -1
  235. package/lib/control/input/props.js.map +1 -1
  236. package/lib/control/range-picker/RangePicker.js +6 -6
  237. package/lib/control/range-picker/RangePicker.js.map +1 -1
  238. package/lib/control/range-picker/index.js +1 -1
  239. package/lib/control/range-picker/index.js.map +1 -1
  240. package/lib/control/range-picker/props.js +1 -1
  241. package/lib/control/range-picker/props.js.map +1 -1
  242. package/lib/control/select/Select.js +7 -7
  243. package/lib/control/select/Select.js.map +1 -1
  244. package/lib/control/select/index.js +1 -1
  245. package/lib/control/select/index.js.map +1 -1
  246. package/lib/control/select/props.js +1 -1
  247. package/lib/control/select/props.js.map +1 -1
  248. package/lib/graph/bar/Bar.js +44 -13
  249. package/lib/graph/bar/Bar.js.map +1 -1
  250. package/lib/graph/bar/index.js +1 -1
  251. package/lib/graph/bar/index.js.map +1 -1
  252. package/lib/graph/bar/props.js +2 -3
  253. package/lib/graph/bar/props.js.map +1 -1
  254. package/lib/graph/combo-graph/ComboGraph.js +55 -23
  255. package/lib/graph/combo-graph/ComboGraph.js.map +1 -1
  256. package/lib/graph/combo-graph/index.js +1 -1
  257. package/lib/graph/combo-graph/index.js.map +1 -1
  258. package/lib/graph/combo-graph/props.js +2 -2
  259. package/lib/graph/combo-graph/props.js.map +1 -1
  260. package/lib/graph/custom-graph/CustomGraph.js +3 -3
  261. package/lib/graph/custom-graph/CustomGraph.js.map +1 -1
  262. package/lib/graph/custom-graph/index.js +1 -1
  263. package/lib/graph/custom-graph/index.js.map +1 -1
  264. package/lib/graph/custom-graph/props.js +1 -1
  265. package/lib/graph/custom-graph/props.js.map +1 -1
  266. package/lib/graph/line/Line.js +48 -14
  267. package/lib/graph/line/Line.js.map +1 -1
  268. package/lib/graph/line/index.js +1 -1
  269. package/lib/graph/line/index.js.map +1 -1
  270. package/lib/graph/line/props.js +8 -7
  271. package/lib/graph/line/props.js.map +1 -1
  272. package/lib/graph/pie/Pie.js +32 -11
  273. package/lib/graph/pie/Pie.js.map +1 -1
  274. package/lib/graph/pie/index.js +1 -1
  275. package/lib/graph/pie/index.js.map +1 -1
  276. package/lib/graph/pie/props.js +2 -2
  277. package/lib/graph/pie/props.js.map +1 -1
  278. package/lib/graph/scatter/Scatter.js +19 -10
  279. package/lib/graph/scatter/Scatter.js.map +1 -1
  280. package/lib/graph/scatter/index.js +1 -1
  281. package/lib/graph/scatter/index.js.map +1 -1
  282. package/lib/graph/scatter/props.js +2 -2
  283. package/lib/graph/scatter/props.js.map +1 -1
  284. package/lib/{_utils/hooks → hooks}/useDownloadFile.js +1 -1
  285. package/lib/hooks/useDownloadFile.js.map +1 -0
  286. package/lib/{_utils/hooks → hooks}/useEmitEvent.js +1 -1
  287. package/lib/{_utils/hooks → hooks}/useEmitEvent.js.map +1 -1
  288. package/lib/{_utils/hooks → hooks}/useHrefParamsToGlobalVariables.js +0 -0
  289. package/lib/hooks/useHrefParamsToGlobalVariables.js.map +1 -0
  290. package/lib/{_utils/hooks → hooks}/useImagePath.js +1 -1
  291. package/lib/hooks/useImagePath.js.map +1 -0
  292. package/lib/{_utils/hooks → hooks}/useIndicatorData.js +3 -3
  293. package/lib/hooks/useIndicatorData.js.map +1 -0
  294. package/lib/{_utils/hooks → hooks}/useOnEvent.js +1 -1
  295. package/lib/hooks/useOnEvent.js.map +1 -0
  296. package/lib/{_utils/hooks → hooks}/usePageUrl.js +1 -1
  297. package/lib/hooks/usePageUrl.js.map +1 -0
  298. package/lib/{_utils/hooks → hooks}/usePickComponentStyle.js +0 -0
  299. package/lib/hooks/usePickComponentStyle.js.map +1 -0
  300. package/lib/{_utils/hooks → hooks}/useRequestData.js +4 -9
  301. package/lib/hooks/useRequestData.js.map +1 -0
  302. package/lib/{_utils/hooks → hooks}/useRequestDiagramData.js +2 -2
  303. package/lib/{_utils/hooks → hooks}/useRequestDiagramData.js.map +1 -1
  304. package/lib/{_utils/hooks → hooks}/useTransformChartDataByAttrKey.js +0 -0
  305. package/lib/hooks/useTransformChartDataByAttrKey.js.map +1 -0
  306. package/lib/{_utils/hooks → hooks}/useTransformChartDataByAttrValue.js +0 -0
  307. package/lib/hooks/useTransformChartDataByAttrValue.js.map +1 -0
  308. package/lib/{_utils/hooks → hooks}/useValueFormatter.js +17 -10
  309. package/lib/hooks/useValueFormatter.js.map +1 -0
  310. package/lib/hooks/useVariablesInText.js +45 -0
  311. package/lib/hooks/useVariablesInText.js.map +1 -0
  312. package/lib/map/map/Map.js +5 -5
  313. package/lib/map/map/Map.js.map +1 -1
  314. package/lib/map/map/index.js +1 -1
  315. package/lib/map/map/index.js.map +1 -1
  316. package/lib/map/map/props.js +1 -1
  317. package/lib/map/map/props.js.map +1 -1
  318. package/lib/media/image/Image.js +7 -7
  319. package/lib/media/image/Image.js.map +1 -1
  320. package/lib/media/image/index.js +1 -1
  321. package/lib/media/image/index.js.map +1 -1
  322. package/lib/media/image/props.js +1 -1
  323. package/lib/media/image/props.js.map +1 -1
  324. package/lib/setting/page-config/PageConfig.js +4 -4
  325. package/lib/setting/page-config/PageConfig.js.map +1 -1
  326. package/lib/setting/page-config/index.js +1 -1
  327. package/lib/setting/page-config/index.js.map +1 -1
  328. package/lib/setting/page-config/props.js +1 -1
  329. package/lib/setting/page-config/props.js.map +1 -1
  330. package/lib/setting/provider-config/ProviderConfig.js +7 -5
  331. package/lib/setting/provider-config/ProviderConfig.js.map +1 -1
  332. package/lib/setting/provider-config/index.js +1 -1
  333. package/lib/setting/provider-config/index.js.map +1 -1
  334. package/lib/setting/provider-config/props.js +1 -1
  335. package/lib/setting/provider-config/props.js.map +1 -1
  336. package/lib/style.css +2806 -2806
  337. package/lib/table/table/Table.js +96 -37
  338. package/lib/table/table/Table.js.map +1 -1
  339. package/lib/table/table/index.js +1 -1
  340. package/lib/table/table/index.js.map +1 -1
  341. package/lib/table/table/props.js +2 -1
  342. package/lib/table/table/props.js.map +1 -1
  343. package/lib/text/list/List.js +9 -9
  344. package/lib/text/list/List.js.map +1 -1
  345. package/lib/text/list/index.js +1 -1
  346. package/lib/text/list/index.js.map +1 -1
  347. package/lib/text/list/props.js +1 -1
  348. package/lib/text/list/props.js.map +1 -1
  349. package/lib/text/proportion/Proportion.js +7 -7
  350. package/lib/text/proportion/Proportion.js.map +1 -1
  351. package/lib/text/proportion/index.js +1 -1
  352. package/lib/text/proportion/index.js.map +1 -1
  353. package/lib/text/proportion/props.js +1 -1
  354. package/lib/text/proportion/props.js.map +1 -1
  355. package/lib/text/scroll-text/index.js +1 -1
  356. package/lib/text/scroll-text/index.js.map +1 -1
  357. package/lib/text/text/Text.js +27 -7
  358. package/lib/text/text/Text.js.map +1 -1
  359. package/lib/text/text/index.js +1 -1
  360. package/lib/text/text/index.js.map +1 -1
  361. package/lib/text/text/props.js +5 -2
  362. package/lib/text/text/props.js.map +1 -1
  363. package/lib/text/time-display/TimeDisplay.js +4 -4
  364. package/lib/text/time-display/TimeDisplay.js.map +1 -1
  365. package/lib/text/time-display/index.js +1 -1
  366. package/lib/text/time-display/index.js.map +1 -1
  367. package/lib/text/time-display/props.js +1 -1
  368. package/lib/text/time-display/props.js.map +1 -1
  369. package/lib/{_utils → utils}/constant.js +0 -0
  370. package/lib/utils/constant.js.map +1 -0
  371. package/lib/{_utils → utils}/props.js +0 -0
  372. package/lib/utils/props.js.map +1 -0
  373. package/lib/{_utils → utils}/request.js +0 -0
  374. package/lib/utils/request.js.map +1 -0
  375. package/lib/{_utils → utils}/util.js +0 -0
  376. package/lib/utils/util.js.map +1 -0
  377. package/lib/{_utils → utils}/withInstall.js +0 -0
  378. package/lib/utils/withInstall.js.map +1 -0
  379. package/package.json +1 -1
  380. package/types/container/border/Border.vue.d.ts +140 -140
  381. package/types/container/border/index.d.ts +141 -141
  382. package/types/container/border/props.d.ts +71 -71
  383. package/types/container/modal/Modal.vue.d.ts +1 -1
  384. package/types/container/modal/index.d.ts +2 -2
  385. package/types/container/tabs/index.d.ts +1 -1
  386. package/types/container/tabs/props.d.ts +1 -1
  387. package/types/control/button/Button.vue.d.ts +120 -120
  388. package/types/control/button/index.d.ts +121 -121
  389. package/types/control/button/props.d.ts +61 -61
  390. package/types/control/checkbox/Checkbox.vue.d.ts +96 -96
  391. package/types/control/checkbox/index.d.ts +97 -97
  392. package/types/control/checkbox/props.d.ts +49 -49
  393. package/types/control/date-picker/DatePicker.vue.d.ts +104 -104
  394. package/types/control/date-picker/index.d.ts +105 -105
  395. package/types/control/date-picker/props.d.ts +53 -53
  396. package/types/control/input/Input.vue.d.ts +96 -96
  397. package/types/control/input/index.d.ts +97 -97
  398. package/types/control/input/props.d.ts +49 -49
  399. package/types/control/range-picker/RangePicker.vue.d.ts +104 -104
  400. package/types/control/range-picker/index.d.ts +105 -105
  401. package/types/control/range-picker/props.d.ts +53 -53
  402. package/types/control/select/Select.vue.d.ts +100 -100
  403. package/types/control/select/index.d.ts +101 -101
  404. package/types/control/select/props.d.ts +51 -51
  405. package/types/graph/bar/Bar.vue.d.ts +282 -310
  406. package/types/graph/bar/index.d.ts +282 -310
  407. package/types/graph/bar/props.d.ts +141 -156
  408. package/types/graph/combo-graph/ComboGraph.vue.d.ts +8 -6
  409. package/types/graph/combo-graph/index.d.ts +9 -7
  410. package/types/graph/combo-graph/props.d.ts +1 -1
  411. package/types/graph/custom-graph/CustomGraph.vue.d.ts +96 -96
  412. package/types/graph/custom-graph/index.d.ts +97 -97
  413. package/types/graph/custom-graph/props.d.ts +49 -49
  414. package/types/graph/line/Line.vue.d.ts +33 -3
  415. package/types/graph/line/index.d.ts +34 -4
  416. package/types/graph/line/props.d.ts +17 -1
  417. package/types/graph/pie/Pie.vue.d.ts +1 -1
  418. package/types/graph/pie/index.d.ts +2 -2
  419. package/types/graph/pie/props.d.ts +1 -1
  420. package/types/graph/scatter/index.d.ts +1 -1
  421. package/types/graph/scatter/props.d.ts +1 -1
  422. package/types/{_utils/hooks → hooks}/index.d.ts +0 -2
  423. package/types/{_utils/hooks → hooks}/useDownloadFile.d.ts +0 -0
  424. package/types/{_utils/hooks → hooks}/useEmitEvent.d.ts +0 -0
  425. package/types/{_utils/hooks → hooks}/useHrefParamsToGlobalVariables.d.ts +0 -0
  426. package/types/{_utils/hooks → hooks}/useImagePath.d.ts +0 -0
  427. package/types/{_utils/hooks → hooks}/useIndicatorData.d.ts +0 -0
  428. package/types/{_utils/hooks → hooks}/useOnEvent.d.ts +0 -0
  429. package/types/{_utils/hooks → hooks}/usePageUrl.d.ts +0 -0
  430. package/types/{_utils/hooks → hooks}/usePickComponentStyle.d.ts +0 -0
  431. package/types/{_utils/hooks → hooks}/useRequestData.d.ts +0 -0
  432. package/types/{_utils/hooks → hooks}/useRequestDiagramData.d.ts +0 -0
  433. package/types/{_utils/hooks → hooks}/useTransformChartDataByAttrKey.d.ts +1 -1
  434. package/types/{_utils/hooks → hooks}/useTransformChartDataByAttrValue.d.ts +1 -1
  435. package/types/{_utils/hooks → hooks}/useValueFormatter.d.ts +0 -0
  436. package/types/hooks/useVariablesInText.d.ts +7 -0
  437. package/types/map/map/Map.vue.d.ts +224 -224
  438. package/types/map/map/index.d.ts +225 -225
  439. package/types/map/map/props.d.ts +113 -113
  440. package/types/media/image/Image.vue.d.ts +104 -104
  441. package/types/media/image/index.d.ts +105 -105
  442. package/types/media/image/props.d.ts +53 -53
  443. package/types/setting/page-config/index.d.ts +1 -1
  444. package/types/setting/provider-config/index.d.ts +1 -1
  445. package/types/table/table/Table.vue.d.ts +212 -173
  446. package/types/table/table/index.d.ts +213 -174
  447. package/types/table/table/props.d.ts +106 -85
  448. package/types/text/list/List.vue.d.ts +128 -128
  449. package/types/text/list/index.d.ts +129 -129
  450. package/types/text/list/props.d.ts +65 -65
  451. package/types/text/proportion/Proportion.vue.d.ts +144 -144
  452. package/types/text/proportion/index.d.ts +145 -145
  453. package/types/text/proportion/props.d.ts +73 -73
  454. package/types/text/scroll-text/index.d.ts +1 -1
  455. package/types/text/text/Text.vue.d.ts +206 -140
  456. package/types/text/text/index.d.ts +207 -141
  457. package/types/text/text/props.d.ts +107 -71
  458. package/types/text/time-display/TimeDisplay.vue.d.ts +120 -120
  459. package/types/text/time-display/index.d.ts +121 -121
  460. package/types/text/time-display/props.d.ts +61 -61
  461. package/types/{_utils → utils}/constant.d.ts +0 -0
  462. package/types/{_utils → utils}/props.d.ts +0 -0
  463. package/types/{_utils → utils}/request.d.ts +0 -0
  464. package/types/{_utils → utils}/util.d.ts +0 -0
  465. package/types/{_utils → utils}/withInstall.d.ts +0 -0
  466. package/es/_utils/constant.js.map +0 -1
  467. package/es/_utils/hooks/useDownloadFile.js.map +0 -1
  468. package/es/_utils/hooks/useHrefParamsToGlobalVariables.js.map +0 -1
  469. package/es/_utils/hooks/useImagePath.js.map +0 -1
  470. package/es/_utils/hooks/useIndicatorData.js.map +0 -1
  471. package/es/_utils/hooks/useOnEvent.js.map +0 -1
  472. package/es/_utils/hooks/usePageUrl.js.map +0 -1
  473. package/es/_utils/hooks/usePickComponentStyle.js.map +0 -1
  474. package/es/_utils/hooks/useRequestData.js.map +0 -1
  475. package/es/_utils/hooks/useTransformChartDataByAttrKey.js.map +0 -1
  476. package/es/_utils/hooks/useTransformChartDataByAttrValue.js.map +0 -1
  477. package/es/_utils/hooks/useValueFormatter.js.map +0 -1
  478. package/es/_utils/hooks/useVariablesInText.js +0 -23
  479. package/es/_utils/hooks/useVariablesInText.js.map +0 -1
  480. package/es/_utils/props.js.map +0 -1
  481. package/es/_utils/request.js.map +0 -1
  482. package/es/_utils/util.js.map +0 -1
  483. package/es/_utils/withInstall.js.map +0 -1
  484. package/es/control/date-picker/DatePicker.vue_vue_type_style_index_0_scoped_true_lang.js +0 -5
  485. package/es/control/date-picker/DatePicker.vue_vue_type_style_index_0_scoped_true_lang.js.map +0 -1
  486. package/es/control/date-picker/DatePicker.vue_vue_type_style_index_1_lang.js +0 -5
  487. package/es/control/date-picker/DatePicker.vue_vue_type_style_index_1_lang.js.map +0 -1
  488. package/lib/_utils/constant.js.map +0 -1
  489. package/lib/_utils/hooks/useDownloadFile.js.map +0 -1
  490. package/lib/_utils/hooks/useHrefParamsToGlobalVariables.js.map +0 -1
  491. package/lib/_utils/hooks/useImagePath.js.map +0 -1
  492. package/lib/_utils/hooks/useIndicatorData.js.map +0 -1
  493. package/lib/_utils/hooks/useOnEvent.js.map +0 -1
  494. package/lib/_utils/hooks/usePageUrl.js.map +0 -1
  495. package/lib/_utils/hooks/usePickComponentStyle.js.map +0 -1
  496. package/lib/_utils/hooks/useRequestData.js.map +0 -1
  497. package/lib/_utils/hooks/useTransformChartDataByAttrKey.js.map +0 -1
  498. package/lib/_utils/hooks/useTransformChartDataByAttrValue.js.map +0 -1
  499. package/lib/_utils/hooks/useValueFormatter.js.map +0 -1
  500. package/lib/_utils/hooks/useVariablesInText.js +0 -23
  501. package/lib/_utils/hooks/useVariablesInText.js.map +0 -1
  502. package/lib/_utils/props.js.map +0 -1
  503. package/lib/_utils/request.js.map +0 -1
  504. package/lib/_utils/util.js.map +0 -1
  505. package/lib/_utils/withInstall.js.map +0 -1
  506. package/lib/control/date-picker/DatePicker.vue_vue_type_style_index_0_scoped_true_lang.js +0 -5
  507. package/lib/control/date-picker/DatePicker.vue_vue_type_style_index_0_scoped_true_lang.js.map +0 -1
  508. package/lib/control/date-picker/DatePicker.vue_vue_type_style_index_1_lang.js +0 -5
  509. package/lib/control/date-picker/DatePicker.vue_vue_type_style_index_1_lang.js.map +0 -1
  510. package/types/_utils/hooks/usePickEchartsData.d.ts +0 -2
  511. package/types/_utils/hooks/useTooltipFormatter.d.ts +0 -4
  512. package/types/_utils/hooks/useVariablesInText.d.ts +0 -4
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.0.87 */
1
+ /*! @ecan-bi/datav@1.0.89 */
2
2
  var _a, _b, _c;
3
3
  import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, normalizeStyle, createCommentVNode, provide, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, withDirectives, vShow } from "vue";
4
4
  import { throttle, init, use, registerMap } from "echarts/core";
@@ -6,7 +6,7 @@ import { addListener, removeListener } from "resize-detector";
6
6
  import { Spin as Spin$1, Skeleton as Skeleton$1, message, Progress, Input as Input$1, DatePicker as DatePicker$1, Select as Select$1, RangePicker as RangePicker$1, Button as Button$1, CheckboxGroup, Modal as Modal$1, Table as Table$1, TableSummary, TableSummaryRow, TableSummaryCell } from "ant-design-vue";
7
7
  import "ant-design-vue/es/spin/style";
8
8
  import "ant-design-vue/es/skeleton/style";
9
- import { mapValues, without, pick, debounce } from "lodash-es";
9
+ import { mapValues, without, pick, debounce, cloneDeep } from "lodash-es";
10
10
  import axios from "axios";
11
11
  import mitt from "mitt";
12
12
  import dayjs from "dayjs";
@@ -1661,23 +1661,45 @@ const lowerCaseIncludes = (v1, v2) => {
1661
1661
  }
1662
1662
  return false;
1663
1663
  };
1664
- const useVariablesInText = (text = "", data = {}) => {
1664
+ const useVariablesInText = (formatter = "", data = {}, { useNewline = false, useSpace = false } = {}) => {
1665
1665
  const config2 = window.config || {};
1666
1666
  data = { ...config2, ...data };
1667
- const variables = text.match(/\{\w*\}/g);
1668
- if (variables == null || variables.length === 0)
1669
- return text;
1667
+ const variables = formatter.match(/\{(.+?)\}/g);
1668
+ if (variables == null || variables.length === 0) {
1669
+ return formatter;
1670
+ }
1670
1671
  for (let i = 0; i < variables.length; i++) {
1671
1672
  const variable = variables[i];
1672
- const v = variable.slice(1, variable.length - 1);
1673
- const usedVariable = data[v];
1674
- if (usedVariable != null) {
1675
- text = text.replace(variable, usedVariable);
1676
- } else {
1677
- text = text.replace(variable, "");
1673
+ let statement = variable.slice(1, -1);
1674
+ const reg = /[\u4e00-\u9fa5_a-zA-Z_]+[0-9]*/g;
1675
+ const textVariables = statement.match(reg);
1676
+ for (let j = 0; j < textVariables.length; j++) {
1677
+ const textVariable = textVariables[j];
1678
+ const usedVariable = data[textVariable];
1679
+ if (usedVariable != null) {
1680
+ statement = statement.replace(textVariable, usedVariable);
1681
+ } else {
1682
+ statement = statement.replace(textVariable, "");
1683
+ }
1678
1684
  }
1685
+ try {
1686
+ if (/[0-9]+(.*)[|+|-|*|/](.*)[0-9]+/g.test(statement)) {
1687
+ const eval2 = eval;
1688
+ statement = eval2(statement);
1689
+ }
1690
+ } catch (e) {
1691
+ console.error(e);
1692
+ }
1693
+ formatter = formatter.replace(variable, statement);
1694
+ }
1695
+ if (useNewline) {
1696
+ formatter = formatter == null ? void 0 : formatter.replace(/\n|\\n/g, "<br/>");
1679
1697
  }
1680
- return text;
1698
+ if (useSpace) {
1699
+ formatter = formatter == null ? void 0 : formatter.replace(/\s{2,}?/g, "&nbsp;&nbsp;");
1700
+ }
1701
+ console.log("formatter", formatter);
1702
+ return formatter;
1681
1703
  };
1682
1704
  const useRequestData = (props2, callBack = () => {
1683
1705
  }) => {
@@ -1729,7 +1751,7 @@ const useRequestData = (props2, callBack = () => {
1729
1751
  _params[key] = useVariablesInText(value);
1730
1752
  }
1731
1753
  });
1732
- _params = { ...window.requestParams, ..._params, ...params };
1754
+ _params = { ...window.config.requestParams, ..._params, ...params };
1733
1755
  let urlParams = "";
1734
1756
  const keys = Object.keys(_params);
1735
1757
  const last = keys.length - 1;
@@ -2216,7 +2238,8 @@ const useValueFormatter = (formatter, value) => {
2216
2238
  if (variables == null || variables.length === 0) {
2217
2239
  return value;
2218
2240
  }
2219
- for (let i = 0; i < variables.length; i++) {
2241
+ const len = variables.length;
2242
+ for (let i = 0; i < len; i++) {
2220
2243
  const variable = variables[i];
2221
2244
  if (variable == null || variable === "")
2222
2245
  break;
@@ -2566,7 +2589,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
2566
2589
  ], 4)) : createCommentVNode("", true)
2567
2590
  ], 512);
2568
2591
  }
2569
- const PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-c850087e"]]);
2592
+ const PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-7b482f6c"]]);
2570
2593
  const EcanPageConfig = withInstall(PageConfig);
2571
2594
  const providerConfig = {
2572
2595
  contextRequestUrl: "",
@@ -2593,7 +2616,9 @@ const _sfc_main$n = defineComponent({
2593
2616
  onMounted(() => {
2594
2617
  setTheme();
2595
2618
  });
2596
- const contextRequestUrl = computed(() => useVariablesInText(props2.contextRequestUrl));
2619
+ const contextRequestUrl = computed(() => {
2620
+ return useVariablesInText(props2.contextRequestUrl);
2621
+ });
2597
2622
  const pageMode = computed(() => props2.pageMode);
2598
2623
  const theme = computed(() => props2.theme);
2599
2624
  const touchEventId = ref("");
@@ -2745,7 +2770,10 @@ const textProps = {
2745
2770
  variableFontSize: "14px",
2746
2771
  data: {},
2747
2772
  variableDefaultValue: "0",
2748
- format: ""
2773
+ format: "",
2774
+ target: "self",
2775
+ href: "",
2776
+ linkPage: ""
2749
2777
  };
2750
2778
  const textComponentProps = transformToComponentProps(textProps);
2751
2779
  const textEvents = ["refreshData", "click"];
@@ -2845,6 +2873,24 @@ const _sfc_main$m = defineComponent({
2845
2873
  });
2846
2874
  const emitEvent = useEmitEvent(props2);
2847
2875
  const click = emitEvent("click", () => {
2876
+ if (!props2.linkPage && !props2.href)
2877
+ return;
2878
+ const linkPage = props2.linkPage || "";
2879
+ const pageUrl = usePageUrl(unref(pageMode), linkPage);
2880
+ const href = props2.href;
2881
+ let url = href || pageUrl;
2882
+ url = useVariablesInText(url);
2883
+ const target = props2.target;
2884
+ if (target == null || target === "")
2885
+ return;
2886
+ if (target !== "event") {
2887
+ window.open(url, "_" + target);
2888
+ } else {
2889
+ window.parent.postMessage({
2890
+ type: "openPage",
2891
+ url: href
2892
+ }, "*");
2893
+ }
2848
2894
  });
2849
2895
  return {
2850
2896
  style: style2,
@@ -2871,7 +2917,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2871
2917
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
2872
2918
  }, null, 12, _hoisted_1$7));
2873
2919
  }
2874
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-04fdee06"]]);
2920
+ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-604c9a14"]]);
2875
2921
  const EcanText = withInstall(Text);
2876
2922
  const ScrollText_vue_vue_type_style_index_0_scoped_true_lang = "";
2877
2923
  const _sfc_main$l = defineComponent({
@@ -2946,7 +2992,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
2946
2992
  style: normalizeStyle(_ctx.style)
2947
2993
  }, toDisplayString(_ctx.time), 5);
2948
2994
  }
2949
- const TimeDisplay = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-2da8f6d2"]]);
2995
+ const TimeDisplay = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-6f85cdb0"]]);
2950
2996
  const EcanTimeDisplay = withInstall(TimeDisplay);
2951
2997
  const listProps = {
2952
2998
  ...props,
@@ -3071,7 +3117,7 @@ const _sfc_main$j = defineComponent({
3071
3117
  };
3072
3118
  }
3073
3119
  });
3074
- const _withScopeId$2 = (n) => (pushScopeId("data-v-2d4a657c"), n = n(), popScopeId(), n);
3120
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-33dd5dd2"), n = n(), popScopeId(), n);
3075
3121
  const _hoisted_1$5 = {
3076
3122
  key: 0,
3077
3123
  class: "title"
@@ -3173,7 +3219,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
3173
3219
  }, 8, ["loading"])
3174
3220
  ], 4);
3175
3221
  }
3176
- const List = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-2d4a657c"]]);
3222
+ const List = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-33dd5dd2"]]);
3177
3223
  const EcanList = withInstall(List);
3178
3224
  const proportionProps = {
3179
3225
  ...props,
@@ -3381,7 +3427,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3381
3427
  }, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
3382
3428
  ], 4);
3383
3429
  }
3384
- const Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-4f7958e8"]]);
3430
+ const Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-1e9f619c"]]);
3385
3431
  const EcanProportion = withInstall(Proportion);
3386
3432
  const inputProps = {
3387
3433
  ...props,
@@ -3652,7 +3698,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
3652
3698
  }, null, 8, ["value", "options", "getPopupContainer", "field-names", "filter-option", "onChange"])
3653
3699
  ], 4);
3654
3700
  }
3655
- const Select = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-5e92066a"]]);
3701
+ const Select = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-38e47a34"]]);
3656
3702
  const EcanSelect = withInstall(Select);
3657
3703
  const rangePickerProps = {
3658
3704
  ...props,
@@ -3734,7 +3780,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
3734
3780
  }, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "onChange"])
3735
3781
  ], 4);
3736
3782
  }
3737
- const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-7433eda4"]]);
3783
+ const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-3acf6a86"]]);
3738
3784
  const EcanRangePicker = withInstall(RangePicker);
3739
3785
  const buttonProps = {
3740
3786
  ...props,
@@ -3958,7 +4004,7 @@ const pieProps = {
3958
4004
  tooltipShow: true,
3959
4005
  tooltipTextStyleColor: "",
3960
4006
  tooltipTrigger: "item",
3961
- tooltipFormatter: "{b} : {c} ({d}%)",
4007
+ tooltipFormatter: "{marker} {b} {c} ({d}%)",
3962
4008
  legendShow: true,
3963
4009
  legendTextStyleColor: "#333",
3964
4010
  legendOrient: "vertical",
@@ -4104,7 +4150,27 @@ const _sfc_main$b = defineComponent({
4104
4150
  tooltip: {
4105
4151
  show: props2.tooltipShow,
4106
4152
  trigger: props2.tooltipTrigger,
4107
- formatter: handleFormatter(props2.tooltipFormatter),
4153
+ formatter: (params) => {
4154
+ const { marker, seriesName, name, value, percent, data: data2 } = params || {};
4155
+ return useVariablesInText(
4156
+ props2.tooltipFormatter,
4157
+ {
4158
+ marker,
4159
+ name,
4160
+ value,
4161
+ percent,
4162
+ a: seriesName,
4163
+ b: name,
4164
+ c: value,
4165
+ d: percent,
4166
+ ...data2
4167
+ },
4168
+ {
4169
+ useNewline: true,
4170
+ useSpace: true
4171
+ }
4172
+ );
4173
+ },
4108
4174
  textStyle: {
4109
4175
  color: props2.tooltipTextStyleColor
4110
4176
  }
@@ -4303,16 +4369,15 @@ const lineProps = {
4303
4369
  left: "",
4304
4370
  rotate: "",
4305
4371
  data: [
4306
- { name: "\u540D\u79F0\u4E00", value: 335 },
4307
- { name: "\u540D\u79F0\u4E8C", value: 310 },
4308
- { name: "\u540D\u79F0\u4E09", value: 234 },
4309
- { name: "\u540D\u79F0\u56DB", value: 135 },
4310
- { name: "\u540D\u79F0\u4E94", value: 1548 }
4372
+ { name: "\u540D\u79F0\u4E00", value: 235, type: "\u7C7B\u578B\u4E00" },
4373
+ { name: "\u540D\u79F0\u4E8C", value: 280, type: "\u7C7B\u578B\u4E00" },
4374
+ { name: "\u540D\u79F0\u4E09", value: 230, type: "\u7C7B\u578B\u4E00" },
4375
+ { name: "\u540D\u79F0\u56DB", value: 335, type: "\u7C7B\u578B\u4E00" }
4311
4376
  ],
4312
4377
  titleText: "",
4313
4378
  titleSubtext: "",
4314
4379
  titleLeft: "",
4315
- legendShow: false,
4380
+ legendShow: true,
4316
4381
  legendOrient: "horizontal",
4317
4382
  legendTop: "top",
4318
4383
  legendLeft: "center",
@@ -4340,6 +4405,8 @@ const lineProps = {
4340
4405
  keyTypeDataFieldNames: { name: "name", types: [] },
4341
4406
  dataFieldConfigType: "value",
4342
4407
  graphicConfig: {},
4408
+ tooltipShow: true,
4409
+ tooltipFormatter: "{marker} {a} {c}",
4343
4410
  toolboxShow: false,
4344
4411
  toolboxOrient: "horizontal",
4345
4412
  toolboxItemSize: 16,
@@ -4432,6 +4499,42 @@ const _sfc_main$a = defineComponent({
4432
4499
  containLabel: props2.gridContainLabel
4433
4500
  },
4434
4501
  color: props2.colors,
4502
+ tooltip: {
4503
+ trigger: "axis",
4504
+ show: props2.tooltipShow,
4505
+ formatter: (params) => {
4506
+ const len = params.length;
4507
+ let formatter = "";
4508
+ let tooltipFormatter = props2.tooltipFormatter;
4509
+ if (tooltipFormatter === "") {
4510
+ tooltipFormatter = "{marker} {a} {c}";
4511
+ }
4512
+ for (let i = 0; i < len; i++) {
4513
+ const { marker, seriesName, name, value, data } = params[i] || {};
4514
+ if (i === 0) {
4515
+ formatter += `${name}<br/>`;
4516
+ }
4517
+ formatter += useVariablesInText(
4518
+ tooltipFormatter,
4519
+ {
4520
+ marker,
4521
+ name,
4522
+ value,
4523
+ a: seriesName,
4524
+ b: name,
4525
+ c: value,
4526
+ ...data
4527
+ },
4528
+ {
4529
+ useNewline: true,
4530
+ useSpace: true
4531
+ }
4532
+ );
4533
+ formatter += "<br/>";
4534
+ }
4535
+ return formatter;
4536
+ }
4537
+ },
4435
4538
  xAxis: {
4436
4539
  type: "category",
4437
4540
  data: unref(dimensions),
@@ -4476,9 +4579,6 @@ const _sfc_main$a = defineComponent({
4476
4579
  }
4477
4580
  }
4478
4581
  },
4479
- tooltip: {
4480
- trigger: "axis"
4481
- },
4482
4582
  legend: {
4483
4583
  show: props2.legendShow,
4484
4584
  orient: props2.legendOrient,
@@ -4707,8 +4807,7 @@ const barProps = {
4707
4807
  legendLeft: "center",
4708
4808
  tooltipShow: true,
4709
4809
  tooltipTextStyleColor: "",
4710
- tooltipTrigger: "item",
4711
- tooltipFormatter: "",
4810
+ tooltipFormatter: "{marker} {a} {c}",
4712
4811
  xAxisSplitLineShow: true,
4713
4812
  xAxisSplitLineStyleColor: "#333",
4714
4813
  xAxisLabelColor: "#333",
@@ -4854,7 +4953,38 @@ const _sfc_main$9 = defineComponent({
4854
4953
  tooltip: {
4855
4954
  trigger: "axis",
4856
4955
  show: props2.tooltipShow,
4857
- formatter: handleFormatter(props2.tooltipFormatter),
4956
+ formatter: (params) => {
4957
+ const len = params.length;
4958
+ let formatter = "";
4959
+ let tooltipFormatter = props2.tooltipFormatter;
4960
+ if (tooltipFormatter === "") {
4961
+ tooltipFormatter = "{marker} {a} {c}";
4962
+ }
4963
+ for (let i = 0; i < len; i++) {
4964
+ const { marker, seriesName, name, value, data } = params[i] || {};
4965
+ if (i === 0) {
4966
+ formatter += `${name}<br/>`;
4967
+ }
4968
+ formatter += useVariablesInText(
4969
+ tooltipFormatter,
4970
+ {
4971
+ marker,
4972
+ name,
4973
+ value,
4974
+ a: seriesName,
4975
+ b: name,
4976
+ c: value,
4977
+ ...data
4978
+ },
4979
+ {
4980
+ useNewline: true,
4981
+ useSpace: true
4982
+ }
4983
+ );
4984
+ formatter += "<br/>";
4985
+ }
4986
+ return formatter;
4987
+ },
4858
4988
  textStyle: {
4859
4989
  color: props2.tooltipTextStyleColor
4860
4990
  }
@@ -5098,7 +5228,7 @@ const scatterProps = {
5098
5228
  titleSubtext: "",
5099
5229
  tooltipShow: true,
5100
5230
  tooltipTrigger: "item",
5101
- tooltipFormatter: "{c}",
5231
+ tooltipFormatter: "{marker} {b} {c}",
5102
5232
  legendShow: false,
5103
5233
  legendOrient: "horizontal",
5104
5234
  legendTop: "top",
@@ -5260,8 +5390,17 @@ const _sfc_main$8 = defineComponent({
5260
5390
  trigger: props2.tooltipTrigger,
5261
5391
  formatter: function(params) {
5262
5392
  var _a2, _b2;
5393
+ const { marker, seriesName } = params;
5263
5394
  const record = (_b2 = (_a2 = params == null ? void 0 : params.data) == null ? void 0 : _a2.record) != null ? _b2 : {};
5264
- return useVariablesInText(props2.tooltipFormatter, record);
5395
+ const { name, value } = record;
5396
+ return useVariablesInText(props2.tooltipFormatter, {
5397
+ marker,
5398
+ seriesName,
5399
+ a: seriesName,
5400
+ b: name,
5401
+ c: value,
5402
+ ...record
5403
+ });
5265
5404
  },
5266
5405
  axisPointer: {
5267
5406
  type: "cross"
@@ -5491,7 +5630,7 @@ const comboGraphProps = {
5491
5630
  tooltipShow: true,
5492
5631
  tooltipTextStyleColor: "",
5493
5632
  tooltipTrigger: "item",
5494
- tooltipFormatter: "",
5633
+ tooltipFormatter: "{marker} {a} {c}",
5495
5634
  xAxisSplitLineShow: true,
5496
5635
  xAxisSplitLineStyleColor: "#333",
5497
5636
  xAxisLabelColor: "#333",
@@ -5623,13 +5762,6 @@ const _sfc_main$6 = defineComponent({
5623
5762
  containLabel: props2.gridContainLabel
5624
5763
  },
5625
5764
  color: props2.colors,
5626
- tooltip: {
5627
- trigger: "axis",
5628
- show: props2.tooltipShow,
5629
- textStyle: {
5630
- color: props2.tooltipTextStyleColor
5631
- }
5632
- },
5633
5765
  legend: {
5634
5766
  show: props2.legendShow,
5635
5767
  orient: props2.legendOrient,
@@ -5639,6 +5771,49 @@ const _sfc_main$6 = defineComponent({
5639
5771
  color: props2.legendTextStyleColor
5640
5772
  }
5641
5773
  },
5774
+ tooltip: {
5775
+ trigger: "axis",
5776
+ show: props2.tooltipShow,
5777
+ formatter: (params) => {
5778
+ const len = params.length;
5779
+ let formatter = "";
5780
+ let tooltipFormatter = props2.tooltipFormatter;
5781
+ if (tooltipFormatter === "") {
5782
+ tooltipFormatter = "{marker} {a} {c}";
5783
+ }
5784
+ for (let i = 0; i < len; i++) {
5785
+ const { marker, seriesName, name, value, data } = params[i] || {};
5786
+ if (i === 0) {
5787
+ formatter += `${name}<br/>`;
5788
+ }
5789
+ formatter += useVariablesInText(
5790
+ tooltipFormatter,
5791
+ {
5792
+ marker,
5793
+ name,
5794
+ value,
5795
+ seriesName,
5796
+ a: seriesName,
5797
+ b: name,
5798
+ c: value,
5799
+ ...data
5800
+ },
5801
+ {
5802
+ useNewline: true,
5803
+ useSpace: true
5804
+ }
5805
+ );
5806
+ formatter += "<br/>";
5807
+ }
5808
+ return formatter;
5809
+ },
5810
+ valueFormatter(value) {
5811
+ return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
5812
+ },
5813
+ textStyle: {
5814
+ color: props2.tooltipTextStyleColor
5815
+ }
5816
+ },
5642
5817
  xAxis: {
5643
5818
  type: "category",
5644
5819
  data: unref(dimensions),
@@ -5686,11 +5861,6 @@ const _sfc_main$6 = defineComponent({
5686
5861
  let series2 = {
5687
5862
  type,
5688
5863
  yAxisIndex: axisIndex,
5689
- tooltip: {
5690
- valueFormatter(value) {
5691
- return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
5692
- }
5693
- },
5694
5864
  ...dataset[i]
5695
5865
  };
5696
5866
  if (type === "line") {
@@ -5959,7 +6129,7 @@ const _sfc_main$5 = defineComponent({
5959
6129
  };
5960
6130
  }
5961
6131
  });
5962
- const _withScopeId$1 = (n) => (pushScopeId("data-v-2f8fd004"), n = n(), popScopeId(), n);
6132
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-4d96083e"), n = n(), popScopeId(), n);
5963
6133
  const _hoisted_1$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "top-left border-item" }, null, -1));
5964
6134
  const _hoisted_2$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "top-right border-item" }, null, -1));
5965
6135
  const _hoisted_3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "bottom-left border-item" }, null, -1));
@@ -6026,7 +6196,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
6026
6196
  ])) : createCommentVNode("", true)
6027
6197
  ], 4);
6028
6198
  }
6029
- const Border = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-2f8fd004"]]);
6199
+ const Border = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-4d96083e"]]);
6030
6200
  const EcanBorder = withInstall(Border);
6031
6201
  const modalProps = {
6032
6202
  id: "",
@@ -6044,7 +6214,7 @@ const modalProps = {
6044
6214
  keyName: "\u5F39\u7A97",
6045
6215
  componentList: [],
6046
6216
  fullModal: false,
6047
- destroyOnClose: false,
6217
+ destroyOnClose: true,
6048
6218
  position: "default"
6049
6219
  };
6050
6220
  const modalComponentProps = transformToComponentProps(modalProps);
@@ -6156,9 +6326,6 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
6156
6326
  width: _ctx.isFullModal || _ctx.isFullWidth ? "100%" : _ctx.modalWith,
6157
6327
  destroyOnClose: _ctx.destroyOnClose,
6158
6328
  style: normalizeStyle(_ctx.modalStyle),
6159
- bodyStyle: {
6160
- background: "red"
6161
- },
6162
6329
  onOk: _ctx.onOk,
6163
6330
  onCancel: _ctx.onCancel
6164
6331
  }, createSlots({
@@ -6197,7 +6364,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
6197
6364
  } : void 0
6198
6365
  ]), 1032, ["getContainer", "wrapClassName", "visible", "width", "destroyOnClose", "style", "onOk", "onCancel"]);
6199
6366
  }
6200
- const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-378919f0"]]);
6367
+ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-780a06e1"]]);
6201
6368
  const EcanModal = withInstall(Modal);
6202
6369
  const tabsProps = {
6203
6370
  ...props,
@@ -6286,7 +6453,7 @@ const _sfc_main$3 = defineComponent({
6286
6453
  };
6287
6454
  }
6288
6455
  });
6289
- const _withScopeId = (n) => (pushScopeId("data-v-0becf31e"), n = n(), popScopeId(), n);
6456
+ const _withScopeId = (n) => (pushScopeId("data-v-e32b1f6e"), n = n(), popScopeId(), n);
6290
6457
  const _hoisted_1$3 = ["onClick"];
6291
6458
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "tabs-content" }, null, -1));
6292
6459
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
@@ -6324,7 +6491,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
6324
6491
  _hoisted_2$1
6325
6492
  ], 4);
6326
6493
  }
6327
- const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-0becf31e"]]);
6494
+ const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-e32b1f6e"]]);
6328
6495
  const EcanTabs = withInstall(Tabs);
6329
6496
  const imageProps = {
6330
6497
  ...props,
@@ -6391,7 +6558,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6391
6558
  style: normalizeStyle(_ctx.style)
6392
6559
  }, " \u8BF7\u4E0A\u4F20\u56FE\u7247 ", 4));
6393
6560
  }
6394
- const Image = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-ab94aeb2"]]);
6561
+ const Image = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-f91836f6"]]);
6395
6562
  const EcanImage = withInstall(Image);
6396
6563
  const tableProps = {
6397
6564
  ...props,
@@ -6409,6 +6576,7 @@ const tableProps = {
6409
6576
  columnsFixedNum: 0,
6410
6577
  scrollX: 0,
6411
6578
  paginationShow: true,
6579
+ isReverse: false,
6412
6580
  simple: false,
6413
6581
  headerCellBackgroundColor: "",
6414
6582
  cellBackgroundColor: "",
@@ -6496,27 +6664,34 @@ const _sfc_main$1 = defineComponent({
6496
6664
  });
6497
6665
  const x = computed(() => props2.scrollX);
6498
6666
  const y = computed(() => parseFloat(props2.height) - unref(splitY));
6499
- const myColumns = computed(() => {
6500
- let columns = [];
6667
+ const myColumns = ref([]);
6668
+ const myDataSource = ref(props2.data);
6669
+ const tableColumns = ref([]);
6670
+ const tableDataSource = ref([]);
6671
+ const total = ref(0);
6672
+ const pageNum = ref(1);
6673
+ const pageSize = computed(() => props2.paginationPageSize);
6674
+ const handleColumns = (columns = []) => {
6675
+ let _columns = [];
6501
6676
  const isUseSeq = props2.isUseSeq;
6502
6677
  if (isUseSeq) {
6503
- columns.push({
6678
+ _columns.push({
6504
6679
  title: "\u5E8F\u53F7",
6505
6680
  dataIndex: "SEQ"
6506
6681
  });
6507
6682
  }
6508
- columns = columns.concat(props2.columns);
6683
+ _columns = _columns.concat(cloneDeep(columns));
6509
6684
  if (props2.isUseAction) {
6510
- columns.push({
6685
+ _columns.push({
6511
6686
  title: "\u64CD\u4F5C",
6512
6687
  dataIndex: "ACTION",
6513
6688
  width: props2.actionColumnWidth
6514
6689
  });
6515
6690
  }
6516
- const len = columns.length;
6691
+ const len = _columns.length;
6517
6692
  const columnsFixedNum = props2.columnsFixedNum;
6518
6693
  for (let i = 0; i < len; i++) {
6519
- const column = columns[i];
6694
+ const column = _columns[i];
6520
6695
  if (i < columnsFixedNum) {
6521
6696
  column.fixed = "left";
6522
6697
  } else {
@@ -6545,16 +6720,71 @@ const _sfc_main$1 = defineComponent({
6545
6720
  }
6546
6721
  });
6547
6722
  }
6548
- return columns;
6723
+ myColumns.value = _columns;
6724
+ };
6725
+ watch(() => [
6726
+ props2.columns,
6727
+ props2.isUseSeq,
6728
+ props2.isUseAction,
6729
+ props2.columnsFixedNum,
6730
+ props2.actionColumnWidth,
6731
+ props2.headerCellBackgroundColor,
6732
+ props2.cellBackgroundColor,
6733
+ props2.borderColor
6734
+ ], () => {
6735
+ handleColumns(props2.columns);
6736
+ }, {
6737
+ immediate: true,
6738
+ deep: true
6549
6739
  });
6550
- const total = ref(0);
6551
- const pageNum = ref(1);
6552
- const pageSize = computed(() => props2.paginationPageSize);
6553
- const dataSource = ref(props2.data);
6554
6740
  watch(() => [props2.data, props2.dataType], ([data, dataType]) => {
6555
6741
  if (dataType !== "static")
6556
6742
  return;
6557
- dataSource.value = data;
6743
+ myDataSource.value = data;
6744
+ });
6745
+ const handleReverseTable = (columns, dataSource) => {
6746
+ const firstColumns = columns[0];
6747
+ const _columns = [{
6748
+ title: firstColumns.title,
6749
+ dataIndex: "col0",
6750
+ key: "col0"
6751
+ }];
6752
+ for (let i = 0; i < dataSource.length; i++) {
6753
+ const data = dataSource[i];
6754
+ const dataIndex = "col" + (i + 1);
6755
+ _columns.push({
6756
+ title: data[firstColumns.dataIndex],
6757
+ dataIndex,
6758
+ key: dataIndex
6759
+ });
6760
+ }
6761
+ const _dataSource = [];
6762
+ for (let i = 1; i < columns.length; i++) {
6763
+ const column = columns[i];
6764
+ const _data = { col0: column.title };
6765
+ for (let j = 0; j < dataSource.length; j++) {
6766
+ const data = dataSource[j];
6767
+ _data[`col${j + 1}`] = data[column.dataIndex];
6768
+ }
6769
+ _dataSource.push(_data);
6770
+ }
6771
+ return {
6772
+ columns: _columns,
6773
+ dataSource: _dataSource
6774
+ };
6775
+ };
6776
+ watch(() => [props2.isReverse, myColumns.value, myDataSource.value], () => {
6777
+ if (props2.isReverse) {
6778
+ const { columns, dataSource } = handleReverseTable(unref(myColumns), unref(myDataSource));
6779
+ tableColumns.value = columns;
6780
+ tableDataSource.value = dataSource;
6781
+ } else {
6782
+ tableColumns.value = unref(myColumns);
6783
+ tableDataSource.value = unref(myDataSource);
6784
+ }
6785
+ }, {
6786
+ deep: true,
6787
+ immediate: true
6558
6788
  });
6559
6789
  const orderCondition = ref(void 0);
6560
6790
  const requestData = useRequestData(props2);
@@ -6578,7 +6808,7 @@ const _sfc_main$1 = defineComponent({
6578
6808
  const res = await requestData(params);
6579
6809
  const { rows = [], total: tableTotal = 0 } = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.data) || {};
6580
6810
  total.value = tableTotal;
6581
- dataSource.value = rows;
6811
+ myDataSource.value = rows;
6582
6812
  } catch (e) {
6583
6813
  console.error(e);
6584
6814
  } finally {
@@ -6651,12 +6881,10 @@ const _sfc_main$1 = defineComponent({
6651
6881
  getGlobalModel: (key) => void 0,
6652
6882
  setGlobalModel: (key, value) => void 0
6653
6883
  });
6654
- const dataColumns = ref([]);
6655
- const handleIndicatorDataset = (colmuns = [], rows = []) => {
6656
- dataColumns.value = colmuns.map((it) => {
6657
- return { title: it, dataIndex: it, key: it };
6658
- });
6659
- dataSource.value = rows;
6884
+ const handleIndicatorDataset = (dataColumns = [], dataRows = []) => {
6885
+ const _columns = dataColumns.map((column) => ({ title: column, dataIndex: column, key: column }));
6886
+ handleColumns(_columns);
6887
+ myDataSource.value = dataRows;
6660
6888
  };
6661
6889
  const indicatorData = useIndicatorData(props2);
6662
6890
  const handleIndicatorData = async () => {
@@ -6717,7 +6945,7 @@ const _sfc_main$1 = defineComponent({
6717
6945
  return [];
6718
6946
  const start = (unref(pageNum) - 1) * unref(pageSize);
6719
6947
  const end = start + unref(pageSize);
6720
- const records = unref(dataSource).slice(start, end);
6948
+ const records = unref(myDataSource).slice(start, end);
6721
6949
  for (let i = 0; i < records.length; i++) {
6722
6950
  const record = records[i];
6723
6951
  for (let j = 0; j < summaryList2.length; j++) {
@@ -6763,15 +6991,14 @@ const _sfc_main$1 = defineComponent({
6763
6991
  return {
6764
6992
  x,
6765
6993
  y,
6766
- myColumns,
6767
6994
  style: style2,
6768
6995
  customRow,
6769
6996
  pagination,
6770
6997
  formatFn,
6771
6998
  contrastClass,
6772
6999
  tableChange,
6773
- dataColumns,
6774
- dataSource,
7000
+ tableDataSource,
7001
+ tableColumns,
6775
7002
  summaryList,
6776
7003
  loading,
6777
7004
  onTouchHrefEvent,
@@ -6802,8 +7029,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
6802
7029
  style: {
6803
7030
  height: "100%"
6804
7031
  },
6805
- columns: _ctx.dataColumns.length > 0 ? _ctx.dataColumns : _ctx.myColumns,
6806
- "data-source": _ctx.dataSource,
7032
+ columns: _ctx.tableColumns,
7033
+ "data-source": _ctx.tableDataSource,
6807
7034
  bordered: _ctx.bordered,
6808
7035
  size: _ctx.size,
6809
7036
  customRow: _ctx.customRow,
@@ -6883,7 +7110,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
6883
7110
  }, 8, ["loading"])
6884
7111
  ], 4);
6885
7112
  }
6886
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-6da03837"]]);
7113
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-48569fe8"]]);
6887
7114
  const EcanTable = withInstall(Table);
6888
7115
  const mapProps = {
6889
7116
  ...props,
@@ -7089,7 +7316,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7089
7316
  ])
7090
7317
  ], 4);
7091
7318
  }
7092
- const Map$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-04ea2568"]]);
7319
+ const Map$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-322b32ca"]]);
7093
7320
  const EcanMap = withInstall(Map$1);
7094
7321
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7095
7322
  __proto__: null,