@hg2/dataview-core 2.0.0

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 (498) hide show
  1. package/dist/ColorList-36f5fb1f.js +195 -0
  2. package/dist/ColorList-36f5fb1f.js.map +1 -0
  3. package/dist/StylesSetting-e13e1698.js +348 -0
  4. package/dist/StylesSetting-e13e1698.js.map +1 -0
  5. package/dist/api/axios.d.ts +2 -0
  6. package/dist/api/http.d.ts +15 -0
  7. package/dist/api/mock/graph.json.d.ts +102 -0
  8. package/dist/api/mock/heatMapData.json.d.ts +202 -0
  9. package/dist/api/mock/index.d.ts +22 -0
  10. package/dist/api/mock/map.json.d.ts +12 -0
  11. package/dist/api/mock/sankey.json.d.ts +89 -0
  12. package/dist/api/mock/scatter.json.d.ts +59 -0
  13. package/dist/api/mock/test.mock.d.ts +226 -0
  14. package/dist/api/mock/treemap.json.d.ts +53 -0
  15. package/dist/api/mock/vchart/bar.json.d.ts +19 -0
  16. package/dist/api/mock/vchart.mock.d.ts +15 -0
  17. package/dist/components/GoAppProvider/index.d.ts +2 -0
  18. package/dist/components/GoAppProvider/index.vue.d.ts +9 -0
  19. package/dist/components/GoIconify/index.d.ts +2 -0
  20. package/dist/components/GoIconify/index.vue.d.ts +46 -0
  21. package/dist/components/GoLangSelect/index.d.ts +2 -0
  22. package/dist/components/GoLangSelect/index.vue.d.ts +2 -0
  23. package/dist/components/GoLoading/LoadingSkeleton.vue.d.ts +2 -0
  24. package/dist/components/GoLoading/index.d.ts +4 -0
  25. package/dist/components/GoLoading/index.vue.d.ts +2 -0
  26. package/dist/components/GoSkeleton/index.d.ts +2 -0
  27. package/dist/components/GoSkeleton/index.vue.d.ts +23 -0
  28. package/dist/components/GoSystemInfo/index.d.ts +2 -0
  29. package/dist/components/GoSystemInfo/index.vue.d.ts +12 -0
  30. package/dist/components/GoSystemSet/index.d.ts +12 -0
  31. package/dist/components/GoSystemSet/index.vue.d.ts +12 -0
  32. package/dist/components/GoThemeSelect/index.d.ts +2 -0
  33. package/dist/components/GoThemeSelect/index.vue.d.ts +2 -0
  34. package/dist/components/I18n/index.d.ts +2 -0
  35. package/dist/components/I18n/index.vue.d.ts +2 -0
  36. package/dist/components/Pages/ChartGlobImage/index.d.ts +2 -0
  37. package/dist/components/Pages/ChartGlobImage/index.vue.d.ts +14 -0
  38. package/dist/components/Pages/ChartItemSetting/CollapseItem.vue.d.ts +32 -0
  39. package/dist/components/Pages/ChartItemSetting/GlobalSettingPosition.vue.d.ts +19 -0
  40. package/dist/components/Pages/ChartItemSetting/NameSetting.vue.d.ts +14 -0
  41. package/dist/components/Pages/ChartItemSetting/PositionSetting.vue.d.ts +38 -0
  42. package/dist/components/Pages/ChartItemSetting/SettingItem.vue.d.ts +27 -0
  43. package/dist/components/Pages/ChartItemSetting/SettingItemBox.vue.d.ts +43 -0
  44. package/dist/components/Pages/ChartItemSetting/SizeSetting.vue.d.ts +39 -0
  45. package/dist/components/Pages/ChartItemSetting/StylesSetting.vue.d.ts +60 -0
  46. package/dist/components/Pages/ChartItemSetting/index.d.ts +9 -0
  47. package/dist/components/Pages/Flipper/index.d.ts +3 -0
  48. package/dist/components/Pages/Flipper/index.vue.d.ts +88 -0
  49. package/dist/components/Pages/MonacoEditor/index.d.ts +3 -0
  50. package/dist/components/Pages/MonacoEditor/index.hook.d.ts +8 -0
  51. package/dist/components/Pages/MonacoEditor/index.vue.d.ts +68 -0
  52. package/dist/components/Pages/ThemeColorSelect/components/ColorList.vue.d.ts +18 -0
  53. package/dist/components/Pages/ThemeColorSelect/index.d.ts +2 -0
  54. package/dist/components/Pages/ThemeColorSelect/index.vue.d.ts +4 -0
  55. package/dist/components/Plugins/DialogContent/index.d.ts +2 -0
  56. package/dist/components/Plugins/DialogContent/index.vue.d.ts +2 -0
  57. package/dist/components/Plugins/LoadingContent/index.d.ts +2 -0
  58. package/dist/components/Plugins/LoadingContent/index.vue.d.ts +2 -0
  59. package/dist/components/Plugins/MessageContent/index.d.ts +2 -0
  60. package/dist/components/Plugins/MessageContent/index.vue.d.ts +2 -0
  61. package/dist/components/Tips/MacOsControlBtn/index.d.ts +2 -0
  62. package/dist/components/Tips/MacOsControlBtn/index.vue.d.ts +59 -0
  63. package/dist/config-135cbd37.js +78 -0
  64. package/dist/config-135cbd37.js.map +1 -0
  65. package/dist/config-2f4d03cf.js +50 -0
  66. package/dist/config-2f4d03cf.js.map +1 -0
  67. package/dist/config-2feff12a.js +51 -0
  68. package/dist/config-2feff12a.js.map +1 -0
  69. package/dist/config-34a249a9.js +50 -0
  70. package/dist/config-34a249a9.js.map +1 -0
  71. package/dist/config-54932c86.js +61 -0
  72. package/dist/config-54932c86.js.map +1 -0
  73. package/dist/config-63dc5f82.js +62 -0
  74. package/dist/config-63dc5f82.js.map +1 -0
  75. package/dist/config-6ff94944.js +58 -0
  76. package/dist/config-6ff94944.js.map +1 -0
  77. package/dist/config-70c69137.js +51 -0
  78. package/dist/config-70c69137.js.map +1 -0
  79. package/dist/config-72cb7427.js +53 -0
  80. package/dist/config-72cb7427.js.map +1 -0
  81. package/dist/config-99706c47.js +58 -0
  82. package/dist/config-99706c47.js.map +1 -0
  83. package/dist/config-a6eb66af.js +51 -0
  84. package/dist/config-a6eb66af.js.map +1 -0
  85. package/dist/config-ac8d451f.js +127 -0
  86. package/dist/config-ac8d451f.js.map +1 -0
  87. package/dist/config-b11b8271.js +53 -0
  88. package/dist/config-b11b8271.js.map +1 -0
  89. package/dist/config-bda687c7.js +52 -0
  90. package/dist/config-bda687c7.js.map +1 -0
  91. package/dist/config-fe590ea6.js +57 -0
  92. package/dist/config-fe590ea6.js.map +1 -0
  93. package/dist/engines/index.d.ts +2 -0
  94. package/dist/engines/registry.d.ts +24 -0
  95. package/dist/enums/editPageEnum.d.ts +55 -0
  96. package/dist/enums/eventEnum.d.ts +32 -0
  97. package/dist/enums/fileTypeEnum.d.ts +7 -0
  98. package/dist/enums/httpEnum.d.ts +96 -0
  99. package/dist/enums/pageEnum.d.ts +0 -0
  100. package/dist/enums/pluginEnum.d.ts +6 -0
  101. package/dist/enums/storageEnum.d.ts +8 -0
  102. package/dist/enums/styleEnum.d.ts +14 -0
  103. package/dist/hooks/index.d.ts +8 -0
  104. package/dist/hooks/useChartDataFetch.hook.d.ts +13 -0
  105. package/dist/hooks/useChartDataPondFetch.hook.d.ts +12 -0
  106. package/dist/hooks/useChartInteract.hook.d.ts +8 -0
  107. package/dist/hooks/useCode.hook.d.ts +2 -0
  108. package/dist/hooks/useLang.hook.d.ts +372 -0
  109. package/dist/hooks/useLifeHandler.hook.d.ts +9 -0
  110. package/dist/hooks/usePreviewScale.hook.d.ts +32 -0
  111. package/dist/hooks/useTheme.hook.d.ts +18 -0
  112. package/dist/i18n/en/index.d.ts +21 -0
  113. package/dist/i18n/index.d.ts +48 -0
  114. package/dist/i18n/zh/index.d.ts +21 -0
  115. package/dist/index-10b2feb6.js +204 -0
  116. package/dist/index-10b2feb6.js.map +1 -0
  117. package/dist/index-148f6c33.js +1183 -0
  118. package/dist/index-148f6c33.js.map +1 -0
  119. package/dist/index-237a6823.js +26562 -0
  120. package/dist/index-237a6823.js.map +1 -0
  121. package/dist/index-3307e922.js +156 -0
  122. package/dist/index-3307e922.js.map +1 -0
  123. package/dist/index-33aae9d2.js +319 -0
  124. package/dist/index-33aae9d2.js.map +1 -0
  125. package/dist/index-556d7d7c.js +228 -0
  126. package/dist/index-556d7d7c.js.map +1 -0
  127. package/dist/index-617f36ae.js +156 -0
  128. package/dist/index-617f36ae.js.map +1 -0
  129. package/dist/index-62e07d83.js +54 -0
  130. package/dist/index-62e07d83.js.map +1 -0
  131. package/dist/index-66f7ab2a.js +590 -0
  132. package/dist/index-66f7ab2a.js.map +1 -0
  133. package/dist/index-6701793b.js +1811 -0
  134. package/dist/index-6701793b.js.map +1 -0
  135. package/dist/index-8d8dc1d2.js +132 -0
  136. package/dist/index-8d8dc1d2.js.map +1 -0
  137. package/dist/index-985f409d.js +461 -0
  138. package/dist/index-985f409d.js.map +1 -0
  139. package/dist/index-b2e0e39b.js +215 -0
  140. package/dist/index-b2e0e39b.js.map +1 -0
  141. package/dist/index-b58bfc89.js +419 -0
  142. package/dist/index-b58bfc89.js.map +1 -0
  143. package/dist/index-b5b7a570.js +103 -0
  144. package/dist/index-b5b7a570.js.map +1 -0
  145. package/dist/index-be12782c.js +1013 -0
  146. package/dist/index-be12782c.js.map +1 -0
  147. package/dist/index-be75d4d8.js +101 -0
  148. package/dist/index-be75d4d8.js.map +1 -0
  149. package/dist/index-c7145ef3.js +137 -0
  150. package/dist/index-c7145ef3.js.map +1 -0
  151. package/dist/index-ca8cd72a.js +74 -0
  152. package/dist/index-ca8cd72a.js.map +1 -0
  153. package/dist/index-cfca17b8.js +138 -0
  154. package/dist/index-cfca17b8.js.map +1 -0
  155. package/dist/index-d3c1c990.js +257 -0
  156. package/dist/index-d3c1c990.js.map +1 -0
  157. package/dist/index-ea4311bb.js +414 -0
  158. package/dist/index-ea4311bb.js.map +1 -0
  159. package/dist/index-ed584e70.js +729 -0
  160. package/dist/index-ed584e70.js.map +1 -0
  161. package/dist/index-f0c7797f.js +385 -0
  162. package/dist/index-f0c7797f.js.map +1 -0
  163. package/dist/index-f43eed8d.js +307 -0
  164. package/dist/index-f43eed8d.js.map +1 -0
  165. package/dist/index.d.ts +5 -0
  166. package/dist/index.js +57 -0
  167. package/dist/index.js.map +1 -0
  168. package/dist/layout/components/LayoutFooter/index.d.ts +2 -0
  169. package/dist/layout/components/LayoutFooter/index.vue.d.ts +9 -0
  170. package/dist/layout/components/LayoutHeader/index.d.ts +2 -0
  171. package/dist/layout/components/LayoutHeader/index.vue.d.ts +12 -0
  172. package/dist/layout/components/LayoutHeaderPro/index.d.ts +2 -0
  173. package/dist/layout/components/LayoutHeaderPro/index.vue.d.ts +12 -0
  174. package/dist/layout/components/LayoutMain/index.d.ts +2 -0
  175. package/dist/layout/components/LayoutMain/index.vue.d.ts +2 -0
  176. package/dist/layout/components/LayoutTransitionMain/index.d.ts +2 -0
  177. package/dist/layout/components/LayoutTransitionMain/index.vue.d.ts +2 -0
  178. package/dist/lib/GoViewEditor.vue.d.ts +48 -0
  179. package/dist/lib/GoViewPreview.vue.d.ts +25 -0
  180. package/dist/lib/index.d.ts +28 -0
  181. package/dist/lib/skills/index.d.ts +2 -0
  182. package/dist/lib/skills/registry.d.ts +2 -0
  183. package/dist/lib/skills/types.d.ts +72 -0
  184. package/dist/logo-9c1d9d16.js +5 -0
  185. package/dist/logo-9c1d9d16.js.map +1 -0
  186. package/dist/noData-63b54dc3.js +5 -0
  187. package/dist/noData-63b54dc3.js.map +1 -0
  188. package/dist/packages/components/Decorates/Borders/Border01/config.d.ts +16 -0
  189. package/dist/packages/components/Decorates/Borders/Border01/index.d.ts +2 -0
  190. package/dist/packages/components/Decorates/Borders/Border02/config.d.ts +14 -0
  191. package/dist/packages/components/Decorates/Borders/Border02/index.d.ts +2 -0
  192. package/dist/packages/components/Decorates/Borders/Border03/config.d.ts +14 -0
  193. package/dist/packages/components/Decorates/Borders/Border03/index.d.ts +2 -0
  194. package/dist/packages/components/Decorates/Borders/Border04/config.d.ts +24 -0
  195. package/dist/packages/components/Decorates/Borders/Border04/index.d.ts +2 -0
  196. package/dist/packages/components/Decorates/Borders/Border05/config.d.ts +14 -0
  197. package/dist/packages/components/Decorates/Borders/Border05/index.d.ts +2 -0
  198. package/dist/packages/components/Decorates/Borders/Border06/config.d.ts +14 -0
  199. package/dist/packages/components/Decorates/Borders/Border06/index.d.ts +2 -0
  200. package/dist/packages/components/Decorates/Borders/Border07/config.d.ts +14 -0
  201. package/dist/packages/components/Decorates/Borders/Border07/index.d.ts +2 -0
  202. package/dist/packages/components/Decorates/Borders/Border08/config.d.ts +18 -0
  203. package/dist/packages/components/Decorates/Borders/Border08/index.d.ts +2 -0
  204. package/dist/packages/components/Decorates/Borders/Border09/config.d.ts +14 -0
  205. package/dist/packages/components/Decorates/Borders/Border09/index.d.ts +2 -0
  206. package/dist/packages/components/Decorates/Borders/Border10/config.d.ts +14 -0
  207. package/dist/packages/components/Decorates/Borders/Border10/index.d.ts +2 -0
  208. package/dist/packages/components/Decorates/Borders/Border11/config.d.ts +14 -0
  209. package/dist/packages/components/Decorates/Borders/Border11/index.d.ts +2 -0
  210. package/dist/packages/components/Decorates/Borders/Border12/config.d.ts +14 -0
  211. package/dist/packages/components/Decorates/Borders/Border12/index.d.ts +2 -0
  212. package/dist/packages/components/Decorates/Borders/Border13/config.d.ts +14 -0
  213. package/dist/packages/components/Decorates/Borders/Border13/index.d.ts +2 -0
  214. package/dist/packages/components/Decorates/Borders/index.d.ts +2 -0
  215. package/dist/packages/components/Decorates/Decorates/Decorates01/config.d.ts +18 -0
  216. package/dist/packages/components/Decorates/Decorates/Decorates01/index.d.ts +2 -0
  217. package/dist/packages/components/Decorates/Decorates/Decorates02/config.d.ts +16 -0
  218. package/dist/packages/components/Decorates/Decorates/Decorates02/index.d.ts +2 -0
  219. package/dist/packages/components/Decorates/Decorates/Decorates03/config.d.ts +27 -0
  220. package/dist/packages/components/Decorates/Decorates/Decorates03/index.d.ts +2 -0
  221. package/dist/packages/components/Decorates/Decorates/Decorates04/config.d.ts +14 -0
  222. package/dist/packages/components/Decorates/Decorates/Decorates04/index.d.ts +2 -0
  223. package/dist/packages/components/Decorates/Decorates/Decorates05/config.d.ts +14 -0
  224. package/dist/packages/components/Decorates/Decorates/Decorates05/index.d.ts +2 -0
  225. package/dist/packages/components/Decorates/Decorates/Decorates06/config.d.ts +27 -0
  226. package/dist/packages/components/Decorates/Decorates/Decorates06/index.d.ts +2 -0
  227. package/dist/packages/components/Decorates/Decorates/index.d.ts +2 -0
  228. package/dist/packages/components/Decorates/FlowChart/FlowChartLine/config.d.ts +22 -0
  229. package/dist/packages/components/Decorates/FlowChart/FlowChartLine/index.d.ts +2 -0
  230. package/dist/packages/components/Decorates/FlowChart/index.d.ts +2 -0
  231. package/dist/packages/components/Decorates/Mores/CirclePoint/config.d.ts +29 -0
  232. package/dist/packages/components/Decorates/Mores/CirclePoint/index.d.ts +2 -0
  233. package/dist/packages/components/Decorates/Mores/Clock/config.d.ts +18 -0
  234. package/dist/packages/components/Decorates/Mores/Clock/index.d.ts +2 -0
  235. package/dist/packages/components/Decorates/Mores/CountDown/config.d.ts +35 -0
  236. package/dist/packages/components/Decorates/Mores/CountDown/index.d.ts +2 -0
  237. package/dist/packages/components/Decorates/Mores/FlipperNumber/config.d.ts +31 -0
  238. package/dist/packages/components/Decorates/Mores/FlipperNumber/index.d.ts +2 -0
  239. package/dist/packages/components/Decorates/Mores/FullScreen/config.d.ts +25 -0
  240. package/dist/packages/components/Decorates/Mores/FullScreen/index.d.ts +2 -0
  241. package/dist/packages/components/Decorates/Mores/Number/config.d.ts +32 -0
  242. package/dist/packages/components/Decorates/Mores/Number/index.d.ts +2 -0
  243. package/dist/packages/components/Decorates/Mores/PipelineH/config.d.ts +27 -0
  244. package/dist/packages/components/Decorates/Mores/PipelineH/index.d.ts +2 -0
  245. package/dist/packages/components/Decorates/Mores/PipelineV/config.d.ts +27 -0
  246. package/dist/packages/components/Decorates/Mores/PipelineV/index.d.ts +2 -0
  247. package/dist/packages/components/Decorates/Mores/TimeCommon/config.d.ts +47 -0
  248. package/dist/packages/components/Decorates/Mores/TimeCommon/index.d.ts +2 -0
  249. package/dist/packages/components/Decorates/Mores/index.d.ts +2 -0
  250. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/Utils/arc.d.ts +11 -0
  251. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/Utils/common.d.ts +34 -0
  252. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/interfaces/IEvents.d.ts +3 -0
  253. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/interfaces/IWord.d.ts +6 -0
  254. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Assets.d.ts +13 -0
  255. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Basic.d.ts +22 -0
  256. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Earth.d.ts +98 -0
  257. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Resources.d.ts +16 -0
  258. package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Word.d.ts +25 -0
  259. package/dist/packages/components/Decorates/Three/ThreeEarth01/config.d.ts +43 -0
  260. package/dist/packages/components/Decorates/Three/ThreeEarth01/data.json.d.ts +87 -0
  261. package/dist/packages/components/Decorates/Three/ThreeEarth01/index.d.ts +2 -0
  262. package/dist/packages/components/Decorates/Three/index.d.ts +2 -0
  263. package/dist/packages/components/Decorates/index.d.ts +15 -0
  264. package/dist/packages/components/Icons/Common/index.d.ts +21 -0
  265. package/dist/packages/components/Icons/Default/Icon/config.d.ts +27 -0
  266. package/dist/packages/components/Icons/Default/Icon/index.d.ts +2 -0
  267. package/dist/packages/components/Icons/MaterialLine/index.d.ts +21 -0
  268. package/dist/packages/components/Icons/Weather/index.d.ts +21 -0
  269. package/dist/packages/components/Icons/index.d.ts +13 -0
  270. package/dist/packages/components/Informations/Mores/CardCustom/config.d.ts +42 -0
  271. package/dist/packages/components/Informations/Mores/CardCustom/index.d.ts +2 -0
  272. package/dist/packages/components/Informations/Mores/Iframe/config.d.ts +23 -0
  273. package/dist/packages/components/Informations/Mores/Iframe/index.d.ts +2 -0
  274. package/dist/packages/components/Informations/Mores/Image/config.d.ts +16 -0
  275. package/dist/packages/components/Informations/Mores/Image/index.d.ts +2 -0
  276. package/dist/packages/components/Informations/Mores/ImageCarousel/config.d.ts +36 -0
  277. package/dist/packages/components/Informations/Mores/ImageCarousel/index.d.ts +2 -0
  278. package/dist/packages/components/Informations/Mores/MissingComponent/config.d.ts +20 -0
  279. package/dist/packages/components/Informations/Mores/MissingComponent/index.d.ts +2 -0
  280. package/dist/packages/components/Informations/Mores/Video/config.d.ts +20 -0
  281. package/dist/packages/components/Informations/Mores/Video/index.d.ts +2 -0
  282. package/dist/packages/components/Informations/Mores/index.d.ts +2 -0
  283. package/dist/packages/components/Informations/index.d.ts +1 -0
  284. package/dist/packages/components/Photos/Private/index.d.ts +23 -0
  285. package/dist/packages/components/Photos/Share/index.d.ts +21 -0
  286. package/dist/packages/components/Photos/index.d.ts +9 -0
  287. package/dist/packages/index.d.ts +252 -0
  288. package/dist/packages/public/chart.d.ts +8 -0
  289. package/dist/packages/public/index.d.ts +2 -0
  290. package/dist/packages/public/publicConfig.d.ts +80 -0
  291. package/dist/packages/registry.d.ts +34 -0
  292. package/dist/plugins/customComponents.d.ts +6 -0
  293. package/dist/plugins/directives.d.ts +6 -0
  294. package/dist/plugins/icon.d.ts +110 -0
  295. package/dist/plugins/index.d.ts +4 -0
  296. package/dist/plugins/initFunction.d.ts +4 -0
  297. package/dist/plugins/naive.d.ts +2 -0
  298. package/dist/pondIndex.vue_vue_type_style_index_0_scoped_3ac883be_lang-8afe2387.js +2371 -0
  299. package/dist/pondIndex.vue_vue_type_style_index_0_scoped_3ac883be_lang-8afe2387.js.map +1 -0
  300. package/dist/published/chartItemSetting.d.ts +1 -0
  301. package/dist/published/chartThemes.d.ts +1 -0
  302. package/dist/published/designSetting.d.ts +1 -0
  303. package/dist/published/eventEnums.d.ts +1 -0
  304. package/dist/published/hooks.d.ts +1 -0
  305. package/dist/published/informationTypes.d.ts +1 -0
  306. package/dist/published/plugins.d.ts +1 -0
  307. package/dist/published/public.d.ts +1 -0
  308. package/dist/published/scaleHook.d.ts +1 -0
  309. package/dist/published/store.d.ts +1 -0
  310. package/dist/published/types.d.ts +1 -0
  311. package/dist/published/utils.d.ts +1 -0
  312. package/dist/published/vchartAxisTheme.d.ts +2 -0
  313. package/dist/published/vchartThemes.d.ts +1 -0
  314. package/dist/runtime.d.ts +10 -0
  315. package/dist/settings/animations/index.d.ts +7 -0
  316. package/dist/settings/chartThemes/global.theme.json.d.ts +113 -0
  317. package/dist/settings/chartThemes/index.d.ts +194 -0
  318. package/dist/settings/chartThemes/themes/chalk.json.d.ts +15 -0
  319. package/dist/settings/chartThemes/themes/customed.json.d.ts +16 -0
  320. package/dist/settings/chartThemes/themes/dark.json.d.ts +16 -0
  321. package/dist/settings/chartThemes/themes/essos.json.d.ts +13 -0
  322. package/dist/settings/chartThemes/themes/macarons.json.d.ts +27 -0
  323. package/dist/settings/chartThemes/themes/purple-passion.json.d.ts +13 -0
  324. package/dist/settings/chartThemes/themes/roma.json.d.ts +27 -0
  325. package/dist/settings/chartThemes/themes/shine.json.d.ts +15 -0
  326. package/dist/settings/chartThemes/themes/vintage.json.d.ts +17 -0
  327. package/dist/settings/chartThemes/themes/walden.json.d.ts +13 -0
  328. package/dist/settings/chartThemes/themes/westeros.json.d.ts +13 -0
  329. package/dist/settings/chartThemes/themes/wonderland.json.d.ts +13 -0
  330. package/dist/settings/designColor.json.d.ts +3680 -0
  331. package/dist/settings/designColorRecommend.json.d.ts +33 -0
  332. package/dist/settings/designSetting.d.ts +32 -0
  333. package/dist/settings/pathConst.d.ts +3 -0
  334. package/dist/settings/systemSetting.d.ts +10 -0
  335. package/dist/settings/vchartThemes/index.d.ts +138 -0
  336. package/dist/store/index.d.ts +12 -0
  337. package/dist/store/modules/chartEditStore/chartEditStore.d.ts +213 -0
  338. package/dist/store/modules/chartHistoryStore/chartHistoryDefine.d.ts +20 -0
  339. package/dist/store/modules/chartHistoryStore/chartHistoryStore.d.ts +77 -0
  340. package/dist/store/modules/chartLayoutStore/chartLayoutStore.d.ts +36 -0
  341. package/dist/store/modules/designStore/designStore.d.ts +18 -0
  342. package/dist/store/modules/langStore/langStore.d.ts +5 -0
  343. package/dist/store/modules/packagesStore/packagesStore.d.ts +6 -0
  344. package/dist/store/modules/settingStore/settingStore.d.ts +31 -0
  345. package/dist/style.css +7 -0
  346. package/dist/types/global.d.ts +31 -0
  347. package/dist/types/shims-vue.d.ts +5 -0
  348. package/dist/useSyncUpdate.hook-f291c525.js +43 -0
  349. package/dist/useSyncUpdate.hook-f291c525.js.map +1 -0
  350. package/dist/useTargetData.hook-832cc980.js +13 -0
  351. package/dist/useTargetData.hook-832cc980.js.map +1 -0
  352. package/dist/utils/components.d.ts +12 -0
  353. package/dist/utils/crypto.d.ts +12 -0
  354. package/dist/utils/file.d.ts +19 -0
  355. package/dist/utils/index.d.ts +9 -0
  356. package/dist/utils/plugin.d.ts +29 -0
  357. package/dist/utils/router.d.ts +20 -0
  358. package/dist/utils/storage.d.ts +35 -0
  359. package/dist/utils/style.d.ts +141 -0
  360. package/dist/utils/type.d.ts +8 -0
  361. package/dist/utils/utils.d.ts +127 -0
  362. package/dist/views/chart/ContentBox/index.d.ts +2 -0
  363. package/dist/views/chart/ContentBox/index.vue.d.ts +87 -0
  364. package/dist/views/chart/ContentCharts/components/ChartsItemBox/index.d.ts +2 -0
  365. package/dist/views/chart/ContentCharts/components/ChartsItemBox/index.vue.d.ts +22 -0
  366. package/dist/views/chart/ContentCharts/components/ChartsOptionContent/index.d.ts +2 -0
  367. package/dist/views/chart/ContentCharts/components/ChartsOptionContent/index.vue.d.ts +14 -0
  368. package/dist/views/chart/ContentCharts/components/ChartsSearch/index.d.ts +2 -0
  369. package/dist/views/chart/ContentCharts/components/ChartsSearch/index.vue.d.ts +14 -0
  370. package/dist/views/chart/ContentCharts/hooks/useAside.hook.d.ts +17 -0
  371. package/dist/views/chart/ContentCharts/hooks/useLayout.hook.d.ts +5 -0
  372. package/dist/views/chart/ContentCharts/index.d.ts +2 -0
  373. package/dist/views/chart/ContentCharts/index.vue.d.ts +2 -0
  374. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/ChartThemeColor/index.vue.d.ts +2 -0
  375. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColor/index.vue.d.ts +14 -0
  376. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRender/index.d.ts +2 -0
  377. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRender/index.vue.d.ts +16 -0
  378. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/barOptions.d.ts +2 -0
  379. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.d.ts +2 -0
  380. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.vue.d.ts +16 -0
  381. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/lineOptions.d.ts +2 -0
  382. package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/VChartThemeColor/index.vue.d.ts +2 -0
  383. package/dist/views/chart/ContentConfigurations/components/CanvasPage/index.d.ts +2 -0
  384. package/dist/views/chart/ContentConfigurations/components/CanvasPage/index.vue.d.ts +2 -0
  385. package/dist/views/chart/ContentConfigurations/components/ChartAnimation/index.vue.d.ts +2 -0
  386. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataAjax/index.d.ts +2 -0
  387. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataAjax/index.vue.d.ts +2 -0
  388. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.d.ts +2 -0
  389. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.vue.d.ts +22 -0
  390. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMonacoEditor/index.d.ts +2 -0
  391. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMonacoEditor/index.vue.d.ts +2 -0
  392. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataDisplay/displayTable.vue.d.ts +8 -0
  393. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataDisplay/index.d.ts +2 -0
  394. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataDisplay/index.vue.d.ts +10 -0
  395. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondControl/index.d.ts +2 -0
  396. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondControl/index.vue.d.ts +14 -0
  397. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondList/index.d.ts +2 -0
  398. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondList/index.vue.d.ts +8 -0
  399. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/index.d.ts +2 -0
  400. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/index.vue.d.ts +2 -0
  401. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestGlobalConfig/index.d.ts +2 -0
  402. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestGlobalConfig/index.vue.d.ts +2 -0
  403. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestGlobalHeaderTable/index.d.ts +2 -0
  404. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestGlobalHeaderTable/index.vue.d.ts +14 -0
  405. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestHeader/index.d.ts +2 -0
  406. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestHeader/index.vue.d.ts +8 -0
  407. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestHeaderTable/index.d.ts +2 -0
  408. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestHeaderTable/index.vue.d.ts +33 -0
  409. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestTargetConfig/index.d.ts +2 -0
  410. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestTargetConfig/index.vue.d.ts +8 -0
  411. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/index.d.ts +3 -0
  412. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/index.vue.d.ts +20 -0
  413. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/pondIndex.vue.d.ts +20 -0
  414. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataStatic/index.d.ts +2 -0
  415. package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataStatic/index.vue.d.ts +2 -0
  416. package/dist/views/chart/ContentConfigurations/components/ChartData/hooks/useFile.hooks.d.ts +9 -0
  417. package/dist/views/chart/ContentConfigurations/components/ChartData/index.d.ts +104 -0
  418. package/dist/views/chart/ContentConfigurations/components/ChartData/index.vue.d.ts +2 -0
  419. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventAdvancedHandle/importTemplate.d.ts +4 -0
  420. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventAdvancedHandle/index.d.ts +2 -0
  421. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventAdvancedHandle/index.vue.d.ts +2 -0
  422. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventBaseHandle/index.d.ts +2 -0
  423. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventBaseHandle/index.vue.d.ts +2 -0
  424. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventInteraction/index.d.ts +2 -0
  425. package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventInteraction/index.vue.d.ts +2 -0
  426. package/dist/views/chart/ContentConfigurations/components/ChartEvent/index.vue.d.ts +2 -0
  427. package/dist/views/chart/ContentConfigurations/components/ChartSetting/index.vue.d.ts +2 -0
  428. package/dist/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.d.ts +56 -0
  429. package/dist/views/chart/ContentConfigurations/index.d.ts +2 -0
  430. package/dist/views/chart/ContentConfigurations/index.vue.d.ts +2 -0
  431. package/dist/views/chart/ContentEdit/components/EditAlignLine/index.d.ts +2 -0
  432. package/dist/views/chart/ContentEdit/components/EditAlignLine/index.vue.d.ts +2 -0
  433. package/dist/views/chart/ContentEdit/components/EditBottom/index.d.ts +2 -0
  434. package/dist/views/chart/ContentEdit/components/EditBottom/index.vue.d.ts +4 -0
  435. package/dist/views/chart/ContentEdit/components/EditGroup/index.d.ts +2 -0
  436. package/dist/views/chart/ContentEdit/components/EditGroup/index.vue.d.ts +22 -0
  437. package/dist/views/chart/ContentEdit/components/EditHistory/index.d.ts +2 -0
  438. package/dist/views/chart/ContentEdit/components/EditHistory/index.vue.d.ts +2 -0
  439. package/dist/views/chart/ContentEdit/components/EditRange/index.d.ts +2 -0
  440. package/dist/views/chart/ContentEdit/components/EditRange/index.vue.d.ts +9 -0
  441. package/dist/views/chart/ContentEdit/components/EditRule/index.d.ts +2 -0
  442. package/dist/views/chart/ContentEdit/components/EditRule/index.vue.d.ts +13 -0
  443. package/dist/views/chart/ContentEdit/components/EditSelect/index.d.ts +2 -0
  444. package/dist/views/chart/ContentEdit/components/EditSelect/index.vue.d.ts +2 -0
  445. package/dist/views/chart/ContentEdit/components/EditShapeBox/index.d.ts +2 -0
  446. package/dist/views/chart/ContentEdit/components/EditShapeBox/index.vue.d.ts +31 -0
  447. package/dist/views/chart/ContentEdit/components/EditShortcutKey/ShortcutKeyModal.vue.d.ts +12 -0
  448. package/dist/views/chart/ContentEdit/components/EditShortcutKey/index.d.ts +2 -0
  449. package/dist/views/chart/ContentEdit/components/EditShortcutKey/index.vue.d.ts +2 -0
  450. package/dist/views/chart/ContentEdit/components/EditTools/hooks/useFile.hooks.d.ts +8 -0
  451. package/dist/views/chart/ContentEdit/components/EditTools/hooks/useSyncUpdate.hook.d.ts +3 -0
  452. package/dist/views/chart/ContentEdit/components/EditTools/index.d.ts +12 -0
  453. package/dist/views/chart/ContentEdit/components/EditTools/index.vue.d.ts +2 -0
  454. package/dist/views/chart/ContentEdit/components/EditTools/utils/index.d.ts +1 -0
  455. package/dist/views/chart/ContentEdit/components/EditWatermark/index.d.ts +2 -0
  456. package/dist/views/chart/ContentEdit/components/EditWatermark/index.vue.d.ts +2 -0
  457. package/dist/views/chart/ContentEdit/hooks/useDrag.hook.d.ts +12 -0
  458. package/dist/views/chart/ContentEdit/hooks/useLayout.hook.d.ts +1 -0
  459. package/dist/views/chart/ContentEdit/hooks/useStyle.hook.d.ts +16 -0
  460. package/dist/views/chart/ContentEdit/index.d.ts +2 -0
  461. package/dist/views/chart/ContentEdit/index.vue.d.ts +2 -0
  462. package/dist/views/chart/ContentHeader/headerLeftBtn/index.d.ts +2 -0
  463. package/dist/views/chart/ContentHeader/headerLeftBtn/index.vue.d.ts +2 -0
  464. package/dist/views/chart/ContentHeader/headerRightBtn/index.d.ts +2 -0
  465. package/dist/views/chart/ContentHeader/headerRightBtn/index.vue.d.ts +4 -0
  466. package/dist/views/chart/ContentHeader/headerTitle/index.d.ts +2 -0
  467. package/dist/views/chart/ContentHeader/headerTitle/index.vue.d.ts +4 -0
  468. package/dist/views/chart/ContentLayers/components/LayersGroupListItem/index.d.ts +2 -0
  469. package/dist/views/chart/ContentLayers/components/LayersGroupListItem/index.vue.d.ts +25 -0
  470. package/dist/views/chart/ContentLayers/components/LayersListItem/index.d.ts +2 -0
  471. package/dist/views/chart/ContentLayers/components/LayersListItem/index.vue.d.ts +34 -0
  472. package/dist/views/chart/ContentLayers/components/LayersStatus/index.d.ts +2 -0
  473. package/dist/views/chart/ContentLayers/components/LayersStatus/index.vue.d.ts +40 -0
  474. package/dist/views/chart/ContentLayers/enums.d.ts +0 -0
  475. package/dist/views/chart/ContentLayers/index.d.ts +2 -0
  476. package/dist/views/chart/ContentLayers/index.vue.d.ts +2 -0
  477. package/dist/views/chart/ContentLoad/index.d.ts +2 -0
  478. package/dist/views/chart/ContentLoad/index.vue.d.ts +2 -0
  479. package/dist/views/chart/hooks/useContextMenu.hook.d.ts +10 -0
  480. package/dist/views/chart/hooks/useKeyboard.hook.d.ts +38 -0
  481. package/dist/views/chart/hooks/useScale.hook.d.ts +24 -0
  482. package/dist/views/chart/hooks/useSync.hook.d.ts +4 -0
  483. package/dist/views/chart/index.vue.d.ts +13 -0
  484. package/dist/views/preview/components/PreviewRenderGroup/index.d.ts +2 -0
  485. package/dist/views/preview/components/PreviewRenderGroup/index.vue.d.ts +38 -0
  486. package/dist/views/preview/components/PreviewRenderList/index.d.ts +2 -0
  487. package/dist/views/preview/components/PreviewRenderList/index.vue.d.ts +2 -0
  488. package/dist/views/preview/hooks/useComInstall.hook.d.ts +4 -0
  489. package/dist/views/preview/hooks/useScale.hook.d.ts +16 -0
  490. package/dist/views/preview/hooks/useStore.hook.d.ts +2 -0
  491. package/dist/views/preview/index.d.ts +4 -0
  492. package/dist/views/preview/suspenseIndex.vue.d.ts +5 -0
  493. package/dist/views/preview/utils/drag.d.ts +1 -0
  494. package/dist/views/preview/utils/index.d.ts +4 -0
  495. package/dist/views/preview/utils/keyboard.d.ts +1 -0
  496. package/dist/views/preview/utils/storage.d.ts +5 -0
  497. package/dist/views/preview/utils/style.d.ts +25 -0
  498. package/package.json +136 -0
