@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.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.0.87 */
1
+ /*! @ecan-bi/datav@1.0.89 */
2
2
  (function(global, factory) {
3
3
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("echarts/core"), require("resize-detector"), require("ant-design-vue"), require("ant-design-vue/es/spin/style"), require("ant-design-vue/es/skeleton/style"), require("lodash-es"), require("axios"), require("mitt"), require("dayjs"), require("ant-design-vue/es/progress/style"), require("ant-design-vue/es/input/style"), require("ant-design-vue/es/date-picker/style"), require("ant-design-vue/es/date-picker/locale/zh_CN"), require("ant-design-vue/es/select/style"), require("ant-design-vue/es/button/style"), require("ant-design-vue/es/checkbox/style"), require("echarts/renderers"), require("echarts/charts"), require("echarts/components"), require("echarts"), require("ant-design-vue/es/modal/style"), require("ant-design-vue/es/table/style")) : typeof define === "function" && define.amd ? define(["exports", "vue", "echarts/core", "resize-detector", "ant-design-vue", "ant-design-vue/es/spin/style", "ant-design-vue/es/skeleton/style", "lodash-es", "axios", "mitt", "dayjs", "ant-design-vue/es/progress/style", "ant-design-vue/es/input/style", "ant-design-vue/es/date-picker/style", "ant-design-vue/es/date-picker/locale/zh_CN", "ant-design-vue/es/select/style", "ant-design-vue/es/button/style", "ant-design-vue/es/checkbox/style", "echarts/renderers", "echarts/charts", "echarts/components", "echarts", "ant-design-vue/es/modal/style", "ant-design-vue/es/table/style"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["@ecan/bi-datav"] = {}, global.vue, global["echarts/core"], global["resize-detector"], global["ant-design-vue"], null, null, global["lodash-es"], global.axios, global.mitt, global.dayjs, null, null, null, global["ant-design-vue/es/date-picker/locale/zh_CN"], null, null, null, global["echarts/renderers"], global["echarts/charts"], global["echarts/components"], global.echarts));
4
4
  })(this, function(exports2, vue, core, resizeDetector, antDesignVue, style$1, style$2, lodashEs, axios, mitt, dayjs, style$3, style$4, style$5, locale, style$6, style$7, style$8, renderers, charts, components$1, echarts) {
@@ -1666,23 +1666,45 @@
1666
1666
  }
1667
1667
  return false;
1668
1668
  };
1669
- const useVariablesInText = (text = "", data = {}) => {
1669
+ const useVariablesInText = (formatter = "", data = {}, { useNewline = false, useSpace = false } = {}) => {
1670
1670
  const config2 = window.config || {};
1671
1671
  data = { ...config2, ...data };
1672
- const variables = text.match(/\{\w*\}/g);
1673
- if (variables == null || variables.length === 0)
1674
- return text;
1672
+ const variables = formatter.match(/\{(.+?)\}/g);
1673
+ if (variables == null || variables.length === 0) {
1674
+ return formatter;
1675
+ }
1675
1676
  for (let i = 0; i < variables.length; i++) {
1676
1677
  const variable = variables[i];
1677
- const v = variable.slice(1, variable.length - 1);
1678
- const usedVariable = data[v];
1679
- if (usedVariable != null) {
1680
- text = text.replace(variable, usedVariable);
1681
- } else {
1682
- text = text.replace(variable, "");
1678
+ let statement = variable.slice(1, -1);
1679
+ const reg = /[\u4e00-\u9fa5_a-zA-Z_]+[0-9]*/g;
1680
+ const textVariables = statement.match(reg);
1681
+ for (let j = 0; j < textVariables.length; j++) {
1682
+ const textVariable = textVariables[j];
1683
+ const usedVariable = data[textVariable];
1684
+ if (usedVariable != null) {
1685
+ statement = statement.replace(textVariable, usedVariable);
1686
+ } else {
1687
+ statement = statement.replace(textVariable, "");
1688
+ }
1683
1689
  }
1690
+ try {
1691
+ if (/[0-9]+(.*)[|+|-|*|/](.*)[0-9]+/g.test(statement)) {
1692
+ const eval2 = eval;
1693
+ statement = eval2(statement);
1694
+ }
1695
+ } catch (e) {
1696
+ console.error(e);
1697
+ }
1698
+ formatter = formatter.replace(variable, statement);
1699
+ }
1700
+ if (useNewline) {
1701
+ formatter = formatter == null ? void 0 : formatter.replace(/\n|\\n/g, "<br/>");
1684
1702
  }
1685
- return text;
1703
+ if (useSpace) {
1704
+ formatter = formatter == null ? void 0 : formatter.replace(/\s{2,}?/g, "&nbsp;&nbsp;");
1705
+ }
1706
+ console.log("formatter", formatter);
1707
+ return formatter;
1686
1708
  };
1687
1709
  const useRequestData = (props2, callBack = () => {
1688
1710
  }) => {
@@ -1734,7 +1756,7 @@
1734
1756
  _params[key] = useVariablesInText(value);
1735
1757
  }
1736
1758
  });
