@duxweb/dvha-pro 0.0.8 → 1.0.14

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 (287) hide show
  1. package/dist/cjs/component.cjs +1 -1
  2. package/dist/cjs/components/card/card.cjs +1 -1
  3. package/dist/cjs/components/card/store.cjs +1 -0
  4. package/dist/cjs/components/chart/echart.cjs +1 -1
  5. package/dist/cjs/components/crop/imageCrop.cjs +1 -0
  6. package/dist/cjs/components/crop/imageCropModal.cjs +1 -0
  7. package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
  8. package/dist/cjs/components/data/dynamicData.cjs +1 -0
  9. package/dist/cjs/components/data/dynamicSelect.cjs +1 -0
  10. package/dist/cjs/components/data/selectModal.cjs +1 -0
  11. package/dist/cjs/components/dialog/dialog.cjs +1 -1
  12. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  13. package/dist/cjs/components/editor/aiEditor.cjs +1 -0
  14. package/dist/cjs/components/form/modalForm.cjs +1 -1
  15. package/dist/cjs/components/form/pageForm.cjs +1 -1
  16. package/dist/cjs/components/form/settingForm.cjs +1 -1
  17. package/dist/cjs/components/layout/list.cjs +1 -1
  18. package/dist/cjs/components/layout/table.cjs +1 -1
  19. package/dist/cjs/components/level/level.cjs +1 -0
  20. package/dist/cjs/components/media/media.cjs +1 -1
  21. package/dist/cjs/components/modal/modal.cjs +1 -1
  22. package/dist/cjs/components/modal/modalPage.cjs +1 -1
  23. package/dist/cjs/components/panel/setting.cjs +1 -1
  24. package/dist/cjs/components/stats/number.cjs +1 -0
  25. package/dist/cjs/components/stats/realTime.cjs +1 -0
  26. package/dist/cjs/components/status/blockEmpty.cjs +1 -1
  27. package/dist/cjs/components/upload/file.cjs +1 -0
  28. package/dist/cjs/components/upload/image.cjs +1 -0
  29. package/dist/cjs/components/upload/manage/item.cjs +1 -0
  30. package/dist/cjs/components/upload/manager.cjs +1 -0
  31. package/dist/cjs/components/widget/avatar.cjs +1 -0
  32. package/dist/cjs/components/widget/connect.cjs +1 -1
  33. package/dist/cjs/components/widget/image.cjs +1 -0
  34. package/dist/cjs/components/widget/placeholder.cjs +1 -0
  35. package/dist/cjs/config/uno.cjs +1 -1
  36. package/dist/cjs/config/validate.cjs +1 -1
  37. package/dist/cjs/hooks/action.cjs +1 -1
  38. package/dist/cjs/hooks/dialog.cjs +1 -1
  39. package/dist/cjs/hooks/download.cjs +1 -0
  40. package/dist/cjs/hooks/drawer.cjs +1 -1
  41. package/dist/cjs/hooks/echart.cjs +1 -1
  42. package/dist/cjs/hooks/image.cjs +1 -0
  43. package/dist/cjs/hooks/level.cjs +1 -0
  44. package/dist/cjs/hooks/modal.cjs +1 -1
  45. package/dist/cjs/hooks/table/copy.cjs +1 -1
  46. package/dist/cjs/hooks/table/image.cjs +1 -1
  47. package/dist/cjs/hooks/table/input.cjs +1 -1
  48. package/dist/cjs/hooks/table/media.cjs +1 -1
  49. package/dist/cjs/hooks/table.cjs +1 -1
  50. package/dist/cjs/index.cjs +1 -1
  51. package/dist/cjs/langs/en-US.json.cjs +1 -1
  52. package/dist/cjs/langs/zh-CN.json.cjs +1 -1
  53. package/dist/cjs/main.cjs +1 -1
  54. package/dist/cjs/pages/authLayout.cjs +1 -1
  55. package/dist/cjs/pages/layout/global.cjs +1 -1
  56. package/dist/cjs/pages/layout/page.cjs +1 -1
  57. package/dist/cjs/pages/login.cjs +1 -1
  58. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  59. package/dist/cjs/pages/menu/button.cjs +1 -1
  60. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  61. package/dist/cjs/pages/menu/main.cjs +1 -1
  62. package/dist/cjs/pages/menu/mobile.cjs +1 -1
  63. package/dist/cjs/pages/page.cjs +1 -1
  64. package/dist/cjs/pages/page404.cjs +1 -1
  65. package/dist/cjs/pages/pageStatus.cjs +1 -1
  66. package/dist/cjs/static/images/icon/audio.svg.cjs +1 -0
  67. package/dist/cjs/static/images/icon/excel.svg.cjs +1 -0
  68. package/dist/cjs/static/images/icon/file.svg.cjs +1 -0
  69. package/dist/cjs/static/images/icon/folder.svg.cjs +1 -0
  70. package/dist/cjs/static/images/icon/pdf.svg.cjs +1 -0
  71. package/dist/cjs/static/images/icon/ppt.svg.cjs +1 -0
  72. package/dist/cjs/static/images/icon/video.svg.cjs +1 -0
  73. package/dist/cjs/static/images/icon/word.svg.cjs +1 -0
  74. package/dist/cjs/stores/ui.cjs +1 -1
  75. package/dist/cjs/theme/uno.css.cjs +108 -12
  76. package/dist/esm/component.js +64 -47
  77. package/dist/esm/components/card/card.js +22 -21
  78. package/dist/esm/components/card/store.js +64 -0
  79. package/dist/esm/components/chart/echart.js +29 -16
  80. package/dist/esm/components/crop/imageCrop.js +105 -0
  81. package/dist/esm/components/crop/imageCropModal.js +118 -0
  82. package/dist/esm/components/dashboard/helloBig.js +3 -2
  83. package/dist/esm/components/data/dynamicData.js +145 -0
  84. package/dist/esm/components/data/dynamicSelect.js +109 -0
  85. package/dist/esm/components/data/selectModal.js +135 -0
  86. package/dist/esm/components/dialog/dialog.js +50 -38
  87. package/dist/esm/components/drawer/drawer.js +14 -12
  88. package/dist/esm/components/editor/aiEditor.js +127 -0
  89. package/dist/esm/components/form/modalForm.js +66 -40
  90. package/dist/esm/components/form/pageForm.js +31 -21
  91. package/dist/esm/components/form/settingForm.js +31 -21
  92. package/dist/esm/components/layout/list.js +67 -57
  93. package/dist/esm/components/layout/table.js +59 -49
  94. package/dist/esm/components/level/level.js +103 -0
  95. package/dist/esm/components/media/media.js +18 -16
  96. package/dist/esm/components/modal/modal.js +27 -21
  97. package/dist/esm/components/modal/modalPage.js +7 -7
  98. package/dist/esm/components/panel/setting.js +9 -6
  99. package/dist/esm/components/stats/number.js +49 -0
  100. package/dist/esm/components/stats/realTime.js +99 -0
  101. package/dist/esm/components/status/blockEmpty.js +136 -57
  102. package/dist/esm/components/upload/file.js +258 -0
  103. package/dist/esm/components/upload/image.js +189 -0
  104. package/dist/esm/components/upload/manage/item.js +178 -0
  105. package/dist/esm/components/upload/manager.js +378 -0
  106. package/dist/esm/components/widget/avatar.js +59 -0
  107. package/dist/esm/components/widget/connect.js +6 -4
  108. package/dist/esm/components/widget/image.js +67 -0
  109. package/dist/esm/components/widget/placeholder.js +83 -0
  110. package/dist/esm/config/uno.js +6 -6
  111. package/dist/esm/config/validate.js +2 -2
  112. package/dist/esm/hooks/action.js +34 -34
  113. package/dist/esm/hooks/dialog.js +13 -3
  114. package/dist/esm/hooks/download.js +100 -0
  115. package/dist/esm/hooks/drawer.js +13 -3
  116. package/dist/esm/hooks/echart.js +292 -246
  117. package/dist/esm/hooks/image.js +23 -0
  118. package/dist/esm/hooks/level.js +75 -0
  119. package/dist/esm/hooks/modal.js +14 -4
  120. package/dist/esm/hooks/table/copy.js +14 -11
  121. package/dist/esm/hooks/table/image.js +55 -17
  122. package/dist/esm/hooks/table/input.js +35 -33
  123. package/dist/esm/hooks/table/media.js +17 -7
  124. package/dist/esm/hooks/table.js +41 -25
  125. package/dist/esm/index.js +198 -160
  126. package/dist/esm/langs/en-US.json.js +6 -4
  127. package/dist/esm/langs/zh-CN.json.js +5 -3
  128. package/dist/esm/main.js +8 -6
  129. package/dist/esm/pages/authLayout.js +24 -18
  130. package/dist/esm/pages/layout/global.js +29 -23
  131. package/dist/esm/pages/layout/page.js +26 -16
  132. package/dist/esm/pages/login.js +33 -23
  133. package/dist/esm/pages/menu/avatar.js +122 -93
  134. package/dist/esm/pages/menu/button.js +23 -13
  135. package/dist/esm/pages/menu/cmd.js +41 -31
  136. package/dist/esm/pages/menu/main.js +38 -28
  137. package/dist/esm/pages/menu/mobile.js +20 -10
  138. package/dist/esm/pages/page.js +21 -14
  139. package/dist/esm/pages/page404.js +15 -5
  140. package/dist/esm/pages/pageStatus.js +22 -12
  141. package/dist/esm/static/images/icon/audio.svg.js +4 -0
  142. package/dist/esm/static/images/icon/excel.svg.js +4 -0
  143. package/dist/esm/static/images/icon/file.svg.js +4 -0
  144. package/dist/esm/static/images/icon/folder.svg.js +4 -0
  145. package/dist/esm/static/images/icon/pdf.svg.js +4 -0
  146. package/dist/esm/static/images/icon/ppt.svg.js +4 -0
  147. package/dist/esm/static/images/icon/video.svg.js +4 -0
  148. package/dist/esm/static/images/icon/word.svg.js +4 -0
  149. package/dist/esm/stores/ui.js +10 -10
  150. package/dist/esm/theme/uno.css.js +108 -12
  151. package/dist/types/components/card/index.d.ts +1 -0
  152. package/dist/types/components/card/store.d.ts +16 -0
  153. package/dist/types/components/chart/echart.d.ts +2 -2
  154. package/dist/types/components/crop/imageCrop.d.ts +40 -0
  155. package/dist/types/components/crop/imageCropModal.d.ts +7 -0
  156. package/dist/types/components/crop/index.d.ts +2 -0
  157. package/dist/types/components/data/dynamicData.d.ts +56 -0
  158. package/dist/types/components/data/dynamicSelect.d.ts +49 -0
  159. package/dist/types/components/data/index.d.ts +3 -0
  160. package/dist/types/components/data/selectModal.d.ts +61 -0
  161. package/dist/types/components/dialog/dialog.d.ts +2 -0
  162. package/dist/types/components/editor/aiEditor.d.ts +26 -0
  163. package/dist/types/components/editor/index.d.ts +1 -0
  164. package/dist/types/components/index.d.ts +7 -0
  165. package/dist/types/components/level/index.d.ts +1 -0
  166. package/dist/types/components/level/level.d.ts +60 -0
  167. package/dist/types/components/modal/index.d.ts +2 -2
  168. package/dist/types/components/modal/modal.d.ts +1 -4
  169. package/dist/types/components/stats/index.d.ts +2 -0
  170. package/dist/types/components/stats/number.d.ts +50 -0
  171. package/dist/types/components/stats/realTime.d.ts +56 -0
  172. package/dist/types/components/upload/file.d.ts +9 -0
  173. package/dist/types/components/upload/image.d.ts +99 -0
  174. package/dist/types/components/upload/index.d.ts +4 -0
  175. package/dist/types/components/upload/manage/item.d.ts +22 -0
  176. package/dist/types/components/upload/manager.d.ts +37 -0
  177. package/dist/types/components/widget/avatar.d.ts +159 -0
  178. package/dist/types/components/widget/image.d.ts +257 -0
  179. package/dist/types/components/widget/index.d.ts +2 -0
  180. package/dist/types/components/widget/placeholder.d.ts +22 -0
  181. package/dist/types/hooks/dialog.d.ts +1 -0
  182. package/dist/types/hooks/download.d.ts +31 -0
  183. package/dist/types/hooks/echart.d.ts +14 -0
  184. package/dist/types/hooks/image.d.ts +3 -0
  185. package/dist/types/hooks/index.d.ts +3 -0
  186. package/dist/types/hooks/level.d.ts +19 -0
  187. package/dist/types/main.d.ts +12 -0
  188. package/dist/types/static/images/icon/index.d.ts +8 -0
  189. package/package.json +9 -3
  190. package/dist/cjs/_virtual/_commonjsHelpers.cjs +0 -1
  191. package/dist/cjs/_virtual/browser.cjs +0 -1
  192. package/dist/cjs/_virtual/browser2.cjs +0 -1
  193. package/dist/cjs/_virtual/sourcemap-codec.umd.cjs +0 -1
  194. package/dist/cjs/_virtual/sourcemap-codec.umd2.cjs +0 -1
  195. package/dist/cjs/node_modules/.pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json/tabler/icons.json.cjs +0 -1
  196. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.cjs +0 -1
  197. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.cjs +0 -1
  198. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.cjs +0 -1
  199. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.cjs +0 -1
  200. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.cjs +0 -1
  201. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.cjs +0 -1
  202. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.cjs +0 -1
  203. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.cjs +0 -1
  204. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.cjs +0 -1
  205. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.cjs +0 -1
  206. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.cjs +0 -1
  207. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.cjs +0 -1
  208. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.cjs +0 -1
  209. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.cjs +0 -1
  210. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.cjs +0 -1
  211. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.cjs +0 -1
  212. package/dist/cjs/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.cjs +0 -1
  213. package/dist/cjs/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.cjs +0 -1
  214. package/dist/cjs/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.cjs +0 -1
  215. package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.cjs +0 -1
  216. package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.cjs +0 -1
  217. package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.cjs +0 -1
  218. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.cjs +0 -1
  219. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.cjs +0 -391
  220. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.cjs +0 -1
  221. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.cjs +0 -1
  222. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.cjs +0 -1
  223. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.cjs +0 -1
  224. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.cjs +0 -1
  225. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.cjs +0 -1
  226. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.cjs +0 -1
  227. package/dist/cjs/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.cjs +0 -1
  228. package/dist/cjs/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/en.json.cjs +0 -1
  229. package/dist/cjs/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.cjs +0 -1
  230. package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.cjs +0 -1
  231. package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.cjs +0 -1
  232. package/dist/cjs/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -1
  233. package/dist/cjs/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.cjs +0 -10
  234. package/dist/cjs/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.cjs +0 -1
  235. package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.cjs +0 -1
  236. package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.cjs +0 -1
  237. package/dist/cjs/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.cjs +0 -1
  238. package/dist/cjs/static/images/placeholder.png.cjs +0 -1
  239. package/dist/esm/_virtual/_commonjsHelpers.js +0 -6
  240. package/dist/esm/_virtual/browser.js +0 -7
  241. package/dist/esm/_virtual/browser2.js +0 -4
  242. package/dist/esm/_virtual/sourcemap-codec.umd.js +0 -5
  243. package/dist/esm/_virtual/sourcemap-codec.umd2.js +0 -4
  244. package/dist/esm/node_modules/.pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json/tabler/icons.json.js +0 -17
  245. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -14
  246. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.js +0 -25
  247. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.js +0 -11
  248. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.js +0 -9
  249. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -23
  250. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -17
  251. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.js +0 -40
  252. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.js +0 -46
  253. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.js +0 -55
  254. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.js +0 -38
  255. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.js +0 -69
  256. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.js +0 -29
  257. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +0 -14
  258. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.js +0 -27
  259. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.js +0 -6
  260. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.js +0 -6
  261. package/dist/esm/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +0 -255
  262. package/dist/esm/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.js +0 -88
  263. package/dist/esm/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.js +0 -51
  264. package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.js +0 -17
  265. package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.js +0 -151
  266. package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.js +0 -8
  267. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.js +0 -322
  268. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.js +0 -547
  269. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.js +0 -32
  270. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.js +0 -2307
  271. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.js +0 -627
  272. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.js +0 -7
  273. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.js +0 -588
  274. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.js +0 -51
  275. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.js +0 -553
  276. package/dist/esm/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.js +0 -632
  277. package/dist/esm/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/en.json.js +0 -9
  278. package/dist/esm/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.js +0 -9
  279. package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js +0 -146
  280. package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js +0 -97
  281. package/dist/esm/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.js +0 -56
  282. package/dist/esm/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js +0 -608
  283. package/dist/esm/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js +0 -85
  284. package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.js +0 -23
  285. package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.js +0 -219
  286. package/dist/esm/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.js +0 -153
  287. package/dist/esm/static/images/placeholder.png.js +0 -4