@@ -0,0 +1,1183 @@
1
+ import { defineComponent as X, computed as oe, resolveComponent as a, unref as r, openBlock as s, createBlock as w, withCtx as e, createVNode as t, withModifiers as ee, createTextVNode as k, createElementBlock as p, createElementVNode as o, createCommentVNode as j, Fragment as x, renderList as O, toDisplayString as y, withDirectives as ie, vShow as de, ref as U, watch as ae } from "vue";
2
+ import { aE as le, ax as J, ay as ue, p as te, aF as ce, k as pe, q as _e, aD as me, _ as ne, aG as q, aH as ve, aI as D } from "./index-237a6823.js";
3
+ import "element-plus";
4
+ import "screenfull";
5
+ import "lodash/throttle";
6
+ import "html2canvas";
7
+ import "lodash/isObject";
8
+ import "lodash/cloneDeep";
9
+ import "crypto-js";
10
+ import "vue3-lazyload";
11
+ import "vue3-sketch-ruler";
12
+ import { n as fe } from "./noData-63b54dc3.js";
13
+ import { u as Q } from "./useTargetData.hook-832cc980.js";
14
+ import { M as se } from "./index-8d8dc1d2.js";
15
+ import "highlight.js/lib/core";
16
+ import "highlight.js/lib/languages/json";
17
+ import "highlight.js/lib/languages/typescript";
18
+ import "lodash";
19
+ import "element-plus/es/locale/lang/zh-cn";
20
+ import "element-plus/es/locale/lang/en";
21
+ import "pinia";
22
+ import "vue-i18n";
23
+ import "vue-demi";
24
+ import "lodash/debounce";
25
+ import "lodash/merge";
26
+ import "lodash/pick";
27
+ import "axios";
28
+ import "three";
29
+ import "three/examples/jsm/controls/OrbitControls";
30
+ import "gsap";
31
+ import "vue3-sketch-ruler/lib/style.css";
32
+ import "monaco-editor/esm/vs/editor/editor.api.js";
33
+ import "monaco-editor";
34
+ import "monaco-editor/esm/vs/editor/editor.worker?worker";
35
+ import "monaco-editor/esm/vs/language/json/json.worker?worker";
36
+ import "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
37
+ import "monaco-editor/esm/vs/language/html/html.worker?worker";
38
+ const ye = {
39
+ key: 0,
40
+ class: "no-data go-flex-center"
41
+ }, ge = ["src"], be = { style: { display: "flex", "justify-content": "space-between", "align-items": "center" } }, xe = {
42
+ key: 0,
43
+ class: "el-input-group"
44
+ }, Ee = {
45
+ class: "go-pt-1",
46
+ style: { color: "var(--el-text-color-secondary)" }
47
+ }, he = /* @__PURE__ */ X({
48
+ __name: "index",
49
+ setup(Y) {
50
+ const { CloseIcon: _, AddIcon: R, HelpOutlineIcon: A } = te.ionicons5, { targetData: m, chartEditStore: $ } = Q(), S = [le.PARAMS, le.HEADER], V = oe(() => {
51
+ var n;
52
+ const l = (n = m.value) == null ? void 0 : n.interactActions;
53
+ return l ? l.map((d) => ({
54
+ label: d.interactName,
55
+ value: d.interactType
56
+ })) : [];
57
+ }), I = oe(() => {
58
+ var l;
59
+ return ((l = m.value) == null ? void 0 : l.option) || {};
60
+ }), F = (l, n) => {
61
+ var E, f;
62
+ if (!l)
63
+ return {};
64
+ const d = (E = $.requestGlobalConfig.requestDataPond.find((c) => c.dataPondId === l)) == null ? void 0 : E.dataPondRequestConfig.requestParams;
65
+ return d ? d[n] : (f = $.componentList[$.fetchTargetIndex(l)]) == null ? void 0 : f.request.requestParams[n];
66
+ }, L = (l) => {
67
+ var d;
68
+ if (!l || !((d = m.value) != null && d.interactActions))
69
+ return [];
70
+ const n = m.value.interactActions.find((E) => E.interactType === l);
71
+ return (n == null ? void 0 : n.componentEmitEvents[I.value[ce]]) || [];
72
+ }, B = () => {
73
+ if (!m.value)
74
+ return [];
75
+ const l = m.value.id, n = m.value.events.interactEvents, d = (v) => v.reduce(
76
+ (C, g) => (!g.groupList && g.request.requestDataType === me.AJAX && g.request.requestUrl && C.push(g), g.groupList && g.groupList.length > 0 ? [...C, ...d(g.groupList)] : C),
77
+ []
78
+ ), f = d($.componentList).filter((v) => {
79
+ const C = v.id !== l, g = v.chartConfig.chartFrame !== pe.STATIC, M = !v.isGroup;
80
+ return C && g && M;
81
+ }).map((v) => ({
82
+ id: v.id,
83
+ title: v.chartConfig.title,
84
+ disabled: !1,
85
+ type: "componentList"
86
+ })), T = $.requestGlobalConfig.requestDataPond.map((v) => ({
87
+ id: v.dataPondId,
88
+ title: v.dataPondName,
89
+ disabled: !1,
90
+ type: "requestDataPond"
91
+ })).concat(f);
92
+ return n == null || n.forEach((v) => {
93
+ T.forEach((C) => {
94
+ C.id === v.interactComponentId && (C.disabled = !0);
95
+ });
96
+ }), T;
97
+ }, z = () => {
98
+ m.value && m.value.events.interactEvents.push({
99
+ interactOn: void 0,
100
+ interactComponentId: void 0,
101
+ interactFn: {}
102
+ });
103
+ }, N = (l) => {
104
+ _e({
105
+ message: "是否删除此关联交互模块?",
106
+ onPositiveCallback: () => {
107
+ m.value && m.value.events.interactEvents.splice(l, 1);
108
+ }
109
+ });
110
+ };
111
+ return (l, n) => {
112
+ const d = a("el-icon"), E = a("el-button"), f = a("el-divider"), c = a("el-tag"), T = a("el-option"), v = a("el-select"), C = a("el-tooltip"), g = a("el-table-column"), M = a("el-table"), P = a("el-card"), H = a("el-collapse-item");
113
+ return r(m) && V.value.length ? (s(), w(H, {
114
+ key: 0,
115
+ title: "组件交互",
116
+ name: "1"
117
+ }, {
118
+ "header-extra": e(() => [
119
+ t(E, {
120
+ type: "primary",
121
+ text: "",
122
+ size: "small",
123
+ onClick: ee(z, ["stop"])
124
+ }, {
125
+ icon: e(() => [
126
+ t(d, null, {
127
+ default: e(() => [
128
+ t(r(R))
129
+ ]),
130
+ _: 1
131
+ })
132
+ ]),
133
+ default: e(() => [
134
+ n[0] || (n[0] = k(" 新增 "))
135
+ ]),
136
+ _: 1,
137
+ __: [0]
138
+ })
139
+ ]),
140
+ default: e(() => {
141
+ var G, u, i;
142
+ return [
143
+ (u = (G = r(m)) == null ? void 0 : G.events.interactEvents) != null && u.length ? j("", !0) : (s(), p("div", ye, [
144
+ o("img", {
145
+ src: r(fe),
146
+ alt: "暂无数据"
147
+ }, null, 8, ge),
148
+ n[1] || (n[1] = o("span", { style: { color: "var(--el-text-color-secondary)" } }, "暂无内容", -1))
149
+ ])),
150
+ (s(!0), p(x, null, O(((i = r(m)) == null ? void 0 : i.events.interactEvents) || [], (b, K) => (s(), w(P, {
151
+ key: K,
152
+ class: "n-card-shallow",
153
+ shadow: "never"
154
+ }, {
155
+ default: e(() => [
156
+ o("div", be, [
157
+ o("span", null, "关联组件 - " + y(K + 1), 1),
158
+ t(E, {
159
+ type: "danger",
160
+ text: "",
161
+ size: "small",
162
+ onClick: (h) => N(K)
163
+ }, {
164
+ icon: e(() => [
165
+ t(d, null, {
166
+ default: e(() => [
167
+ t(r(_))
168
+ ]),
169
+ _: 1
170
+ })
171
+ ]),
172
+ _: 2
173
+ }, 1032, ["onClick"])
174
+ ]),
175
+ t(f, { style: { margin: "10px 0" } }),
176
+ t(c, { type: "primary" }, {
177
+ default: e(() => n[2] || (n[2] = [
178
+ k(" 选择目标组件 ")
179
+ ])),
180
+ _: 1,
181
+ __: [2]
182
+ }),
183
+ t(r(J), {
184
+ name: "触发事件",
185
+ alone: !0
186
+ }, {
187
+ default: e(() => [
188
+ V.value ? (s(), p("div", xe, [
189
+ t(v, {
190
+ class: "select-type-options",
191
+ modelValue: b.interactOn,
192
+ "onUpdate:modelValue": (h) => b.interactOn = h,
193
+ size: "small"
194
+ }, {
195
+ default: e(() => [
196
+ (s(!0), p(x, null, O(V.value, (h) => (s(), w(T, {
197
+ key: h.value,
198
+ label: h.label,
199
+ value: h.value
200
+ }, null, 8, ["label", "value"]))), 128))
201
+ ]),
202
+ _: 2
203
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
204
+ ])) : j("", !0)
205
+ ]),
206
+ _: 2
207
+ }, 1024),
208
+ t(r(J), { alone: !0 }, {
209
+ name: e(() => [
210
+ n[3] || (n[3] = o("span", null, "绑定", -1)),
211
+ t(C, {
212
+ content: "不支持「静态组件」支持「组件」「公共APi」",
213
+ placement: "top"
214
+ }, {
215
+ default: e(() => [
216
+ t(d, {
217
+ size: "21",
218
+ style: { color: "var(--el-text-color-secondary)" }
219
+ }, {
220
+ default: e(() => [
221
+ t(r(A))
222
+ ]),
223
+ _: 1
224
+ })
225
+ ]),
226
+ _: 1
227
+ })
228
+ ]),
229
+ default: e(() => [
230
+ t(v, {
231
+ class: "select-type-options",
232
+ "value-key": "id",
233
+ size: "small",
234
+ filterable: "",
235
+ placeholder: "仅展示符合条件的组件",
236
+ modelValue: b.interactComponentId,
237
+ "onUpdate:modelValue": (h) => b.interactComponentId = h
238
+ }, {
239
+ default: e(() => [
240
+ (s(!0), p(x, null, O(B(), (h) => (s(), w(T, {
241
+ key: h.id,
242
+ label: h.title,
243
+ value: h.id,
244
+ disabled: h.disabled
245
+ }, null, 8, ["label", "value", "disabled"]))), 128))
246
+ ]),
247
+ _: 2
248
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
249
+ ]),
250
+ _: 2
251
+ }, 1024),
252
+ L(b.interactOn).length ? (s(), w(r(J), {
253
+ key: 0,
254
+ name: "查询结果",
255
+ alone: !0
256
+ }, {
257
+ default: e(() => [
258
+ t(M, {
259
+ data: L(b.interactOn),
260
+ size: "small",
261
+ stripe: ""
262
+ }, {
263
+ default: e(() => [
264
+ t(g, {
265
+ prop: "value",
266
+ label: "参数"
267
+ }),
268
+ t(g, {
269
+ prop: "label",
270
+ label: "说明"
271
+ })
272
+ ]),
273
+ _: 2
274
+ }, 1032, ["data"])
275
+ ]),
276
+ _: 2
277
+ }, 1024)) : j("", !0),
278
+ t(c, { type: "primary" }, {
279
+ default: e(() => n[4] || (n[4] = [
280
+ k(" 关联目标请求参数 ")
281
+ ])),
282
+ _: 1,
283
+ __: [4]
284
+ }),
285
+ (s(), p(x, null, O(S, (h) => t(r(J), {
286
+ name: h,
287
+ key: h
288
+ }, {
289
+ default: e(() => [
290
+ (s(!0), p(x, null, O(F(b.interactComponentId, h), (it, Z, re) => (s(), w(r(ue), {
291
+ key: re,
292
+ name: `${Z}`
293
+ }, {
294
+ default: e(() => [
295
+ t(v, {
296
+ size: "small",
297
+ modelValue: b.interactFn[Z],
298
+ "onUpdate:modelValue": (W) => b.interactFn[Z] = W,
299
+ clearable: ""
300
+ }, {
301
+ default: e(() => [
302
+ (s(!0), p(x, null, O(L(b.interactOn), (W) => (s(), w(T, {
303
+ key: W.value,
304
+ label: W.label,
305
+ value: W.value
306
+ }, null, 8, ["label", "value"]))), 128))
307
+ ]),
308
+ _: 2
309
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
310
+ ]),
311
+ _: 2
312
+ }, 1032, ["name"]))), 128)),
313
+ ie(o("span", Ee, " 暂无数据 ", 512), [
314
+ [de, JSON.stringify(F(b.interactComponentId, h)) === "{}"]
315
+ ])
316
+ ]),
317
+ _: 2
318
+ }, 1032, ["name"])), 64))
319
+ ]),
320
+ _: 2
321
+ }, 1024))), 128))
322
+ ];
323
+ }),
324
+ _: 1
325
+ })) : j("", !0);
326
+ };
327
+ }
328
+ });
329
+ const ke = /* @__PURE__ */ ne(he, [["__scopeId", "data-v-fa141194"]]), Ce = `
330
+ console.log(e)
331
+ `, Oe = `
332
+ console.log(echarts)
333
+ `, Ve = `
334
+ console.log(components)
335
+ `, Te = `
336
+ console.log(node_modules)
337
+ `, we = `
338
+ // 在渲染之后才能获取 dom 实例
339
+ e.el.addEventListener('click', () => {
340
+ alert('我触发啦~');
341
+ }, false)
342
+ `, $e = `
343
+ await import('https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/lodash.js/4.17.21/lodash.js')
344
+
345
+ // lodash 默认赋值给 "_"
346
+ console.log('isEqual', _.isEqual(['1'], ['1']))
347
+ `, De = `
348
+ // 获取 echart 实例
349
+ const chart = this.refs.vChartRef.chart
350
+
351
+ // 图表设置 tooltip
352
+ chart.setOption({
353
+ tooltip: {
354
+ trigger: 'axis', // item
355
+ enterable: true,
356
+ formatter (params) {
357
+ return\`
358
+ <div>
359
+ <img src="https://portrait.gitee.com/uploads/avatars/user/1654/4964818_MTrun_1653229420.png!avatar30">
360
+ <b><a href="https://gitee.com/dromara/hgdataview">《这是一个自定义的 tooltip》</a></b>
361
+ <div>
362
+ <div style='border-radius:35px;color:#666'>
363
+ \${Object.entries(params[0].value).map(kv => \`<div>\${kv[0]}:\${kv[1]}</div>\`).join('')}
364
+ </div>
365
+ \`;
366
+ },
367
+ }
368
+ })
369
+ `, Se = `
370
+ // 组件样式作用域标识
371
+ const scoped = this.subTree.scopeId
372
+ function loadStyleString(css){
373
+ let style = document.createElement('style')
374
+ style.type = 'text/css'
375
+ style.appendChild(document.createTextNode(css))
376
+ let head = document.getElementsByTagName('head')[0]
377
+ head.appendChild(style)
378
+ }
379
+ loadStyleString(\`
380
+ .dv-scroll-board[\${scoped}] {
381
+ position: relative;
382
+ overflow: hidden;
383
+ }
384
+ .dv-scroll-board[\${scoped}]::before {
385
+ content: '';
386
+ display: block;
387
+ position: absolute;
388
+ top: -20%;
389
+ left: -100%;
390
+ width: 550px;
391
+ height: 60px;
392
+ transform: rotate(-45deg);
393
+ background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0));
394
+ animation: cross 2s infinite;
395
+ }
396
+ @keyframes cross{
397
+ to{
398
+ top: 80%;
399
+ left: 100%;
400
+ transform: rotate(-45deg);
401
+ }
402
+ }
403
+ \`)
404
+ `, Ie = `
405
+ const chart = this.refs.vChartRef.chart
406
+ // 定义地图原点大小,同理可自定义标签等内容
407
+ this.props.chartConfig.option.series[0].symbolSize = (val) => {
408
+ return Math.sqrt(val[2]) / 3;
409
+ }
410
+ this.setupState.vEchartsSetOption();
411
+ let i = 0; // 当前轮播索引
412
+ const len = 3; // 轮播部分提示
413
+ (function showTips() {
414
+ const action = (type, dataIndex) => {
415
+ chart.dispatchAction({
416
+ type,
417
+ dataIndex,
418
+ seriesIndex: 0,
419
+ });
420
+ }
421
+ setInterval(() => {
422
+ action("downplay", i);
423
+ action("hideTip", i);
424
+ if (i === len) i = 0;
425
+ i++;
426
+ action("highlight", i);
427
+ action("showTip", i);
428
+ }, 2000);
429
+ })()
430
+ `, Ne = [
431
+ {
432
+ description: "获取当前组件实例",
433
+ code: Ce
434
+ },
435
+ {
436
+ description: "获取全局 echarts 实例",
437
+ code: Oe
438
+ },
439
+ {
440
+ description: "获取组件图表集合",
441
+ code: Ve
442
+ },
443
+ {
444
+ description: "获取 nodeModules 实例",
445
+ code: Te
446
+ },
447
+ {
448
+ description: "获取远程 CDN 资源",
449
+ code: $e
450
+ },
451
+ {
452
+ description: "设置文字组件点击事件",
453
+ code: we
454
+ },
455
+ {
456
+ description: "修改图表 tooltip",
457
+ code: De
458
+ },
459
+ {
460
+ description: "添加【轮播列表】样式",
461
+ code: Se
462
+ },
463
+ {
464
+ description: "修改【地图】圆点,新增提示自动轮播",
465
+ code: Ie
466
+ }
467
+ ], Le = { class: "collapse-item-title" }, Me = { class: "func-annotate" }, Ae = { class: "func-keyword" }, Ue = { class: "go-ml-4" }, Fe = {
468
+ class: "tab-tip",
469
+ style: { color: "var(--el-color-warning)" }
470
+ }, Pe = { class: "go-pl-3" }, qe = { class: "func-keyNameWord" }, je = { style: { color: "var(--el-text-color-secondary)" } }, Re = { style: { color: "var(--el-text-color-secondary)" } }, Be = { style: { color: "var(--el-text-color-secondary)" } }, ze = { style: { display: "flex", "justify-content": "space-between", "align-items": "center" } }, Ge = { class: "go-flex-items-center" }, He = /* @__PURE__ */ X({
471
+ __name: "index",
472
+ setup(Y) {
473
+ var N;
474
+ const { targetData: _ } = Q(), { DocumentTextIcon: R, PencilIcon: A } = te.ionicons5, m = {
475
+ [q.VNODE_BEFORE_MOUNT]: "渲染之前",
476
+ [q.VNODE_MOUNTED]: "渲染之后"
477
+ }, $ = {
478
+ [q.VNODE_BEFORE_MOUNT]: "此时组件 DOM 还未存在",
479
+ [q.VNODE_MOUNTED]: "此时组件 DOM 已经存在"
480
+ }, S = U(!1), V = U(q.VNODE_MOUNTED);
481
+ let I = U({ ...((N = _.value) == null ? void 0 : N.events.advancedEvents) || {} });
482
+ const F = U(!1), L = () => {
483
+ let l = "", n = "", d = "";
484
+ return F.value = Object.entries(I.value).every(([E, f]) => {
485
+ try {
486
+ const c = Object.getPrototypeOf(async function() {
487
+ }).constructor;
488
+ return new c(f), !0;
489
+ } catch (c) {
490
+ return n = c.message, d = c.name, l = E, !1;
491
+ }
492
+ }), {
493
+ errorFn: l,
494
+ message: n,
495
+ name: d
496
+ };
497
+ }, B = () => {
498
+ S.value = !1;
499
+ }, z = () => {
500
+ if (_.value) {
501
+ if (L().errorFn) {
502
+ window.$message.error("事件函数错误,无法进行保存");
503
+ return;
504
+ }
505
+ Object.values(I.value).join("").trim() === "" ? _.value.events.advancedEvents = {
506
+ vnodeBeforeMount: void 0,
507
+ vnodeMounted: void 0
508
+ } : _.value.events.advancedEvents = { ...I.value }, B();
509
+ }
510
+ };
511
+ return ae(
512
+ () => S.value,
513
+ (l) => {
514
+ l && _.value && (I.value = { ..._.value.events.advancedEvents });
515
+ }
516
+ ), (l, n) => {
517
+ const d = a("el-icon"), E = a("el-button"), f = a("el-card"), c = a("el-collapse-item"), T = a("el-tab-pane"), v = a("el-tabs"), C = a("el-main"), g = a("el-collapse"), M = a("el-scrollbar"), P = a("el-tag"), H = a("el-aside"), G = a("el-container"), u = a("el-dialog");
518
+ return s(), p(x, null, [
519
+ r(_) ? (s(), w(c, {
520
+ key: 0,
521
+ name: "3"
522
+ }, {
523
+ title: e(() => [
524
+ o("div", Le, [
525
+ n[4] || (n[4] = o("span", null, "高级事件配置", -1)),
526
+ t(E, {
527
+ type: "primary",
528
+ text: "",
529
+ size: "small",
530
+ onClick: n[0] || (n[0] = ee((i) => S.value = !0, ["stop"]))
531
+ }, {
532
+ icon: e(() => [
533
+ t(d, null, {
534
+ default: e(() => [
535
+ t(r(A))
536
+ ]),
537
+ _: 1
538
+ })
539
+ ]),
540
+ default: e(() => [
541
+ n[3] || (n[3] = k(" 编辑 "))
542
+ ]),
543
+ _: 1,
544
+ __: [3]
545
+ })
546
+ ])
547
+ ]),
548
+ default: e(() => [
549
+ t(f, {
550
+ class: "collapse-show-box",
551
+ shadow: "never"
552
+ }, {
553
+ default: e(() => [
554
+ (s(!0), p(x, null, O(r(q), (i) => (s(), p("div", { key: i }, [
555
+ o("div", null, [
556
+ o("span", Me, "// " + y(m[i]), 1),
557
+ n[5] || (n[5] = o("br", null, null, -1)),
558
+ o("span", Ae, "async " + y(i), 1),
559
+ n[6] || (n[6] = k(" (e, components, node_modules) { "))
560
+ ]),
561
+ o("div", Ue, [
562
+ o("pre", null, [
563
+ o("code", null, y((r(_).events.advancedEvents || {})[i] || ""), 1)
564
+ ])
565
+ ]),
566
+ n[7] || (n[7] = o("div", null, [
567
+ k("}"),
568
+ o("span", null, ",")
569
+ ], -1))
570
+ ]))), 128))
571
+ ]),
572
+ _: 1
573
+ })
574
+ ]),
575
+ _: 1
576
+ })) : j("", !0),
577
+ t(u, {
578
+ class: "go-chart-data-monaco-editor",
579
+ modelValue: S.value,
580
+ "onUpdate:modelValue": n[2] || (n[2] = (i) => S.value = i),
581
+ "close-on-click-modal": !1,
582
+ width: "1200px"
583
+ }, {
584
+ header: e(() => n[8] || (n[8] = [
585
+ o("span", null, "高级事件编辑器(配合源码使用)", -1)
586
+ ])),
587
+ footer: e(() => [
588
+ o("div", ze, [
589
+ o("div", Ge, [
590
+ t(P, { type: "primary" }, {
591
+ icon: e(() => [
592
+ t(d, { component: r(R) }, null, 8, ["component"])
593
+ ]),
594
+ default: e(() => [
595
+ n[17] || (n[17] = k(" 说明 "))
596
+ ]),
597
+ _: 1,
598
+ __: [17]
599
+ }),
600
+ n[18] || (n[18] = o("span", {
601
+ class: "go-ml-2",
602
+ style: { color: "var(--el-text-color-secondary)" }
603
+ }, "通过提供的参数可为图表增加定制化的tooltip、交互事件等等", -1))
604
+ ]),
605
+ o("div", null, [
606
+ t(E, { onClick: B }, {
607
+ default: e(() => n[19] || (n[19] = [
608
+ k("取消")
609
+ ])),
610
+ _: 1,
611
+ __: [19]
612
+ }),
613
+ t(E, {
614
+ type: "primary",
615
+ onClick: z
616
+ }, {
617
+ default: e(() => n[20] || (n[20] = [
618
+ k("保存")
619
+ ])),
620
+ _: 1,
621
+ __: [20]
622
+ })
623
+ ])
624
+ ])
625
+ ]),
626
+ default: e(() => [
627
+ t(G, { style: { height: "580px" } }, {
628
+ default: e(() => [
629
+ t(C, { style: { "padding-right": "20px" } }, {
630
+ default: e(() => [
631
+ t(v, {
632
+ modelValue: V.value,
633
+ "onUpdate:modelValue": n[1] || (n[1] = (i) => V.value = i),
634
+ type: "card"
635
+ }, {
636
+ suffix: e(() => [
637
+ o("span", Fe, "提示: " + y($[V.value]), 1)
638
+ ]),
639
+ default: e(() => [
640
+ (s(!0), p(x, null, O(r(q), (i, b) => (s(), w(T, {
641
+ key: b,
642
+ label: `${m[i]}-${i}`,
643
+ name: i
644
+ }, {
645
+ default: e(() => [
646
+ o("p", Pe, [
647
+ n[9] || (n[9] = o("span", { class: "func-keyword" }, "async function   ", -1)),
648
+ o("span", qe, y(i) + "(e, components, node_modules)  {", 1)
649
+ ]),
650
+ t(r(se), {
651
+ modelValue: r(I)[i],
652
+ "onUpdate:modelValue": (K) => r(I)[i] = K,
653
+ height: "480px",
654
+ language: "javascript"
655
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
656
+ n[10] || (n[10] = o("p", { class: "go-pl-3 func-keyNameWord" }, "}", -1))
657
+ ]),
658
+ _: 2,
659
+ __: [10]
660
+ }, 1032, ["label", "name"]))), 128))
661
+ ]),
662
+ _: 1
663
+ }, 8, ["modelValue"])
664
+ ]),
665
+ _: 1
666
+ }),
667
+ t(H, {
668
+ width: "340px",
669
+ style: { padding: "12px 12px 0px 12px", "margin-left": "3px" }
670
+ }, {
671
+ default: e(() => [
672
+ t(v, {
673
+ "model-value": "1",
674
+ stretch: ""
675
+ }, {
676
+ default: e(() => [
677
+ t(T, {
678
+ label: "验证结果",
679
+ name: "1"
680
+ }, {
681
+ default: e(() => [
682
+ t(M, { style: { "max-height": "505px" } }, {
683
+ default: e(() => [
684
+ t(g, { class: "go-px-3" }, {
685
+ default: e(() => [
686
+ (s(!0), p(x, null, O([L()], (i) => (s(), p(x, { key: i }, [
687
+ t(c, {
688
+ title: "错误函数",
689
+ name: "1"
690
+ }, {
691
+ default: e(() => [
692
+ o("span", je, y(i.errorFn || "暂无"), 1)
693
+ ]),
694
+ _: 2
695
+ }, 1024),
696
+ t(c, {
697
+ title: "错误信息",
698
+ name: "2"
699
+ }, {
700
+ default: e(() => [
701
+ o("span", Re, y(i.name || "暂无"), 1)
702
+ ]),
703
+ _: 2
704
+ }, 1024),
705
+ t(c, {
706
+ title: "堆栈信息",
707
+ name: "3"
708
+ }, {
709
+ default: e(() => [
710
+ o("span", Be, y(i.message || "暂无"), 1)
711
+ ]),
712
+ _: 2
713
+ }, 1024)
714
+ ], 64))), 128))
715
+ ]),
716
+ _: 1
717
+ })
718
+ ]),
719
+ _: 1
720
+ })
721
+ ]),
722
+ _: 1
723
+ }),
724
+ t(T, {
725
+ label: "变量说明",
726
+ name: "2"
727
+ }, {
728
+ default: e(() => [
729
+ t(M, { style: { "max-height": "505px" } }, {
730
+ default: e(() => [
731
+ t(g, { class: "go-px-3" }, {
732
+ default: e(() => [
733
+ t(c, {
734
+ title: "e",
735
+ name: "1"
736
+ }, {
737
+ default: e(() => n[11] || (n[11] = [
738
+ o("span", { style: { color: "var(--el-text-color-secondary)" } }, "触发对应生命周期事件时接收的参数", -1)
739
+ ])),
740
+ _: 1,
741
+ __: [11]
742
+ }),
743
+ t(c, {
744
+ title: "this",
745
+ name: "2"
746
+ }, {
747
+ default: e(() => [
748
+ n[12] || (n[12] = o("span", { style: { color: "var(--el-text-color-secondary)" } }, "图表组件实例", -1)),
749
+ n[13] || (n[13] = o("br", null, null, -1)),
750
+ (s(), p(x, null, O(["refs", "setupState", "ctx", "props", "..."], (i) => t(P, {
751
+ class: "go-m-1",
752
+ key: i
753
+ }, {
754
+ default: e(() => [
755
+ k(y(i), 1)
756
+ ]),
757
+ _: 2
758
+ }, 1024)), 64))
759
+ ]),
760
+ _: 1,
761
+ __: [12, 13]
762
+ }),
763
+ t(c, {
764
+ title: "components",
765
+ name: "3"
766
+ }, {
767
+ default: e(() => n[14] || (n[14] = [
768
+ o("span", { style: { color: "var(--el-text-color-secondary)" } }, "当前大屏内所有组件的集合id 图表组件中的配置id,可以获取其他图表组件进行控制", -1),
769
+ o("pre", null, [
770
+ o("code", null, y(`{
771
+ [id]: component
772
+ }`))
773
+ ], -1)
774
+ ])),
775
+ _: 1,
776
+ __: [14]
777
+ }),
778
+ t(c, {
779
+ title: "node_modules",
780
+ name: "4"
781
+ }, {
782
+ default: e(() => [
783
+ n[15] || (n[15] = o("span", { style: { color: "var(--el-text-color-secondary)" } }, "以下是内置在代码环境中可用的包变量", -1)),
784
+ n[16] || (n[16] = o("br", null, null, -1)),
785
+ (s(!0), p(x, null, O(Object.keys(r(ve) || {}), (i) => (s(), w(P, {
786
+ class: "go-m-1",
787
+ key: i
788
+ }, {
789
+ default: e(() => [
790
+ k(y(i), 1)
791
+ ]),
792
+ _: 2
793
+ }, 1024))), 128))
794
+ ]),
795
+ _: 1,
796
+ __: [15, 16]
797
+ })
798
+ ]),
799
+ _: 1
800
+ })
801
+ ]),
802
+ _: 1
803
+ })
804
+ ]),
805
+ _: 1
806
+ }),
807
+ t(T, {
808
+ label: "介绍案例",
809
+ name: "3"
810
+ }, {
811
+ default: e(() => [
812
+ t(M, { style: { "max-height": "505px" } }, {
813
+ default: e(() => [
814
+ t(g, null, {
815
+ default: e(() => [
816
+ (s(!0), p(x, null, O(r(Ne), (i, b) => (s(), w(c, {
817
+ key: b,
818
+ title: `案例${b + 1}:${i.description}`,
819
+ name: b
820
+ }, {
821
+ default: e(() => [
822
+ o("pre", null, [
823
+ o("code", null, y(i.code), 1)
824
+ ])
825
+ ]),
826
+ _: 2
827
+ }, 1032, ["title", "name"]))), 128))
828
+ ]),
829
+ _: 1
830
+ })
831
+ ]),
832
+ _: 1
833
+ })
834
+ ]),
835
+ _: 1
836
+ })
837
+ ]),
838
+ _: 1
839
+ })
840
+ ]),
841
+ _: 1
842
+ })
843
+ ]),
844
+ _: 1
845
+ })
846
+ ]),
847
+ _: 1
848
+ }, 8, ["modelValue"])
849
+ ], 64);
850
+ };
851
+ }
852
+ });
853
+ const Ke = /* @__PURE__ */ ne(He, [["__scopeId", "data-v-d4c809ae"]]), We = { class: "collapse-item-title" }, Je = { class: "func-annotate" }, Xe = { class: "func-keyword" }, Qe = { class: "go-ml-4" }, Ye = { class: "go-pl-3" }, Ze = { class: "func-keyNameWord" }, et = { style: { color: "var(--el-text-color-secondary)" } }, tt = { style: { color: "var(--el-text-color-secondary)" } }, nt = { style: { color: "var(--el-text-color-secondary)" } }, ot = { style: { display: "flex", "justify-content": "space-between", "align-items": "center" } }, lt = { class: "go-flex-items-center" }, at = /* @__PURE__ */ X({
854
+ __name: "index",
855
+ setup(Y) {
856
+ var z;
857
+ const { targetData: _ } = Q(), { DocumentTextIcon: R, PencilIcon: A } = te.ionicons5, m = {
858
+ [D.ON_CLICK]: "单击",
859
+ [D.ON_DBL_CLICK]: "双击",
860
+ [D.ON_MOUSE_ENTER]: "鼠标进入",
861
+ [D.ON_MOUSE_LEAVE]: "鼠标移出"
862
+ }, $ = U(!1), S = U(D.ON_CLICK);
863
+ let V = U({ ...((z = _.value) == null ? void 0 : z.events.baseEvent) || {} });
864
+ const I = U(!1), F = () => {
865
+ let N = "", l = "", n = "";
866
+ return I.value = Object.entries(V.value).every(([d, E]) => {
867
+ try {
868
+ const f = Object.getPrototypeOf(async function() {
869
+ }).constructor;
870
+ return new f(E), !0;
871
+ } catch (f) {
872
+ return l = f.message, n = f.name, N = d, !1;
873
+ }
874
+ }), {
875
+ errorFn: N,
876
+ message: l,
877
+ name: n
878
+ };
879
+ }, L = () => {
880
+ $.value = !1;
881
+ }, B = () => {
882
+ if (_.value) {
883
+ if (F().errorFn) {
884
+ window.$message.error("事件函数错误,无法进行保存");
885
+ return;
886
+ }
887
+ Object.values(V.value).join("").trim() === "" ? _.value.events.baseEvent = {
888
+ [D.ON_CLICK]: void 0,
889
+ [D.ON_DBL_CLICK]: void 0,
890
+ [D.ON_MOUSE_ENTER]: void 0,
891
+ [D.ON_MOUSE_LEAVE]: void 0
892
+ } : _.value.events.baseEvent = { ...V.value }, L();
893
+ }
894
+ };
895
+ return ae(
896
+ () => $.value,
897
+ (N) => {
898
+ N && _.value && (V.value = { ..._.value.events.baseEvent });
899
+ }
900
+ ), (N, l) => {
901
+ const n = a("el-icon"), d = a("el-button"), E = a("el-card"), f = a("el-collapse-item"), c = a("el-tab-pane"), T = a("el-tabs"), v = a("el-main"), C = a("el-collapse"), g = a("el-scrollbar"), M = a("el-aside"), P = a("el-container"), H = a("el-tag"), G = a("el-dialog");
902
+ return s(), p(x, null, [
903
+ r(_) ? (s(), w(f, {
904
+ key: 0,
905
+ name: "2"
906
+ }, {
907
+ title: e(() => [
908
+ o("div", We, [
909
+ l[4] || (l[4] = o("span", null, "基础事件配置", -1)),
910
+ t(d, {
911
+ type: "primary",
912
+ text: "",
913
+ size: "small",
914
+ onClick: l[0] || (l[0] = ee((u) => $.value = !0, ["stop"]))
915
+ }, {
916
+ icon: e(() => [
917
+ t(n, null, {
918
+ default: e(() => [
919
+ t(r(A))
920
+ ]),
921
+ _: 1
922
+ })
923
+ ]),
924
+ default: e(() => [
925
+ l[3] || (l[3] = k(" 编辑 "))
926
+ ]),
927
+ _: 1,
928
+ __: [3]
929
+ })
930
+ ])
931
+ ]),
932
+ default: e(() => [
933
+ t(E, {
934
+ class: "collapse-show-box",
935
+ shadow: "never"
936
+ }, {
937
+ default: e(() => [
938
+ (s(!0), p(x, null, O(r(D), (u) => (s(), p("div", { key: u }, [
939
+ o("div", null, [
940
+ o("span", Je, "// " + y(m[u]), 1),
941
+ l[5] || (l[5] = o("br", null, null, -1)),
942
+ o("span", Xe, "async " + y(u), 1),
943
+ l[6] || (l[6] = k(" (mouseEvent,components) { "))
944
+ ]),
945
+ o("div", Qe, [
946
+ o("pre", null, [
947
+ o("code", null, y((r(_).events.baseEvent || {})[u] || ""), 1)
948
+ ])
949
+ ]),
950
+ l[7] || (l[7] = o("div", null, [
951
+ k("}"),
952
+ o("span", null, ",")
953
+ ], -1))
954
+ ]))), 128))
955
+ ]),
956
+ _: 1
957
+ })
958
+ ]),
959
+ _: 1
960
+ })) : j("", !0),
961
+ t(G, {
962
+ class: "go-chart-data-monaco-editor",
963
+ modelValue: $.value,
964
+ "onUpdate:modelValue": l[2] || (l[2] = (u) => $.value = u),
965
+ "close-on-click-modal": !1,
966
+ width: "1200px"
967
+ }, {
968
+ header: e(() => l[8] || (l[8] = [
969
+ o("span", null, "基础事件编辑器", -1)
970
+ ])),
971
+ footer: e(() => [
972
+ o("div", ot, [
973
+ o("div", lt, [
974
+ t(H, { type: "primary" }, {
975
+ icon: e(() => [
976
+ t(n, { component: r(R) }, null, 8, ["component"])
977
+ ]),
978
+ default: e(() => [
979
+ l[13] || (l[13] = k(" 说明 "))
980
+ ]),
981
+ _: 1,
982
+ __: [13]
983
+ }),
984
+ l[14] || (l[14] = o("span", {
985
+ class: "go-ml-2",
986
+ style: { color: "var(--el-text-color-secondary)" }
987
+ }, "编写方式同正常 JavaScript 写法", -1))
988
+ ]),
989
+ o("div", null, [
990
+ t(d, { onClick: L }, {
991
+ default: e(() => l[15] || (l[15] = [
992
+ k("取消")
993
+ ])),
994
+ _: 1,
995
+ __: [15]
996
+ }),
997
+ t(d, {
998
+ type: "primary",
999
+ onClick: B
1000
+ }, {
1001
+ default: e(() => l[16] || (l[16] = [
1002
+ k("保存")
1003
+ ])),
1004
+ _: 1,
1005
+ __: [16]
1006
+ })
1007
+ ])
1008
+ ])
1009
+ ]),
1010
+ default: e(() => [
1011
+ t(P, { style: { height: "580px" } }, {
1012
+ default: e(() => [
1013
+ t(v, { style: { "padding-right": "20px" } }, {
1014
+ default: e(() => [
1015
+ t(T, {
1016
+ modelValue: S.value,
1017
+ "onUpdate:modelValue": l[1] || (l[1] = (u) => S.value = u),
1018
+ type: "card"
1019
+ }, {
1020
+ suffix: e(() => l[9] || (l[9] = [
1021
+ o("span", {
1022
+ class: "tab-tip",
1023
+ style: { color: "var(--el-color-warning)" }
1024
+ }, "提示: ECharts 组件会拦截鼠标事件", -1)
1025
+ ])),
1026
+ default: e(() => [
1027
+ (s(!0), p(x, null, O(r(D), (u, i) => (s(), w(c, {
1028
+ key: i,
1029
+ label: `${m[u]}-${u}`,
1030
+ name: u
1031
+ }, {
1032
+ default: e(() => [
1033
+ o("p", Ye, [
1034
+ l[10] || (l[10] = o("span", { class: "func-keyword" }, "async function   ", -1)),
1035
+ o("span", Ze, y(u) + "(mouseEvent,components)  {", 1)
1036
+ ]),
1037
+ t(r(se), {
1038
+ modelValue: r(V)[u],
1039
+ "onUpdate:modelValue": (b) => r(V)[u] = b,
1040
+ height: "480px",
1041
+ language: "javascript"
1042
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
1043
+ l[11] || (l[11] = o("p", { class: "go-pl-3 func-keyNameWord" }, "}", -1))
1044
+ ]),
1045
+ _: 2,
1046
+ __: [11]
1047
+ }, 1032, ["label", "name"]))), 128))
1048
+ ]),
1049
+ _: 1
1050
+ }, 8, ["modelValue"])
1051
+ ]),
1052
+ _: 1
1053
+ }),
1054
+ t(M, {
1055
+ width: "340px",
1056
+ style: { padding: "12px 12px 0px 12px", "margin-left": "3px" }
1057
+ }, {
1058
+ default: e(() => [
1059
+ t(T, {
1060
+ "model-value": "1",
1061
+ stretch: ""
1062
+ }, {
1063
+ default: e(() => [
1064
+ t(c, {
1065
+ label: "验证结果",
1066
+ name: "1"
1067
+ }, {
1068
+ default: e(() => [
1069
+ t(g, { style: { "max-height": "505px" } }, {
1070
+ default: e(() => [
1071
+ t(C, { class: "go-px-3" }, {
1072
+ default: e(() => [
1073
+ (s(!0), p(x, null, O([F()], (u) => (s(), p(x, { key: u }, [
1074
+ t(f, {
1075
+ title: "错误函数",
1076
+ name: "1"
1077
+ }, {
1078
+ default: e(() => [
1079
+ o("span", et, y(u.errorFn || "暂无"), 1)
1080
+ ]),
1081
+ _: 2
1082
+ }, 1024),
1083
+ t(f, {
1084
+ title: "错误信息",
1085
+ name: "2"
1086
+ }, {
1087
+ default: e(() => [
1088
+ o("span", tt, y(u.name || "暂无"), 1)
1089
+ ]),
1090
+ _: 2
1091
+ }, 1024),
1092
+ t(f, {
1093
+ title: "堆栈信息",
1094
+ name: "3"
1095
+ }, {
1096
+ default: e(() => [
1097
+ o("span", nt, y(u.message || "暂无"), 1)
1098
+ ]),
1099
+ _: 2
1100
+ }, 1024)
1101
+ ], 64))), 128))
1102
+ ]),
1103
+ _: 1
1104
+ })
1105
+ ]),
1106
+ _: 1
1107
+ })
1108
+ ]),
1109
+ _: 1
1110
+ }),
1111
+ t(c, {
1112
+ label: "变量说明",
1113
+ name: "2"
1114
+ }, {
1115
+ default: e(() => [
1116
+ t(g, { style: { "max-height": "505px" } }, {
1117
+ default: e(() => [
1118
+ t(C, { class: "go-px-3" }, {
1119
+ default: e(() => [
1120
+ t(f, {
1121
+ title: "mouseEvent",
1122
+ name: "1"
1123
+ }, {
1124
+ default: e(() => l[12] || (l[12] = [
1125
+ o("span", { style: { color: "var(--el-text-color-secondary)" } }, "鼠标事件对象", -1)
1126
+ ])),
1127
+ _: 1,
1128
+ __: [12]
1129
+ })
1130
+ ]),
1131
+ _: 1
1132
+ })
1133
+ ]),
1134
+ _: 1
1135
+ })
1136
+ ]),
1137
+ _: 1
1138
+ })
1139
+ ]),
1140
+ _: 1
1141
+ })
1142
+ ]),
1143
+ _: 1
1144
+ })
1145
+ ]),
1146
+ _: 1
1147
+ })
1148
+ ]),
1149
+ _: 1
1150
+ }, 8, ["modelValue"])
1151
+ ], 64);
1152
+ };
1153
+ }
1154
+ });
1155
+ const st = /* @__PURE__ */ ne(at, [["__scopeId", "data-v-472a30e7"]]), rt = { style: { color: "var(--el-text-color-secondary)" } }, Ht = /* @__PURE__ */ X({
1156
+ __name: "index",
1157
+ setup(Y) {
1158
+ const { targetData: _ } = Q();
1159
+ return (R, A) => {
1160
+ const m = a("el-collapse");
1161
+ return r(_) ? (s(), w(m, {
1162
+ key: 0,
1163
+ class: "go-mt-3",
1164
+ "model-value": ["1", "2"]
1165
+ }, {
1166
+ default: e(() => [
1167
+ o("span", rt, [
1168
+ A[0] || (A[0] = k(" 组件 id: ")),
1169
+ o("span", null, y(r(_).id), 1)
1170
+ ]),
1171
+ t(r(ke)),
1172
+ t(r(st)),
1173
+ t(r(Ke))
1174
+ ]),
1175
+ _: 1
1176
+ })) : j("", !0);
1177
+ };
1178
+ }
1179
+ });
1180
+ export {
1181
+ Ht as default
1182
+ };
1183
+ //# sourceMappingURL=index-148f6c33.js.map