leiting-bim 2.1.48 → 2.1.52
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/package.json +16 -2
- package/plugins/cesium-core/dist/cesium-core.mjs +587 -535
- package/plugins/cesium-core/dist/cesium-core.mjs.map +1 -0
- package/plugins/cesium-core/dist/cesium-core.umd.js +19 -18
- package/plugins/cesium-core/dist/cesium-core.umd.js.map +1 -0
- package/plugins/cesium-core/dist/components/BufferedHierarchicalAggregator.d.ts +76 -73
- package/plugins/cesium-vue/dist/_commonjsHelpers-DaMA6jEr.js +1 -0
- package/plugins/cesium-vue/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
- package/plugins/cesium-vue/dist/components/basic-audio.js +3 -2
- package/plugins/cesium-vue/dist/components/basic-audio.js.map +1 -0
- package/plugins/cesium-vue/dist/components/basic-video.js +3 -2
- package/plugins/cesium-vue/dist/components/basic-video.js.map +1 -0
- package/plugins/cesium-vue/dist/components/card-carousel.js +2 -1
- package/plugins/cesium-vue/dist/components/card-carousel.js.map +1 -0
- package/plugins/cesium-vue/dist/components/card-content.js +13 -12
- package/plugins/cesium-vue/dist/components/card-content.js.map +1 -0
- package/plugins/cesium-vue/dist/components/card-page.js +2 -1
- package/plugins/cesium-vue/dist/components/card-page.js.map +1 -0
- package/plugins/cesium-vue/dist/components/carousel-img.js +6 -5
- package/plugins/cesium-vue/dist/components/carousel-img.js.map +1 -0
- package/plugins/cesium-vue/dist/components/echarts-pro.js +2 -1
- package/plugins/cesium-vue/dist/components/echarts-pro.js.map +1 -0
- package/plugins/cesium-vue/dist/components/marker-bubble.js +5 -4
- package/plugins/cesium-vue/dist/components/marker-bubble.js.map +1 -0
- package/plugins/cesium-vue/dist/components/marker-default.js +6 -5
- package/plugins/cesium-vue/dist/components/marker-default.js.map +1 -0
- package/plugins/cesium-vue/dist/components/marker-html.js +6 -5
- package/plugins/cesium-vue/dist/components/marker-html.js.map +1 -0
- package/plugins/cesium-vue/dist/components/marker-manage.js +112 -94
- package/plugins/cesium-vue/dist/components/marker-manage.js.map +1 -0
- package/plugins/cesium-vue/dist/components/marker-text.js +6 -5
- package/plugins/cesium-vue/dist/components/marker-text.js.map +1 -0
- package/plugins/cesium-vue/dist/components/measurement.js +4 -3
- package/plugins/cesium-vue/dist/components/measurement.js.map +1 -0
- package/plugins/cesium-vue/dist/components/position-picker/index.d.ts +58 -0
- package/plugins/cesium-vue/dist/components/position-picker.d.ts +6 -0
- package/plugins/cesium-vue/dist/components/position-picker.js +243 -0
- package/plugins/cesium-vue/dist/components/position-picker.js.map +1 -0
- package/plugins/cesium-vue/dist/create-DynflqE1.js +1 -0
- package/plugins/cesium-vue/dist/create-DynflqE1.js.map +1 -0
- package/plugins/cesium-vue/dist/{index-B03tSn8_.js → index-C0pspk3x.js} +3 -2
- package/plugins/cesium-vue/dist/index-C0pspk3x.js.map +1 -0
- package/plugins/cesium-vue/dist/index-CUs_hd1V.js +1 -0
- package/plugins/cesium-vue/dist/index-CUs_hd1V.js.map +1 -0
- package/plugins/cesium-vue/dist/index.d.ts +3 -1
- package/plugins/cesium-vue/dist/index.js +31 -27
- package/plugins/cesium-vue/dist/index.js.map +1 -0
- package/plugins/cesium-vue/package.json +4 -0
- package/plugins/theme-chalk/dist/debug.log +1 -0
- package/plugins/.gitmodules +0 -4
- package/plugins/README.md +0 -2
- package/plugins/build.cjs +0 -63
- package/plugins/cesium-core/pnpm-lock.yaml +0 -872
- package/plugins/cesium-core/src/components/BufferedHierarchicalAggregator.ts +0 -546
- package/plugins/cesium-core/src/components/HtmlOverlayLabelPool.ts +0 -489
- package/plugins/cesium-core/src/components/MarkerEvent.ts +0 -92
- package/plugins/cesium-core/src/components/Material/MaterialManager.ts +0 -129
- package/plugins/cesium-core/src/components/Material/help/PolylineFlowMaterialProperty.ts +0 -116
- package/plugins/cesium-core/src/components/Material/help/dynamicImgMaterial.ts +0 -236
- package/plugins/cesium-core/src/components/Material/index.ts +0 -3
- package/plugins/cesium-core/src/components/TooltipManager.ts +0 -52
- package/plugins/cesium-core/src/components/draw/DrawTool.ts +0 -55
- package/plugins/cesium-core/src/components/draw/handlers/CircleDrawer.ts +0 -159
- package/plugins/cesium-core/src/components/draw/handlers/LineDrawer.ts +0 -113
- package/plugins/cesium-core/src/components/draw/handlers/PointDrawer.ts +0 -70
- package/plugins/cesium-core/src/components/draw/handlers/PolygonDrawer.ts +0 -112
- package/plugins/cesium-core/src/components/draw/handlers/RectangleDrawer.ts +0 -115
- package/plugins/cesium-core/src/components/draw/types.ts +0 -28
- package/plugins/cesium-core/src/components/entity/EntityLayer.ts +0 -453
- package/plugins/cesium-core/src/components/gltf/GLTFManage.ts +0 -799
- package/plugins/cesium-core/src/components/gltf/index.ts +0 -1
- package/plugins/cesium-core/src/components/measurement/MeasurementTool.ts +0 -416
- package/plugins/cesium-core/src/components/measurement/handlers/AreaMeasure.ts +0 -552
- package/plugins/cesium-core/src/components/measurement/handlers/CircleMeasure.ts +0 -289
- package/plugins/cesium-core/src/components/measurement/handlers/CoordinateMeasure.ts +0 -139
- package/plugins/cesium-core/src/components/measurement/handlers/HorizontalMeasure.ts +0 -427
- package/plugins/cesium-core/src/components/measurement/handlers/PolylineDistanceMeasure.ts +0 -356
- package/plugins/cesium-core/src/components/measurement/handlers/RectangleMeasure.ts +0 -516
- package/plugins/cesium-core/src/components/measurement/handlers/RegularPolygonMeasure.ts +0 -472
- package/plugins/cesium-core/src/components/measurement/handlers/SpaceMeasure.ts +0 -250
- package/plugins/cesium-core/src/components/measurement/handlers/TerrainHeightMeasure.ts +0 -185
- package/plugins/cesium-core/src/components/measurement/handlers/TriangleMeasure.ts +0 -561
- package/plugins/cesium-core/src/components/measurement/handlers/VerticalMeasure.ts +0 -361
- package/plugins/cesium-core/src/components/measurement/index.ts +0 -13
- package/plugins/cesium-core/src/components/measurement/types.ts +0 -57
- package/plugins/cesium-core/src/components/primitive/PrimitiveManager.ts +0 -556
- package/plugins/cesium-core/src/components/roaming/CameraRoamTool.ts +0 -286
- package/plugins/cesium-core/src/components/roaming/PathRoamTool.ts +0 -174
- package/plugins/cesium-core/src/components/roaming/index.ts +0 -3
- package/plugins/cesium-core/src/components/roaming/types.ts +0 -71
- package/plugins/cesium-core/src/components/utils/convertGeoJsonToEntityData.ts +0 -98
- package/plugins/cesium-core/src/components/utils/uuid.ts +0 -7
- package/plugins/cesium-core/src/index.ts +0 -17
- package/plugins/cesium-core/src/test/measurement/index.html +0 -166
- package/plugins/cesium-core/src/test/roaming/c.gltf +0 -1
- package/plugins/cesium-core/src/test/roaming/f87cc3ea918a4b76bff2c88a3655eb1f.bin +0 -0
- package/plugins/cesium-core/src/test/roaming/index.html +0 -51
- package/plugins/cesium-core/src/test/roaming/path.html +0 -448
- package/plugins/cesium-core/src/test/roaming/view.html +0 -520
- package/plugins/cesium-core/stats.html +0 -4949
- package/plugins/cesium-core/tsconfig.json +0 -14
- package/plugins/cesium-core/vite.config.ts +0 -35
- package/plugins/cesium-vue/src/assets/icons/icon-001.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-002.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-003.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-004.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-005.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-006.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-007.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-008.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-009.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-010.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-011.png +0 -0
- package/plugins/cesium-vue/src/assets/icons/icon-012.png +0 -0
- package/plugins/cesium-vue/src/assets/img/Card3-BG.png +0 -0
- package/plugins/cesium-vue/src/assets/img/card_bg3.png +0 -0
- package/plugins/cesium-vue/src/components/basic-audio/index.ts +0 -6
- package/plugins/cesium-vue/src/components/basic-audio/src/BasicAudio.vue +0 -119
- package/plugins/cesium-vue/src/components/basic-audio/src/basicAudio.ts +0 -6
- package/plugins/cesium-vue/src/components/basic-video/index.ts +0 -7
- package/plugins/cesium-vue/src/components/basic-video/src/BasicVideo.vue +0 -58
- package/plugins/cesium-vue/src/components/basic-video/src/basicVideo.ts +0 -14
- package/plugins/cesium-vue/src/components/card-carousel/index.ts +0 -7
- package/plugins/cesium-vue/src/components/card-carousel/src/CardCarousel.vue +0 -124
- package/plugins/cesium-vue/src/components/card-carousel/src/cardCarousel.ts +0 -60
- package/plugins/cesium-vue/src/components/card-content/index.ts +0 -7
- package/plugins/cesium-vue/src/components/card-content/src/CardContent.vue +0 -41
- package/plugins/cesium-vue/src/components/card-content/src/cardContent.ts +0 -22
- package/plugins/cesium-vue/src/components/card-page/index.ts +0 -7
- package/plugins/cesium-vue/src/components/card-page/src/CardPage.vue +0 -102
- package/plugins/cesium-vue/src/components/card-page/src/cardPage.ts +0 -37
- package/plugins/cesium-vue/src/components/carousel-img/index.ts +0 -7
- package/plugins/cesium-vue/src/components/carousel-img/src/CarouselImg.vue +0 -84
- package/plugins/cesium-vue/src/components/carousel-img/src/carouselImg.ts +0 -8
- package/plugins/cesium-vue/src/components/echarts-pro/index.ts +0 -7
- package/plugins/cesium-vue/src/components/echarts-pro/src/EchartsPro.vue +0 -107
- package/plugins/cesium-vue/src/components/echarts-pro/src/echartsPro.ts +0 -12
- package/plugins/cesium-vue/src/components/echarts-pro/src/hook/useECharts.ts +0 -55
- package/plugins/cesium-vue/src/components/marker-bubble/index.ts +0 -7
- package/plugins/cesium-vue/src/components/marker-bubble/src/MarkerBubble.vue +0 -235
- package/plugins/cesium-vue/src/components/marker-bubble/src/markerBubble.ts +0 -35
- package/plugins/cesium-vue/src/components/marker-default/index.ts +0 -7
- package/plugins/cesium-vue/src/components/marker-default/src/MarkerDefault.vue +0 -19
- package/plugins/cesium-vue/src/components/marker-default/src/markerDefault.ts +0 -12
- package/plugins/cesium-vue/src/components/marker-html/index.ts +0 -7
- package/plugins/cesium-vue/src/components/marker-html/src/MarkerHtml.vue +0 -21
- package/plugins/cesium-vue/src/components/marker-html/src/markerHtml.ts +0 -12
- package/plugins/cesium-vue/src/components/marker-manage/index.ts +0 -9
- package/plugins/cesium-vue/src/components/marker-manage/src/components/MarkerManage.vue +0 -106
- package/plugins/cesium-vue/src/components/marker-manage/src/config/theme.ts +0 -8
- package/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManage.ts +0 -466
- package/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManagerCore.ts +0 -148
- package/plugins/cesium-vue/src/components/marker-manage/src/hook/useMarkerManage.ts +0 -45
- package/plugins/cesium-vue/src/components/marker-manage/src/type/markerManage.ts +0 -75
- package/plugins/cesium-vue/src/components/marker-manage/src/utils/themeTool.ts +0 -154
- package/plugins/cesium-vue/src/components/marker-text/index.ts +0 -7
- package/plugins/cesium-vue/src/components/marker-text/src/MarkerText.vue +0 -14
- package/plugins/cesium-vue/src/components/marker-text/src/markerText.ts +0 -10
- package/plugins/cesium-vue/src/components/measurement/index.ts +0 -7
- package/plugins/cesium-vue/src/components/measurement/src/Measurement.vue +0 -183
- package/plugins/cesium-vue/src/components/measurement/src/measurement.ts +0 -20
- package/plugins/cesium-vue/src/index.ts +0 -89
- package/plugins/cesium-vue/stats.html +0 -4949
- package/plugins/cesium-vue/tsconfig.json +0 -18
- package/plugins/cesium-vue/vite.config.ts +0 -62
- package/plugins/plugins/README.md +0 -2
- package/plugins/plugins/build.cjs +0 -63
- package/plugins/plugins/cesium-core/dist/cesium-core.mjs +0 -5881
- package/plugins/plugins/cesium-core/dist/cesium-core.mjs.map +0 -1
- package/plugins/plugins/cesium-core/dist/cesium-core.umd.js +0 -77
- package/plugins/plugins/cesium-core/dist/cesium-core.umd.js.map +0 -1
- package/plugins/plugins/cesium-core/dist/components/BufferedHierarchicalAggregator.d.ts +0 -73
- package/plugins/plugins/cesium-core/dist/components/HtmlOverlayLabelPool.d.ts +0 -152
- package/plugins/plugins/cesium-core/dist/components/MarkerEvent.d.ts +0 -38
- package/plugins/plugins/cesium-core/dist/components/Material/MaterialManager.d.ts +0 -49
- package/plugins/plugins/cesium-core/dist/components/Material/help/PolylineFlowMaterialProperty.d.ts +0 -10
- package/plugins/plugins/cesium-core/dist/components/Material/help/dynamicImgMaterial.d.ts +0 -16
- package/plugins/plugins/cesium-core/dist/components/Material/index.d.ts +0 -3
- package/plugins/plugins/cesium-core/dist/components/TooltipManager.d.ts +0 -11
- package/plugins/plugins/cesium-core/dist/components/draw/DrawTool.d.ts +0 -10
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/CircleDrawer.d.ts +0 -16
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/LineDrawer.d.ts +0 -14
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/PointDrawer.d.ts +0 -12
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/PolygonDrawer.d.ts +0 -14
- package/plugins/plugins/cesium-core/dist/components/draw/handlers/RectangleDrawer.d.ts +0 -13
- package/plugins/plugins/cesium-core/dist/components/draw/types.d.ts +0 -29
- package/plugins/plugins/cesium-core/dist/components/entity/EntityLayer.d.ts +0 -65
- package/plugins/plugins/cesium-core/dist/components/gltf/GLTFManage.d.ts +0 -141
- package/plugins/plugins/cesium-core/dist/components/gltf/index.d.ts +0 -1
- package/plugins/plugins/cesium-core/dist/components/measurement/MeasurementTool.d.ts +0 -34
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/AreaMeasure.d.ts +0 -23
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/CircleMeasure.d.ts +0 -21
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/CoordinateMeasure.d.ts +0 -16
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/HorizontalMeasure.d.ts +0 -25
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/PolylineDistanceMeasure.d.ts +0 -24
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/RectangleMeasure.d.ts +0 -22
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/RegularPolygonMeasure.d.ts +0 -23
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/SpaceMeasure.d.ts +0 -20
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/TerrainHeightMeasure.d.ts +0 -18
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/TriangleMeasure.d.ts +0 -24
- package/plugins/plugins/cesium-core/dist/components/measurement/handlers/VerticalMeasure.d.ts +0 -23
- package/plugins/plugins/cesium-core/dist/components/measurement/index.d.ts +0 -13
- package/plugins/plugins/cesium-core/dist/components/measurement/types.d.ts +0 -42
- package/plugins/plugins/cesium-core/dist/components/primitive/PrimitiveManager.d.ts +0 -50
- package/plugins/plugins/cesium-core/dist/components/roaming/CameraRoamTool.d.ts +0 -27
- package/plugins/plugins/cesium-core/dist/components/roaming/PathRoamTool.d.ts +0 -23
- package/plugins/plugins/cesium-core/dist/components/roaming/index.d.ts +0 -3
- package/plugins/plugins/cesium-core/dist/components/roaming/types.d.ts +0 -66
- package/plugins/plugins/cesium-core/dist/components/utils/convertGeoJsonToEntityData.d.ts +0 -1
- package/plugins/plugins/cesium-core/dist/components/utils/uuid.d.ts +0 -1
- package/plugins/plugins/cesium-core/dist/index.d.ts +0 -12
- package/plugins/plugins/cesium-core/package.json +0 -26
- package/plugins/plugins/cesium-core/pnpm-lock.yaml +0 -872
- package/plugins/plugins/cesium-core/src/components/BufferedHierarchicalAggregator.ts +0 -546
- package/plugins/plugins/cesium-core/src/components/HtmlOverlayLabelPool.ts +0 -489
- package/plugins/plugins/cesium-core/src/components/MarkerEvent.ts +0 -92
- package/plugins/plugins/cesium-core/src/components/Material/MaterialManager.ts +0 -129
- package/plugins/plugins/cesium-core/src/components/Material/help/PolylineFlowMaterialProperty.ts +0 -116
- package/plugins/plugins/cesium-core/src/components/Material/help/dynamicImgMaterial.ts +0 -236
- package/plugins/plugins/cesium-core/src/components/Material/index.ts +0 -3
- package/plugins/plugins/cesium-core/src/components/TooltipManager.ts +0 -52
- package/plugins/plugins/cesium-core/src/components/draw/DrawTool.ts +0 -55
- package/plugins/plugins/cesium-core/src/components/draw/handlers/CircleDrawer.ts +0 -159
- package/plugins/plugins/cesium-core/src/components/draw/handlers/LineDrawer.ts +0 -113
- package/plugins/plugins/cesium-core/src/components/draw/handlers/PointDrawer.ts +0 -70
- package/plugins/plugins/cesium-core/src/components/draw/handlers/PolygonDrawer.ts +0 -112
- package/plugins/plugins/cesium-core/src/components/draw/handlers/RectangleDrawer.ts +0 -115
- package/plugins/plugins/cesium-core/src/components/draw/types.ts +0 -28
- package/plugins/plugins/cesium-core/src/components/entity/EntityLayer.ts +0 -453
- package/plugins/plugins/cesium-core/src/components/gltf/GLTFManage.ts +0 -799
- package/plugins/plugins/cesium-core/src/components/gltf/index.ts +0 -1
- package/plugins/plugins/cesium-core/src/components/measurement/MeasurementTool.ts +0 -416
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/AreaMeasure.ts +0 -451
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/CircleMeasure.ts +0 -267
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/CoordinateMeasure.ts +0 -139
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/HorizontalMeasure.ts +0 -418
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/PolylineDistanceMeasure.ts +0 -352
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/RectangleMeasure.ts +0 -388
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/RegularPolygonMeasure.ts +0 -379
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/SpaceMeasure.ts +0 -246
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/TerrainHeightMeasure.ts +0 -185
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/TriangleMeasure.ts +0 -541
- package/plugins/plugins/cesium-core/src/components/measurement/handlers/VerticalMeasure.ts +0 -360
- package/plugins/plugins/cesium-core/src/components/measurement/index.ts +0 -13
- package/plugins/plugins/cesium-core/src/components/measurement/types.ts +0 -57
- package/plugins/plugins/cesium-core/src/components/primitive/PrimitiveManager.ts +0 -556
- package/plugins/plugins/cesium-core/src/components/roaming/CameraRoamTool.ts +0 -286
- package/plugins/plugins/cesium-core/src/components/roaming/PathRoamTool.ts +0 -174
- package/plugins/plugins/cesium-core/src/components/roaming/index.ts +0 -3
- package/plugins/plugins/cesium-core/src/components/roaming/types.ts +0 -71
- package/plugins/plugins/cesium-core/src/components/utils/convertGeoJsonToEntityData.ts +0 -98
- package/plugins/plugins/cesium-core/src/components/utils/uuid.ts +0 -7
- package/plugins/plugins/cesium-core/src/index.ts +0 -17
- package/plugins/plugins/cesium-core/src/test/measurement/index.html +0 -166
- package/plugins/plugins/cesium-core/src/test/roaming/c.gltf +0 -1
- package/plugins/plugins/cesium-core/src/test/roaming/f87cc3ea918a4b76bff2c88a3655eb1f.bin +0 -0
- package/plugins/plugins/cesium-core/src/test/roaming/index.html +0 -51
- package/plugins/plugins/cesium-core/src/test/roaming/path.html +0 -448
- package/plugins/plugins/cesium-core/src/test/roaming/view.html +0 -520
- package/plugins/plugins/cesium-core/stats.html +0 -4949
- package/plugins/plugins/cesium-core/tsconfig.json +0 -14
- package/plugins/plugins/cesium-core/vite.config.ts +0 -35
- package/plugins/plugins/cesium-vue/dist/components/basic-audio/index.d.ts +0 -18
- package/plugins/plugins/cesium-vue/dist/components/basic-audio/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/basic-video/index.d.ts +0 -92
- package/plugins/plugins/cesium-vue/dist/components/basic-video/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/camera-roam/index.d.ts +0 -82
- package/plugins/plugins/cesium-vue/dist/components/camera-roam/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/card-carousel/index.d.ts +0 -152
- package/plugins/plugins/cesium-vue/dist/components/card-carousel/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/card-content/index.d.ts +0 -21
- package/plugins/plugins/cesium-vue/dist/components/card-content/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/card-page/index.d.ts +0 -69
- package/plugins/plugins/cesium-vue/dist/components/card-page/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/carousel-img/index.d.ts +0 -21
- package/plugins/plugins/cesium-vue/dist/components/carousel-img/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/echarts-pro/index.d.ts +0 -68
- package/plugins/plugins/cesium-vue/dist/components/echarts-pro/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/marker-bubble/index.d.ts +0 -78
- package/plugins/plugins/cesium-vue/dist/components/marker-bubble/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/marker-default/index.d.ts +0 -48
- package/plugins/plugins/cesium-vue/dist/components/marker-default/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/marker-html/index.d.ts +0 -48
- package/plugins/plugins/cesium-vue/dist/components/marker-html/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/marker-manage/index.d.ts +0 -164
- package/plugins/plugins/cesium-vue/dist/components/marker-manage/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/marker-text/index.d.ts +0 -30
- package/plugins/plugins/cesium-vue/dist/components/marker-text/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/measurement/index.d.ts +0 -78
- package/plugins/plugins/cesium-vue/dist/components/measurement/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/path-roam/index.d.ts +0 -82
- package/plugins/plugins/cesium-vue/dist/components/path-roam/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/components/test/index.d.ts +0 -67
- package/plugins/plugins/cesium-vue/dist/components/test/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/index.css +0 -1
- package/plugins/plugins/cesium-vue/dist/index.d.ts +0 -30
- package/plugins/plugins/cesium-vue/dist/index.d.ts.map +0 -1
- package/plugins/plugins/cesium-vue/dist/index.js +0 -10087
- package/plugins/plugins/cesium-vue/dist/index.js.map +0 -1
- package/plugins/plugins/cesium-vue/dist/index.umd.cjs +0 -46
- package/plugins/plugins/cesium-vue/dist/index.umd.cjs.map +0 -1
- package/plugins/plugins/cesium-vue/package.json +0 -48
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-001.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-002.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-003.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-004.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-005.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-006.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-007.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-008.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-009.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-010.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-011.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/icons/icon-012.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/img/Card3-BG.png +0 -0
- package/plugins/plugins/cesium-vue/src/assets/img/card_bg3.png +0 -0
- package/plugins/plugins/cesium-vue/src/components/basic-audio/index.ts +0 -11
- package/plugins/plugins/cesium-vue/src/components/basic-audio/src/BasicAudio.vue +0 -110
- package/plugins/plugins/cesium-vue/src/components/basic-audio/src/basicAudio.ts +0 -6
- package/plugins/plugins/cesium-vue/src/components/basic-video/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/basic-video/src/BasicVideo.vue +0 -99
- package/plugins/plugins/cesium-vue/src/components/basic-video/src/basicVideo.ts +0 -13
- package/plugins/plugins/cesium-vue/src/components/camera-roam/index.ts +0 -4
- package/plugins/plugins/cesium-vue/src/components/camera-roam/src/CameraRoam.vue +0 -434
- package/plugins/plugins/cesium-vue/src/components/camera-roam/src/cameraRoam.ts +0 -28
- package/plugins/plugins/cesium-vue/src/components/card-carousel/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/card-carousel/src/CardCarousel.vue +0 -124
- package/plugins/plugins/cesium-vue/src/components/card-carousel/src/cardCarousel.ts +0 -60
- package/plugins/plugins/cesium-vue/src/components/card-content/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/card-content/src/CardContent.vue +0 -41
- package/plugins/plugins/cesium-vue/src/components/card-content/src/cardContent.ts +0 -22
- package/plugins/plugins/cesium-vue/src/components/card-page/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/card-page/src/CardPage.vue +0 -102
- package/plugins/plugins/cesium-vue/src/components/card-page/src/cardPage.ts +0 -37
- package/plugins/plugins/cesium-vue/src/components/carousel-img/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/carousel-img/src/CarouselImg.vue +0 -15
- package/plugins/plugins/cesium-vue/src/components/carousel-img/src/carouselImg.ts +0 -6
- package/plugins/plugins/cesium-vue/src/components/echarts-pro/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/EchartsPro.vue +0 -107
- package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/echartsPro.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/echarts-pro/src/hook/useECharts.ts +0 -55
- package/plugins/plugins/cesium-vue/src/components/marker-bubble/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/marker-bubble/src/MarkerBubble.vue +0 -235
- package/plugins/plugins/cesium-vue/src/components/marker-bubble/src/markerBubble.ts +0 -35
- package/plugins/plugins/cesium-vue/src/components/marker-default/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/marker-default/src/MarkerDefault.vue +0 -19
- package/plugins/plugins/cesium-vue/src/components/marker-default/src/markerDefault.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/marker-html/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/marker-html/src/MarkerHtml.vue +0 -21
- package/plugins/plugins/cesium-vue/src/components/marker-html/src/markerHtml.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/marker-manage/index.ts +0 -14
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/components/MarkerManage.vue +0 -106
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/config/theme.ts +0 -8
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManage.ts +0 -466
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/core/MarkerManagerCore.ts +0 -148
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/hook/useMarkerManage.ts +0 -45
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/type/markerManage.ts +0 -75
- package/plugins/plugins/cesium-vue/src/components/marker-manage/src/utils/themeTool.ts +0 -154
- package/plugins/plugins/cesium-vue/src/components/marker-text/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/marker-text/src/MarkerText.vue +0 -14
- package/plugins/plugins/cesium-vue/src/components/marker-text/src/markerText.ts +0 -10
- package/plugins/plugins/cesium-vue/src/components/measurement/index.ts +0 -12
- package/plugins/plugins/cesium-vue/src/components/measurement/src/Measurement.vue +0 -183
- package/plugins/plugins/cesium-vue/src/components/measurement/src/measurement.ts +0 -20
- package/plugins/plugins/cesium-vue/src/components/path-roam/index.ts +0 -4
- package/plugins/plugins/cesium-vue/src/components/path-roam/src/PathRoam.vue +0 -429
- package/plugins/plugins/cesium-vue/src/components/path-roam/src/pathRoam.ts +0 -28
- package/plugins/plugins/cesium-vue/src/components/test/CardMarker.vue +0 -150
- package/plugins/plugins/cesium-vue/src/components/test/CesiumMarker.vue +0 -34
- package/plugins/plugins/cesium-vue/src/components/test/CesiumViewer.vue +0 -77
- package/plugins/plugins/cesium-vue/src/components/test/MyLabel.vue +0 -25
- package/plugins/plugins/cesium-vue/src/components/test/index.ts +0 -28
- package/plugins/plugins/cesium-vue/src/index.ts +0 -83
- package/plugins/plugins/cesium-vue/stats.html +0 -4949
- package/plugins/plugins/cesium-vue/tsconfig.json +0 -18
- package/plugins/plugins/cesium-vue/vite.config.ts +0 -56
- package/plugins/plugins/theme-chalk/dist/theme-chalk.css +0 -819
- package/plugins/plugins/theme-chalk/index.less +0 -11
- package/plugins/plugins/theme-chalk/package.json +0 -27
- package/plugins/plugins/theme-chalk/src/basicAudio.less +0 -41
- package/plugins/plugins/theme-chalk/src/basicVideo.less +0 -17
- package/plugins/plugins/theme-chalk/src/cameraRoam.less +0 -239
- package/plugins/plugins/theme-chalk/src/cardCarousel.less +0 -71
- package/plugins/plugins/theme-chalk/src/cardContent.less +0 -73
- package/plugins/plugins/theme-chalk/src/cardPage.less +0 -61
- package/plugins/plugins/theme-chalk/src/carouselImg.less +0 -34
- package/plugins/plugins/theme-chalk/src/marker.less +0 -107
- package/plugins/plugins/theme-chalk/src/markerManage.less +0 -25
- package/plugins/plugins/theme-chalk/src/measurement.less +0 -106
- package/plugins/plugins/theme-chalk/src/mixins/config.less +0 -4
- package/plugins/plugins/theme-chalk/src/mixins/mixins.less +0 -64
- package/plugins/plugins/theme-chalk/src/pathRoam.less +0 -198
- package/plugins/plugins/utils/create.ts +0 -45
- package/plugins/plugins/utils/package.json +0 -12
- package/plugins/plugins/utils/uuid.ts +0 -43
- package/plugins/plugins/utils/with-install.ts +0 -10
- package/plugins/theme-chalk/index.less +0 -11
- package/plugins/theme-chalk/src/basicAudio.less +0 -44
- package/plugins/theme-chalk/src/basicVideo.less +0 -17
- package/plugins/theme-chalk/src/cameraRoam.less +0 -239
- package/plugins/theme-chalk/src/cardCarousel.less +0 -71
- package/plugins/theme-chalk/src/cardContent.less +0 -73
- package/plugins/theme-chalk/src/cardPage.less +0 -61
- package/plugins/theme-chalk/src/carouselImg.less +0 -66
- package/plugins/theme-chalk/src/marker.less +0 -107
- package/plugins/theme-chalk/src/markerManage.less +0 -25
- package/plugins/theme-chalk/src/measurement.less +0 -106
- package/plugins/theme-chalk/src/mixins/config.less +0 -4
- package/plugins/theme-chalk/src/mixins/mixins.less +0 -64
- package/plugins/theme-chalk/src/pathRoam.less +0 -198
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basic-video.js","sources":["../../../utils/uuid.ts","../../src/components/basic-video/src/basicVideo.ts","../../src/components/basic-video/src/BasicVideo.vue","../../src/components/basic-video/index.ts"],"sourcesContent":["const hexList: string[] = [];\r\nfor (let i = 0; i <= 15; i++) {\r\n hexList[i] = i.toString(16);\r\n}\r\n\r\nexport function buildUUID() {\r\n // return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\r\n // const r = (Math.random() * 16) | 0,\r\n // v = c == 'x' ? r : (r & 0x3) | 0x8;\r\n // return v.toString(16);\r\n // });\r\n let guid = '';\r\n for (let i = 1; i <= 32; i++) {\r\n const n = Math.floor(Math.random() * 16.0).toString(16);\r\n guid += n;\r\n if (i == 8 || i == 12 || i == 16 || i == 20) guid += '-';\r\n }\r\n return guid;\r\n}\r\n\r\n// export function buildUUID(): string {\r\n// let uuid = '';\r\n// for (let i = 1; i <= 36; i++) {\r\n// if (i === 9 || i === 14 || i === 19 || i === 24) {\r\n// uuid += '-';\r\n// } else if (i === 15) {\r\n// uuid += 4;\r\n// } else if (i === 20) {\r\n// uuid += hexList[(Math.random() * 4) | 8];\r\n// } else {\r\n// uuid += hexList[(Math.random() * 16) | 0];\r\n// }\r\n// }\r\n// return uuid.replace(/-/g, '');\r\n// }\r\n\r\nlet unique = 0;\r\nexport function buildShortUUID(prefix = ''): string {\r\n const time = Date.now();\r\n const random = Math.floor(Math.random() * 1000000000);\r\n unique++;\r\n return prefix + '_' + random + unique + String(time);\r\n}\r\n","import { ExtractPropTypes } from 'vue';\r\nexport const basicVideoProps = {\r\n id: { type: String, default: '', required: true },\r\n url: { type: String, default: '' },\r\n poster: { type: String, default: '' },\r\n autoPlay: { type: Boolean, default: false },\r\n loop: { type: Boolean, default: false },\r\n muted: { type: Boolean, default: true },\r\n control: { type: Boolean, default: true },\r\n width: { type: String, default: '100%' },\r\n height: { type: String, default: '100%' },\r\n} as const;\r\n\r\nexport type BasicVideoProps = ExtractPropTypes<typeof basicVideoProps>;\r\n","<template>\r\n <div :class=\"videoClass\" :style=\"{ width: props.width, height: props.height }\">\r\n <video\r\n ref=\"videoRef\"\r\n :id=\"id\"\r\n :src=\"props.url\"\r\n :poster=\"props.poster\"\r\n :autoplay=\"props.autoPlay\"\r\n :loop=\"props.loop\"\r\n :controls=\"props.control\"\r\n :muted=\"props.muted\"\r\n style=\"width: 100%; height: 100%\"\r\n ></video>\r\n </div>\r\n</template>\r\n<script setup lang=\"ts\">\r\n import { createNamespace, prefix } from '@report-components/utils/create';\r\n import { buildUUID } from '@report-components/utils/uuid';\r\n import { onMounted, onUnmounted, ref, computed } from 'vue';\r\n import { basicVideoProps } from './basicVideo';\r\n defineOptions({ name: `${prefix}-basic-video` });\r\n const props = defineProps(basicVideoProps);\r\n const bem = createNamespace('video');\r\n const emit = defineEmits(['ready', 'unload']);\r\n const id = computed(() => {\r\n return props.id || buildUUID();\r\n });\r\n\r\n const videoClass = computed(() => {\r\n return [bem.b('video')];\r\n });\r\n\r\n const videoRef = ref<HTMLVideoElement | null>(null);\r\n\r\n const initVideo = () => {\r\n if (!videoRef.value) return;\r\n emit('ready', {\r\n id: id,\r\n player: videoRef.value,\r\n });\r\n };\r\n\r\n onMounted(() => {\r\n if (videoRef.value) {\r\n videoRef.value.muted = props.muted;\r\n if (props.autoPlay) {\r\n const playResult = videoRef.value.play();\r\n if (playResult && typeof (playResult as any).catch === 'function') {\r\n (playResult as Promise<void>).catch(() => {});\r\n }\r\n }\r\n }\r\n initVideo();\r\n });\r\n onUnmounted(() => {\r\n emit('unload', id);\r\n });\r\n</script>\r\n","import { withInstall } from '@report-components/utils/with-install';\r\nimport _BasicVideo from './src/BasicVideo.vue';\r\nexport * from './src/basicVideo';\r\n\r\nconst CxBasicVideo = withInstall(_BasicVideo);\r\nexport { CxBasicVideo };\nexport default CxBasicVideo;\n"],"names":["i","buildUUID","guid","n","basicVideoProps","props","__props","bem","createNamespace","emit","__emit","id","computed","videoClass","videoRef","ref","initVideo","onMounted","playResult","onUnmounted","_createElementBlock","_createElementVNode","CxBasicVideo","withInstall","_BasicVideo"],"mappings":";;AACA,SAASA,IAAI,GAAGA,KAAK,IAAIA;AACV,EAAAA,EAAE,SAAS,EAAE;AAGrB,SAASC,IAAY;AAM1B,MAAIC,IAAO;AACX,WAASF,IAAI,GAAGA,KAAK,IAAIA,KAAK;AAC5B,UAAMG,IAAI,KAAK,MAAM,KAAK,WAAW,EAAI,EAAE,SAAS,EAAE;AACtD,IAAAD,KAAQC,IACJH,KAAK,KAAKA,KAAK,MAAMA,KAAK,MAAMA,KAAK,QAAIE,KAAQ;AAAA,EACvD;AACA,SAAOA;AACT;ACjBO,MAAME,IAAkB;AAAA,EAC7B,IAAI,EAAE,MAAM,QAAQ,SAAS,IAAI,UAAU,GAAA;AAAA,EAC3C,KAAK,EAAE,MAAM,QAAQ,SAAS,GAAA;AAAA,EAC9B,QAAQ,EAAE,MAAM,QAAQ,SAAS,GAAA;AAAA,EACjC,UAAU,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA,EACpC,MAAM,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA,EAChC,OAAO,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA,EACjC,SAAS,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA,EACnC,OAAO,EAAE,MAAM,QAAQ,SAAS,OAAA;AAAA,EAChC,QAAQ,EAAE,MAAM,QAAQ,SAAS,OAAA;AACnC;;;;;;ACUE,UAAMC,IAAQC,GACRC,IAAMC,EAAgB,OAAO,GAC7BC,IAAOC,GACPC,IAAKC,EAAS,MACXP,EAAM,MAAMJ,EAAA,CACpB,GAEKY,IAAaD,EAAS,MACnB,CAACL,EAAI,EAAE,OAAO,CAAC,CACvB,GAEKO,IAAWC,EAA6B,IAAI,GAE5CC,IAAY,MAAM;AACtB,MAAKF,EAAS,SACdL,EAAK,SAAS;AAAA,QACZ,IAAAE;AAAA,QACA,QAAQG,EAAS;AAAA,MAAA,CAClB;AAAA,IACH;AAEA,WAAAG,EAAU,MAAM;AACd,UAAIH,EAAS,UACXA,EAAS,MAAM,QAAQT,EAAM,OACzBA,EAAM,WAAU;AAClB,cAAMa,IAAaJ,EAAS,MAAM,KAAA;AAClC,QAAII,KAAc,OAAQA,EAAmB,SAAU,cACpDA,EAA6B,MAAM,MAAM;AAAA,QAAC,CAAC;AAAA,MAEhD;AAEF,MAAAF,EAAA;AAAA,IACF,CAAC,GACDG,EAAY,MAAM;AAChB,MAAAV,EAAK,UAAUE,CAAE;AAAA,IACnB,CAAC,mBAvDDS,EAYM,OAAA;AAAA,MAZA,SAAOP,EAAA,KAAU;AAAA,MAAG,kBAAgBR,EAAM,OAAK,QAAUA,EAAM,OAAA,CAAM;AAAA,IAAA;MACzEgB,EAUS,SAAA;AAAA,iBATH;AAAA,QAAJ,KAAIP;AAAA,QACH,IAAIH,EAAA;AAAA,QACJ,KAAKN,EAAM;AAAA,QACX,QAAQA,EAAM;AAAA,QACd,UAAUA,EAAM;AAAA,QAChB,MAAMA,EAAM;AAAA,QACZ,UAAUA,EAAM;AAAA,QAChB,OAAOA,EAAM;AAAA,QACd,OAAA,EAAA,OAAA,QAAA,QAAA,OAAA;AAAA,MAAA;;;ICPAiB,IAAeC,EAAYC,CAAW;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as v, c as k, w as S } from "../create-DynflqE1.js";
|
|
2
|
-
import { defineComponent as I, ref as x, computed as r, watch as z,
|
|
2
|
+
import { defineComponent as I, ref as x, computed as r, watch as z, openBlock as i, createElementBlock as g, normalizeStyle as s, normalizeClass as l, createElementVNode as A, unref as a, createBlock as B, createCommentVNode as f, toDisplayString as c } from "vue";
|
|
3
3
|
import { CxCardContent as R } from "./card-content.js";
|
|
4
4
|
const j = {
|
|
5
5
|
data: {
|
|
@@ -141,3 +141,4 @@ export {
|
|
|
141
141
|
j as cardCarouselProps,
|
|
142
142
|
L as default
|
|
143
143
|
};
|
|
144
|
+
//# sourceMappingURL=card-carousel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-carousel.js","sources":["../../src/components/card-carousel/src/cardCarousel.ts","../../src/components/card-carousel/src/CardCarousel.vue","../../src/components/card-carousel/index.ts"],"sourcesContent":["import type { ContentModel } from '../../card-content';\r\nimport { CSSProperties, ExtractPropTypes, PropType } from 'vue';\r\n\r\ntype cssConfig = CSSProperties & {\r\n show?: boolean;\r\n};\r\ntype arrowStyle = CSSProperties & {\r\n show?: boolean;\r\n size: string;\r\n};\r\nexport const cardCarouselProps = {\r\n data: {\r\n type: Array as PropType<Array<ContentModel>>,\r\n default: () => [],\r\n },\r\n bgClass: {\r\n type: Array<String>,\r\n default: () => [],\r\n },\r\n imgSrc: {\r\n type: String,\r\n default: () => '',\r\n },\r\n styleConfig: {\r\n type: Object as PropType<CSSProperties>,\r\n default: (): CSSProperties => ({\r\n backgroundColor: '#fff',\r\n width: '500px',\r\n height: '300px',\r\n borderRadius: '5px',\r\n }),\r\n },\r\n arrowConfig: {\r\n type: Object as PropType<arrowStyle>,\r\n default: () => ({\r\n show: true,\r\n color: '#fff',\r\n size: '20px',\r\n background: 'rgba(0,0,0,0.3)',\r\n }),\r\n },\r\n titleConfig: {\r\n type: Object as PropType<cssConfig>,\r\n default: () => ({\r\n show: true,\r\n color: '#fff',\r\n size: '20px',\r\n background: 'rgba(0,0,0,0.3)',\r\n }),\r\n },\r\n pageInfoConfig: {\r\n type: Object as PropType<cssConfig>,\r\n default: () => ({\r\n color: '#222',\r\n backgroundColor: '#666',\r\n }),\r\n },\r\n} as const;\r\n\r\nexport type cardCarouselProps = ExtractPropTypes<typeof cardCarouselProps>;\r\n","<template>\r\n <div :class=\"bgClass\" :style=\"bgStyle\">\r\n <!-- 内容区 -->\r\n <div :class=\"bem.b('carousel-content')\">\r\n <CxCardContent\r\n :class=\"bem.be('carousel-content', 'item')\"\r\n v-if=\"currentItem\"\r\n :data=\"currentItem\"\r\n />\r\n </div>\r\n\r\n <!-- 左箭头 -->\r\n <button\r\n v-if=\"arrowConfig.show && data.length > 1\"\r\n :class=\"[bem.be('carousel', 'btn'), bem.be('carousel', 'arrow__left')]\"\r\n @click=\"prevPage\"\r\n :style=\"arrowStyle\"\r\n >\r\n ◀\r\n </button>\r\n\r\n <!-- 右箭头 -->\r\n <button\r\n v-if=\"arrowConfig.show && data.length > 1\"\r\n :class=\"[bem.be('carousel', 'btn'), bem.be('carousel', 'arrow__right')]\"\r\n @click=\"nextPage\"\r\n :style=\"arrowStyle\"\r\n >\r\n ▶\r\n </button>\r\n\r\n <!-- 标题 -->\r\n <div v-if=\"titleConfig.show\" :class=\"bem.be('carousel', 'title')\" :style=\"titleStyle\">\r\n {{ currentItem?.title || '' }}\r\n </div>\r\n\r\n <!-- 页码 -->\r\n <div v-if=\"pageInfoConfig.show\" :class=\"bem.be('carousel', 'info')\" :style=\"pageInfoStyle\">\r\n {{ currentPage + 1 }} / {{ data.length }}\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\n import { ref, computed, watch, CSSProperties } from 'vue';\r\n import CxCardContent from '../../card-content';\r\n import { cardCarouselProps } from './cardCarousel';\r\n import { createNamespace, prefix } from '@report-components/utils/create';\r\n const props = defineProps(cardCarouselProps);\r\n defineOptions({ name: `${prefix}-card-carousel` });\r\n const bem = createNamespace('card');\r\n const currentPage = ref(0);\r\n const bgClass = computed(() => {\r\n return [bem.b('carousel'), ...(props.bgClass || [])];\r\n });\r\n const currentItem = computed(() => {\r\n return props.data[currentPage.value] || null;\r\n });\r\n\r\n function prevPage() {\r\n if (props.data.length === 0) return;\r\n currentPage.value = (currentPage.value - 1 + props.data.length) % props.data.length;\r\n }\r\n\r\n function nextPage() {\r\n if (props.data.length === 0) return;\r\n currentPage.value = (currentPage.value + 1) % props.data.length;\r\n }\r\n\r\n const bgStyle = computed(() => {\r\n return {\r\n backgroundColor: props.styleConfig.backgroundColor || '#fff',\r\n width: props.styleConfig.width || '500px',\r\n height: props.styleConfig.height || '300px',\r\n borderRadius: props.styleConfig.borderRadius || '5px',\r\n backgroundImage: props.imgSrc ? `url(${props.imgSrc})` : '',\r\n backgroundSize: '100% 100%',\r\n position: 'relative',\r\n paddingTop: props.styleConfig.paddingTop,\r\n paddingLeft: props.styleConfig.paddingLeft,\r\n paddingBottom: props.styleConfig.paddingBottom,\r\n paddingRight: props.styleConfig.paddingRight,\r\n } as CSSProperties;\r\n });\r\n\r\n const arrowStyle = computed(() => ({\r\n color: props.arrowConfig.color,\r\n fontSize: props.arrowConfig.size,\r\n background: props.arrowConfig.background,\r\n }));\r\n\r\n const titleStyle = computed(() => {\r\n return {\r\n color: props.titleConfig.color,\r\n fontSize: props.titleConfig.fontSize,\r\n top: props.titleConfig.top,\r\n left: props.titleConfig.left,\r\n width: props.titleConfig.width,\r\n textAlign: props.titleConfig.textAlign,\r\n position: 'absolute',\r\n } as CSSProperties;\r\n });\r\n\r\n const pageInfoStyle = computed(() => {\r\n return {\r\n color: props.pageInfoConfig.color,\r\n fontSize: props.pageInfoConfig.fontSize,\r\n top: props.pageInfoConfig.top,\r\n left: props.pageInfoConfig.left,\r\n width: props.pageInfoConfig.width,\r\n textAlign: props.pageInfoConfig.textAlign,\r\n position: 'absolute',\r\n } as CSSProperties;\r\n });\r\n\r\n watch(\r\n () => props.data,\r\n (val) => {\r\n if (currentPage.value >= val.length) {\r\n currentPage.value = 0;\r\n }\r\n },\r\n );\r\n</script>\r\n","import { withInstall } from '@report-components/utils/with-install';\r\nimport _CardCarousel from './src/CardCarousel.vue';\r\nexport * from './src/cardCarousel';\r\n\r\nconst CxCardCarousel = withInstall(_CardCarousel);\r\nexport { CxCardCarousel };\r\nexport default CxCardCarousel;\r\n"],"names":["cardCarouselProps","props","__props","bem","createNamespace","currentPage","ref","bgClass","computed","currentItem","prevPage","nextPage","bgStyle","arrowStyle","titleStyle","pageInfoStyle","watch","val","_createElementBlock","_createElementVNode","_normalizeClass","_unref","_createBlock","CxCardContent","arrowConfig","data","titleConfig","_toDisplayString","pageInfoConfig","CxCardCarousel","withInstall","_CardCarousel"],"mappings":";;;AAUO,MAAMA,IAAoB;AAAA,EAC/B,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS,MAAM,CAAA;AAAA,EAAC;AAAA,EAElB,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS,MAAM,CAAA;AAAA,EAAC;AAAA,EAElB,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,SAAS,MAAM;AAAA,EAAA;AAAA,EAEjB,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS,OAAsB;AAAA,MAC7B,iBAAiB;AAAA,MACjB,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,cAAc;AAAA,IAAA;AAAA,EAChB;AAAA,EAEF,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS,OAAO;AAAA,MACd,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,MACN,YAAY;AAAA,IAAA;AAAA,EACd;AAAA,EAEF,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS,OAAO;AAAA,MACd,MAAM;AAAA,MACN,OAAO;AAAA,MACP,MAAM;AAAA,MACN,YAAY;AAAA,IAAA;AAAA,EACd;AAAA,EAEF,gBAAgB;AAAA,IACd,MAAM;AAAA,IACN,SAAS,OAAO;AAAA,MACd,OAAO;AAAA,MACP,iBAAiB;AAAA,IAAA;AAAA,EACnB;AAEJ;;;;;ACTE,UAAMC,IAAQC,GAERC,IAAMC,EAAgB,MAAM,GAC5BC,IAAcC,EAAI,CAAC,GACnBC,IAAUC,EAAS,MAChB,CAACL,EAAI,EAAE,UAAU,GAAG,GAAIF,EAAM,WAAW,EAAG,CACpD,GACK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OAAKE,EAAEC,EAAAlB,CAAA,EAAI,GAAE,YAAA,OAAA,CAAA;AAAA,QAAwB,SAAOW,EAAA,KAAU;AAAA,MAAA,GAC/Ea,EAAAlB,EAAA,OAAa,SAAK,EAAA,GAAA,CAAA;MAIZmB,EAAAA,eAAe,aAA1BV,EAEM,OAAA;AAAA;QAF2B,OAAKE,EAAEC,EAAAlB,CAAA,EAAI,GAAE,YAAA,MAAA,CAAA;AAAA,QAAuB,SAAOY,EAAA,KAAa;AAAA,MAAA,GACpFY,EAAAtB,EAAA,QAAW,CAAA,IAAO,QAAGsB,EAAGF,EAAAA,KAAK,MAAM,GAAA,CAAA;;;IClCtCI,IAAiBC,EAAYC,CAAa;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { p as l, c as i, w as m } from "../create-DynflqE1.js";
|
|
2
|
-
import { defineComponent as p,
|
|
2
|
+
import { defineComponent as p, openBlock as s, createElementBlock as o, normalizeClass as n, unref as e, normalizeStyle as u, createElementVNode as r, createVNode as c, normalizeProps as f, guardReactiveProps as _, createCommentVNode as y } from "vue";
|
|
3
3
|
import { CxBasicVideo as C } from "./basic-video.js";
|
|
4
4
|
import { CxCarouselImg as b } from "./carousel-img.js";
|
|
5
|
-
import { C as v } from "../index-
|
|
5
|
+
import { C as v } from "../index-C0pspk3x.js";
|
|
6
6
|
const h = {
|
|
7
7
|
data: {
|
|
8
8
|
type: Object,
|
|
@@ -15,15 +15,15 @@ const h = {
|
|
|
15
15
|
props: h,
|
|
16
16
|
setup(d) {
|
|
17
17
|
const t = d, a = i("card");
|
|
18
|
-
return (N, P) => (
|
|
18
|
+
return (N, P) => (s(), o("div", {
|
|
19
19
|
class: n(e(a).b("content"))
|
|
20
20
|
}, [
|
|
21
|
-
t.data && t.data.type == "text" ? (
|
|
21
|
+
t.data && t.data.type == "text" ? (s(), o("div", {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: n(e(a).be("content", "text")),
|
|
24
24
|
innerHTML: t.data.content,
|
|
25
|
-
style:
|
|
26
|
-
}, null, 14, x)) : t.data && t.data.type == "video" ? (
|
|
25
|
+
style: u({ "font-size": t.data.size || "14px" })
|
|
26
|
+
}, null, 14, x)) : t.data && t.data.type == "video" ? (s(), o("div", {
|
|
27
27
|
key: 1,
|
|
28
28
|
class: n(e(a).be("content", "video"))
|
|
29
29
|
}, [
|
|
@@ -34,14 +34,14 @@ const h = {
|
|
|
34
34
|
url: t.data.src
|
|
35
35
|
}, null, 8, ["url"])
|
|
36
36
|
], 2)
|
|
37
|
-
], 2)) : t.data && t.data.type == "img" ? (
|
|
37
|
+
], 2)) : t.data && t.data.type == "img" ? (s(), o("div", {
|
|
38
38
|
key: 2,
|
|
39
39
|
class: n(e(a).be("content", "img"))
|
|
40
40
|
}, [
|
|
41
41
|
r("img", {
|
|
42
42
|
src: t.data.src
|
|
43
43
|
}, null, 8, k)
|
|
44
|
-
], 2)) : t.data && t.data.type == "iframe" ? (
|
|
44
|
+
], 2)) : t.data && t.data.type == "iframe" ? (s(), o("div", {
|
|
45
45
|
key: 3,
|
|
46
46
|
class: n(e(a).be("content", "iframe"))
|
|
47
47
|
}, [
|
|
@@ -50,7 +50,7 @@ const h = {
|
|
|
50
50
|
class: "w-full h-full",
|
|
51
51
|
frameborder: "0"
|
|
52
52
|
}, null, 8, g)
|
|
53
|
-
], 2)) : t.data && t.data.type == "carousel" ? (
|
|
53
|
+
], 2)) : t.data && t.data.type == "carousel" ? (s(), o("div", {
|
|
54
54
|
key: 4,
|
|
55
55
|
class: n(e(a).be("content", "carousel"))
|
|
56
56
|
}, [
|
|
@@ -58,12 +58,12 @@ const h = {
|
|
|
58
58
|
class: n(e(a).be("content", "carousel__img")),
|
|
59
59
|
data: t.data.file
|
|
60
60
|
}, null, 8, ["class", "data"])
|
|
61
|
-
], 2)) : t.data && t.data.type == "chart" ? (
|
|
61
|
+
], 2)) : t.data && t.data.type == "chart" ? (s(), o("div", {
|
|
62
62
|
key: 5,
|
|
63
63
|
class: n(e(a).be("content", "chart"))
|
|
64
64
|
}, [
|
|
65
|
-
c(e(v), _(
|
|
66
|
-
], 2)) :
|
|
65
|
+
c(e(v), f(_(t.data?.echartsData)), null, 16)
|
|
66
|
+
], 2)) : y("", !0)
|
|
67
67
|
], 2));
|
|
68
68
|
}
|
|
69
69
|
}), I = m(z);
|
|
@@ -72,3 +72,4 @@ export {
|
|
|
72
72
|
h as cardContentProps,
|
|
73
73
|
I as default
|
|
74
74
|
};
|
|
75
|
+
//# sourceMappingURL=card-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-content.js","sources":["../../src/components/card-content/src/cardContent.ts","../../src/components/card-content/src/CardContent.vue","../../src/components/card-content/index.ts"],"sourcesContent":["import { ExtractPropTypes, PropType } from 'vue';\r\n\r\nexport interface ContentModel {\r\n title: string;\r\n type: string;\r\n content: string;\r\n src: string;\r\n size?: string;\r\n slotNo: string;\r\n componentProps: any;\r\n file: Array<string>;\r\n echartsData: any;\r\n}\r\n\r\nexport const cardContentProps = {\r\n data: {\r\n type: Object as PropType<ContentModel>,\r\n default: () => ({} as ContentModel), // ✅ 工厂函数\r\n },\r\n} as const;\r\n\r\nexport type CardContentProps = ExtractPropTypes<typeof cardContentProps>;\r\n","<template>\r\n <div :class=\"bem.b('content')\">\r\n <div\r\n :class=\"bem.be('content', 'text')\"\r\n v-if=\"props.data && props.data.type == 'text'\"\r\n v-html=\"props.data.content\"\r\n :style=\"{ 'font-size': props.data.size || '14px' }\"\r\n >\r\n </div>\r\n <div :class=\"bem.be('content', 'video')\" v-else-if=\"props.data && props.data.type == 'video'\">\r\n <div :class=\"bem.be('content', 'video__inner')\">\r\n <CxBasicVideo :url=\"props.data.src\" />\r\n </div>\r\n </div>\r\n <div :class=\"bem.be('content', 'img')\" v-else-if=\"props.data && props.data.type == 'img'\">\r\n <img :src=\"props.data.src\" />\r\n </div>\r\n <div :class=\"bem.be('content', 'iframe')\" v-else-if=\"props.data && props.data.type == 'iframe'\">\r\n <iframe :src=\"props.data.src\" class=\"w-full h-full\" frameborder=\"0\"></iframe>\r\n </div>\r\n <div\r\n :class=\"bem.be('content', 'carousel')\"\r\n v-else-if=\"props.data && props.data.type == 'carousel'\"\r\n >\r\n <CarouselImg :class=\"bem.be('content', 'carousel__img')\" :data=\"props.data.file\" />\r\n </div>\r\n <div :class=\"bem.be('content', 'chart')\" v-else-if=\"props.data && props.data.type == 'chart'\">\r\n <CxEchartsPro v-bind=\"props.data?.echartsData\" />\r\n </div>\r\n </div>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import CxBasicVideo from '../../basic-video/index';\r\n import CarouselImg from '../../carousel-img';\r\n import CxEchartsPro from '../../echarts-pro';\r\n import { cardContentProps } from './cardContent';\r\n import { createNamespace, prefix } from '@report-components/utils/create';\r\n const props = defineProps(cardContentProps);\r\n defineOptions({ name: `${prefix}-card-content` });\r\n const bem = createNamespace('card');\r\n</script>\r\n","import { withInstall } from '@report-components/utils/with-install';\r\nimport _CardContent from './src/CardContent.vue';\r\nexport * from './src/cardContent';\r\n\r\nconst CxCardContent = withInstall(_CardContent);\r\nexport { CxCardContent };\r\nexport default CxCardContent;\r\n"],"names":["cardContentProps","props","__props","bem","createNamespace","_createElementBlock","_normalizeClass","_unref","_normalizeStyle","_createElementVNode","_createVNode","CxBasicVideo","CarouselImg","CxEchartsPro","_normalizeProps","_guardReactiveProps","CxCardContent","withInstall","_CardContent"],"mappings":";;;;;AAcO,MAAMA,IAAmB;AAAA,EAC9B,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS,OAAO,CAAA;AAAA;AAAA,EAAC;AAErB;;;;;ACkBE,UAAMC,IAAQC,GAERC,IAAMC,EAAgB,MAAM;2BAtClCC,EA4BM,OAAA;AAAA,MA5BA,OAAKC,EAAEC,EAAAJ,CAAA,EAAI,EAAC,SAAA,CAAA;AAAA,IAAA;MAGRF,EAAM,QAAQA,EAAM,KAAK,QAAI,eAFrCI,EAMM,OAAA;AAAA;QALH,OAAKC,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;eAEzBA,EAAM,QAAQA,EAAM,KAAK,QAAI,gBAAjFI,EAEM,OAAA;AAAA;QAFA,OAAKC,EAAEC,EAAAJ,CAAA,EAAI,GAAE,WAAA,OAAA,CAAA;AAAA,MAAA;QACjBO,EAAiDH,EAAAM,CAAA,GAAAC,EAAAC,EAA3Bd,EAAM,MAAM,WAAW,CAAA,GAAA,MAAA,EAAA;AAAA,MAAA;;;ICvB7Ce,IAAgBC,EAAYC,CAAY;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as h, c as S, w as k } from "../create-DynflqE1.js";
|
|
2
|
-
import { defineComponent as x, ref as c, computed as v, watch as w,
|
|
2
|
+
import { defineComponent as x, ref as c, computed as v, watch as w, openBlock as f, createElementBlock as P, normalizeStyle as s, normalizeClass as o, unref as t, createElementVNode as i, createBlock as B, createCommentVNode as $, toDisplayString as u } from "vue";
|
|
3
3
|
import { CxCardContent as R } from "./card-content.js";
|
|
4
4
|
const I = {
|
|
5
5
|
data: {
|
|
@@ -109,3 +109,4 @@ export {
|
|
|
109
109
|
I as cardPageProps,
|
|
110
110
|
E as default
|
|
111
111
|
};
|
|
112
|
+
//# sourceMappingURL=card-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-page.js","sources":["../../src/components/card-page/src/cardPage.ts","../../src/components/card-page/src/CardPage.vue","../../src/components/card-page/index.ts"],"sourcesContent":["import type { ContentModel } from '../../card-content';\r\nimport { CSSProperties, ExtractPropTypes, PropType } from 'vue';\r\n\r\ntype PaginationStyle = CSSProperties & {\r\n buttonHoverColor?: string;\r\n textColor?: string;\r\n buttonColor?: string;\r\n pageInfoColor?: string;\r\n};\r\nexport const cardPageProps = {\r\n data: {\r\n type: Array as PropType<Array<ContentModel>>,\r\n default: () => [],\r\n },\r\n imgSrc: {\r\n type: String,\r\n default: () => '',\r\n },\r\n styleConfig: {\r\n type: Object as PropType<CSSProperties>,\r\n default: (): CSSProperties => ({\r\n backgroundColor: '#fff',\r\n width: '500px',\r\n height: '300px',\r\n borderRadius: '5px',\r\n }),\r\n },\r\n paginationStyle: {\r\n type: Object as PropType<PaginationStyle>,\r\n default: () => ({\r\n color: '#222',\r\n backgroundColor: '#666',\r\n }),\r\n },\r\n} as const;\r\n\r\nexport type CardPageProps = ExtractPropTypes<typeof cardPageProps>;\r\n","<template>\r\n <div :class=\"bem.b('page')\" :style=\"bgStyle\">\r\n <!-- 内容 -->\r\n <div :class=\"bem.b('page-content')\">\r\n <CxCardContent\r\n :class=\"bem.be('page-content', 'item')\"\r\n v-if=\"currentItem\"\r\n :data=\"currentItem\"\r\n />\r\n </div>\r\n <!-- 分页控制 -->\r\n <div\r\n :class=\"bem.b('page-pagination')\"\r\n :style=\"{\r\n color: paginationStyle?.textColor || '#222',\r\n }\"\r\n >\r\n <button\r\n @click=\"prevPage\"\r\n :style=\"{ color: paginationStyle?.buttonColor || '#666' }\"\r\n @mouseenter=\"hoverBtn = 'prev'\"\r\n @mouseleave=\"hoverBtn = ''\"\r\n :class=\"[bem.be('page', 'btn'), { hover: hoverBtn === 'prev' }]\"\r\n >\r\n ◀\r\n </button>\r\n\r\n <div :class=\"bem.b('page-pagination-center')\">\r\n <div :class=\"bem.be('page', 'title-preview')\">\r\n {{ currentItem?.title || '' }}\r\n </div>\r\n <div\r\n :class=\"bem.be('page', 'info')\"\r\n :style=\"{ color: paginationStyle?.pageInfoColor || '#888' }\"\r\n >\r\n {{ currentPage + 1 }} / {{ data.length }}\r\n </div>\r\n </div>\r\n\r\n <button\r\n @click=\"nextPage\"\r\n :style=\"{ color: paginationStyle?.buttonColor || '#666' }\"\r\n @mouseenter=\"hoverBtn = 'next'\"\r\n @mouseleave=\"hoverBtn = ''\"\r\n :class=\"[bem.be('page', 'btn'), { hover: hoverBtn === 'next' }]\"\r\n >\r\n ▶\r\n </button>\r\n </div>\r\n </div>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { ref, computed, watch } from 'vue';\r\n import CxCardContent from '../../card-content';\r\n import { createNamespace, prefix } from '@report-components/utils/create';\r\n import { cardPageProps } from './cardPage';\r\n const props = defineProps(cardPageProps);\r\n defineOptions({ name: `${prefix}-card-page` });\r\n const bem = createNamespace('card');\r\n\r\n const currentPage = ref(0);\r\n const hoverBtn = ref('');\r\n\r\n const currentItem = computed(() => {\r\n return props.data[currentPage.value] || {};\r\n });\r\n\r\n function prevPage() {\r\n if (props.data.length === 0) return;\r\n currentPage.value = (currentPage.value - 1 + props.data.length) % props.data.length;\r\n }\r\n\r\n function nextPage() {\r\n if (props.data.length === 0) return;\r\n currentPage.value = (currentPage.value + 1) % props.data.length;\r\n }\r\n\r\n const bgStyle = computed(() => {\r\n return {\r\n backgroundColor: props.styleConfig.backgroundColor || '#fff',\r\n width: props.styleConfig.width || '500px',\r\n height: props.styleConfig.height || '300px',\r\n borderRadius: props.styleConfig.borderRadius || '5px',\r\n backgroundImage: props.imgSrc ? `url(${props.imgSrc})` : '',\r\n backgroundSize: '100% 100%',\r\n paddingTop: props.styleConfig.paddingTop,\r\n paddingLeft: props.styleConfig.paddingLeft,\r\n paddingBottom: props.styleConfig.paddingBottom,\r\n paddingRight: props.styleConfig.paddingRight,\r\n '--buttonHoverColor': props.paginationStyle?.buttonHoverColor || '#000',\r\n };\r\n });\r\n\r\n watch(\r\n () => props.data,\r\n (val) => {\r\n if (currentPage.value >= val.length) {\r\n currentPage.value = 0;\r\n }\r\n },\r\n );\r\n</script>\r\n","import { withInstall } from '@report-components/utils/with-install';\r\nimport _CardPage from './src/CardPage.vue';\r\nexport * from './src/cardPage';\r\n\r\nconst CxCardPage = withInstall(_CardPage);\r\nexport { CxCardPage };\r\nexport default CxCardPage;\r\n"],"names":["cardPageProps","props","__props","bem","createNamespace","currentPage","ref","hoverBtn","currentItem","computed","prevPage","nextPage","bgStyle","watch","val","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_createBlock","CxCardContent","_normalizeStyle","paginationStyle","_toDisplayString","data","CxCardPage","withInstall","_CardPage"],"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A,YAFA,OAAKF,EAAEC,EAAAd,CAAA,EAAI,GAAE,QAAA,eAAA,CAAA;AAAA,UAAA,GACdoB,EAAAf,EAAA,OAAa,SAAK,EAAA,GAAA,CAAA;AAAA,UAEvBU,EAKM,OAAA;AAAA,YAJH,OAAKF,EAAEC,EAAAd,CAAA,EAAI,GAAE,QAAA,MAAA,CAAA;AAAA,YACb,OAAKkB,EAAA,EAAA,OAAWC,EAAAA,iBAAiB,iBAAa,QAAA;AAAA,UAAA,GAE5CC,EAAAlB,EAAA,QAAW,CAAA,IAAO,QAAGkB,EAAGC,EAAAA,KAAK,MAAM,GAAA,CAAA;AAAA,QAAA;QAI1CN,EAQS,UAAA;AAAA,UAPN,SAAOP;AAAA,UACP,OAAKU,EAAA,EAAA,OAAWC,EAAAA,iBAAiB,eAAW,QAAA;AAAA,UAC5C,qCAAYf,EAAA,QAAQ;AAAA,UACpB,qCAAYA,EAAA,QAAQ;AAAA,UACpB,OAAKS,EAAA,CAAGC,EAAAd,CAAA,EAAI,4BAA4BI,EAAA,UAAQ,OAAA,CAAA,CAAA;AAAA,QAAA,GAClD,OAED,EAAA;AAAA,MAAA;;;IC3CAkB,IAAaC,EAAYC,CAAS;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as _, c as b, w } from "../create-DynflqE1.js";
|
|
2
|
-
import { defineComponent as k, ref as C, onMounted as I, watch as x, onBeforeUnmount as B,
|
|
2
|
+
import { defineComponent as k, ref as C, onMounted as I, watch as x, onBeforeUnmount as B, openBlock as n, createElementBlock as r, normalizeClass as o, unref as a, Fragment as N, renderList as A, withDirectives as P, createElementVNode as z, vShow as E, createCommentVNode as i } from "vue";
|
|
3
3
|
const V = {
|
|
4
4
|
data: { type: Array, default: () => [] },
|
|
5
5
|
autoplay: { type: Boolean, default: !1 },
|
|
@@ -35,11 +35,11 @@ const V = {
|
|
|
35
35
|
}
|
|
36
36
|
), B(() => {
|
|
37
37
|
p();
|
|
38
|
-
}), (g, c) => e.data?.length >= 1 ? (
|
|
38
|
+
}), (g, c) => e.data?.length >= 1 ? (n(), r("div", {
|
|
39
39
|
key: 0,
|
|
40
40
|
class: o(a(t).b())
|
|
41
41
|
}, [
|
|
42
|
-
(
|
|
42
|
+
(n(!0), r(N, null, A(e.data, (u, h) => P((n(), r("div", {
|
|
43
43
|
key: h,
|
|
44
44
|
class: o(a(t).b("inner"))
|
|
45
45
|
}, [
|
|
@@ -50,13 +50,13 @@ const V = {
|
|
|
50
50
|
], 2)), [
|
|
51
51
|
[E, h === l.value]
|
|
52
52
|
])), 128)),
|
|
53
|
-
e.data?.length > 1 ? (
|
|
53
|
+
e.data?.length > 1 ? (n(), r("button", {
|
|
54
54
|
key: 0,
|
|
55
55
|
type: "button",
|
|
56
56
|
class: o([a(t).e("btn"), a(t).e("arrow__left")]),
|
|
57
57
|
onClick: y
|
|
58
58
|
}, " ◀ ", 2)) : i("", !0),
|
|
59
|
-
e.data?.length > 1 ? (
|
|
59
|
+
e.data?.length > 1 ? (n(), r("button", {
|
|
60
60
|
key: 1,
|
|
61
61
|
type: "button",
|
|
62
62
|
class: o([a(t).e("btn"), a(t).e("arrow__right")]),
|
|
@@ -70,3 +70,4 @@ export {
|
|
|
70
70
|
V as carouselImgProps,
|
|
71
71
|
S as default
|
|
72
72
|
};
|
|
73
|
+
//# sourceMappingURL=carousel-img.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel-img.js","sources":["../../src/components/carousel-img/src/carouselImg.ts","../../src/components/carousel-img/src/CarouselImg.vue","../../src/components/carousel-img/index.ts"],"sourcesContent":["import { ExtractPropTypes, PropType } from 'vue';\r\nexport const carouselImgProps = {\r\n data: { type: Array as PropType<string[]>, default: () => [] },\r\n autoplay: { type: Boolean, default: false },\r\n interval: { type: Number, default: 3000 },\r\n} as const;\r\n\r\nexport type CarouselImgProps = ExtractPropTypes<typeof carouselImgProps>;\r\n","<template>\r\n <div v-if=\"props.data?.length >= 1\" :class=\"bem.b()\">\r\n <div\r\n v-for=\"(url, i) in props.data\"\r\n :key=\"i\"\r\n :class=\"bem.b('inner')\"\r\n v-show=\"i === currentIndex\"\r\n >\r\n <img :src=\"url\" :class=\"bem.be('inner', 'img')\" />\r\n </div>\r\n <button\r\n v-if=\"props.data?.length > 1\"\r\n type=\"button\"\r\n :class=\"[bem.e('btn'), bem.e('arrow__left')]\"\r\n @click=\"prev\"\r\n >\r\n ◀\r\n </button>\r\n <button\r\n v-if=\"props.data?.length > 1\"\r\n type=\"button\"\r\n :class=\"[bem.e('btn'), bem.e('arrow__right')]\"\r\n @click=\"next\"\r\n >\r\n ▶\r\n </button>\r\n </div>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { ref, onMounted, onBeforeUnmount, watch } from 'vue';\r\n import { carouselImgProps } from './carouselImg';\r\n const props = defineProps(carouselImgProps);\r\n import { createNamespace, prefix } from '@report-components/utils/create';\r\n defineOptions({ name: `${prefix}-carousel-img` });\r\n const bem = createNamespace('carousel');\r\n\r\n const currentIndex = ref(0);\r\n let timer: number | undefined;\r\n\r\n const showIndex = (index: number) => {\r\n if (!props.data || props.data.length === 0) return;\r\n const length = props.data.length;\r\n const normalized = ((index % length) + length) % length;\r\n currentIndex.value = normalized;\r\n };\r\n\r\n const next = () => {\r\n showIndex(currentIndex.value + 1);\r\n };\r\n\r\n const prev = () => {\r\n showIndex(currentIndex.value - 1);\r\n };\r\n\r\n const stopAutoPlay = () => {\r\n if (timer) {\r\n clearInterval(timer);\r\n timer = undefined;\r\n }\r\n };\r\n\r\n const startAutoPlay = () => {\r\n stopAutoPlay();\r\n if (!props.autoplay || !props.data || props.data.length <= 1) return;\r\n timer = window.setInterval(() => {\r\n next();\r\n }, props.interval);\r\n };\r\n\r\n onMounted(() => {\r\n startAutoPlay();\r\n });\r\n\r\n watch(\r\n () => [props.autoplay, props.interval, props.data?.length],\r\n () => {\r\n startAutoPlay();\r\n },\r\n );\r\n\r\n onBeforeUnmount(() => {\r\n stopAutoPlay();\r\n });\r\n</script>\r\n","import { withInstall } from '@report-components/utils/with-install';\r\nimport _CarouselImg from './src/CarouselImg.vue';\r\nexport * from './src/carouselImg';\r\n\r\nconst CxCarouselImg = withInstall(_CarouselImg);\r\nexport { CxCarouselImg };\nexport default CxCarouselImg;\n"],"names":["carouselImgProps","props","__props","bem","createNamespace","currentIndex","ref","timer","showIndex","index","length","normalized","next","prev","stopAutoPlay","startAutoPlay","onMounted","watch","onBeforeUnmount","_createElementBlock","_normalizeClass","_unref","_openBlock","_Fragment","url","i","_createElementVNode","_vShow","CxCarouselImg","withInstall","_CarouselImg"],"mappings":";;AACO,MAAMA,IAAmB;AAAA,EAC9B,MAAM,EAAE,MAAM,OAA6B,SAAS,MAAM,CAAA,EAAC;AAAA,EAC3D,UAAU,EAAE,MAAM,SAAS,SAAS,GAAA;AAAA,EACpC,UAAU,EAAE,MAAM,QAAQ,SAAS,IAAA;AACrC;;;;;AC0BE,UAAMC,IAAQC,GAGRC,IAAMC,EAAgB,UAAU,GAEhCC,IAAeC,EAAI,CAAC;AAC1B,QAAIC;AAEJ,UAAMC,IAAY,CAACC,MAAkB;AACnC,UAAI,CAACR,EAAM,QAAQA,EAAM,KAAK,WAAW,EAAG;AAC5C,YAAMS,IAAST,EAAM,KAAK,QACpBU,KAAeF,IAAQC,IAAUA,KAAUA;AACjD,MAAAL,EAAa,QAAQM;AAAA,IACvB,GAEMC,IAAO,MAAM;AACjB,MAAAJ,EAAUH,EAAa,QAAQ,CAAC;AAAA,IAClC,GAEMQ,IAAO,MAAM;AACjB,MAAAL,EAAUH,EAAa,QAAQ,CAAC;AAAA,IAClC,GAEMS,IAAe,MAAM;AACzB,MAAIP,MACF,cAAcA,CAAK,GACnBA,IAAQ;AAAA,IAEZ,GAEMQ,IAAgB,MAAM;AAE1B,MADAD,EAAA,GACI,GAACb,EAAM,YAAY,CAACA,EAAM,QAAQA,EAAM,KAAK,UAAU,OAC3DM,IAAQ,OAAO,YAAY,MAAM;AAC/B,QAAAK,EA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gBC,EAAYC,CAAY;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "../create-DynflqE1.js";
|
|
2
|
-
import { C as s, C as t, y as e } from "../index-
|
|
2
|
+
import { C as s, C as t, y as e } from "../index-C0pspk3x.js";
|
|
3
3
|
export {
|
|
4
4
|
s as CxEchartsPro,
|
|
5
5
|
t as default,
|
|
6
6
|
e as echartsProProps
|
|
7
7
|
};
|
|
8
|
+
//# sourceMappingURL=echarts-pro.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"echarts-pro.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as fe, c as oe, w as ne } from "../create-DynflqE1.js";
|
|
2
|
-
import { defineComponent as ue, ref as m, computed as K,
|
|
2
|
+
import { defineComponent as ue, ref as m, computed as K, openBlock as Q, createElementBlock as U, normalizeClass as H, unref as W, createElementVNode as Z, normalizeStyle as q, toDisplayString as ie, createCommentVNode as be } from "vue";
|
|
3
3
|
import { u as me, a as ve, b as he } from "../index-CUs_hd1V.js";
|
|
4
4
|
const pe = {
|
|
5
5
|
text: { type: String, default: "文字" },
|
|
@@ -95,7 +95,7 @@ const pe = {
|
|
|
95
95
|
y: a.y - p.value + (e.otherOffset?.y || 0)
|
|
96
96
|
})), y.value = !1);
|
|
97
97
|
}
|
|
98
|
-
}), (a, B) => (
|
|
98
|
+
}), (a, B) => (Q(), U("div", {
|
|
99
99
|
class: H(W(I).b("bubble"))
|
|
100
100
|
}, [
|
|
101
101
|
Z("div", {
|
|
@@ -103,11 +103,11 @@ const pe = {
|
|
|
103
103
|
ref: S,
|
|
104
104
|
style: q(re.value)
|
|
105
105
|
}, [
|
|
106
|
-
e.text ? (
|
|
106
|
+
e.text ? (Q(), U("div", {
|
|
107
107
|
key: 0,
|
|
108
108
|
class: H(W(I).be("bubble", "name")),
|
|
109
109
|
style: q(e.textStyle)
|
|
110
|
-
},
|
|
110
|
+
}, ie(e.text), 7)) : be("", !0)
|
|
111
111
|
], 4),
|
|
112
112
|
Z("div", {
|
|
113
113
|
class: H(W(I).be("bubble", "line")),
|
|
@@ -121,3 +121,4 @@ export {
|
|
|
121
121
|
ge as default,
|
|
122
122
|
pe as markerBubbleProps
|
|
123
123
|
};
|
|
124
|
+
//# sourceMappingURL=marker-bubble.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marker-bubble.js","sources":["../../src/components/marker-bubble/src/markerBubble.ts","../../src/components/marker-bubble/src/MarkerBubble.vue","../../src/components/marker-bubble/index.ts"],"sourcesContent":["import { ExtractPropTypes } from 'vue';\r\nexport const markerBubbleProps = {\r\n text: { type: String, default: '文字' },\r\n textStyle: {\r\n type: Object,\r\n default: () => {},\r\n },\r\n lineStyle: {\r\n type: Object,\r\n default: () => {},\r\n },\r\n isCanDraggable: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n onCanDraggable: {\r\n type: Function,\r\n },\r\n pixelOffset: {\r\n type: Object,\r\n default: () => {\r\n x: 0;\r\n y: 0;\r\n },\r\n },\r\n otherOffset: {\r\n type: Object,\r\n default: () => {\r\n x: 0;\r\n y: 0;\r\n },\r\n },\r\n} as const;\r\n\r\nexport type MarkerBubbleProps = ExtractPropTypes<typeof markerBubbleProps>;\r\n","<template>\r\n <div :class=\"bem.b('bubble')\">\r\n <div ref=\"el\" :style=\"nameTransform\">\r\n <div :class=\"bem.be('bubble', 'name')\" v-if=\"props.text\" :style=\"props.textStyle\">\r\n {{ props.text }}\r\n </div>\r\n </div>\r\n <div :class=\"bem.be('bubble', 'line')\" :style=\"lineStyle\"></div>\r\n </div>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { createNamespace, prefix } from '@report-components/utils/create';\r\n import { markerBubbleProps } from './markerBubble';\r\n import { computed, ref } from 'vue';\r\n import { useElementSize, useDraggable, useMouseInElement } from '@vueuse/core';\r\n defineOptions({ name: `${prefix}-marker` });\r\n const props = defineProps(markerBubbleProps);\r\n const bem = createNamespace('marker');\r\n\r\n const emit = defineEmits(['setOtherOffset']);\r\n const el = ref();\r\n const { width, height } = useElementSize(el);\r\n const draggable = ref(false);\r\n const lineStyle = computed(() => {\r\n let otherOffsetX = props.otherOffset?.x || 0;\r\n let otherOffsetY = props.otherOffset?.y || 0;\r\n if (isMove.value && (props.isCanDraggable || draggable.value)) {\r\n otherOffsetX = currX.value || 0;\r\n otherOffsetY = currY.value || 0;\r\n }\r\n\r\n let XF = (props.pixelOffset?.x || 0) + otherOffsetX;\r\n let YF = (props.pixelOffset?.y || 0) + otherOffsetY;\r\n let X = 0;\r\n let Y = 0;\r\n let XL = X + XF;\r\n let XM = X + XF + width.value / 2;\r\n let XR = X + XF + width.value;\r\n let YT = Y + YF;\r\n let YM = Y + YF + height.value / 2;\r\n let YB = Y + YF + height.value;\r\n let DX1 = 0;\r\n let DY1 = 0;\r\n let DX2 = 0;\r\n let DY2 = 0;\r\n let arrowW = 0;\r\n let arrowH = 0;\r\n let arrowXF = 0;\r\n let arrowYF = 0;\r\n let interval = 24;\r\n let PML = 4;\r\n let borderRadius = 4;\r\n let EDGE = '';\r\n let directionX = '';\r\n let directionY = '';\r\n //计算动态点位\r\n if (X < XL && Y >= YT && Y <= YB) {\r\n //点在矩形左边\r\n DX1 = XL;\r\n DX2 = XL;\r\n let PY = Y < YM ? YT : YM;\r\n DY1 = PY + PML;\r\n DY2 = PY + PML + Math.min(interval, height.value / 2 - PML - borderRadius);\r\n // DY1 = PY + PML;\r\n // DY2 = PY + PML + interval;\r\n EDGE = 'left';\r\n } else if (X > XR && Y >= YT && Y <= YB) {\r\n //点在矩形右边\r\n DX1 = XR;\r\n DX2 = XR;\r\n let PY = Y < YM ? YT : YM;\r\n DY1 = PY + PML;\r\n DY2 = PY + PML + Math.min(interval, height.value / 2 - PML - borderRadius);\r\n // DY1 = PY + PML;\r\n // DY2 = PY + PML + interval;\r\n EDGE = 'right';\r\n } else if (Y < YT) {\r\n //点在矩形上方\r\n DY1 = YT;\r\n DY2 = YT;\r\n let PX = X < XM ? XL : XM;\r\n DX1 = PX + PML;\r\n DX2 = PX + PML + Math.min(interval, width.value / 2 - PML - borderRadius);\r\n // DX1 = PX + PML;\r\n // DX2 = PX + PML + interval;\r\n EDGE = 'top';\r\n } else if (Y > YB) {\r\n //点在矩形下方\r\n DY1 = YB;\r\n DY2 = YB;\r\n let PX = X < XM ? XL : XM;\r\n DX1 = PX + PML;\r\n DX2 = PX + PML + Math.min(interval, width.value / 2 - PML - borderRadius);\r\n // DX1 = PX + PML;\r\n // DX2 = PX + PML + interval;\r\n EDGE = 'bottom';\r\n } else {\r\n DX1 = 0;\r\n DX2 = 0;\r\n DY1 = 0;\r\n DY2 = 0;\r\n }\r\n //计算箭头容器大小与偏移量\r\n if (X >= DX1 && X <= DX2) {\r\n arrowW = Math.abs(X - DX1) + Math.abs(X - DX2);\r\n arrowXF = -Math.abs(X - DX1);\r\n directionX = 'mid';\r\n } else {\r\n arrowW = Math.max(Math.abs(X - DX1), Math.abs(X - DX2));\r\n arrowXF = X < DX1 ? 0 : -arrowW;\r\n directionX = X < DX1 ? 'left' : 'right';\r\n }\r\n\r\n if (Y >= DY1 && Y <= DY2) {\r\n arrowH = Math.abs(Y - DY1) + Math.abs(Y - DY2);\r\n arrowYF = -Math.abs(Y - DY1);\r\n directionY = 'mid';\r\n } else {\r\n arrowH = Math.max(Math.abs(Y - DY1), Math.abs(Y - DY2));\r\n arrowYF = Y < DY1 ? 0 : -arrowH;\r\n directionY = Y < DY1 ? 'top' : 'bottom';\r\n }\r\n //计算剖切路径\r\n let p1x = 0 as Number | String;\r\n let p1y = 0 as Number | String;\r\n let p2x = 0 as Number | String;\r\n let p2y = 0 as Number | String;\r\n let p3x = 0 as Number | String;\r\n let p3y = 0 as Number | String;\r\n\r\n if (EDGE == 'top' || EDGE == 'bottom') {\r\n p1y = EDGE == 'top' ? 0 : '100%';\r\n p2y = EDGE == 'top' ? '100%' : 0;\r\n p3y = EDGE == 'top' ? '100%' : 0;\r\n if (directionX == 'left') {\r\n p1x = 0;\r\n p2x = DX1 + 'px';\r\n p3x = '100%';\r\n } else if (directionX == 'right') {\r\n p1x = '100%';\r\n p2x = 0;\r\n p3x = Math.abs(DX2 - DX1) + 'px';\r\n } else if (directionX == 'mid') {\r\n p1x = Math.abs(X - DX1) + 'px';\r\n p2x = 0;\r\n p3x = '100%';\r\n }\r\n }\r\n\r\n if (EDGE == 'left' || EDGE == 'right') {\r\n p1x = EDGE == 'left' ? 0 : '100%';\r\n p2x = EDGE == 'left' ? '100%' : 0;\r\n p3x = EDGE == 'left' ? '100%' : 0;\r\n if (directionY == 'top') {\r\n p1y = 0;\r\n p2y = DY1 + 'px';\r\n p3y = '100%';\r\n } else if (directionY == 'bottom') {\r\n p1y = '100%';\r\n p2y = 0;\r\n p3y = Math.abs(DY2 - DY1) + 'px';\r\n } else if (directionY == 'mid') {\r\n p1y = Math.abs(Y - DY1) + 'px';\r\n p2y = 0;\r\n p3y = '100%';\r\n }\r\n }\r\n let clipPath = `polygon(${p1x} ${p1y}, ${p2x} ${p2y},${p3x} ${p3y})`;\r\n return {\r\n ...props.lineStyle,\r\n width: arrowW + 'px',\r\n height: arrowH + 'px',\r\n clipPath: clipPath,\r\n transform: `translate(${-XF + arrowXF + otherOffsetX}px , ${\r\n -YF + arrowYF + otherOffsetY\r\n }px)`,\r\n };\r\n });\r\n let isMouseOver = false;\r\n const oldX = ref(0);\r\n const oldY = ref(0);\r\n const currX = ref(0);\r\n const currY = ref(0);\r\n const isMove = ref(false);\r\n const nameTransform = computed(() => {\r\n if (isMove.value && (props.isCanDraggable || draggable.value)) {\r\n return {\r\n width: `max-content`,\r\n transform: `translate(${currX.value}px, ${currY.value}px)`,\r\n };\r\n } else {\r\n return {\r\n width: `max-content`,\r\n transform: `translate(${props.otherOffset?.x || 0}px, ${props.otherOffset?.y || 0}px)`,\r\n };\r\n }\r\n });\r\n const { elementPositionX, elementPositionY } = useMouseInElement(el);\r\n useDraggable(el, {\r\n initialValue: { x: elementPositionX.value, y: elementPositionY.value },\r\n onStart: () => {\r\n oldX.value = elementPositionX.value;\r\n oldY.value = elementPositionY.value;\r\n setTimeout(() => {\r\n if (props.onCanDraggable) {\r\n draggable.value = props.onCanDraggable();\r\n }\r\n isMove.value = true;\r\n });\r\n },\r\n onMove: (position) => {\r\n if ((props.isCanDraggable || draggable.value) && isMove.value) {\r\n currX.value = position.x - oldX.value + (props.otherOffset?.x || 0);\r\n currY.value = position.y - oldY.value + (props.otherOffset?.y || 0);\r\n console.log({\r\n x: currX.value,\r\n y: currY.value,\r\n });\r\n }\r\n },\r\n onEnd: (position) => {\r\n if (position.x == 0 && position.y == 0) return;\r\n if (position.x == oldX.value && position.y == oldY.value) return;\r\n if (props.isCanDraggable || draggable.value) {\r\n currX.value = position.x - oldX.value + (props.otherOffset?.x || 0);\r\n currY.value = position.y - oldY.value + (props.otherOffset?.y || 0);\r\n emit('setOtherOffset', {\r\n x: position.x - oldX.value + (props.otherOffset?.x || 0),\r\n y: position.y - oldY.value + (props.otherOffset?.y || 0),\r\n });\r\n }\r\n isMove.value = false;\r\n },\r\n });\r\n</script>\r\n","import { withInstall } from '@report-components/utils/with-install';\r\nimport _MarkerBubble from './src/MarkerBubble.vue';\r\nexport * from './src/markerBubble';\r\n\r\nconst CxMarkerBubble = withInstall(_MarkerBubble);\r\nexport { CxMarkerBubble };\nexport default CxMarkerBubble;\n"],"names":["markerBubbleProps","props","__props","bem","createNamespace","emit","__emit","el","ref","width","height","useElementSize","draggable","lineStyle","computed","otherOffsetX","otherOffsetY","isMove","currX","currY","XF","YF","X","Y","XL","XM","XR","YT","YM","YB","DX1","DY1","DX2","DY2","arrowW","arrowH","arrowXF","arrowYF","interval","PML","borderRadius","EDGE","directionX","directionY","PY","PX","p1x","p1y","p2x","p2y","p3x","p3y","clipPath","oldX","oldY","nameTransform","elementPositionX","elementPositionY","useMouseInElement","useDraggable","position","_createElementBlock","_normalizeClass","_unref","_createElementVNode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OAAA;AAAA;UAFA,OAAKC,EAAEC,EAAA5D,CAAA,EAAI,GAAE,UAAA,MAAA,CAAA;AAAA,UAAuC,OAAK8D,EAAEhE,EAAM,SAAS;AAAA,QAAA,GAC3EiE,GAAAjE,EAAM,IAAI,GAAA,CAAA;;MAGjB+D,EAAgE,OAAA;AAAA,QAA1D,OAAKF,EAAEC,EAAA5D,CAAA,EAAI,GAAE,UAAA,MAAA,CAAA;AAAA,QAAqB,SAAOU,GAAA,KAAS;AAAA,MAAA;;;ICHtDsD,KAAiBC,GAAYC,EAAa;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as u, c as i, w as p } from "../create-DynflqE1.js";
|
|
2
|
-
import { defineComponent as f, computed as d,
|
|
2
|
+
import { defineComponent as f, computed as d, openBlock as r, createElementBlock as l, normalizeClass as a, unref as s, normalizeStyle as g, toDisplayString as x, createCommentVNode as y, createElementVNode as n } from "vue";
|
|
3
3
|
const k = {
|
|
4
4
|
text: { type: String, default: "" },
|
|
5
5
|
img: { type: String, default: "" },
|
|
@@ -15,14 +15,14 @@ const k = {
|
|
|
15
15
|
props: k,
|
|
16
16
|
setup(o) {
|
|
17
17
|
const m = d(() => e.textStyle ? [t.be("default", "custom"), "tag-text"] : [t.be("default", "name"), "tag-text"]), e = o, t = i("marker");
|
|
18
|
-
return (c, b) => (
|
|
18
|
+
return (c, b) => (r(), l("div", {
|
|
19
19
|
class: a(s(t).b("default"))
|
|
20
20
|
}, [
|
|
21
|
-
e.text ? (
|
|
21
|
+
e.text ? (r(), l("span", {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: a(m.value),
|
|
24
|
-
style:
|
|
25
|
-
},
|
|
24
|
+
style: g(e.textStyle)
|
|
25
|
+
}, x(e.text), 7)) : y("", !0),
|
|
26
26
|
n("div", null, [
|
|
27
27
|
n("img", {
|
|
28
28
|
src: c.img,
|
|
@@ -37,3 +37,4 @@ export {
|
|
|
37
37
|
h as default,
|
|
38
38
|
k as markerDefaultProps
|
|
39
39
|
};
|
|
40
|
+
//# sourceMappingURL=marker-default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marker-default.js","sources":["../../src/components/marker-default/src/markerDefault.ts","../../src/components/marker-default/src/MarkerDefault.vue","../../src/components/marker-default/index.ts"],"sourcesContent":["import { ExtractPropTypes } from 'vue';\r\nexport const markerDefaultProps = {\r\n text: { type: String, default: '' },\r\n img: { type: String, default: '' },\r\n suffix: { type: String, default: '.png' },\r\n textStyle: {\r\n type: Object,\r\n default: () => {},\r\n },\r\n} as const;\r\n\r\nexport type MarkerDefaultProps = ExtractPropTypes<typeof markerDefaultProps>;\r\n","<template>\r\n <div :class=\"bem.b('default')\">\r\n <span :class=\"textClass\" v-if=\"props.text\" :style=\"props.textStyle\">{{ props.text }}</span>\r\n <div>\r\n <img :src=\"img\" :class=\"[bem.be('default', 'img'),'tag-img']\" />\r\n </div>\r\n </div>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { createNamespace, prefix } from '@report-components/utils/create';\r\n import { markerDefaultProps } from './markerDefault';\r\n import { computed } from 'vue';\r\n defineOptions({ name: `${prefix}-marker-default` });\r\n const textClass = computed(() => {\r\n return props.textStyle ? [bem.be('default', 'custom'),'tag-text'] : [bem.be('default', 'name'),'tag-text'];\r\n });\r\n const props = defineProps(markerDefaultProps);\r\n const bem = createNamespace('marker');\r\n</script>\r\n","import { withInstall } from '@report-components/utils/with-install';\r\nimport _MarkerDefault from './src/MarkerDefault.vue';\r\nexport * from './src/markerDefault';\r\n\r\nconst CxMarkerDefault = withInstall(_MarkerDefault);\r\nexport { CxMarkerDefault };\nexport default CxMarkerDefault;\n"],"names":["markerDefaultProps","textClass","computed","props","bem","__props","createNamespace","_createElementBlock","_normalizeClass","_unref","_normalizeStyle","_toDisplayString","_createElementVNode","img","CxMarkerDefault","withInstall","_MarkerDefault"],"mappings":";;AACO,MAAMA,IAAqB;AAAA,EAChC,MAAM,EAAE,MAAM,QAAQ,SAAS,GAAA;AAAA,EAC/B,KAAK,EAAE,MAAM,QAAQ,SAAS,GAAA;AAAA,EAC9B,QAAQ,EAAE,MAAM,QAAQ,SAAS,OAAA;AAAA,EACjC,WAAW;AAAA,IACT,MAAM;AAAA,IACN,SAAS,MAAM;AAAA,IAAC;AAAA,EAAA;AAEpB;;;;;ACIE,UAAMC,IAAYC,EAAS,MAClBC,EAAM,YAAY,CAACC,EAAI,GAAG,WAAW,QAAQ,GAAE,UAAU,IAAI,CAACA,EAAI,GAAG,WAAW,MAAM,GAAE,UAAU,CAC1G,GACKD,IAAQE,GACRD,IAAME,EAAgB,QAAQ;2BAhBpCC,EAKM,OAAA;AAAA,MALA,OAAKC,EAAEC,EAAAL,CAAA,EAAI,EAAC,SAAA,CAAA;AAAA,IAAA;MACeD,EAAM,aAArCI,EAA2F,QAAA;AAAA;QAApF,SAAON,EAAA,KAAS;AAAA,QAAqB,OAAKS,EAAEP,EAAM,SAAS;AAAA,MAAA,GAAKQ,EAAAR,EAAM,IAAI,GAAA,CAAA;MACjFS,EAEM,OAAA,MAAA;AAAA,QADJA,EAAgE,OAAA;AAAA,UAA1D,KAAKC,EAAAA;AAAAA,UAAM,OAAKL,EAAA,CAAGC,EAAAL,CAAA,EAAI,GAAE,WAAA,KAAA,GAAA,SAAA,CAAA;AAAA,QAAA;;;;ICA/BU,IAAkBC,EAAYC,CAAc;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as c, c as i, w as p } from "../create-DynflqE1.js";
|
|
2
|
-
import { defineComponent as u,
|
|
2
|
+
import { defineComponent as u, openBlock as l, createElementBlock as s, normalizeClass as r, unref as n, normalizeStyle as d, createCommentVNode as f, createElementVNode as a } from "vue";
|
|
3
3
|
const x = {
|
|
4
4
|
text: { type: String, default: "" },
|
|
5
5
|
img: { type: String, default: "" },
|
|
@@ -15,15 +15,15 @@ const x = {
|
|
|
15
15
|
props: x,
|
|
16
16
|
setup(m) {
|
|
17
17
|
const e = m, t = i("marker");
|
|
18
|
-
return (o, h) => (
|
|
18
|
+
return (o, h) => (l(), s("div", {
|
|
19
19
|
class: r(n(t).b("html"))
|
|
20
20
|
}, [
|
|
21
|
-
e.text ? (
|
|
21
|
+
e.text ? (l(), s("div", {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: r(n(t).be("html", "custom")),
|
|
24
|
-
style:
|
|
24
|
+
style: d(e.textStyle),
|
|
25
25
|
innerHTML: e.text
|
|
26
|
-
}, null, 14, y)) :
|
|
26
|
+
}, null, 14, y)) : f("", !0),
|
|
27
27
|
a("div", null, [
|
|
28
28
|
a("img", {
|
|
29
29
|
src: o.img,
|
|
@@ -38,3 +38,4 @@ export {
|
|
|
38
38
|
b as default,
|
|
39
39
|
x as markerHTMLProps
|
|
40
40
|
};
|
|
41
|
+
//# sourceMappingURL=marker-html.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marker-html.js","sources":["../../src/components/marker-html/src/markerHtml.ts","../../src/components/marker-html/src/MarkerHtml.vue","../../src/components/marker-html/index.ts"],"sourcesContent":["import { ExtractPropTypes } from 'vue';\r\nexport const markerHTMLProps = {\r\n text: { type: String, default: '' },\r\n img: { type: String, default: '' },\r\n suffix: { type: String, default: '.png' },\r\n textStyle: {\r\n type: Object,\r\n default: () => {},\r\n },\r\n} as const;\r\n\r\nexport type MarkerHTMLProps = ExtractPropTypes<typeof markerHTMLProps>;\r\n","<template>\r\n <div :class=\"bem.b('html')\">\r\n <div\r\n :class=\"bem.be('html', 'custom')\"\r\n v-if=\"props.text\"\r\n :style=\"props.textStyle\"\r\n v-html=\"props.text\"\r\n ></div>\r\n <div>\r\n <img :src=\"img\" :class=\"bem.be('html', 'img')\" />\r\n </div>\r\n </div>\r\n</template>\r\n<script lang=\"ts\" setup>\r\n import { createNamespace, prefix } from '@report-components/utils/create';\r\n import { markerHTMLProps } from './markerHtml';\r\n defineOptions({ name: `${prefix}-marker-html` });\r\n\r\n const props = defineProps(markerHTMLProps);\r\n const bem = createNamespace('marker');\r\n</script>\r\n","import { withInstall } from '@report-components/utils/with-install';\r\nimport _MarkerHtml from './src/MarkerHtml.vue';\r\nexport * from './src/markerHtml';\r\n\r\nconst CxMarkerHtml = withInstall(_MarkerHtml);\r\nexport { CxMarkerHtml };\nexport default CxMarkerHtml;\n"],"names":["markerHTMLProps","props","__props","bem","createNamespace","_createElementBlock","_normalizeClass","_unref","_normalizeStyle","_createElementVNode","img","CxMarkerHtml","withInstall","_MarkerHtml"],"mappings":";;AACO,MAAMA,IAAkB;AAAA,EAC7B,MAAM,EAAE,MAAM,QAAQ,SAAS,GAAA;AAAA,EAC/B,KAAK,EAAE,MAAM,QAAQ,SAAS,GAAA;AAAA,EAC9B,QAAQ,EAAE,MAAM,QAAQ,SAAS,OAAA;AAAA,EACjC,WAAW;AAAA,IACT,MAAM;AAAA,IACN,SAAS,MAAM;AAAA,IAAC;AAAA,EAAA;AAEpB;;;;;ACSE,UAAMC,IAAQC,GACRC,IAAMC,EAAgB,QAAQ;2BAlBpCC,EAUM,OAAA;AAAA,MAVA,OAAKC,EAAEC,EAAAJ,CAAA,EAAI,EAAC,MAAA,CAAA;AAAA,IAAA;MAGRF,EAAM,aAFdI,EAKO,OAAA;AAAA;QAJJ,OAAKC,EAAEC,EAAAJ,CAAA,EAAI,GAAE,QAAA,QAAA,CAAA;AAAA,QAEb,OAAKK,EAAEP,EAAM,SAAS;AAAA,QACvB,WAAQA,EAAM;AAAA,MAAA;MAEhBQ,EAEM,OAAA,MAAA;AAAA,QADJA,EAAiD,OAAA;AAAA,UAA3C,KAAKC,EAAAA;AAAAA,UAAM,OAAKJ,EAAEC,EAAAJ,CAAA,EAAI,GAAE,QAAA,KAAA,CAAA;AAAA,QAAA;;;;ICL9BQ,IAAeC,EAAYC,CAAW;"}
|