@@ -1,174 +1,212 @@
1
- import { add as A } from "lodash-es";
2
- import { computed as m, ref as x, watch as w } from "vue";
3
- function f(e) {
4
- const t = (e == null ? void 0 : e.min) ?? !1;
1
+ import { add as S } from "lodash-es";
2
+ import { computed as g, ref as M, watch as k } from "vue";
3
+ function x(e) {
4
+ const t = (e == null ? void 0 : e.min) ?? !1, a = (e == null ? void 0 : e.showLegend) ?? !t, h = t && ((e == null ? void 0 : e.showXAxisLabel) || (e == null ? void 0 : e.showYAxisLabel));
5
5
  return {
6
6
  grid: {
7
7
  left: t ? "0%" : "10",
8
8
  right: t ? "0%" : "10",
9
9
  top: t ? "2%" : "15%",
10
10
  bottom: t ? "0%" : "10%",
11
- containLabel: !t
11
+ containLabel: !t || h
12
+ // 如果迷你图需要显示标签,则包含标签
12
13
  },
13
14
  tooltip: {
14
15
  show: !0
15
16
  },
16
17
  legend: {
17
- show: !t,
18
+ show: a,
18
19
  top: "0",
19
20
  bottom: "0"
20
21
  }
21
22
  };
22
23
  }
23
- function r(e) {
24
- const t = f(e), n = (e == null ? void 0 : e.min) ?? !1, d = m(() => e != null && e.labels && e.labels.length > 0 ? e.labels : Array.isArray(e == null ? void 0 : e.data) && e.data.length > 0 && typeof e.data[0] == "object" && e.data[0] !== null && "name" in e.data[0] ? e.data.map((i) => i.name) : []), c = m(() => {
25
- if (!(e != null && e.data) || !Array.isArray(e.data) || e.data.length === 0)
26
- return [{
27
- name: (e == null ? void 0 : e.name) || "Series",
28
- data: [],
29
- stack: void 0
30
- }];
31
- const i = e.data[0];
32
- if (typeof i == "object" && i !== null && "data" in i && Array.isArray(i.data))
33
- return e.data;
34
- if (typeof i == "object" && i !== null && "name" in i && "value" in i) {
35
- const l = e.data.map((u) => u.value);
36
- return [{
37
- name: (e == null ? void 0 : e.name) || "Series",
38
- data: l,
39
- stack: void 0
40
- }];
41
- }
42
- return typeof i == "number" ? [{
24
+ function v(e) {
25
+ const t = x(e), a = (e == null ? void 0 : e.min) ?? !1, h = g(() => {
26
+ var m;
27
+ return (m = e == null ? void 0 : e.labels) != null && m.length ? e.labels : Array.isArray(e == null ? void 0 : e.data) && e.data.length > 0 && typeof e.data[0] == "object" && e.data[0] !== null && "name" in e.data[0] ? e.data.map((w) => w.name) : [];
28
+ }), i = g(() => {
29
+ var w;
30
+ if (!((w = e == null ? void 0 : e.data) != null && w.length))
31
+ return [{ name: (e == null ? void 0 : e.name) || "Series", data: [], stack: void 0 }];
32
+ const m = e.data[0];
33
+ return typeof m == "object" && m !== null && "data" in m && Array.isArray(m.data) ? e.data : typeof m == "object" && m !== null && "name" in m && "value" in m ? [{
43
34
  name: (e == null ? void 0 : e.name) || "Series",
44
- data: e.data,
35
+ data: e.data.map((s) => s.value),
45
36
  stack: void 0
46
- }] : [{
37
+ }] : typeof m == "number" ? [{
47
38
  name: (e == null ? void 0 : e.name) || "Series",
48
- data: [],
39
+ data: e.data,
49
40
  stack: void 0
50
- }];
51
- });
41
+ }] : [{ name: (e == null ? void 0 : e.name) || "Series", data: [], stack: void 0 }];
42
+ }), d = (e == null ? void 0 : e.showXAxisLabel) ?? !a, n = (e == null ? void 0 : e.showYAxisLabel) ?? !a, c = (e == null ? void 0 : e.showXAxisLine) ?? !a, l = (e == null ? void 0 : e.showYAxisLine) ?? !a, u = (e == null ? void 0 : e.showGridLine) ?? !1, b = (e == null ? void 0 : e.showSplitArea) ?? !1, f = (e == null ? void 0 : e.showSplitArea) ?? !a;
52
43
  return {
53
44
  commonOption: t,
54
- xAxisData: d,
55
- seriesData: c,
56
- axisConfig: {
57
- axisLabel: { show: !n },
58
- axisLine: { show: !n },
59
- axisTick: { show: !n },
60
- splitLine: { show: !1 },
61
- // 迷你图和普通图都不显示网格线
62
- splitArea: { show: !0 }
63
- // 普通图和迷你图都显示背景间隔
45
+ xAxisData: h,
46
+ seriesData: i,
47
+ xAxisConfig: {
48
+ axisLabel: {
49
+ show: d,
50
+ showMinLabel: !a,
51
+ showMaxLabel: !a
52
+ },
53
+ axisLine: { show: c },
54
+ axisTick: { show: c },
55
+ splitLine: { show: u },
56
+ splitArea: { show: b }
64
57
  },
65
- isMin: n
58
+ yAxisConfig: {
59
+ axisLabel: {
60
+ show: n,
61
+ showMinLabel: !a,
62
+ showMaxLabel: !a
63
+ },
64
+ axisLine: { show: l },
65
+ axisTick: { show: l },
66
+ splitLine: { show: u },
67
+ splitArea: { show: f }
68
+ },
69
+ isMin: a
66
70
  };
67
71
  }
68
- function v(e) {
69
- const { commonOption: t, xAxisData: n, seriesData: d, axisConfig: c, isMin: a } = r(e);
70
- return { option: m(() => ({
71
- ...t,
72
- tooltip: {
73
- ...t.tooltip,
74
- trigger: "axis"
75
- },
76
- xAxis: {
77
- type: e != null && e.horizontal ? "value" : "category",
78
- data: e != null && e.horizontal ? void 0 : n.value,
79
- ...c,
80
- splitArea: { show: !(e != null && e.horizontal) }
81
- // 水平柱状图显示X轴背景间隔
82
- },
83
- yAxis: {
84
- type: e != null && e.horizontal ? "category" : "value",
85
- data: e != null && e.horizontal ? n.value : void 0,
86
- ...c,
87
- splitArea: { show: !!(e != null && e.horizontal) }
88
- // 垂直柱状图显示Y轴背景间隔
89
- },
90
- series: d.value.map((l, u) => {
91
- const g = !!(e != null && e.stack || l.stack), y = u === 0, b = u === d.value.length - 1;
92
- let h = a ? 2 : 4;
93
- return g && (y && b ? h = a ? 2 : 4 : y ? h = [0, 0, h, h] : b ? h = [h, h, 0, 0] : h = 0), {
94
- type: "bar",
95
- name: l.name,
96
- stack: (e == null ? void 0 : e.stack) || l.stack,
97
- data: l.data,
98
- barMaxWidth: 40,
99
- itemStyle: {
100
- borderRadius: h
101
- }
102
- };
103
- })
104
- })) };
72
+ function o(e) {
73
+ const { commonOption: t, xAxisData: a, seriesData: h, xAxisConfig: i, yAxisConfig: d, isMin: n } = v(e);
74
+ return { option: g(() => {
75
+ var u;
76
+ const l = h.value.length > 1 && ((e == null ? void 0 : e.showLegend) ?? !n);
77
+ return {
78
+ ...t,
79
+ legend: {
80
+ ...t.legend,
81
+ show: l
82
+ },
83
+ tooltip: {
84
+ ...t.tooltip,
85
+ trigger: "axis"
86
+ },
87
+ xAxis: {
88
+ type: e != null && e.horizontal ? "value" : "category",
89
+ data: e != null && e.horizontal ? void 0 : a.value,
90
+ ...i,
91
+ axisLabel: {
92
+ ...i.axisLabel
93
+ },
94
+ splitArea: { ...i.splitArea, show: ((u = i.splitArea) == null ? void 0 : u.show) ?? !(e != null && e.horizontal) }
95
+ },
96
+ yAxis: {
97
+ type: e != null && e.horizontal ? "category" : "value",
98
+ data: e != null && e.horizontal ? a.value : void 0,
99
+ ...d,
100
+ axisLabel: {
101
+ ...d.axisLabel
102
+ },
103
+ splitNumber: n ? 3 : void 0,
104
+ splitArea: { ...d.splitArea }
105
+ },
106
+ series: h.value.map((b, f) => {
107
+ const L = !!(e != null && e.stack || b.stack), y = f === 0, m = f === h.value.length - 1;
108
+ let w = n ? 2 : 4;
109
+ return L && (y && m ? w = n ? 2 : 4 : y ? w = [0, 0, w, w] : m ? w = [w, w, 0, 0] : w = 0), {
110
+ type: "bar",
111
+ name: b.name,
112
+ stack: (e == null ? void 0 : e.stack) || b.stack,
113
+ data: b.data,
114
+ barMaxWidth: 40,
115
+ itemStyle: {
116
+ borderRadius: w
117
+ }
118
+ };
119
+ })
120
+ };
121
+ }) };
105
122
  }
106
- function S(e) {
107
- const { commonOption: t, xAxisData: n, seriesData: d, axisConfig: c, isMin: a } = r(e);
108
- return { option: m(() => ({
109
- ...t,
110
- tooltip: {
111
- ...t.tooltip,
112
- trigger: "axis"
113
- },
114
- xAxis: {
115
- type: "category",
116
- data: n.value,
117
- ...c,
118
- splitArea: { show: !1 }
119
- // X轴不显示背景间隔
120
- },
121
- yAxis: {
122
- type: "value",
123
- ...c,
124
- splitArea: { show: !a }
125
- // Y轴不显示背景间隔
126
- },
127
- series: d.value.map((l) => ({
128
- type: "line",
129
- name: l.name,
130
- stack: (e == null ? void 0 : e.stack) || l.stack,
131
- data: l.data,
132
- smooth: (e == null ? void 0 : e.smooth) ?? !1,
133
- symbol: a ? "none" : "circle",
134
- symbolSize: a ? 0 : 6,
135
- lineStyle: {
136
- width: 2
137
- // 迷你图也加粗到2px
138
- }
139
- }))
140
- })) };
123
+ function O(e) {
124
+ const { commonOption: t, xAxisData: a, seriesData: h, xAxisConfig: i, yAxisConfig: d, isMin: n } = v(e);
125
+ return { option: g(() => {
126
+ var u;
127
+ const l = h.value.length > 1 && ((e == null ? void 0 : e.showLegend) ?? !n);
128
+ return {
129
+ ...t,
130
+ legend: {
131
+ ...t.legend,
132
+ show: l
133
+ },
134
+ tooltip: {
135
+ ...t.tooltip,
136
+ trigger: "axis"
137
+ },
138
+ xAxis: {
139
+ type: "category",
140
+ data: a.value,
141
+ boundaryGap: !n,
142
+ // 迷你图不留边界间隙
143
+ ...i,
144
+ axisLabel: {
145
+ ...i.axisLabel
146
+ },
147
+ splitArea: { ...i.splitArea, show: ((u = i.splitArea) == null ? void 0 : u.show) ?? !1 }
148
+ // 优先使用用户配置
149
+ },
150
+ yAxis: {
151
+ type: "value",
152
+ ...d,
153
+ axisLabel: {
154
+ ...d.axisLabel
155
+ },
156
+ // 迷你图减少Y轴刻度数量,避免过于密集
157
+ splitNumber: n ? 3 : void 0,
158
+ splitArea: { ...d.splitArea }
159
+ },
160
+ series: h.value.map((b) => ({
161
+ type: "line",
162
+ name: b.name,
163
+ stack: (e == null ? void 0 : e.stack) || b.stack,
164
+ data: b.data,
165
+ smooth: (e == null ? void 0 : e.smooth) ?? !1,
166
+ symbol: n ? "none" : "circle",
167
+ symbolSize: n ? 0 : 6,
168
+ lineStyle: {
169
+ width: 2
170
+ // 迷你图也加粗到2px
171
+ }
172
+ }))
173
+ };
174
+ }) };
141
175
  }
142
- function o(e) {
143
- const t = f(e), n = (e == null ? void 0 : e.min) ?? !1, d = m(() => {
144
- var i, l;
145
- return ((l = (i = e == null ? void 0 : e.data) == null ? void 0 : i.map) == null ? void 0 : l.call(i, (u) => ({
176
+ function A(e) {
177
+ const t = x(e), a = (e == null ? void 0 : e.min) ?? !1, h = g(() => {
178
+ var c, l;
179
+ return ((l = (c = e == null ? void 0 : e.data) == null ? void 0 : c.map) == null ? void 0 : l.call(c, (u) => ({
146
180
  name: u.name,
147
181
  value: u.value
148
182
  }))) || [];
149
- }), c = x([]);
150
- w(() => e == null ? void 0 : e.data, () => {
151
- var i, l;
152
- c.value = ((l = (i = e == null ? void 0 : e.data) == null ? void 0 : i.map) == null ? void 0 : l.call(i, (u) => ({
183
+ }), i = M([]);
184
+ k(() => e == null ? void 0 : e.data, () => {
185
+ var c, l;
186
+ i.value = ((l = (c = e == null ? void 0 : e.data) == null ? void 0 : c.map) == null ? void 0 : l.call(c, (u) => ({
153
187
  ...u,
154
188
  status: !0
155
189
  }))) || [];
156
190
  }, { immediate: !0 });
157
- const a = m(() => {
158
- var i;
159
- return (i = c.value) == null ? void 0 : i.reduce((l, u) => (l[u.name] = u.status, l), {});
191
+ const d = g(() => {
192
+ var c;
193
+ return (c = i.value) == null ? void 0 : c.reduce((l, u) => (l[u.name] = u.status, l), {});
194
+ }), n = g(() => {
195
+ var l;
196
+ return (((l = e == null ? void 0 : e.data) == null ? void 0 : l.length) || 0) > 1 && ((e == null ? void 0 : e.showLegend) ?? !a);
160
197
  });
161
198
  return {
162
199
  commonOption: t,
163
- data: d,
164
- legendData: c,
165
- selected: a,
166
- isMin: n
200
+ data: h,
201
+ legendData: i,
202
+ selected: d,
203
+ shouldShowLegend: n,
204
+ isMin: a
167
205
  };
168
206
  }
169
- function s(e) {
170
- const { commonOption: t, data: n, legendData: d, selected: c, isMin: a } = o(e);
171
- return { option: m(() => {
207
+ function E(e) {
208
+ const { commonOption: t, data: a, legendData: h, selected: i, shouldShowLegend: d, isMin: n } = A(e);
209
+ return { option: g(() => {
172
210
  const l = { ...t };
173
211
  return delete l.grid, {
174
212
  ...l,
@@ -178,31 +216,32 @@ function s(e) {
178
216
  },
179
217
  legend: {
180
218
  ...t.legend,
181
- selected: c.value
219
+ show: d.value,
220
+ selected: i.value
182
221
  },
183
222
  series: {
184
223
  type: "pie",
185
- top: a ? "0%" : "10%",
186
- radius: a ? "100%" : "65%",
224
+ top: n ? "0%" : "10%",
225
+ radius: n ? "100%" : "65%",
187
226
  center: ["50%", "50%"],
188
- label: { show: !a },
189
- labelLine: { show: !a },
227
+ label: { show: !n },
228
+ labelLine: { show: !n },
190
229
  emphasis: {
191
- scale: !a,
230
+ scale: !n,
192
231
  // 迷你图不放大
193
- scaleSize: a ? 0 : 10
232
+ scaleSize: n ? 0 : 10
194
233
  },
195
- data: n.value
234
+ data: a.value
196
235
  }
197
236
  };
198
- }), legendData: d };
237
+ }), legendData: h };
199
238
  }
200
- function M(e) {
201
- const { commonOption: t, data: n, legendData: d, selected: c, isMin: a } = o(e), i = m(() => {
239
+ function z(e) {
240
+ const { commonOption: t, data: a, legendData: h, selected: i, shouldShowLegend: d, isMin: n } = A(e), c = g(() => {
202
241
  var u;
203
- return ((u = d.value) == null ? void 0 : u.reduce((g, y) => A(g, Number(y.value)), 0)) || 0;
242
+ return ((u = h.value) == null ? void 0 : u.reduce((b, f) => S(b, Number(f.value)), 0)) || 0;
204
243
  });
205
- return { option: m(() => {
244
+ return { option: g(() => {
206
245
  const u = { ...t };
207
246
  return delete u.grid, {
208
247
  ...u,
@@ -212,9 +251,10 @@ function M(e) {
212
251
  },
213
252
  legend: {
214
253
  ...t.legend,
215
- selected: c.value
254
+ show: d.value,
255
+ selected: i.value
216
256
  },
217
- graphic: a ? [] : [
257
+ graphic: n ? [] : [
218
258
  {
219
259
  type: "text",
220
260
  left: "center",
@@ -230,32 +270,32 @@ function M(e) {
230
270
  left: "center",
231
271
  top: "55%",
232
272
  style: {
233
- text: String(i.value),
273
+ text: String(c.value),
234
274
  textAlign: "center",
235
275
  fontSize: 16
236
276
  }
237
277
  }
238
278
  ],
239
279
  series: {
240
- top: a ? "0%" : "10%",
280
+ top: n ? "0%" : "10%",
241
281
  type: "pie",
242
- radius: a ? ["30%", "100%"] : ["40%", "70%"],
282
+ radius: n ? ["30%", "100%"] : ["40%", "70%"],
243
283
  center: ["50%", "50%"],
244
- label: { show: !a },
245
- labelLine: { show: !a },
284
+ label: { show: !n },
285
+ labelLine: { show: !n },
246
286
  emphasis: {
247
- scale: !a,
287
+ scale: !n,
248
288
  // 迷你图不放大
249
- scaleSize: a ? 0 : 10
289
+ scaleSize: n ? 0 : 10
250
290
  },
251
- data: n.value
291
+ data: a.value
252
292
  }
253
293
  };
254
- }), legendData: d };
294
+ }), legendData: h };
255
295
  }
256
- function k(e) {
257
- const { commonOption: t, data: n, legendData: d, selected: c, isMin: a } = o(e);
258
- return { option: m(() => {
296
+ function C(e) {
297
+ const { commonOption: t, data: a, legendData: h, selected: i, shouldShowLegend: d, isMin: n } = A(e);
298
+ return { option: g(() => {
259
299
  const l = { ...t };
260
300
  return delete l.grid, {
261
301
  ...l,
@@ -265,29 +305,30 @@ function k(e) {
265
305
  },
266
306
  legend: {
267
307
  ...t.legend,
268
- selected: c.value
308
+ show: d.value,
309
+ selected: i.value
269
310
  },
270
311
  series: {
271
312
  type: "pie",
272
- top: a ? "0%" : "10%",
273
- radius: a ? "100%" : "70%",
313
+ top: n ? "0%" : "10%",
314
+ radius: n ? "100%" : "70%",
274
315
  center: ["50%", "50%"],
275
316
  roseType: "area",
276
- label: { show: !a },
277
- labelLine: { show: !a },
317
+ label: { show: !n },
318
+ labelLine: { show: !n },
278
319
  emphasis: {
279
- scale: !a,
320
+ scale: !n,
280
321
  // 迷你图不放大
281
- scaleSize: a ? 0 : 10
322
+ scaleSize: n ? 0 : 10
282
323
  },
283
- data: n.value
324
+ data: a.value
284
325
  }
285
326
  };
286
- }), legendData: d };
327
+ }), legendData: h };
287
328
  }
288
- function O(e) {
289
- const { commonOption: t, data: n, legendData: d, selected: c, isMin: a } = o(e);
290
- return { option: m(() => {
329
+ function D(e) {
330
+ const { commonOption: t, data: a, legendData: h, selected: i, shouldShowLegend: d, isMin: n } = A(e);
331
+ return { option: g(() => {
291
332
  const l = { ...t };
292
333
  return delete l.grid, {
293
334
  ...l,
@@ -297,56 +338,61 @@ function O(e) {
297
338
  },
298
339
  legend: {
299
340
  ...t.legend,
300
- selected: c.value
341
+ show: d.value,
342
+ selected: i.value
301
343
  },
302
344
  series: {
303
345
  type: "funnel",
304
- top: a ? "0%" : "15%",
305
- left: a ? "0%" : "10%",
306
- right: a ? "0%" : "10%",
307
- bottom: a ? "0%" : "5%",
308
- label: { show: !a },
309
- data: n.value
346
+ top: n ? "0%" : "15%",
347
+ left: n ? "0%" : "10%",
348
+ right: n ? "0%" : "10%",
349
+ bottom: n ? "0%" : "5%",
350
+ label: { show: !n },
351
+ data: a.value
310
352
  }
311
353
  };
312
- }), legendData: d };
354
+ }), legendData: h };
313
355
  }
314
- function E(e) {
315
- const t = f(e), n = (e == null ? void 0 : e.min) ?? !1;
316
- return { option: m(() => {
317
- const c = { ...t };
318
- return delete c.grid, {
319
- ...c,
356
+ function T(e) {
357
+ const t = x(e), a = (e == null ? void 0 : e.min) ?? !1;
358
+ return { option: g(() => {
359
+ var c;
360
+ const i = { ...t };
361
+ delete i.grid;
362
+ const n = (((c = e == null ? void 0 : e.data) == null ? void 0 : c.length) || 0) > 1 && ((e == null ? void 0 : e.showLegend) ?? !a);
363
+ return {
364
+ ...i,
320
365
  tooltip: {
321
366
  ...t.tooltip,
322
367
  trigger: "item"
323
368
  },
324
369
  legend: {
325
370
  ...t.legend,
371
+ show: n,
326
372
  left: "center"
327
373
  },
328
374
  radar: {
329
375
  indicator: (e == null ? void 0 : e.indicator) || [],
330
- splitArea: { show: !n },
376
+ splitArea: { show: !a },
331
377
  center: ["50%", "50%"],
332
- radius: n ? "100%" : "50%",
378
+ radius: a ? "100%" : "50%",
333
379
  axisName: {
334
- color: n ? "transparent" : void 0
380
+ color: a ? "transparent" : void 0
335
381
  }
336
382
  },
337
383
  series: [{
338
384
  type: "radar",
339
385
  data: (e == null ? void 0 : e.data) || [],
340
- lineStyle: { width: n ? 1 : 2 },
341
- areaStyle: { opacity: n ? 0.3 : 0.5 }
386
+ lineStyle: { width: a ? 1 : 2 },
387
+ areaStyle: { opacity: a ? 0.3 : 0.5 }
342
388
  }]
343
389
  };
344
390
  }) };
345
391
  }
346
- function z(e) {
347
- const t = f(e), n = (e == null ? void 0 : e.min) ?? !1;
348
- return { option: m(() => {
349
- var c;
392
+ function W(e) {
393
+ const t = x(e), a = (e == null ? void 0 : e.min) ?? !1;
394
+ return { option: g(() => {
395
+ var i;
350
396
  return {
351
397
  ...t,
352
398
  tooltip: {
@@ -354,9 +400,9 @@ function z(e) {
354
400
  trigger: "item"
355
401
  },
356
402
  visualMap: {
357
- show: !n,
403
+ show: !a,
358
404
  min: 0,
359
- max: Math.max(...((c = e == null ? void 0 : e.data) == null ? void 0 : c.map((a) => a.value)) || [100]),
405
+ max: Math.max(...((i = e == null ? void 0 : e.data) == null ? void 0 : i.map((d) => d.value)) || [100]),
360
406
  left: "left",
361
407
  top: "bottom",
362
408
  calculable: !0
@@ -365,50 +411,50 @@ function z(e) {
365
411
  type: "map",
366
412
  map: (e == null ? void 0 : e.mapName) || "china",
367
413
  data: (e == null ? void 0 : e.data) || [],
368
- label: { show: !n }
414
+ label: { show: !a }
369
415
  }]
370
416
  };
371
417
  }) };
372
418
  }
373
- function D(e) {
374
- const t = f(e), n = (e == null ? void 0 : e.min) ?? !1;
375
- return { option: m(() => {
376
- const c = Array.isArray(e == null ? void 0 : e.data) && (e == null ? void 0 : e.data.length) > 0 && Array.isArray(e == null ? void 0 : e.data[0]);
377
- let a;
378
- if (c) {
379
- const i = e == null ? void 0 : e.data, l = Array.isArray(e == null ? void 0 : e.name) ? e == null ? void 0 : e.name : [(e == null ? void 0 : e.name) || "TreeMap"];
380
- a = i.map((u, g) => ({
381
- name: l[g] || `TreeMap ${g + 1}`,
419
+ function X(e) {
420
+ const t = x(e), a = (e == null ? void 0 : e.min) ?? !1;
421
+ return { option: g(() => {
422
+ const i = Array.isArray(e == null ? void 0 : e.data) && (e == null ? void 0 : e.data.length) > 0 && Array.isArray(e == null ? void 0 : e.data[0]);
423
+ let d;
424
+ if (i) {
425
+ const n = e == null ? void 0 : e.data, c = Array.isArray(e == null ? void 0 : e.name) ? e == null ? void 0 : e.name : [(e == null ? void 0 : e.name) || "TreeMap"];
426
+ d = n.map((l, u) => ({
427
+ name: c[u] || `TreeMap ${u + 1}`,
382
428
  type: "treemap",
383
- data: u,
384
- label: { show: !n },
385
- itemStyle: { borderWidth: n ? 1 : 2 },
386
- top: `${15 + g * (60 / i.length)}%`,
387
- height: `${70 / i.length - 5}%`,
429
+ data: l,
430
+ label: { show: !a },
431
+ itemStyle: { borderWidth: a ? 1 : 2 },
432
+ top: `${15 + u * (60 / n.length)}%`,
433
+ height: `${70 / n.length - 5}%`,
388
434
  breadcrumb: { show: !1 },
389
- roam: n ? !1 : "move",
390
- nodeClick: !n,
435
+ roam: a ? !1 : "move",
436
+ nodeClick: !a,
391
437
  levels: [{
392
438
  itemStyle: {
393
439
  borderWidth: 0,
394
- gapWidth: n ? 1 : 2
440
+ gapWidth: a ? 1 : 2
395
441
  }
396
442
  }]
397
443
  }));
398
444
  } else
399
- a = [{
445
+ d = [{
400
446
  name: Array.isArray(e == null ? void 0 : e.name) ? e == null ? void 0 : e.name[0] : (e == null ? void 0 : e.name) || "TreeMap",
401
447
  type: "treemap",
402
448
  data: (e == null ? void 0 : e.data) || [],
403
- label: { show: !n },
404
- itemStyle: { borderWidth: n ? 1 : 2 },
405
- breadcrumb: { show: !n },
406
- roam: n ? !1 : "move",
407
- nodeClick: !n,
449
+ label: { show: !a },
450
+ itemStyle: { borderWidth: a ? 1 : 2 },
451
+ breadcrumb: { show: !a },
452
+ roam: a ? !1 : "move",
453
+ nodeClick: !a,
408
454
  levels: [{
409
455
  itemStyle: {
410
456
  borderWidth: 0,
411
- gapWidth: n ? 1 : 2
457
+ gapWidth: a ? 1 : 2
412
458
  }
413
459
  }]
414
460
  }];
@@ -423,47 +469,47 @@ function D(e) {
423
469
  },
424
470
  grid: {
425
471
  ...t.grid,
426
- top: c ? "15%" : "10%",
427
- bottom: c ? "15%" : "5%"
472
+ top: i ? "15%" : "10%",
473
+ bottom: i ? "15%" : "5%"
428
474
  },
429
- series: a
475
+ series: d
430
476
  };
431
477
  }) };
432
478
  }
433
- function C(e, t) {
479
+ function R(e, t) {
434
480
  switch (e) {
435
481
  case "bar":
436
- return v(t);
482
+ return o(t);
437
483
  case "line":
438
- return S(t);
484
+ return O(t);
439
485
  case "pie":
440
- return s(t);
486
+ return E(t);
441
487
  case "ring":
442
- return M(t);
488
+ return z(t);
443
489
  case "rose":
444
- return k(t);
490
+ return C(t);
445
491
  case "radar":
446
- return E(t);
492
+ return T(t);
447
493
  case "map":
448
- return z(t);
494
+ return W(t);
449
495
  case "funnel":
450
- return O(t);
451
- case "treemap":
452
496
  return D(t);
497
+ case "treemap":
498
+ return X(t);
453
499
  default:
454
- return v(t);
500
+ return o(t);
455
501
  }
456
502
  }
457
503
  export {
458
- v as useEchartBar,
459
- f as useEchartCommon,
460
- O as useEchartFunnel,
461
- S as useEchartLine,
462
- z as useEchartMap,
463
- s as useEchartPie,
464
- E as useEchartRadar,
465
- M as useEchartRing,
466
- k as useEchartRose,
467
- D as useEchartTreeMap,
468
- C as useEchartType
504
+ o as useEchartBar,
505
+ x as useEchartCommon,
506
+ D as useEchartFunnel,
507
+ O as useEchartLine,
508
+ W as useEchartMap,
509
+ E as useEchartPie,
510
+ T as useEchartRadar,
511
+ z as useEchartRing,
512
+ C as useEchartRose,
513
+ X as useEchartTreeMap,
514
+ R as useEchartType
469
515
  };