1737
- _params = { ...window.requestParams, ..._params, ...params };
1759
+ _params = { ...window.config.requestParams, ..._params, ...params };
1738
1760
  let urlParams = "";
1739
1761
  const keys = Object.keys(_params);
1740
1762
  const last = keys.length - 1;
@@ -2221,7 +2243,8 @@
2221
2243
  if (variables == null || variables.length === 0) {
2222
2244
  return value;
2223
2245
  }
2224
- for (let i = 0; i < variables.length; i++) {
2246
+ const len = variables.length;
2247
+ for (let i = 0; i < len; i++) {
2225
2248
  const variable = variables[i];
2226
2249
  if (variable == null || variable === "")
2227
2250
  break;
@@ -2571,7 +2594,7 @@
2571
2594
  ], 4)) : vue.createCommentVNode("", true)
2572
2595
  ], 512);
2573
2596
  }
2574
- const PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-c850087e"]]);
2597
+ const PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-7b482f6c"]]);
2575
2598
  const EcanPageConfig = withInstall(PageConfig);
2576
2599
  const providerConfig = {
2577
2600
  contextRequestUrl: "",
@@ -2598,7 +2621,9 @@
2598
2621
  vue.onMounted(() => {
2599
2622
  setTheme();
2600
2623
  });
2601
- const contextRequestUrl = vue.computed(() => useVariablesInText(props2.contextRequestUrl));
2624
+ const contextRequestUrl = vue.computed(() => {
2625
+ return useVariablesInText(props2.contextRequestUrl);
2626
+ });
2602
2627
  const pageMode = vue.computed(() => props2.pageMode);
2603
2628
  const theme = vue.computed(() => props2.theme);
2604
2629
  const touchEventId = vue.ref("");
@@ -2750,7 +2775,10 @@
2750
2775
  variableFontSize: "14px",
2751
2776
  data: {},
2752
2777
  variableDefaultValue: "0",
2753
- format: ""
2778
+ format: "",
2779
+ target: "self",
2780
+ href: "",
2781
+ linkPage: ""
2754
2782
  };
2755
2783
  const textComponentProps = transformToComponentProps(textProps);
2756
2784
  const textEvents = ["refreshData", "click"];
@@ -2850,6 +2878,24 @@
2850
2878
  });
2851
2879
  const emitEvent = useEmitEvent(props2);
2852
2880
  const click = emitEvent("click", () => {
2881
+ if (!props2.linkPage && !props2.href)
2882
+ return;
2883
+ const linkPage = props2.linkPage || "";
2884
+ const pageUrl = usePageUrl(vue.unref(pageMode), linkPage);
2885
+ const href = props2.href;
2886
+ let url = href || pageUrl;
2887
+ url = useVariablesInText(url);
2888
+ const target = props2.target;
2889
+ if (target == null || target === "")
2890
+ return;
2891
+ if (target !== "event") {
2892
+ window.open(url, "_" + target);
2893
+ } else {
2894
+ window.parent.postMessage({
2895
+ type: "openPage",
2896
+ url: href
2897
+ }, "*");
2898
+ }
2853
2899
  });
2854
2900
  return {
2855
2901
  style: style2,
@@ -2876,7 +2922,7 @@
2876
2922
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
2877
2923
  }, null, 12, _hoisted_1$7));
2878
2924
  }
2879
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-04fdee06"]]);
2925
+ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-604c9a14"]]);
2880
2926
  const EcanText = withInstall(Text);
2881
2927
  const ScrollText_vue_vue_type_style_index_0_scoped_true_lang = "";
2882
2928
  const _sfc_main$l = vue.defineComponent({
@@ -2951,7 +2997,7 @@
2951
2997
  style: vue.normalizeStyle(_ctx.style)
2952
2998
  }, vue.toDisplayString(_ctx.time), 5);
