@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.
- package/dist/ColorList-36f5fb1f.js +195 -0
- package/dist/ColorList-36f5fb1f.js.map +1 -0
- package/dist/StylesSetting-e13e1698.js +348 -0
- package/dist/StylesSetting-e13e1698.js.map +1 -0
- package/dist/api/axios.d.ts +2 -0
- package/dist/api/http.d.ts +15 -0
- package/dist/api/mock/graph.json.d.ts +102 -0
- package/dist/api/mock/heatMapData.json.d.ts +202 -0
- package/dist/api/mock/index.d.ts +22 -0
- package/dist/api/mock/map.json.d.ts +12 -0
- package/dist/api/mock/sankey.json.d.ts +89 -0
- package/dist/api/mock/scatter.json.d.ts +59 -0
- package/dist/api/mock/test.mock.d.ts +226 -0
- package/dist/api/mock/treemap.json.d.ts +53 -0
- package/dist/api/mock/vchart/bar.json.d.ts +19 -0
- package/dist/api/mock/vchart.mock.d.ts +15 -0
- package/dist/components/GoAppProvider/index.d.ts +2 -0
- package/dist/components/GoAppProvider/index.vue.d.ts +9 -0
- package/dist/components/GoIconify/index.d.ts +2 -0
- package/dist/components/GoIconify/index.vue.d.ts +46 -0
- package/dist/components/GoLangSelect/index.d.ts +2 -0
- package/dist/components/GoLangSelect/index.vue.d.ts +2 -0
- package/dist/components/GoLoading/LoadingSkeleton.vue.d.ts +2 -0
- package/dist/components/GoLoading/index.d.ts +4 -0
- package/dist/components/GoLoading/index.vue.d.ts +2 -0
- package/dist/components/GoSkeleton/index.d.ts +2 -0
- package/dist/components/GoSkeleton/index.vue.d.ts +23 -0
- package/dist/components/GoSystemInfo/index.d.ts +2 -0
- package/dist/components/GoSystemInfo/index.vue.d.ts +12 -0
- package/dist/components/GoSystemSet/index.d.ts +12 -0
- package/dist/components/GoSystemSet/index.vue.d.ts +12 -0
- package/dist/components/GoThemeSelect/index.d.ts +2 -0
- package/dist/components/GoThemeSelect/index.vue.d.ts +2 -0
- package/dist/components/I18n/index.d.ts +2 -0
- package/dist/components/I18n/index.vue.d.ts +2 -0
- package/dist/components/Pages/ChartGlobImage/index.d.ts +2 -0
- package/dist/components/Pages/ChartGlobImage/index.vue.d.ts +14 -0
- package/dist/components/Pages/ChartItemSetting/CollapseItem.vue.d.ts +32 -0
- package/dist/components/Pages/ChartItemSetting/GlobalSettingPosition.vue.d.ts +19 -0
- package/dist/components/Pages/ChartItemSetting/NameSetting.vue.d.ts +14 -0
- package/dist/components/Pages/ChartItemSetting/PositionSetting.vue.d.ts +38 -0
- package/dist/components/Pages/ChartItemSetting/SettingItem.vue.d.ts +27 -0
- package/dist/components/Pages/ChartItemSetting/SettingItemBox.vue.d.ts +43 -0
- package/dist/components/Pages/ChartItemSetting/SizeSetting.vue.d.ts +39 -0
- package/dist/components/Pages/ChartItemSetting/StylesSetting.vue.d.ts +60 -0
- package/dist/components/Pages/ChartItemSetting/index.d.ts +9 -0
- package/dist/components/Pages/Flipper/index.d.ts +3 -0
- package/dist/components/Pages/Flipper/index.vue.d.ts +88 -0
- package/dist/components/Pages/MonacoEditor/index.d.ts +3 -0
- package/dist/components/Pages/MonacoEditor/index.hook.d.ts +8 -0
- package/dist/components/Pages/MonacoEditor/index.vue.d.ts +68 -0
- package/dist/components/Pages/ThemeColorSelect/components/ColorList.vue.d.ts +18 -0
- package/dist/components/Pages/ThemeColorSelect/index.d.ts +2 -0
- package/dist/components/Pages/ThemeColorSelect/index.vue.d.ts +4 -0
- package/dist/components/Plugins/DialogContent/index.d.ts +2 -0
- package/dist/components/Plugins/DialogContent/index.vue.d.ts +2 -0
- package/dist/components/Plugins/LoadingContent/index.d.ts +2 -0
- package/dist/components/Plugins/LoadingContent/index.vue.d.ts +2 -0
- package/dist/components/Plugins/MessageContent/index.d.ts +2 -0
- package/dist/components/Plugins/MessageContent/index.vue.d.ts +2 -0
- package/dist/components/Tips/MacOsControlBtn/index.d.ts +2 -0
- package/dist/components/Tips/MacOsControlBtn/index.vue.d.ts +59 -0
- package/dist/config-135cbd37.js +78 -0
- package/dist/config-135cbd37.js.map +1 -0
- package/dist/config-2f4d03cf.js +50 -0
- package/dist/config-2f4d03cf.js.map +1 -0
- package/dist/config-2feff12a.js +51 -0
- package/dist/config-2feff12a.js.map +1 -0
- package/dist/config-34a249a9.js +50 -0
- package/dist/config-34a249a9.js.map +1 -0
- package/dist/config-54932c86.js +61 -0
- package/dist/config-54932c86.js.map +1 -0
- package/dist/config-63dc5f82.js +62 -0
- package/dist/config-63dc5f82.js.map +1 -0
- package/dist/config-6ff94944.js +58 -0
- package/dist/config-6ff94944.js.map +1 -0
- package/dist/config-70c69137.js +51 -0
- package/dist/config-70c69137.js.map +1 -0
- package/dist/config-72cb7427.js +53 -0
- package/dist/config-72cb7427.js.map +1 -0
- package/dist/config-99706c47.js +58 -0
- package/dist/config-99706c47.js.map +1 -0
- package/dist/config-a6eb66af.js +51 -0
- package/dist/config-a6eb66af.js.map +1 -0
- package/dist/config-ac8d451f.js +127 -0
- package/dist/config-ac8d451f.js.map +1 -0
- package/dist/config-b11b8271.js +53 -0
- package/dist/config-b11b8271.js.map +1 -0
- package/dist/config-bda687c7.js +52 -0
- package/dist/config-bda687c7.js.map +1 -0
- package/dist/config-fe590ea6.js +57 -0
- package/dist/config-fe590ea6.js.map +1 -0
- package/dist/engines/index.d.ts +2 -0
- package/dist/engines/registry.d.ts +24 -0
- package/dist/enums/editPageEnum.d.ts +55 -0
- package/dist/enums/eventEnum.d.ts +32 -0
- package/dist/enums/fileTypeEnum.d.ts +7 -0
- package/dist/enums/httpEnum.d.ts +96 -0
- package/dist/enums/pageEnum.d.ts +0 -0
- package/dist/enums/pluginEnum.d.ts +6 -0
- package/dist/enums/storageEnum.d.ts +8 -0
- package/dist/enums/styleEnum.d.ts +14 -0
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/useChartDataFetch.hook.d.ts +13 -0
- package/dist/hooks/useChartDataPondFetch.hook.d.ts +12 -0
- package/dist/hooks/useChartInteract.hook.d.ts +8 -0
- package/dist/hooks/useCode.hook.d.ts +2 -0
- package/dist/hooks/useLang.hook.d.ts +372 -0
- package/dist/hooks/useLifeHandler.hook.d.ts +9 -0
- package/dist/hooks/usePreviewScale.hook.d.ts +32 -0
- package/dist/hooks/useTheme.hook.d.ts +18 -0
- package/dist/i18n/en/index.d.ts +21 -0
- package/dist/i18n/index.d.ts +48 -0
- package/dist/i18n/zh/index.d.ts +21 -0
- package/dist/index-10b2feb6.js +204 -0
- package/dist/index-10b2feb6.js.map +1 -0
- package/dist/index-148f6c33.js +1183 -0
- package/dist/index-148f6c33.js.map +1 -0
- package/dist/index-237a6823.js +26562 -0
- package/dist/index-237a6823.js.map +1 -0
- package/dist/index-3307e922.js +156 -0
- package/dist/index-3307e922.js.map +1 -0
- package/dist/index-33aae9d2.js +319 -0
- package/dist/index-33aae9d2.js.map +1 -0
- package/dist/index-556d7d7c.js +228 -0
- package/dist/index-556d7d7c.js.map +1 -0
- package/dist/index-617f36ae.js +156 -0
- package/dist/index-617f36ae.js.map +1 -0
- package/dist/index-62e07d83.js +54 -0
- package/dist/index-62e07d83.js.map +1 -0
- package/dist/index-66f7ab2a.js +590 -0
- package/dist/index-66f7ab2a.js.map +1 -0
- package/dist/index-6701793b.js +1811 -0
- package/dist/index-6701793b.js.map +1 -0
- package/dist/index-8d8dc1d2.js +132 -0
- package/dist/index-8d8dc1d2.js.map +1 -0
- package/dist/index-985f409d.js +461 -0
- package/dist/index-985f409d.js.map +1 -0
- package/dist/index-b2e0e39b.js +215 -0
- package/dist/index-b2e0e39b.js.map +1 -0
- package/dist/index-b58bfc89.js +419 -0
- package/dist/index-b58bfc89.js.map +1 -0
- package/dist/index-b5b7a570.js +103 -0
- package/dist/index-b5b7a570.js.map +1 -0
- package/dist/index-be12782c.js +1013 -0
- package/dist/index-be12782c.js.map +1 -0
- package/dist/index-be75d4d8.js +101 -0
- package/dist/index-be75d4d8.js.map +1 -0
- package/dist/index-c7145ef3.js +137 -0
- package/dist/index-c7145ef3.js.map +1 -0
- package/dist/index-ca8cd72a.js +74 -0
- package/dist/index-ca8cd72a.js.map +1 -0
- package/dist/index-cfca17b8.js +138 -0
- package/dist/index-cfca17b8.js.map +1 -0
- package/dist/index-d3c1c990.js +257 -0
- package/dist/index-d3c1c990.js.map +1 -0
- package/dist/index-ea4311bb.js +414 -0
- package/dist/index-ea4311bb.js.map +1 -0
- package/dist/index-ed584e70.js +729 -0
- package/dist/index-ed584e70.js.map +1 -0
- package/dist/index-f0c7797f.js +385 -0
- package/dist/index-f0c7797f.js.map +1 -0
- package/dist/index-f43eed8d.js +307 -0
- package/dist/index-f43eed8d.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/components/LayoutFooter/index.d.ts +2 -0
- package/dist/layout/components/LayoutFooter/index.vue.d.ts +9 -0
- package/dist/layout/components/LayoutHeader/index.d.ts +2 -0
- package/dist/layout/components/LayoutHeader/index.vue.d.ts +12 -0
- package/dist/layout/components/LayoutHeaderPro/index.d.ts +2 -0
- package/dist/layout/components/LayoutHeaderPro/index.vue.d.ts +12 -0
- package/dist/layout/components/LayoutMain/index.d.ts +2 -0
- package/dist/layout/components/LayoutMain/index.vue.d.ts +2 -0
- package/dist/layout/components/LayoutTransitionMain/index.d.ts +2 -0
- package/dist/layout/components/LayoutTransitionMain/index.vue.d.ts +2 -0
- package/dist/lib/GoViewEditor.vue.d.ts +48 -0
- package/dist/lib/GoViewPreview.vue.d.ts +25 -0
- package/dist/lib/index.d.ts +28 -0
- package/dist/lib/skills/index.d.ts +2 -0
- package/dist/lib/skills/registry.d.ts +2 -0
- package/dist/lib/skills/types.d.ts +72 -0
- package/dist/logo-9c1d9d16.js +5 -0
- package/dist/logo-9c1d9d16.js.map +1 -0
- package/dist/noData-63b54dc3.js +5 -0
- package/dist/noData-63b54dc3.js.map +1 -0
- package/dist/packages/components/Decorates/Borders/Border01/config.d.ts +16 -0
- package/dist/packages/components/Decorates/Borders/Border01/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/Border02/config.d.ts +14 -0
- package/dist/packages/components/Decorates/Borders/Border02/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/Border03/config.d.ts +14 -0
- package/dist/packages/components/Decorates/Borders/Border03/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/Border04/config.d.ts +24 -0
- package/dist/packages/components/Decorates/Borders/Border04/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/Border05/config.d.ts +14 -0
- package/dist/packages/components/Decorates/Borders/Border05/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/Border06/config.d.ts +14 -0
- package/dist/packages/components/Decorates/Borders/Border06/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/Border07/config.d.ts +14 -0
- package/dist/packages/components/Decorates/Borders/Border07/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/Border08/config.d.ts +18 -0
- package/dist/packages/components/Decorates/Borders/Border08/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/Border09/config.d.ts +14 -0
- package/dist/packages/components/Decorates/Borders/Border09/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/Border10/config.d.ts +14 -0
- package/dist/packages/components/Decorates/Borders/Border10/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/Border11/config.d.ts +14 -0
- package/dist/packages/components/Decorates/Borders/Border11/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/Border12/config.d.ts +14 -0
- package/dist/packages/components/Decorates/Borders/Border12/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/Border13/config.d.ts +14 -0
- package/dist/packages/components/Decorates/Borders/Border13/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Borders/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Decorates/Decorates01/config.d.ts +18 -0
- package/dist/packages/components/Decorates/Decorates/Decorates01/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Decorates/Decorates02/config.d.ts +16 -0
- package/dist/packages/components/Decorates/Decorates/Decorates02/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Decorates/Decorates03/config.d.ts +27 -0
- package/dist/packages/components/Decorates/Decorates/Decorates03/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Decorates/Decorates04/config.d.ts +14 -0
- package/dist/packages/components/Decorates/Decorates/Decorates04/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Decorates/Decorates05/config.d.ts +14 -0
- package/dist/packages/components/Decorates/Decorates/Decorates05/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Decorates/Decorates06/config.d.ts +27 -0
- package/dist/packages/components/Decorates/Decorates/Decorates06/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Decorates/index.d.ts +2 -0
- package/dist/packages/components/Decorates/FlowChart/FlowChartLine/config.d.ts +22 -0
- package/dist/packages/components/Decorates/FlowChart/FlowChartLine/index.d.ts +2 -0
- package/dist/packages/components/Decorates/FlowChart/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Mores/CirclePoint/config.d.ts +29 -0
- package/dist/packages/components/Decorates/Mores/CirclePoint/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Mores/Clock/config.d.ts +18 -0
- package/dist/packages/components/Decorates/Mores/Clock/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Mores/CountDown/config.d.ts +35 -0
- package/dist/packages/components/Decorates/Mores/CountDown/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Mores/FlipperNumber/config.d.ts +31 -0
- package/dist/packages/components/Decorates/Mores/FlipperNumber/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Mores/FullScreen/config.d.ts +25 -0
- package/dist/packages/components/Decorates/Mores/FullScreen/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Mores/Number/config.d.ts +32 -0
- package/dist/packages/components/Decorates/Mores/Number/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Mores/PipelineH/config.d.ts +27 -0
- package/dist/packages/components/Decorates/Mores/PipelineH/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Mores/PipelineV/config.d.ts +27 -0
- package/dist/packages/components/Decorates/Mores/PipelineV/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Mores/TimeCommon/config.d.ts +47 -0
- package/dist/packages/components/Decorates/Mores/TimeCommon/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Mores/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Three/ThreeEarth01/code/Utils/arc.d.ts +11 -0
- package/dist/packages/components/Decorates/Three/ThreeEarth01/code/Utils/common.d.ts +34 -0
- package/dist/packages/components/Decorates/Three/ThreeEarth01/code/interfaces/IEvents.d.ts +3 -0
- package/dist/packages/components/Decorates/Three/ThreeEarth01/code/interfaces/IWord.d.ts +6 -0
- package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Assets.d.ts +13 -0
- package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Basic.d.ts +22 -0
- package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Earth.d.ts +98 -0
- package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Resources.d.ts +16 -0
- package/dist/packages/components/Decorates/Three/ThreeEarth01/code/world/Word.d.ts +25 -0
- package/dist/packages/components/Decorates/Three/ThreeEarth01/config.d.ts +43 -0
- package/dist/packages/components/Decorates/Three/ThreeEarth01/data.json.d.ts +87 -0
- package/dist/packages/components/Decorates/Three/ThreeEarth01/index.d.ts +2 -0
- package/dist/packages/components/Decorates/Three/index.d.ts +2 -0
- package/dist/packages/components/Decorates/index.d.ts +15 -0
- package/dist/packages/components/Icons/Common/index.d.ts +21 -0
- package/dist/packages/components/Icons/Default/Icon/config.d.ts +27 -0
- package/dist/packages/components/Icons/Default/Icon/index.d.ts +2 -0
- package/dist/packages/components/Icons/MaterialLine/index.d.ts +21 -0
- package/dist/packages/components/Icons/Weather/index.d.ts +21 -0
- package/dist/packages/components/Icons/index.d.ts +13 -0
- package/dist/packages/components/Informations/Mores/CardCustom/config.d.ts +42 -0
- package/dist/packages/components/Informations/Mores/CardCustom/index.d.ts +2 -0
- package/dist/packages/components/Informations/Mores/Iframe/config.d.ts +23 -0
- package/dist/packages/components/Informations/Mores/Iframe/index.d.ts +2 -0
- package/dist/packages/components/Informations/Mores/Image/config.d.ts +16 -0
- package/dist/packages/components/Informations/Mores/Image/index.d.ts +2 -0
- package/dist/packages/components/Informations/Mores/ImageCarousel/config.d.ts +36 -0
- package/dist/packages/components/Informations/Mores/ImageCarousel/index.d.ts +2 -0
- package/dist/packages/components/Informations/Mores/MissingComponent/config.d.ts +20 -0
- package/dist/packages/components/Informations/Mores/MissingComponent/index.d.ts +2 -0
- package/dist/packages/components/Informations/Mores/Video/config.d.ts +20 -0
- package/dist/packages/components/Informations/Mores/Video/index.d.ts +2 -0
- package/dist/packages/components/Informations/Mores/index.d.ts +2 -0
- package/dist/packages/components/Informations/index.d.ts +1 -0
- package/dist/packages/components/Photos/Private/index.d.ts +23 -0
- package/dist/packages/components/Photos/Share/index.d.ts +21 -0
- package/dist/packages/components/Photos/index.d.ts +9 -0
- package/dist/packages/index.d.ts +252 -0
- package/dist/packages/public/chart.d.ts +8 -0
- package/dist/packages/public/index.d.ts +2 -0
- package/dist/packages/public/publicConfig.d.ts +80 -0
- package/dist/packages/registry.d.ts +34 -0
- package/dist/plugins/customComponents.d.ts +6 -0
- package/dist/plugins/directives.d.ts +6 -0
- package/dist/plugins/icon.d.ts +110 -0
- package/dist/plugins/index.d.ts +4 -0
- package/dist/plugins/initFunction.d.ts +4 -0
- package/dist/plugins/naive.d.ts +2 -0
- package/dist/pondIndex.vue_vue_type_style_index_0_scoped_3ac883be_lang-8afe2387.js +2371 -0
- package/dist/pondIndex.vue_vue_type_style_index_0_scoped_3ac883be_lang-8afe2387.js.map +1 -0
- package/dist/published/chartItemSetting.d.ts +1 -0
- package/dist/published/chartThemes.d.ts +1 -0
- package/dist/published/designSetting.d.ts +1 -0
- package/dist/published/eventEnums.d.ts +1 -0
- package/dist/published/hooks.d.ts +1 -0
- package/dist/published/informationTypes.d.ts +1 -0
- package/dist/published/plugins.d.ts +1 -0
- package/dist/published/public.d.ts +1 -0
- package/dist/published/scaleHook.d.ts +1 -0
- package/dist/published/store.d.ts +1 -0
- package/dist/published/types.d.ts +1 -0
- package/dist/published/utils.d.ts +1 -0
- package/dist/published/vchartAxisTheme.d.ts +2 -0
- package/dist/published/vchartThemes.d.ts +1 -0
- package/dist/runtime.d.ts +10 -0
- package/dist/settings/animations/index.d.ts +7 -0
- package/dist/settings/chartThemes/global.theme.json.d.ts +113 -0
- package/dist/settings/chartThemes/index.d.ts +194 -0
- package/dist/settings/chartThemes/themes/chalk.json.d.ts +15 -0
- package/dist/settings/chartThemes/themes/customed.json.d.ts +16 -0
- package/dist/settings/chartThemes/themes/dark.json.d.ts +16 -0
- package/dist/settings/chartThemes/themes/essos.json.d.ts +13 -0
- package/dist/settings/chartThemes/themes/macarons.json.d.ts +27 -0
- package/dist/settings/chartThemes/themes/purple-passion.json.d.ts +13 -0
- package/dist/settings/chartThemes/themes/roma.json.d.ts +27 -0
- package/dist/settings/chartThemes/themes/shine.json.d.ts +15 -0
- package/dist/settings/chartThemes/themes/vintage.json.d.ts +17 -0
- package/dist/settings/chartThemes/themes/walden.json.d.ts +13 -0
- package/dist/settings/chartThemes/themes/westeros.json.d.ts +13 -0
- package/dist/settings/chartThemes/themes/wonderland.json.d.ts +13 -0
- package/dist/settings/designColor.json.d.ts +3680 -0
- package/dist/settings/designColorRecommend.json.d.ts +33 -0
- package/dist/settings/designSetting.d.ts +32 -0
- package/dist/settings/pathConst.d.ts +3 -0
- package/dist/settings/systemSetting.d.ts +10 -0
- package/dist/settings/vchartThemes/index.d.ts +138 -0
- package/dist/store/index.d.ts +12 -0
- package/dist/store/modules/chartEditStore/chartEditStore.d.ts +213 -0
- package/dist/store/modules/chartHistoryStore/chartHistoryDefine.d.ts +20 -0
- package/dist/store/modules/chartHistoryStore/chartHistoryStore.d.ts +77 -0
- package/dist/store/modules/chartLayoutStore/chartLayoutStore.d.ts +36 -0
- package/dist/store/modules/designStore/designStore.d.ts +18 -0
- package/dist/store/modules/langStore/langStore.d.ts +5 -0
- package/dist/store/modules/packagesStore/packagesStore.d.ts +6 -0
- package/dist/store/modules/settingStore/settingStore.d.ts +31 -0
- package/dist/style.css +7 -0
- package/dist/types/global.d.ts +31 -0
- package/dist/types/shims-vue.d.ts +5 -0
- package/dist/useSyncUpdate.hook-f291c525.js +43 -0
- package/dist/useSyncUpdate.hook-f291c525.js.map +1 -0
- package/dist/useTargetData.hook-832cc980.js +13 -0
- package/dist/useTargetData.hook-832cc980.js.map +1 -0
- package/dist/utils/components.d.ts +12 -0
- package/dist/utils/crypto.d.ts +12 -0
- package/dist/utils/file.d.ts +19 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/plugin.d.ts +29 -0
- package/dist/utils/router.d.ts +20 -0
- package/dist/utils/storage.d.ts +35 -0
- package/dist/utils/style.d.ts +141 -0
- package/dist/utils/type.d.ts +8 -0
- package/dist/utils/utils.d.ts +127 -0
- package/dist/views/chart/ContentBox/index.d.ts +2 -0
- package/dist/views/chart/ContentBox/index.vue.d.ts +87 -0
- package/dist/views/chart/ContentCharts/components/ChartsItemBox/index.d.ts +2 -0
- package/dist/views/chart/ContentCharts/components/ChartsItemBox/index.vue.d.ts +22 -0
- package/dist/views/chart/ContentCharts/components/ChartsOptionContent/index.d.ts +2 -0
- package/dist/views/chart/ContentCharts/components/ChartsOptionContent/index.vue.d.ts +14 -0
- package/dist/views/chart/ContentCharts/components/ChartsSearch/index.d.ts +2 -0
- package/dist/views/chart/ContentCharts/components/ChartsSearch/index.vue.d.ts +14 -0
- package/dist/views/chart/ContentCharts/hooks/useAside.hook.d.ts +17 -0
- package/dist/views/chart/ContentCharts/hooks/useLayout.hook.d.ts +5 -0
- package/dist/views/chart/ContentCharts/index.d.ts +2 -0
- package/dist/views/chart/ContentCharts/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/ChartThemeColor/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColor/index.vue.d.ts +14 -0
- package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRender/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRender/index.vue.d.ts +16 -0
- package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/barOptions.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.vue.d.ts +16 -0
- package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/lineOptions.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/CanvasPage/components/VChartThemeColor/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/CanvasPage/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/CanvasPage/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartAnimation/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataAjax/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataAjax/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.vue.d.ts +22 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMonacoEditor/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMonacoEditor/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataDisplay/displayTable.vue.d.ts +8 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataDisplay/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataDisplay/index.vue.d.ts +10 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondControl/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondControl/index.vue.d.ts +14 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondList/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/components/ChartDataPondList/index.vue.d.ts +8 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataPond/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestGlobalConfig/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestGlobalConfig/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestGlobalHeaderTable/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestGlobalHeaderTable/index.vue.d.ts +14 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestHeader/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestHeader/index.vue.d.ts +8 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestHeaderTable/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestHeaderTable/index.vue.d.ts +33 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestTargetConfig/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/components/RequestTargetConfig/index.vue.d.ts +8 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/index.d.ts +3 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/index.vue.d.ts +20 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataRequest/pondIndex.vue.d.ts +20 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataStatic/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/components/ChartDataStatic/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/hooks/useFile.hooks.d.ts +9 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/index.d.ts +104 -0
- package/dist/views/chart/ContentConfigurations/components/ChartData/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventAdvancedHandle/importTemplate.d.ts +4 -0
- package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventAdvancedHandle/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventAdvancedHandle/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventBaseHandle/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventBaseHandle/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventInteraction/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventInteraction/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartEvent/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/ChartSetting/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.d.ts +56 -0
- package/dist/views/chart/ContentConfigurations/index.d.ts +2 -0
- package/dist/views/chart/ContentConfigurations/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditAlignLine/index.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditAlignLine/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditBottom/index.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditBottom/index.vue.d.ts +4 -0
- package/dist/views/chart/ContentEdit/components/EditGroup/index.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditGroup/index.vue.d.ts +22 -0
- package/dist/views/chart/ContentEdit/components/EditHistory/index.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditHistory/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditRange/index.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditRange/index.vue.d.ts +9 -0
- package/dist/views/chart/ContentEdit/components/EditRule/index.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditRule/index.vue.d.ts +13 -0
- package/dist/views/chart/ContentEdit/components/EditSelect/index.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditSelect/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditShapeBox/index.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditShapeBox/index.vue.d.ts +31 -0
- package/dist/views/chart/ContentEdit/components/EditShortcutKey/ShortcutKeyModal.vue.d.ts +12 -0
- package/dist/views/chart/ContentEdit/components/EditShortcutKey/index.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditShortcutKey/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditTools/hooks/useFile.hooks.d.ts +8 -0
- package/dist/views/chart/ContentEdit/components/EditTools/hooks/useSyncUpdate.hook.d.ts +3 -0
- package/dist/views/chart/ContentEdit/components/EditTools/index.d.ts +12 -0
- package/dist/views/chart/ContentEdit/components/EditTools/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditTools/utils/index.d.ts +1 -0
- package/dist/views/chart/ContentEdit/components/EditWatermark/index.d.ts +2 -0
- package/dist/views/chart/ContentEdit/components/EditWatermark/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentEdit/hooks/useDrag.hook.d.ts +12 -0
- package/dist/views/chart/ContentEdit/hooks/useLayout.hook.d.ts +1 -0
- package/dist/views/chart/ContentEdit/hooks/useStyle.hook.d.ts +16 -0
- package/dist/views/chart/ContentEdit/index.d.ts +2 -0
- package/dist/views/chart/ContentEdit/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentHeader/headerLeftBtn/index.d.ts +2 -0
- package/dist/views/chart/ContentHeader/headerLeftBtn/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentHeader/headerRightBtn/index.d.ts +2 -0
- package/dist/views/chart/ContentHeader/headerRightBtn/index.vue.d.ts +4 -0
- package/dist/views/chart/ContentHeader/headerTitle/index.d.ts +2 -0
- package/dist/views/chart/ContentHeader/headerTitle/index.vue.d.ts +4 -0
- package/dist/views/chart/ContentLayers/components/LayersGroupListItem/index.d.ts +2 -0
- package/dist/views/chart/ContentLayers/components/LayersGroupListItem/index.vue.d.ts +25 -0
- package/dist/views/chart/ContentLayers/components/LayersListItem/index.d.ts +2 -0
- package/dist/views/chart/ContentLayers/components/LayersListItem/index.vue.d.ts +34 -0
- package/dist/views/chart/ContentLayers/components/LayersStatus/index.d.ts +2 -0
- package/dist/views/chart/ContentLayers/components/LayersStatus/index.vue.d.ts +40 -0
- package/dist/views/chart/ContentLayers/enums.d.ts +0 -0
- package/dist/views/chart/ContentLayers/index.d.ts +2 -0
- package/dist/views/chart/ContentLayers/index.vue.d.ts +2 -0
- package/dist/views/chart/ContentLoad/index.d.ts +2 -0
- package/dist/views/chart/ContentLoad/index.vue.d.ts +2 -0
- package/dist/views/chart/hooks/useContextMenu.hook.d.ts +10 -0
- package/dist/views/chart/hooks/useKeyboard.hook.d.ts +38 -0
- package/dist/views/chart/hooks/useScale.hook.d.ts +24 -0
- package/dist/views/chart/hooks/useSync.hook.d.ts +4 -0
- package/dist/views/chart/index.vue.d.ts +13 -0
- package/dist/views/preview/components/PreviewRenderGroup/index.d.ts +2 -0
- package/dist/views/preview/components/PreviewRenderGroup/index.vue.d.ts +38 -0
- package/dist/views/preview/components/PreviewRenderList/index.d.ts +2 -0
- package/dist/views/preview/components/PreviewRenderList/index.vue.d.ts +2 -0
- package/dist/views/preview/hooks/useComInstall.hook.d.ts +4 -0
- package/dist/views/preview/hooks/useScale.hook.d.ts +16 -0
- package/dist/views/preview/hooks/useStore.hook.d.ts +2 -0
- package/dist/views/preview/index.d.ts +4 -0
- package/dist/views/preview/suspenseIndex.vue.d.ts +5 -0
- package/dist/views/preview/utils/drag.d.ts +1 -0
- package/dist/views/preview/utils/index.d.ts +4 -0
- package/dist/views/preview/utils/keyboard.d.ts +1 -0
- package/dist/views/preview/utils/storage.d.ts +5 -0
- package/dist/views/preview/utils/style.d.ts +25 -0
- package/package.json +136 -0
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { defineComponent as x, ref as d, watch as y, resolveComponent as s, openBlock as u, createElementBlock as g, createBlock as b, withCtx as m, createVNode as i, createCommentVNode as v } from "vue";
|
|
2
|
+
import { CanvasRenderer as C } from "echarts/renderers";
|
|
3
|
+
import { BarChart as w, LineChart as A } from "echarts/charts";
|
|
4
|
+
import { graphic as $, use as k } from "echarts/core";
|
|
5
|
+
import { DatasetComponent as L, GridComponent as B, TooltipComponent as H, LegendComponent as T } from "echarts/components";
|
|
6
|
+
import R from "lodash/merge";
|
|
7
|
+
import S from "lodash/pick";
|
|
8
|
+
import { aY as G, _ as I } from "./index-237a6823.js";
|
|
9
|
+
import "vue3-lazyload";
|
|
10
|
+
import "vue3-sketch-ruler";
|
|
11
|
+
import "element-plus";
|
|
12
|
+
import "screenfull";
|
|
13
|
+
import "lodash/throttle";
|
|
14
|
+
import "html2canvas";
|
|
15
|
+
import "lodash/isObject";
|
|
16
|
+
import "lodash/cloneDeep";
|
|
17
|
+
import "crypto-js";
|
|
18
|
+
import "pinia";
|
|
19
|
+
import "vue-i18n";
|
|
20
|
+
import "vue-demi";
|
|
21
|
+
import "lodash/debounce";
|
|
22
|
+
import "highlight.js/lib/core";
|
|
23
|
+
import "highlight.js/lib/languages/json";
|
|
24
|
+
import "highlight.js/lib/languages/typescript";
|
|
25
|
+
import "axios";
|
|
26
|
+
import "lodash";
|
|
27
|
+
import "element-plus/es/locale/lang/zh-cn";
|
|
28
|
+
import "element-plus/es/locale/lang/en";
|
|
29
|
+
import "three";
|
|
30
|
+
import "three/examples/jsm/controls/OrbitControls";
|
|
31
|
+
import "gsap";
|
|
32
|
+
import "vue3-sketch-ruler/lib/style.css";
|
|
33
|
+
const O = (e, o, t) => e = R({}, S(o, t), e), h = (e, o = []) => (e.backgroundColor = "rgba(0,0,0,0)", O(e, G, o)), P = ["legend", "xAxis", "yAxis", "grid"], z = (e) => {
|
|
34
|
+
const o = (r, a) => parseInt(`${r * Math.random()}`, 10) * 2, t = [260, 251, 200, 334, 366, 256, 253];
|
|
35
|
+
return e.map((r, a) => ({
|
|
36
|
+
name: `data${a + 1}`,
|
|
37
|
+
type: "bar",
|
|
38
|
+
data: t.map((n, p) => o(n))
|
|
39
|
+
}));
|
|
40
|
+
}, M = (e) => h(
|
|
41
|
+
{
|
|
42
|
+
tooltip: {
|
|
43
|
+
trigger: "axis",
|
|
44
|
+
showContent: !1,
|
|
45
|
+
axisPointer: {
|
|
46
|
+
type: "shadow"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
grid: {
|
|
50
|
+
left: "3%",
|
|
51
|
+
right: "4%",
|
|
52
|
+
bottom: "3%",
|
|
53
|
+
containLabel: !0
|
|
54
|
+
},
|
|
55
|
+
xAxis: {
|
|
56
|
+
type: "category",
|
|
57
|
+
data: e.map((o, t) => `data${t + 1}`),
|
|
58
|
+
axisTick: {
|
|
59
|
+
alignWithLabel: !0
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
yAxis: {
|
|
63
|
+
show: !0,
|
|
64
|
+
type: "value"
|
|
65
|
+
},
|
|
66
|
+
series: z(e || [])
|
|
67
|
+
},
|
|
68
|
+
P
|
|
69
|
+
), N = ["legend", "xAxis", "yAxis", "grid"], V = (e) => {
|
|
70
|
+
const o = (r, a) => parseInt(`${r * Math.random()}`, 10) * 2, t = [130, 251, 200, 334, 366, 456, 223];
|
|
71
|
+
return e.map((r, a) => ({
|
|
72
|
+
name: `data${a + 1}`,
|
|
73
|
+
type: "line",
|
|
74
|
+
smooth: !0,
|
|
75
|
+
lineStyle: {
|
|
76
|
+
width: 1,
|
|
77
|
+
type: "solid"
|
|
78
|
+
},
|
|
79
|
+
emphasis: {
|
|
80
|
+
focus: "series"
|
|
81
|
+
},
|
|
82
|
+
areaStyle: {
|
|
83
|
+
opacity: 0.8,
|
|
84
|
+
color: new $.LinearGradient(0, 0, 0, 1, [
|
|
85
|
+
{
|
|
86
|
+
offset: 1,
|
|
87
|
+
color: r
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
offset: 0,
|
|
91
|
+
color: r
|
|
92
|
+
}
|
|
93
|
+
])
|
|
94
|
+
},
|
|
95
|
+
showSymbol: !1,
|
|
96
|
+
data: t.reverse().map((n, p) => o(n))
|
|
97
|
+
}));
|
|
98
|
+
}, W = (e) => h(
|
|
99
|
+
{
|
|
100
|
+
tooltip: {
|
|
101
|
+
trigger: "axis",
|
|
102
|
+
showContent: !1,
|
|
103
|
+
axisPointer: {
|
|
104
|
+
type: "shadow"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
grid: {
|
|
108
|
+
left: "3%",
|
|
109
|
+
right: "4%",
|
|
110
|
+
bottom: "3%",
|
|
111
|
+
containLabel: !0
|
|
112
|
+
},
|
|
113
|
+
xAxis: {
|
|
114
|
+
type: "category",
|
|
115
|
+
boundaryGap: !1,
|
|
116
|
+
data: e.map((o, t) => `data${t + 1}`),
|
|
117
|
+
axisTick: {
|
|
118
|
+
alignWithLabel: !0
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
yAxis: {
|
|
122
|
+
show: !0,
|
|
123
|
+
type: "value"
|
|
124
|
+
},
|
|
125
|
+
series: V(e || [])
|
|
126
|
+
},
|
|
127
|
+
N
|
|
128
|
+
), q = { class: "chart-container" }, E = /* @__PURE__ */ x({
|
|
129
|
+
name: "CreateColorRenderChart",
|
|
130
|
+
__name: "index",
|
|
131
|
+
props: {
|
|
132
|
+
color: {
|
|
133
|
+
type: Array,
|
|
134
|
+
required: !0
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
setup(e) {
|
|
138
|
+
const o = e;
|
|
139
|
+
k([L, C, w, A, B, H, T]);
|
|
140
|
+
const t = d(), r = d(), a = {
|
|
141
|
+
width: "528px",
|
|
142
|
+
height: "200px"
|
|
143
|
+
};
|
|
144
|
+
return y(
|
|
145
|
+
() => o.color,
|
|
146
|
+
(n) => {
|
|
147
|
+
t.value = M(n), r.value = W(n);
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
immediate: !0,
|
|
151
|
+
deep: !0
|
|
152
|
+
}
|
|
153
|
+
), (n, p) => {
|
|
154
|
+
const l = s("v-chart"), c = s("el-tab-pane"), _ = s("el-tabs"), f = s("el-card");
|
|
155
|
+
return u(), g("div", q, [
|
|
156
|
+
t.value ? (u(), b(f, {
|
|
157
|
+
key: 0,
|
|
158
|
+
class: "go-mt-3",
|
|
159
|
+
shadow: "never",
|
|
160
|
+
role: "dialog",
|
|
161
|
+
"aria-modal": "true"
|
|
162
|
+
}, {
|
|
163
|
+
default: m(() => [
|
|
164
|
+
i(_, {
|
|
165
|
+
type: "border-card",
|
|
166
|
+
class: "small-tabs"
|
|
167
|
+
}, {
|
|
168
|
+
default: m(() => [
|
|
169
|
+
i(c, {
|
|
170
|
+
label: "柱状图",
|
|
171
|
+
name: "柱状图"
|
|
172
|
+
}, {
|
|
173
|
+
default: m(() => [
|
|
174
|
+
i(l, {
|
|
175
|
+
ref: "vChartRefBar",
|
|
176
|
+
theme: { color: e.color },
|
|
177
|
+
option: t.value,
|
|
178
|
+
"manual-update": !0,
|
|
179
|
+
autoresize: "",
|
|
180
|
+
style: a
|
|
181
|
+
}, null, 8, ["theme", "option"])
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
}),
|
|
185
|
+
i(c, {
|
|
186
|
+
label: "折线图",
|
|
187
|
+
name: "折线图"
|
|
188
|
+
}, {
|
|
189
|
+
default: m(() => [
|
|
190
|
+
i(l, {
|
|
191
|
+
ref: "vChartRefLine",
|
|
192
|
+
theme: { color: e.color },
|
|
193
|
+
option: r.value,
|
|
194
|
+
"manual-update": !0,
|
|
195
|
+
autoresize: "",
|
|
196
|
+
style: a
|
|
197
|
+
}, null, 8, ["theme", "option"])
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
})
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
})
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
})) : v("", !0)
|
|
207
|
+
]);
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
const Ce = /* @__PURE__ */ I(E, [["__scopeId", "data-v-d370b773"]]);
|
|
212
|
+
export {
|
|
213
|
+
Ce as default
|
|
214
|
+
};
|
|
215
|
+
//# sourceMappingURL=index-b2e0e39b.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-b2e0e39b.js","sources":["../src/packages/public/chart.ts","../src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/barOptions.ts","../src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/lineOptions.ts","../src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.vue"],"sourcesContent":["import merge from 'lodash/merge'\nimport pick from 'lodash/pick'\nimport { globalThemeJson } from '@core/settings/chartThemes'\nimport type { EchartsDataType } from '@core/packages/index.d'\n\nexport const mergeTheme = <T, U>(option: T, themeSetting: U, includes: string[]) => {\n return (option = merge({}, pick(themeSetting, includes), option))\n}\n\nexport const echartOptionProfixHandle = (option: any, includes: string[] = []) => {\n option.backgroundColor = 'rgba(0,0,0,0)'\n return mergeTheme(option, globalThemeJson, includes)\n}\n\nexport const setData = (option: any, data: EchartsDataType) => {\n option.dataset = data\n return option\n}\n\nexport const setOption = <T extends { getOption: () => any; setOption: (data: any, opts: any) => any } | null | undefined, D>(\n instance: T,\n data: D,\n notMerge = true\n) => {\n if (!instance) return\n const option = instance.getOption()\n option.dataset = null\n instance.setOption(data, {\n notMerge\n })\n}\n","import { echartOptionProfixHandle } from '@core/packages/public'\n\nexport const includes = ['legend', 'xAxis', 'yAxis', 'grid']\n\nconst seriesHandle = (color: string[]) => {\n const numHandle = (numsi: number, i: number) => parseInt(`${numsi * Math.random()}`, 10) * 2\n const nums = [260, 251, 200, 334, 366, 256, 253]\n\n return color.map((item, index) => ({\n name: `data${index + 1}`,\n type: 'bar',\n data: nums.map((numsItem, numsi) => numHandle(numsItem, index))\n }))\n}\n\nexport const option = (color: string[]) => {\n return echartOptionProfixHandle(\n {\n tooltip: {\n trigger: 'axis',\n showContent: false,\n axisPointer: {\n type: 'shadow'\n }\n },\n grid: {\n left: '3%',\n right: '4%',\n bottom: '3%',\n containLabel: true\n },\n xAxis: {\n type: 'category',\n data: color.map((e, i) => `data${i + 1}`),\n axisTick: {\n alignWithLabel: true\n }\n },\n yAxis: {\n show: true,\n type: 'value'\n },\n series: seriesHandle(color || [])\n },\n includes\n )\n}\n","import { echartOptionProfixHandle } from '@core/packages/public'\nimport { graphic } from 'echarts/core'\nimport { fade, hslToHex } from '@core/utils'\n\nexport const includes = ['legend', 'xAxis', 'yAxis', 'grid']\n\nconst seriesHandle = (color: string[]) => {\n const numHandle = (numsi: number, i: number) => parseInt(`${numsi * Math.random()}`, 10) * 2\n const nums = [130, 251, 200, 334, 366, 456, 223]\n\n return color.map((item, index) => ({\n name: `data${index + 1}`,\n type: 'line',\n smooth: true,\n lineStyle: {\n width: 1,\n type: 'solid'\n },\n emphasis: {\n focus: 'series'\n },\n areaStyle: {\n opacity: 0.8,\n color: new graphic.LinearGradient(0, 0, 0, 1, [\n {\n offset: 1,\n color: item\n },\n {\n offset: 0,\n color: item\n }\n ])\n },\n showSymbol: false,\n data: nums.reverse().map((numsItem, numsi) => numHandle(numsItem, index))\n }))\n}\n\nexport const option = (color: string[]) => {\n return echartOptionProfixHandle(\n {\n tooltip: {\n trigger: 'axis',\n showContent: false,\n axisPointer: {\n type: 'shadow'\n }\n },\n grid: {\n left: '3%',\n right: '4%',\n bottom: '3%',\n containLabel: true\n },\n xAxis: {\n type: 'category',\n boundaryGap: false,\n data: color.map((e, i) => `data${i + 1}`),\n axisTick: {\n alignWithLabel: true\n }\n },\n yAxis: {\n show: true,\n type: 'value'\n },\n series: seriesHandle(color || [])\n },\n includes\n )\n}\n","<template>\n <div class=\"chart-container\">\n <el-card v-if=\"barOption\" class=\"go-mt-3\" :shadow=\"'never'\" role=\"dialog\" aria-modal=\"true\">\n <el-tabs type=\"border-card\" class=\"small-tabs\">\n <el-tab-pane label=\"柱状图\" name=\"柱状图\">\n <v-chart\n ref=\"vChartRefBar\"\n :theme=\"{ color }\"\n :option=\"barOption\"\n :manual-update=\"true\"\n autoresize\n :style=\"chartStyle\"\n ></v-chart>\n </el-tab-pane>\n <el-tab-pane label=\"折线图\" name=\"折线图\">\n <v-chart\n ref=\"vChartRefLine\"\n :theme=\"{ color }\"\n :option=\"lineOption\"\n :manual-update=\"true\"\n autoresize\n :style=\"chartStyle\"\n ></v-chart>\n </el-tab-pane>\n </el-tabs>\n </el-card>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, watch, PropType } from 'vue'\nimport { CanvasRenderer } from 'echarts/renderers'\nimport { BarChart, LineChart } from 'echarts/charts'\nimport { use } from 'echarts/core'\nimport { DatasetComponent, GridComponent, TooltipComponent, LegendComponent } from 'echarts/components'\nimport { option as barOptions } from './barOptions'\nimport { option as lineOptions } from './lineOptions'\n\nconst props = defineProps({\n color: {\n type: Array as PropType<string[]>,\n required: true\n }\n})\n\ndefineOptions({\n name: 'CreateColorRenderChart'\n})\nuse([DatasetComponent, CanvasRenderer, BarChart, LineChart, GridComponent, TooltipComponent, LegendComponent])\n\nconst barOption = ref()\nconst lineOption = ref()\n\nconst chartStyle = {\n width: '528px',\n height: '200px'\n}\n\nwatch(\n () => props.color,\n (newData: string[]) => {\n barOption.value = barOptions(newData)\n lineOption.value = lineOptions(newData)\n },\n {\n immediate: true,\n deep: true\n }\n)\n</script>\n\n<style lang=\"scss\" scoped>\n.chart-container {\n display: flex;\n}\n.small-tabs {\n :deep(.el-tabs__header) {\n margin-bottom: 8px;\n }\n :deep(.el-tabs__item) {\n font-size: 12px;\n padding: 0 12px;\n height: 28px;\n line-height: 28px;\n }\n}\n</style>\n"],"names":["mergeTheme","option","themeSetting","includes","merge","pick","echartOptionProfixHandle","globalThemeJson","seriesHandle","color","numHandle","numsi","i","nums","item","index","numsItem","e","graphic","props","__props","use","DatasetComponent","CanvasRenderer","BarChart","LineChart","GridComponent","TooltipComponent","LegendComponent","barOption","ref","lineOption","chartStyle","watch","newData","barOptions","lineOptions","_openBlock","_createElementBlock","_hoisted_1","_createBlock","_component_el_card","_createVNode","_component_el_tabs","_component_el_tab_pane","_component_v_chart"],"mappings":"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"}
|
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
import { defineComponent as P, useCssVars as q, computed as f, resolveComponent as D, withDirectives as J, openBlock as m, createElementBlock as E, createVNode as g, normalizeClass as G, withCtx as v, createBlock as C, resolveDynamicComponent as A, unref as l, vShow as Q, ref as N, createElementVNode as _, toDisplayString as Z, Fragment as ee, renderList as te, watch as le, createCommentVNode as re } from "vue";
|
|
2
|
+
import ce from "vuedraggable";
|
|
3
|
+
import ie from "lodash/cloneDeep";
|
|
4
|
+
import { C as ue } from "./index-3307e922.js";
|
|
5
|
+
import { m as K, w as X, p as z, _ as V, L as H, x as Y, y as de, z as h, A as oe, B as pe, D as ne, u as me, o as W } from "./index-237a6823.js";
|
|
6
|
+
import "crypto-js";
|
|
7
|
+
import "lodash/isObject";
|
|
8
|
+
import "vue3-lazyload";
|
|
9
|
+
import "vue3-sketch-ruler";
|
|
10
|
+
import "element-plus";
|
|
11
|
+
import "screenfull";
|
|
12
|
+
import "lodash/throttle";
|
|
13
|
+
import "html2canvas";
|
|
14
|
+
import "pinia";
|
|
15
|
+
import "vue-i18n";
|
|
16
|
+
import "vue-demi";
|
|
17
|
+
import "lodash/debounce";
|
|
18
|
+
import "lodash/merge";
|
|
19
|
+
import "lodash/pick";
|
|
20
|
+
import "highlight.js/lib/core";
|
|
21
|
+
import "highlight.js/lib/languages/json";
|
|
22
|
+
import "highlight.js/lib/languages/typescript";
|
|
23
|
+
import "axios";
|
|
24
|
+
import "lodash";
|
|
25
|
+
import "element-plus/es/locale/lang/zh-cn";
|
|
26
|
+
import "element-plus/es/locale/lang/en";
|
|
27
|
+
import "three";
|
|
28
|
+
import "three/examples/jsm/controls/OrbitControls";
|
|
29
|
+
import "gsap";
|
|
30
|
+
import "vue3-sketch-ruler/lib/style.css";
|
|
31
|
+
const ve = { class: "icon-item-box" }, ge = /* @__PURE__ */ P({
|
|
32
|
+
__name: "index",
|
|
33
|
+
props: {
|
|
34
|
+
isGroup: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
hover: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
status: {
|
|
43
|
+
type: Object,
|
|
44
|
+
default: () => ({
|
|
45
|
+
lock: !1,
|
|
46
|
+
hide: !1
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
setup(a) {
|
|
51
|
+
q((i) => ({
|
|
52
|
+
c0ef2498: y.value
|
|
53
|
+
}));
|
|
54
|
+
const c = a, { LockClosedOutlineIcon: w, LockOpenOutlineIcon: I, EyeOutlineIcon: T, EyeOffOutlineIcon: r } = z.ionicons5, o = K(), x = X(), y = f(() => x.getAppTheme), S = (i) => {
|
|
55
|
+
i.stopPropagation(), c.status.hide ? o.setShow() : o.setHide();
|
|
56
|
+
}, L = (i) => {
|
|
57
|
+
i.stopPropagation(), c.status.lock ? o.setUnLock() : o.setLock();
|
|
58
|
+
};
|
|
59
|
+
return (i, k) => {
|
|
60
|
+
const M = D("el-icon");
|
|
61
|
+
return J((m(), E("div", ve, [
|
|
62
|
+
g(M, {
|
|
63
|
+
class: G(["go-ml-1 icon-item", { active: a.status.lock }]),
|
|
64
|
+
size: 15,
|
|
65
|
+
onClick: L
|
|
66
|
+
}, {
|
|
67
|
+
default: v(() => [
|
|
68
|
+
(m(), C(A(a.status.lock ? l(w) : l(I))))
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}, 8, ["class"]),
|
|
72
|
+
g(M, {
|
|
73
|
+
class: G(["go-ml-1 icon-item", { active: a.status.hide }]),
|
|
74
|
+
size: 15,
|
|
75
|
+
onClick: S
|
|
76
|
+
}, {
|
|
77
|
+
default: v(() => [
|
|
78
|
+
(m(), C(A(a.status.hide ? l(r) : l(T))))
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
}, 8, ["class"])
|
|
82
|
+
], 512)), [
|
|
83
|
+
[Q, !a.isGroup]
|
|
84
|
+
]);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
const se = /* @__PURE__ */ V(ge, [["__scopeId", "data-v-d3a404ec"]]), _e = { class: "go-flex-center item-content" }, he = ["src"], fe = {
|
|
89
|
+
class: "go-ellipsis-1",
|
|
90
|
+
style: { "margin-right": "auto" }
|
|
91
|
+
}, ye = { class: "list-text" }, Ce = /* @__PURE__ */ P({
|
|
92
|
+
__name: "index",
|
|
93
|
+
props: {
|
|
94
|
+
componentData: {
|
|
95
|
+
type: Object,
|
|
96
|
+
required: !0
|
|
97
|
+
},
|
|
98
|
+
isGroup: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: !1
|
|
101
|
+
},
|
|
102
|
+
layerMode: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: H.THUMBNAIL
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
setup(a) {
|
|
108
|
+
q((i) => ({
|
|
109
|
+
"7f3747cb": o.value
|
|
110
|
+
}));
|
|
111
|
+
const c = a, w = X(), I = K(), T = N("");
|
|
112
|
+
(async () => {
|
|
113
|
+
T.value = await de(c.componentData.chartConfig);
|
|
114
|
+
})();
|
|
115
|
+
const o = f(() => w.getAppTheme), x = f(() => {
|
|
116
|
+
const i = c.componentData.id;
|
|
117
|
+
return I.getTargetChart.selectId.find((k) => k === i);
|
|
118
|
+
}), y = f(() => c.componentData.id === I.getTargetChart.hoverId), S = f(() => c.componentData.status), L = f(() => c.layerMode === H.TEXT);
|
|
119
|
+
return (i, k) => {
|
|
120
|
+
const M = D("el-image");
|
|
121
|
+
return m(), E("div", {
|
|
122
|
+
class: G(["go-content-layers-list-item", { hover: y.value, select: x.value, "list-mini": L.value }])
|
|
123
|
+
}, [
|
|
124
|
+
_("div", _e, [
|
|
125
|
+
g(M, {
|
|
126
|
+
class: "list-img",
|
|
127
|
+
fit: "contain",
|
|
128
|
+
src: T.value,
|
|
129
|
+
fallback: l(Y)()
|
|
130
|
+
}, {
|
|
131
|
+
error: v(() => [
|
|
132
|
+
_("img", {
|
|
133
|
+
src: l(Y)(),
|
|
134
|
+
style: { width: "100%", height: "100%", "object-fit": "contain" }
|
|
135
|
+
}, null, 8, he)
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["src", "fallback"]),
|
|
139
|
+
_("div", fe, [
|
|
140
|
+
_("span", ye, Z(c.componentData.chartConfig.title), 1)
|
|
141
|
+
]),
|
|
142
|
+
g(l(se), {
|
|
143
|
+
isGroup: a.isGroup,
|
|
144
|
+
hover: y.value,
|
|
145
|
+
status: S.value
|
|
146
|
+
}, null, 8, ["isGroup", "hover", "status"])
|
|
147
|
+
]),
|
|
148
|
+
_("div", {
|
|
149
|
+
class: G({ "select-modal": x.value })
|
|
150
|
+
}, null, 2)
|
|
151
|
+
], 2);
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
const ae = /* @__PURE__ */ V(Ce, [["__scopeId", "data-v-17365f78"]]), xe = { class: "go-content-layers-group-list-item" }, Le = { class: "go-flex-items-center item-content" }, ke = {
|
|
156
|
+
class: "go-ellipsis-1",
|
|
157
|
+
style: { "margin-right": "auto" }
|
|
158
|
+
}, Ie = {
|
|
159
|
+
class: "go-ml-2 list-text",
|
|
160
|
+
style: { color: "var(--el-text-color-regular)" }
|
|
161
|
+
}, Te = /* @__PURE__ */ P({
|
|
162
|
+
__name: "index",
|
|
163
|
+
props: {
|
|
164
|
+
componentGroupData: {
|
|
165
|
+
type: Object,
|
|
166
|
+
required: !0
|
|
167
|
+
},
|
|
168
|
+
layerMode: {
|
|
169
|
+
type: String,
|
|
170
|
+
default: H.THUMBNAIL
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
setup(a) {
|
|
174
|
+
q((u) => ({
|
|
175
|
+
"30eb1c7f": S.value
|
|
176
|
+
}));
|
|
177
|
+
const c = a;
|
|
178
|
+
h.UN_GROUP;
|
|
179
|
+
const w = X(), { FolderIcon: I, FolderOpenIcon: T } = z.ionicons5, r = K(), { handleContextMenu: o, onClickOutSide: x } = oe(), y = N(!1), S = f(() => w.getAppTheme), L = f(() => c.layerMode === H.TEXT), i = f(() => {
|
|
180
|
+
const u = c.componentGroupData.id;
|
|
181
|
+
return r.getTargetChart.selectId.find((e) => e === u);
|
|
182
|
+
}), k = f(() => c.componentGroupData.id === r.getTargetChart.hoverId), M = f(() => c.componentGroupData.status), O = (u, e, n) => {
|
|
183
|
+
const s = (t) => e.filter((d) => t.includes(d.key));
|
|
184
|
+
if (r.getTargetChart.selectId.length > 1)
|
|
185
|
+
return s([h.GROUP]);
|
|
186
|
+
{
|
|
187
|
+
const t = [];
|
|
188
|
+
return n.status.lock ? t.push(h.LOCK) : t.push(h.UNLOCK), n.status.hide ? t.push(h.HIDE) : t.push(h.SHOW), [
|
|
189
|
+
...s([h.UN_GROUP]),
|
|
190
|
+
pe(),
|
|
191
|
+
...u.filter((d) => !t.includes(d.key))
|
|
192
|
+
];
|
|
193
|
+
}
|
|
194
|
+
}, R = (u) => {
|
|
195
|
+
var e;
|
|
196
|
+
(e = window.$KeyboardActive) != null && e.ctrl || (y.value = !y.value, $(u, c.componentGroupData));
|
|
197
|
+
}, F = (u) => {
|
|
198
|
+
var n;
|
|
199
|
+
x();
|
|
200
|
+
const e = c.componentGroupData.id;
|
|
201
|
+
if (u.buttons === ne.LEFT && ((n = window.$KeyboardActive) != null && n.ctrl)) {
|
|
202
|
+
if (r.targetChart.selectId.includes(e)) {
|
|
203
|
+
const s = r.targetChart.selectId.filter((t) => t !== e);
|
|
204
|
+
r.setTargetSelectChart(s);
|
|
205
|
+
} else
|
|
206
|
+
r.setTargetSelectChart(e, !0);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
r.setTargetSelectChart(e);
|
|
210
|
+
}, $ = (u, e, n) => {
|
|
211
|
+
u.preventDefault(), u.stopPropagation(), x(), r.setTargetSelectChart(n || e.id);
|
|
212
|
+
}, U = (u) => {
|
|
213
|
+
r.setTargetHoverChart(u.id);
|
|
214
|
+
}, B = (u) => {
|
|
215
|
+
r.setTargetHoverChart(void 0);
|
|
216
|
+
};
|
|
217
|
+
return (u, e) => {
|
|
218
|
+
const n = D("el-icon"), s = D("el-collapse-transition");
|
|
219
|
+
return m(), E("div", xe, [
|
|
220
|
+
_("div", {
|
|
221
|
+
class: G(["root-item-content", { hover: k.value, select: i.value, "list-mini": L.value }]),
|
|
222
|
+
onClick: e[0] || (e[0] = (t) => R(t)),
|
|
223
|
+
onMousedown: e[1] || (e[1] = (t) => F(t)),
|
|
224
|
+
onMouseenter: e[2] || (e[2] = (t) => U(a.componentGroupData)),
|
|
225
|
+
onMouseleave: e[3] || (e[3] = (t) => B(a.componentGroupData)),
|
|
226
|
+
onContextmenu: e[4] || (e[4] = (t) => l(o)(t, a.componentGroupData, O))
|
|
227
|
+
}, [
|
|
228
|
+
_("div", Le, [
|
|
229
|
+
g(n, {
|
|
230
|
+
size: 20,
|
|
231
|
+
class: "go-ml-1"
|
|
232
|
+
}, {
|
|
233
|
+
default: v(() => [
|
|
234
|
+
y.value ? (m(), C(l(T), { key: 0 })) : (m(), C(l(I), { key: 1 }))
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
}),
|
|
238
|
+
_("div", ke, [
|
|
239
|
+
_("span", Ie, Z(a.componentGroupData.chartConfig.title), 1)
|
|
240
|
+
]),
|
|
241
|
+
g(l(se), {
|
|
242
|
+
isGroup: !1,
|
|
243
|
+
hover: k.value,
|
|
244
|
+
status: M.value
|
|
245
|
+
}, null, 8, ["hover", "status"])
|
|
246
|
+
]),
|
|
247
|
+
_("div", {
|
|
248
|
+
class: G({ "select-modal": i.value })
|
|
249
|
+
}, null, 2)
|
|
250
|
+
], 34),
|
|
251
|
+
g(s, null, {
|
|
252
|
+
default: v(() => [
|
|
253
|
+
J(_("div", null, [
|
|
254
|
+
(m(!0), E(ee, null, te(a.componentGroupData.groupList, (t) => (m(), C(l(ae), {
|
|
255
|
+
key: t.id,
|
|
256
|
+
componentData: t,
|
|
257
|
+
"layer-mode": a.layerMode,
|
|
258
|
+
isGroup: !0,
|
|
259
|
+
onMousedown: (d) => $(d, t, a.componentGroupData.id),
|
|
260
|
+
onMouseenter: (d) => U(t),
|
|
261
|
+
onMouseleave: (d) => B(),
|
|
262
|
+
onContextmenu: e[5] || (e[5] = (d) => l(o)(d, a.componentGroupData, O))
|
|
263
|
+
}, null, 8, ["componentData", "layer-mode", "onMousedown", "onMouseenter", "onMouseleave"]))), 128))
|
|
264
|
+
], 512), [
|
|
265
|
+
[Q, y.value]
|
|
266
|
+
])
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
})
|
|
270
|
+
]);
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
const Me = /* @__PURE__ */ V(Te, [["__scopeId", "data-v-de8dddbd"]]), De = {
|
|
275
|
+
key: 0,
|
|
276
|
+
class: "empty-layer"
|
|
277
|
+
}, Se = { class: "go-content-layer-box" }, be = /* @__PURE__ */ P({
|
|
278
|
+
__name: "index",
|
|
279
|
+
setup(a) {
|
|
280
|
+
const { LayersIcon: c, GridIcon: w, ListIcon: I } = z.ionicons5, { LaptopIcon: T } = z.carbon, r = me(), o = K(), { handleContextMenu: x, onClickOutSide: y } = oe(), S = [
|
|
281
|
+
{ label: "缩略图", icon: T, value: H.THUMBNAIL },
|
|
282
|
+
{ label: "文本列表", icon: I, value: H.TEXT }
|
|
283
|
+
], L = N([]), i = N(r.getLayerType), k = f(() => ie(o.getComponentList).reverse());
|
|
284
|
+
le(
|
|
285
|
+
() => k.value,
|
|
286
|
+
(e) => {
|
|
287
|
+
L.value = e;
|
|
288
|
+
}
|
|
289
|
+
);
|
|
290
|
+
const M = (e, n, s) => {
|
|
291
|
+
if (o.getTargetChart.selectId.length > 1)
|
|
292
|
+
return e.filter((d) => d.key === h.GROUP);
|
|
293
|
+
const t = [];
|
|
294
|
+
return s.status.lock ? t.push(h.LOCK) : t.push(h.UNLOCK), s.status.hide ? t.push(h.HIDE) : t.push(h.SHOW), e.filter((d) => !t.includes(d.key));
|
|
295
|
+
}, O = () => {
|
|
296
|
+
r.setItem(W.LAYERS, !1);
|
|
297
|
+
}, R = (e) => {
|
|
298
|
+
const { oldIndex: n, newIndex: s } = e.moved;
|
|
299
|
+
if (s - n > 0) {
|
|
300
|
+
const t = o.getComponentList.splice(-(n + 1), 1)[0];
|
|
301
|
+
o.getComponentList.splice(-s, 0, t);
|
|
302
|
+
} else {
|
|
303
|
+
const t = o.getComponentList.splice(-(n + 1), 1)[0];
|
|
304
|
+
s === 0 ? o.getComponentList.push(t) : o.getComponentList.splice(-s, 0, t);
|
|
305
|
+
}
|
|
306
|
+
}, F = (e) => {
|
|
307
|
+
const n = document.querySelector(".go-content-layer-box");
|
|
308
|
+
e.target.contains(n) && o.setTargetSelectChart();
|
|
309
|
+
}, $ = (e, n) => {
|
|
310
|
+
var t;
|
|
311
|
+
y();
|
|
312
|
+
const s = n.id;
|
|
313
|
+
if (e.buttons === ne.LEFT && ((t = window.$KeyboardActive) != null && t.ctrl)) {
|
|
314
|
+
if (o.targetChart.selectId.includes(s)) {
|
|
315
|
+
const d = o.targetChart.selectId.filter((j) => j !== s);
|
|
316
|
+
o.setTargetSelectChart(d);
|
|
317
|
+
} else
|
|
318
|
+
o.setTargetSelectChart(s, !0);
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
o.setTargetSelectChart(s);
|
|
322
|
+
}, U = (e) => {
|
|
323
|
+
o.setTargetHoverChart(e.id);
|
|
324
|
+
}, B = (e) => {
|
|
325
|
+
o.setTargetHoverChart(void 0);
|
|
326
|
+
}, u = (e) => {
|
|
327
|
+
i.value = e, r.setItem(W.LAYER_TYPE, e);
|
|
328
|
+
};
|
|
329
|
+
return (e, n) => {
|
|
330
|
+
const s = D("el-icon"), t = D("el-tooltip"), d = D("el-button"), j = D("el-button-group");
|
|
331
|
+
return m(), C(l(ue), {
|
|
332
|
+
class: G(["go-content-layers", { scoped: !l(r).getLayers }]),
|
|
333
|
+
title: "图层",
|
|
334
|
+
depth: 2,
|
|
335
|
+
onBack: O,
|
|
336
|
+
onMousedown: n[1] || (n[1] = (p) => F(p))
|
|
337
|
+
}, {
|
|
338
|
+
icon: v(() => [
|
|
339
|
+
g(s, { size: 16 }, {
|
|
340
|
+
default: v(() => [
|
|
341
|
+
(m(), C(A(l(c))))
|
|
342
|
+
]),
|
|
343
|
+
_: 1
|
|
344
|
+
})
|
|
345
|
+
]),
|
|
346
|
+
"top-right": v(() => [
|
|
347
|
+
g(j, { style: { display: "flex" } }, {
|
|
348
|
+
default: v(() => [
|
|
349
|
+
(m(), E(ee, null, te(S, (p, b) => g(d, {
|
|
350
|
+
key: b,
|
|
351
|
+
size: "small",
|
|
352
|
+
type: i.value === p.value ? "primary" : "info",
|
|
353
|
+
plain: i.value !== p.value,
|
|
354
|
+
onClick: (Ge) => u(p.value)
|
|
355
|
+
}, {
|
|
356
|
+
default: v(() => [
|
|
357
|
+
g(t, {
|
|
358
|
+
"show-arrow": !1,
|
|
359
|
+
content: p.label,
|
|
360
|
+
placement: "top"
|
|
361
|
+
}, {
|
|
362
|
+
default: v(() => [
|
|
363
|
+
g(s, { size: 14 }, {
|
|
364
|
+
default: v(() => [
|
|
365
|
+
(m(), C(A(p.icon)))
|
|
366
|
+
]),
|
|
367
|
+
_: 2
|
|
368
|
+
}, 1024)
|
|
369
|
+
]),
|
|
370
|
+
_: 2
|
|
371
|
+
}, 1032, ["content"])
|
|
372
|
+
]),
|
|
373
|
+
_: 2
|
|
374
|
+
}, 1032, ["type", "plain", "onClick"])), 64))
|
|
375
|
+
]),
|
|
376
|
+
_: 1
|
|
377
|
+
})
|
|
378
|
+
]),
|
|
379
|
+
default: v(() => [
|
|
380
|
+
k.value.length === 0 ? (m(), E("div", De, n[2] || (n[2] = [
|
|
381
|
+
_("span", { class: "not-layer-text" }, "暂无图层~", -1)
|
|
382
|
+
]))) : re("", !0),
|
|
383
|
+
g(l(ce), {
|
|
384
|
+
"item-key": "id",
|
|
385
|
+
modelValue: L.value,
|
|
386
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => L.value = p),
|
|
387
|
+
ghostClass: "ghost",
|
|
388
|
+
onChange: R
|
|
389
|
+
}, {
|
|
390
|
+
item: v(({ element: p }) => [
|
|
391
|
+
_("div", Se, [
|
|
392
|
+
p.isGroup ? (m(), C(l(Me), {
|
|
393
|
+
key: 0,
|
|
394
|
+
componentGroupData: p,
|
|
395
|
+
"layer-mode": i.value
|
|
396
|
+
}, null, 8, ["componentGroupData", "layer-mode"])) : (m(), C(l(ae), {
|
|
397
|
+
key: 1,
|
|
398
|
+
componentData: p,
|
|
399
|
+
"layer-mode": i.value,
|
|
400
|
+
onMousedown: (b) => $(b, p),
|
|
401
|
+
onMouseenter: (b) => U(p),
|
|
402
|
+
onMouseleave: (b) => B(),
|
|
403
|
+
onContextmenu: (b) => l(x)(b, p, M)
|
|
404
|
+
}, null, 8, ["componentData", "layer-mode", "onMousedown", "onMouseenter", "onMouseleave", "onContextmenu"]))
|
|
405
|
+
])
|
|
406
|
+
]),
|
|
407
|
+
_: 1
|
|
408
|
+
}, 8, ["modelValue"])
|
|
409
|
+
]),
|
|
410
|
+
_: 1
|
|
411
|
+
}, 8, ["class"]);
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
const rt = /* @__PURE__ */ V(be, [["__scopeId", "data-v-e871526c"]]);
|
|
416
|
+
export {
|
|
417
|
+
rt as default
|
|
418
|
+
};
|
|
419
|
+
//# sourceMappingURL=index-b58bfc89.js.map
|