2953
2999
  }
2954
- const TimeDisplay = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-2da8f6d2"]]);
3000
+ const TimeDisplay = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-6f85cdb0"]]);
2955
3001
  const EcanTimeDisplay = withInstall(TimeDisplay);
2956
3002
  const listProps = {
2957
3003
  ...props,
@@ -3076,7 +3122,7 @@
3076
3122
  };
3077
3123
  }
3078
3124
  });
3079
- const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-2d4a657c"), n = n(), vue.popScopeId(), n);
3125
+ const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-33dd5dd2"), n = n(), vue.popScopeId(), n);
3080
3126
  const _hoisted_1$5 = {
3081
3127
  key: 0,
3082
3128
  class: "title"
@@ -3178,7 +3224,7 @@
3178
3224
  }, 8, ["loading"])
3179
3225
  ], 4);
3180
3226
  }
3181
- const List = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-2d4a657c"]]);
3227
+ const List = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-33dd5dd2"]]);
3182
3228
  const EcanList = withInstall(List);
3183
3229
  const proportionProps = {
3184
3230
  ...props,
@@ -3386,7 +3432,7 @@
3386
3432
  }, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
3387
3433
  ], 4);
3388
3434
  }
3389
- const Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-4f7958e8"]]);
3435
+ const Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-1e9f619c"]]);
3390
3436
  const EcanProportion = withInstall(Proportion);
3391
3437
  const inputProps = {
3392
3438
  ...props,
@@ -3657,7 +3703,7 @@
3657
3703
  }, null, 8, ["value", "options", "getPopupContainer", "field-names", "filter-option", "onChange"])
3658
3704
  ], 4);
3659
3705
  }
3660
- const Select = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-5e92066a"]]);
3706
+ const Select = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-38e47a34"]]);
3661
3707
  const EcanSelect = withInstall(Select);
3662
3708
  const rangePickerProps = {
3663
3709
  ...props,
@@ -3739,7 +3785,7 @@
3739
3785
  }, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "onChange"])
3740
3786
  ], 4);
3741
3787
  }
3742
- const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-7433eda4"]]);
3788
+ const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-3acf6a86"]]);
3743
3789
  const EcanRangePicker = withInstall(RangePicker);
3744
3790
  const buttonProps = {
3745
3791
  ...props,
@@ -3963,7 +4009,7 @@
3963
4009
  tooltipShow: true,
3964
4010
  tooltipTextStyleColor: "",
3965
4011
  tooltipTrigger: "item",
3966
- tooltipFormatter: "{b} : {c} ({d}%)",
4012
+ tooltipFormatter: "{marker} {b} {c} ({d}%)",
3967
4013
  legendShow: true,
3968
4014
  legendTextStyleColor: "#333",
3969
4015
  legendOrient: "vertical",
@@ -4109,7 +4155,27 @@
4109
4155
  tooltip: {
4110
4156
  show: props2.tooltipShow,
4111
4157
  trigger: props2.tooltipTrigger,
4112
- formatter: handleFormatter(props2.tooltipFormatter),
4158
+ formatter: (params) => {
4159
+ const { marker, seriesName, name, value, percent, data: data2 } = params || {};
4160
+ return useVariablesInText(
4161
+ props2.tooltipFormatter,
4162
+ {
4163
+ marker,
4164
+ name,
4165
+ value,
4166
+ percent,
4167
+ a: seriesName,
4168
+ b: name,
4169
+ c: value,
4170
+ d: percent,
4171
+ ...data2
4172
+ },
4173
+ {
4174
+ useNewline: true,
4175
+ useSpace: true
4176
+ }
4177
+ );
4178
+ },
4113
4179
  textStyle: {
4114
4180
  color: props2.tooltipTextStyleColor
4115
4181
  }
@@ -4308,16 +4374,15 @@
4308
4374
  left: "",
4309
4375
  rotate: "",
4310
4376
  data: [
4311
- { name: "\u540D\u79F0\u4E00", value: 335 },
4312
- { name: "\u540D\u79F0\u4E8C", value: 310 },
4313
- { name: "\u540D\u79F0\u4E09", value: 234 },
4314
- { name: "\u540D\u79F0\u56DB", value: 135 },
4315
- { name: "\u540D\u79F0\u4E94", value: 1548 }
4377
+ { name: "\u540D\u79F0\u4E00", value: 235, type: "\u7C7B\u578B\u4E00" },
4378
+ { name: "\u540D\u79F0\u4E8C", value: 280, type: "\u7C7B\u578B\u4E00" },
4379
+ { name: "\u540D\u79F0\u4E09", value: 230, type: "\u7C7B\u578B\u4E00" },
4380
+ { name: "\u540D\u79F0\u56DB", value: 335, type: "\u7C7B\u578B\u4E00" }
4316
4381
  ],
4317
4382
  titleText: "",
4318
4383
  titleSubtext: "",
4319
4384
  titleLeft: "",
4320
- legendShow: false,
4385
+ legendShow: true,
4321
4386
  legendOrient: "horizontal",
4322
4387
  legendTop: "top",
4323
4388
  legendLeft: "center",
@@ -4345,6 +4410,8 @@
4345
4410
  keyTypeDataFieldNames: { name: "name", types: [] },
4346
4411
  dataFieldConfigType: "value",
4347
4412
  graphicConfig: {},
4413
+ tooltipShow: true,
4414
+ tooltipFormatter: "{marker} {a} {c}",
4348
4415
  toolboxShow: false,
4349
4416
  toolboxOrient: "horizontal",
4350
4417
  toolboxItemSize: 16,
@@ -4437,6 +4504,42 @@
4437
4504
  containLabel: props2.gridContainLabel
4438
4505
  },
4439
4506
  color: props2.colors,
4507
+ tooltip: {
4508
+ trigger: "axis",
4509
+ show: props2.tooltipShow,
4510
+ formatter: (params) => {
4511
+ const len = params.length;
4512
+ let formatter = "";
4513
+ let tooltipFormatter = props2.tooltipFormatter;
4514
+ if (tooltipFormatter === "") {
4515
+ tooltipFormatter = "{marker} {a} {c}";
4516
+ }
4517
+ for (let i = 0; i < len; i++) {
4518
+ const { marker, seriesName, name, value, data } = params[i] || {};
4519
+ if (i === 0) {
4520
+ formatter += `${name}<br/>`;
4521
+ }
4522
+ formatter += useVariablesInText(
4523
+ tooltipFormatter,
4524
+ {
4525
+ marker,
4526
+ name,
4527
+ value,
4528
+ a: seriesName,
4529
+ b: name,
4530
+ c: value,
4531
+ ...data
4532
+ },
4533
+ {
4534
+ useNewline: true,
4535
+ useSpace: true
4536
+ }
4537
+ );
4538
+ formatter += "<br/>";
4539
+ }
4540
+ return formatter;
4541
+ }
4542
+ },
4440
4543
  xAxis: {
4441
4544
  type: "category",
4442
4545
  data: vue.unref(dimensions),
@@ -4481,9 +4584,6 @@
4481
4584
  }
4482
4585
  }
4483
4586
  },
4484
- tooltip: {
4485
- trigger: "axis"
4486
- },
4487
4587
  legend: {
4488
4588
  show: props2.legendShow,
4489
4589
  orient: props2.legendOrient,
@@ -4712,8 +4812,7 @@
4712
4812
  legendLeft: "center",
4713
4813
  tooltipShow: true,
4714
4814
  tooltipTextStyleColor: "",
4715
- tooltipTrigger: "item",
4716
- tooltipFormatter: "",
4815
+ tooltipFormatter: "{marker} {a} {c}",
4717
4816
  xAxisSplitLineShow: true,
4718
4817
  xAxisSplitLineStyleColor: "#333",
4719
4818
  xAxisLabelColor: "#333",
@@ -4859,7 +4958,38 @@
4859
4958
  tooltip: {
4860
4959
  trigger: "axis",
4861
4960
  show: props2.tooltipShow,
4862
- formatter: handleFormatter(props2.tooltipFormatter),
4961
+ formatter: (params) => {
4962
+ const len = params.length;
4963
+ let formatter = "";
4964
+ let tooltipFormatter = props2.tooltipFormatter;
4965
+ if (tooltipFormatter === "") {
4966
+ tooltipFormatter = "{marker} {a} {c}";
4967
+ }
4968
+ for (let i = 0; i < len; i++) {
4969
+ const { marker, seriesName, name, value, data } = params[i] || {};
4970
+ if (i === 0) {
4971
+ formatter += `${name}<br/>`;
4972
+ }
4973
+ formatter += useVariablesInText(
4974
+ tooltipFormatter,
4975
+ {
4976
+ marker,
4977
+ name,
4978
+ value,
4979
+ a: seriesName,
4980
+ b: name,
4981
+ c: value,
4982
+ ...data
4983
+ },
4984
+ {
4985
+ useNewline: true,
4986
+ useSpace: true
4987
+ }
4988
+ );
4989
+ formatter += "<br/>";
4990
+ }
4991
+ return formatter;
4992
+ },
4863
4993
  textStyle: {
4864
4994
  color: props2.tooltipTextStyleColor
4865
4995
  }
@@ -5103,7 +5233,7 @@
5103
5233
  titleSubtext: "",
5104
5234
  tooltipShow: true,
5105
5235
  tooltipTrigger: "item",
5106
- tooltipFormatter: "{c}",
5236
+ tooltipFormatter: "{marker} {b} {c}",
5107
5237
  legendShow: false,
5108
5238
  legendOrient: "horizontal",
5109
5239
  legendTop: "top",
@@ -5265,8 +5395,17 @@
5265
5395
  trigger: props2.tooltipTrigger,
5266
5396
  formatter: function(params) {
5267
5397
  var _a2, _b2;
5398
+ const { marker, seriesName } = params;
5268
5399
  const record = (_b2 = (_a2 = params == null ? void 0 : params.data) == null ? void 0 : _a2.record) != null ? _b2 : {};
5269
- return useVariablesInText(props2.tooltipFormatter, record);
5400
+ const { name, value } = record;
5401
+ return useVariablesInText(props2.tooltipFormatter, {
5402
+ marker,
5403
+ seriesName,
5404
+ a: seriesName,
5405
+ b: name,
5406
+ c: value,
5407
+ ...record
5408
+ });
5270
5409
  },
5271
5410
  axisPointer: {
5272
5411
  type: "cross"
@@ -5496,7 +5635,7 @@
5496
5635
  tooltipShow: true,
5497
5636
  tooltipTextStyleColor: "",
5498
5637
  tooltipTrigger: "item",
5499
- tooltipFormatter: "",
5638
+ tooltipFormatter: "{marker} {a} {c}",
5500
5639
  xAxisSplitLineShow: true,
5501
5640
  xAxisSplitLineStyleColor: "#333",
5502
5641
  xAxisLabelColor: "#333",
@@ -5628,13 +5767,6 @@
5628
5767
  containLabel: props2.gridContainLabel
5629
5768
  },
5630
5769
  color: props2.colors,
5631
- tooltip: {
5632
- trigger: "axis",
5633
- show: props2.tooltipShow,
5634
- textStyle: {
5635
- color: props2.tooltipTextStyleColor
5636
- }
5637
- },
5638
5770
  legend: {
5639
5771
  show: props2.legendShow,
5640
5772
  orient: props2.legendOrient,
@@ -5644,6 +5776,49 @@
5644
5776
  color: props2.legendTextStyleColor
5645
5777
  }
5646
5778
  },
5779
+ tooltip: {
5780
+ trigger: "axis",
5781
+ show: props2.tooltipShow,
5782
+ formatter: (params) => {
5783
+ const len = params.length;
5784
+ let formatter = "";
5785
+ let tooltipFormatter = props2.tooltipFormatter;
5786
+ if (tooltipFormatter === "") {
5787
+ tooltipFormatter = "{marker} {a} {c}";
5788
+ }
5789
+ for (let i = 0; i < len; i++) {
5790
+ const { marker, seriesName, name, value, data } = params[i] || {};
5791
+ if (i === 0) {
5792
+ formatter += `${name}<br/>`;
5793
+ }
5794
+ formatter += useVariablesInText(
5795
+ tooltipFormatter,
5796
+ {
5797
+ marker,
5798
+ name,
5799
+ value,
5800
+ seriesName,
5801
+ a: seriesName,
5802
+ b: name,
5803
+ c: value,
5804
+ ...data
5805
+ },
5806
+ {
5807
+ useNewline: true,
5808
+ useSpace: true
5809
+ }
5810
+ );
5811
+ formatter += "<br/>";
5812
+ }
5813
+ return formatter;
5814
+ },
5815
+ valueFormatter(value) {
5816
+ return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
5817
+ },
5818
+ textStyle: {
5819
+ color: props2.tooltipTextStyleColor
5820
+ }
5821
+ },
5647
5822
  xAxis: {
5648
5823
  type: "category",
5649
5824
  data: vue.unref(dimensions),
@@ -5691,11 +5866,6 @@
5691
5866
  let series2 = {
5692
5867
  type,
5693
5868
  yAxisIndex: axisIndex,
5694
- tooltip: {
5695
- valueFormatter(value) {
5696
- return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
5697
- }
5698
- },
5699
5869
  ...dataset[i]
5700
5870
  };
5701
5871
  if (type === "line") {
@@ -5964,7 +6134,7 @@
5964
6134
  };
5965
6135
  }
5966
6136
  });
5967
- const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-2f8fd004"), n = n(), vue.popScopeId(), n);
6137
+ const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-4d96083e"), n = n(), vue.popScopeId(), n);
5968
6138
  const _hoisted_1$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "top-left border-item" }, null, -1));
5969
6139
  const _hoisted_2$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "top-right border-item" }, null, -1));
5970
6140
  const _hoisted_3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-left border-item" }, null, -1));
@@ -6031,7 +6201,7 @@
6031
6201
  ])) : vue.createCommentVNode("", true)
6032
6202
  ], 4);
6033
6203
  }
6034
- const Border = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-2f8fd004"]]);
6204
+ const Border = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-4d96083e"]]);
6035
6205
  const EcanBorder = withInstall(Border);
6036
6206
  const modalProps = {
6037
6207
  id: "",
@@ -6049,7 +6219,7 @@
6049
6219
  keyName: "\u5F39\u7A97",
6050
6220
  componentList: [],
6051
6221
  fullModal: false,
6052
- destroyOnClose: false,
6222
+ destroyOnClose: true,
6053
6223
  position: "default"
6054
6224
  };
6055
6225
  const modalComponentProps = transformToComponentProps(modalProps);
@@ -6161,9 +6331,6 @@
6161
6331
  width: _ctx.isFullModal || _ctx.isFullWidth ? "100%" : _ctx.modalWith,
6162
6332
  destroyOnClose: _ctx.destroyOnClose,
6163
6333
  style: vue.normalizeStyle(_ctx.modalStyle),
6164
- bodyStyle: {
6165
- background: "red"
6166
- },
6167
6334
  onOk: _ctx.onOk,
6168
6335
  onCancel: _ctx.onCancel
6169
6336
  }, vue.createSlots({
@@ -6202,7 +6369,7 @@
6202
6369
  } : void 0
6203
6370
  ]), 1032, ["getContainer", "wrapClassName", "visible", "width", "destroyOnClose", "style", "onOk", "onCancel"]);
6204
6371
  }
6205
- const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-378919f0"]]);
6372
+ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-780a06e1"]]);
6206
6373
  const EcanModal = withInstall(Modal);
6207
6374
  const tabsProps = {
6208
6375
  ...props,
@@ -6291,7 +6458,7 @@
6291
6458
  };
6292
6459
  }
6293
6460
  });
6294
- const _withScopeId = (n) => (vue.pushScopeId("data-v-0becf31e"), n = n(), vue.popScopeId(), n);
6461
+ const _withScopeId = (n) => (vue.pushScopeId("data-v-e32b1f6e"), n = n(), vue.popScopeId(), n);
6295
6462
  const _hoisted_1$3 = ["onClick"];
6296
6463
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "tabs-content" }, null, -1));
6297
6464
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
@@ -6329,7 +6496,7 @@
6329
6496
  _hoisted_2$1
6330
6497
  ], 4);
6331
6498
  }
6332
- const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-0becf31e"]]);
6499
+ const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-e32b1f6e"]]);
6333
6500
  const EcanTabs = withInstall(Tabs);
6334
6501
  const imageProps = {
6335
6502
  ...props,
@@ -6396,7 +6563,7 @@
6396
6563
  style: vue.normalizeStyle(_ctx.style)
6397
6564
  }, " \u8BF7\u4E0A\u4F20\u56FE\u7247 ", 4));
6398
6565
  }
6399
- const Image = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-ab94aeb2"]]);
6566
+ const Image = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-f91836f6"]]);
6400
6567
  const EcanImage = withInstall(Image);
6401
6568
  const tableProps = {
6402
6569
  ...props,
@@ -6414,6 +6581,7 @@
6414
6581
  columnsFixedNum: 0,
6415
6582
  scrollX: 0,
6416
6583
  paginationShow: true,
6584
+ isReverse: false,
6417
6585
  simple: false,
6418
6586
  headerCellBackgroundColor: "",
6419
6587
  cellBackgroundColor: "",
@@ -6501,27 +6669,34 @@
6501
6669
  });
6502
6670
  const x = vue.computed(() => props2.scrollX);
6503
6671
  const y = vue.computed(() => parseFloat(props2.height) - vue.unref(splitY));
6504
- const myColumns = vue.computed(() => {
6505
- let columns = [];
6672
+ const myColumns = vue.ref([]);
6673
+ const myDataSource = vue.ref(props2.data);
6674
+ const tableColumns = vue.ref([]);
6675
+ const tableDataSource = vue.ref([]);
6676
+ const total = vue.ref(0);
6677
+ const pageNum = vue.ref(1);
6678
+ const pageSize = vue.computed(() => props2.paginationPageSize);
6679
+ const handleColumns = (columns = []) => {
6680
+ let _columns = [];
6506
6681
  const isUseSeq = props2.isUseSeq;
6507
6682
  if (isUseSeq) {
6508
- columns.push({
6683
+ _columns.push({
6509
6684
  title: "\u5E8F\u53F7",
6510
6685
  dataIndex: "SEQ"
6511
6686
  });
6512
6687
  }
6513
- columns = columns.concat(props2.columns);
6688
+ _columns = _columns.concat(lodashEs.cloneDeep(columns));
6514
6689
  if (props2.isUseAction) {
6515
- columns.push({
6690
+ _columns.push({
6516
6691
  title: "\u64CD\u4F5C",
6517
6692
  dataIndex: "ACTION",
6518
6693
  width: props2.actionColumnWidth
6519
6694
  });
6520
6695
  }
6521
- const len = columns.length;
6696
+ const len = _columns.length;
6522
6697
  const columnsFixedNum = props2.columnsFixedNum;
6523
6698
  for (let i = 0; i < len; i++) {
6524
- const column = columns[i];
6699
+ const column = _columns[i];
6525
6700
  if (i < columnsFixedNum) {
6526
6701
  column.fixed = "left";
6527
6702
  } else {
@@ -6550,16 +6725,71 @@
6550
6725
  }
6551
6726
  });
6552
6727
  }
6553
- return columns;
6728
+ myColumns.value = _columns;
6729
+ };
6730
+ vue.watch(() => [
6731
+ props2.columns,
6732
+ props2.isUseSeq,
6733
+ props2.isUseAction,
6734
+ props2.columnsFixedNum,
6735
+ props2.actionColumnWidth,
6736
+ props2.headerCellBackgroundColor,
6737
+ props2.cellBackgroundColor,
6738
+ props2.borderColor
6739
+ ], () => {
6740
+ handleColumns(props2.columns);
6741
+ }, {
6742
+ immediate: true,
6743
+ deep: true
6554
6744
  });
6555
- const total = vue.ref(0);
6556
- const pageNum = vue.ref(1);
6557
- const pageSize = vue.computed(() => props2.paginationPageSize);
6558
- const dataSource = vue.ref(props2.data);
6559
6745
  vue.watch(() => [props2.data, props2.dataType], ([data, dataType]) => {
6560
6746
  if (dataType !== "static")
6561
6747
  return;
6562
- dataSource.value = data;
6748
+ myDataSource.value = data;
6749
+ });
6750
+ const handleReverseTable = (columns, dataSource) => {
6751
+ const firstColumns = columns[0];
6752
+ const _columns = [{
6753
+ title: firstColumns.title,
6754
+ dataIndex: "col0",
6755
+ key: "col0"
6756
+ }];
6757
+ for (let i = 0; i < dataSource.length; i++) {
6758
+ const data = dataSource[i];
6759
+ const dataIndex = "col" + (i + 1);
6760
+ _columns.push({
6761
+ title: data[firstColumns.dataIndex],
6762
+ dataIndex,
6763
+ key: dataIndex
6764
+ });
6765
+ }
6766
+ const _dataSource = [];
6767
+ for (let i = 1; i < columns.length; i++) {
6768
+ const column = columns[i];
6769
+ const _data = { col0: column.title };
6770
+ for (let j = 0; j < dataSource.length; j++) {
6771
+ const data = dataSource[j];
6772
+ _data[`col${j + 1}`] = data[column.dataIndex];
6773
+ }
6774
+ _dataSource.push(_data);
6775
+ }
6776
+ return {
6777
+ columns: _columns,
6778
+ dataSource: _dataSource
6779
+ };
6780
+ };
6781
+ vue.watch(() => [props2.isReverse, myColumns.value, myDataSource.value], () => {
6782
+ if (props2.isReverse) {
6783
+ const { columns, dataSource } = handleReverseTable(vue.unref(myColumns), vue.unref(myDataSource));
6784
+ tableColumns.value = columns;
6785
+ tableDataSource.value = dataSource;
6786
+ } else {
6787
+ tableColumns.value = vue.unref(myColumns);
6788
+ tableDataSource.value = vue.unref(myDataSource);
6789
+ }
6790
+ }, {
6791
+ deep: true,
6792
+ immediate: true
6563
6793
  });
6564
6794
  const orderCondition = vue.ref(void 0);
6565
6795
  const requestData = useRequestData(props2);
@@ -6583,7 +6813,7 @@
6583
6813
  const res = await requestData(params);
6584
6814
  const { rows = [], total: tableTotal = 0 } = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.data) || {};
6585
6815
  total.value = tableTotal;
6586
- dataSource.value = rows;
6816
+ myDataSource.value = rows;
6587
6817
  } catch (e) {
6588
6818
  console.error(e);
6589
6819
  } finally {
@@ -6656,12 +6886,10 @@
6656
6886
  getGlobalModel: (key) => void 0,
6657
6887
  setGlobalModel: (key, value) => void 0
6658
6888
  });
6659
- const dataColumns = vue.ref([]);
6660
- const handleIndicatorDataset = (colmuns = [], rows = []) => {
6661
- dataColumns.value = colmuns.map((it) => {
6662
- return { title: it, dataIndex: it, key: it };
6663
- });
6664
- dataSource.value = rows;
6889
+ const handleIndicatorDataset = (dataColumns = [], dataRows = []) => {
6890
+ const _columns = dataColumns.map((column) => ({ title: column, dataIndex: column, key: column }));
6891
+ handleColumns(_columns);
6892
+ myDataSource.value = dataRows;
6665
6893
  };
6666
6894
  const indicatorData = useIndicatorData(props2);
6667
6895
  const handleIndicatorData = async () => {
@@ -6722,7 +6950,7 @@
6722
6950
  return [];
6723
6951
  const start = (vue.unref(pageNum) - 1) * vue.unref(pageSize);
6724
6952
  const end = start + vue.unref(pageSize);
6725
- const records = vue.unref(dataSource).slice(start, end);
6953
+ const records = vue.unref(myDataSource).slice(start, end);
6726
6954
  for (let i = 0; i < records.length; i++) {
6727
6955
  const record = records[i];
6728
6956
  for (let j = 0; j < summaryList2.length; j++) {
@@ -6768,15 +6996,14 @@
6768
6996
  return {
6769
6997
  x,
6770
6998
  y,
6771
- myColumns,
6772
6999
  style: style2,
6773
7000
  customRow,
6774
7001
  pagination,
6775
7002
  formatFn,
6776
7003
  contrastClass,
6777
7004
  tableChange,
6778
- dataColumns,
6779
- dataSource,
7005
+ tableDataSource,
7006
+ tableColumns,
6780
7007
  summaryList,
6781
7008
  loading,
6782
7009
  onTouchHrefEvent,
@@ -6807,8 +7034,8 @@
6807
7034
  style: {
6808
7035
  height: "100%"
6809
7036
  },
6810
- columns: _ctx.dataColumns.length > 0 ? _ctx.dataColumns : _ctx.myColumns,
6811
- "data-source": _ctx.dataSource,
7037
+ columns: _ctx.tableColumns,
7038
+ "data-source": _ctx.tableDataSource,
6812
7039
  bordered: _ctx.bordered,
6813
7040
  size: _ctx.size,
6814
7041
  customRow: _ctx.customRow,
@@ -6888,7 +7115,7 @@
6888
7115
  }, 8, ["loading"])
6889
7116
  ], 4);
6890
7117
  }
6891
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-6da03837"]]);
7118
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-48569fe8"]]);
6892
7119
  const EcanTable = withInstall(Table);
6893
7120
  const mapProps = {
6894
7121
  ...props,
@@ -7094,7 +7321,7 @@
7094
7321
  ])
7095
7322
  ], 4);
7096
7323
  }
7097
- const Map$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-04ea2568"]]);
7324
+ const Map$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-322b32ca"]]);
7098
7325
  const EcanMap = withInstall(Map$1);
7099
7326
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7100
7327
  __proto__: null,