@ued_fpi/data-visual 1.1.0 → 1.1.1
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/es/aims/service/request.mjs +1 -1
- package/dist/es/aims/src/AirQualityCalendar/index.mjs +12 -7
- package/dist/es/aims/src/AirQualityLevelMonthRatio/index.mjs +5 -5
- package/dist/es/aims/src/AirQualityLevelYearRatio/index.mjs +3 -3
- package/dist/es/aims/src/AirQualityPresentSituation/index.mjs +10 -13
- package/dist/es/aims/src/AirQualityRealTime/index.mjs +13 -16
- package/dist/es/aims/src/AirTimeSeriesAnalysis/index.mjs +1 -1
- package/dist/es/aims/src/CieqContributionMonthRatio/index.mjs +3 -3
- package/dist/es/aims/src/CieqContributionYearRatio/index.mjs +5 -5
- package/dist/es/aims/src/FactorRealTimeRankChart/index.mjs +6 -7
- package/dist/es/aims/src/FactorRealTimeRankList/index.mjs +7 -7
- package/dist/es/aims/src/FactorTargetYearPeriod/index.mjs +3 -3
- package/dist/es/aims/src/MainPollutionMonthRatio/index.mjs +3 -3
- package/dist/es/aims/src/MainPollutionYearRatio/index.mjs +3 -3
- package/dist/es/aims/src/MulGridAirQualityLevelMonthRatio/index.mjs +3 -3
- package/dist/es/aims/src/MulGridCieqContributionMonthRatio/index.mjs +3 -3
- package/dist/es/aims/src/TbHbAnalysis/index.mjs +4 -4
- package/dist/es/aims/src/WeatherCondition/index.mjs +5 -5
- package/dist/es/aims/src/common/BasicDialog/index.mjs +3 -3
- package/dist/es/aims/src/common/BasicEcharts/index.mjs +2 -2
- package/dist/es/aims/src/common/BasicPanel/index.mjs +3 -1
- package/dist/es/aims/utils/tools.mjs +1 -1
- package/dist/es/bmp/config/index.mjs +7 -0
- package/dist/es/bmp/service/base-serve.d.ts +4 -0
- package/dist/es/bmp/service/base-serve.mjs +12 -0
- package/dist/es/bmp/service/request.d.ts +3 -0
- package/dist/es/bmp/service/request.mjs +78 -0
- package/dist/es/bmp/service/types.d.ts +14 -0
- package/dist/es/bmp/src/AlgaeMonitoring/api/index.d.ts +6 -0
- package/dist/es/bmp/src/AlgaeMonitoring/api/index.mjs +12 -0
- package/dist/es/bmp/src/AlgaeMonitoring/api/types.d.ts +21 -0
- package/dist/es/bmp/src/AlgaeMonitoring/images/checked.mjs +3 -0
- package/dist/es/bmp/src/AlgaeMonitoring/images/today-alarm.mjs +3 -0
- package/dist/es/bmp/src/AlgaeMonitoring/index.d.ts +97 -0
- package/dist/es/bmp/src/AlgaeMonitoring/index.mjs +193 -0
- package/dist/es/bmp/src/AlgaeMonitoring/index.vue.d.ts +6 -0
- package/dist/es/bmp/src/index.d.ts +1 -1
- package/dist/es/bmp/src/index.mjs +2 -2
- package/dist/es/index.mjs +58 -20
- package/dist/es/ipes/service/request.mjs +2 -1
- package/dist/es/ipes/src/AccessVehicleManage/index.d.ts +81 -7
- package/dist/es/ipes/src/AccessVehicleManage/index.mjs +103 -40
- package/dist/es/ipes/src/AccessVehicleManage/index.vue.d.ts +48 -3
- package/dist/es/ipes/src/AirPollutionDischarge/images/new-nodata.mjs +3 -0
- package/dist/es/ipes/src/AirPollutionDischarge/index.d.ts +3 -107
- package/dist/es/ipes/src/AirPollutionDischarge/index.mjs +184 -127
- package/dist/es/ipes/src/AirPollutionDischarge/index.vue.d.ts +1 -64
- package/dist/es/ipes/src/AirQuality/index.mjs +25 -16
- package/dist/es/ipes/src/AirQualityManagement/index.mjs +31 -20
- package/dist/es/ipes/src/AlarmManage/images/alarm.mjs +3 -0
- package/dist/es/ipes/src/AlarmManage/images/modeluIcon.mjs +3 -0
- package/dist/es/ipes/src/AlarmManage/images/new-nodata.mjs +3 -0
- package/dist/es/ipes/src/AlarmManage/index.d.ts +89 -0
- package/dist/es/ipes/src/AlarmManage/index.mjs +175 -0
- package/dist/es/ipes/src/AlarmManage/index.vue.d.ts +2 -0
- package/dist/es/ipes/src/AlarmManage/type.d.ts +5 -0
- package/dist/es/ipes/src/BusinessManage/images/icon-percent.mjs +3 -0
- package/dist/es/ipes/src/BusinessManage/index.d.ts +89 -0
- package/dist/es/ipes/src/BusinessManage/index.mjs +196 -0
- package/dist/es/ipes/src/BusinessManage/index.vue.d.ts +2 -0
- package/dist/es/ipes/src/BusinessManage/type.d.ts +10 -0
- package/dist/es/ipes/src/EmergencyDuty/index.mjs +3 -3
- package/dist/es/ipes/src/EnterpriseProtectionCode/index.d.ts +38 -3
- package/dist/es/ipes/src/EnterpriseProtectionCode/index.mjs +52 -30
- package/dist/es/ipes/src/EnterpriseProtectionCode/index.vue.d.ts +22 -1
- package/dist/es/ipes/src/EnvManage/index.mjs +17 -14
- package/dist/es/ipes/src/EnvironmentalProtection/images/module-title-icon.mjs +3 -0
- package/dist/es/ipes/src/EnvironmentalProtection/images/piebottom.mjs +3 -0
- package/dist/es/ipes/src/EnvironmentalProtection/images/pietop.mjs +3 -0
- package/dist/es/ipes/src/EnvironmentalProtection/index.d.ts +101 -0
- package/dist/es/ipes/src/EnvironmentalProtection/index.mjs +177 -0
- package/dist/es/ipes/src/EnvironmentalProtection/index.vue.d.ts +6 -0
- package/dist/es/ipes/src/EnvironmentalRiskManagement/.mjs +2 -2
- package/dist/es/ipes/src/EnvironmentalRiskManagement/index.d.ts +23 -3
- package/dist/es/ipes/src/EnvironmentalRiskManagement/index.mjs +48 -12
- package/dist/es/ipes/src/EnvironmentalRiskManagement/index.vue.d.ts +13 -1
- package/dist/es/ipes/src/GasControl/.mjs +120 -0
- package/dist/es/ipes/src/GasControl/components/AlarmStatistics.vue.d.ts +22 -0
- package/dist/es/ipes/src/GasControl/components/SingleItem.vue.d.ts +16 -0
- package/dist/es/{bmp/src/test-com → ipes/src/GasControl}/index.d.ts +28 -24
- package/dist/es/ipes/src/GasControl/index.mjs +103 -0
- package/dist/es/ipes/src/GasControl/index.vue.d.ts +23 -0
- package/dist/es/ipes/src/GeneralManagement/.mjs +14 -17
- package/dist/es/ipes/src/GeneralManagement/components/Tabs.vue.d.ts +10 -6
- package/dist/es/ipes/src/GeneralManagement/index.d.ts +18 -9
- package/dist/es/ipes/src/GeneralManagement/index.mjs +9 -11
- package/dist/es/ipes/src/GeneralManagement/index.vue.d.ts +12 -6
- package/dist/es/ipes/src/HazardousVehicleManage/index.d.ts +82 -14
- package/dist/es/ipes/src/HazardousVehicleManage/index.mjs +67 -42
- package/dist/es/ipes/src/HazardousVehicleManage/index.vue.d.ts +48 -5
- package/dist/es/ipes/src/InspectionManage/images/module-title-icon.mjs +3 -0
- package/dist/es/ipes/src/InspectionManage/images/new-nodata.mjs +3 -0
- package/dist/es/ipes/src/InspectionManage/index.d.ts +136 -0
- package/dist/es/ipes/src/InspectionManage/index.mjs +267 -0
- package/dist/es/ipes/src/InspectionManage/index.vue.d.ts +27 -0
- package/dist/es/ipes/src/InspectionManage/types/index.d.ts +11 -0
- package/dist/es/ipes/src/Level3AirDefense/.mjs +38 -12
- package/dist/es/ipes/src/Level3AirDefense/components/EmptyData.vue.d.ts +14 -0
- package/dist/es/ipes/src/Level3AirDefense/images/empty.mjs +3 -0
- package/dist/es/ipes/src/Level3AirDefense/index.mjs +10 -9
- package/dist/es/ipes/src/OdorControl/index.mjs +1 -1
- package/dist/es/ipes/src/PollutantSourceManage/index.d.ts +168 -0
- package/dist/es/ipes/src/PollutantSourceManage/index.mjs +90 -0
- package/dist/es/ipes/src/PollutantSourceManage/index.vue.d.ts +42 -0
- package/dist/es/ipes/src/PollutantSourceManage/types.d.ts +18 -0
- package/dist/es/ipes/src/RealTimeAirQualityManage/index.mjs +1 -1
- package/dist/es/ipes/src/SealingManage/index.d.ts +121 -14
- package/dist/es/ipes/src/SealingManage/index.mjs +221 -83
- package/dist/es/ipes/src/SealingManage/index.vue.d.ts +72 -5
- package/dist/es/ipes/src/TaskDispose/.mjs +2 -2
- package/dist/es/ipes/src/VocStatistics/index.mjs +2 -2
- package/dist/es/ipes/src/WaterNetworkManage/index.d.ts +81 -7
- package/dist/es/ipes/src/WaterNetworkManage/index.mjs +71 -39
- package/dist/es/ipes/src/WaterNetworkManage/index.vue.d.ts +48 -3
- package/dist/es/ipes/src/common/Echarts.mjs +2 -2
- package/dist/es/ipes/src/common/IpesPercentBar.mjs +38 -0
- package/dist/es/ipes/src/common/IpesProgressBar.mjs +38 -0
- package/dist/es/ipes/src/common/LottieAnimation.mjs +3 -3
- package/dist/es/ipes/src/index.d.ts +6 -0
- package/dist/es/ipes/src/index.mjs +12 -0
- package/dist/es/style.css +1514 -909
- package/dist/es/wgms/service/request.mjs +1 -1
- package/dist/es/wgms/src/AuxiliaryJudgment/index.mjs +3 -3
- package/dist/es/wgms/src/ChangesAlongTheProcess/index.mjs +3 -3
- package/dist/es/wgms/src/ChlorophyllAchangeRate/index.mjs +5 -5
- package/dist/es/wgms/src/CrossSectionCorrelation/index.mjs +4 -4
- package/dist/es/wgms/src/DistributionPoints/index.mjs +4 -4
- package/dist/es/wgms/src/DrinkingWaterComplianceRate/index.mjs +2 -2
- package/dist/es/wgms/src/EnvironmentalAnalysis/index.mjs +7 -5
- package/dist/es/wgms/src/FactorTopThreeRanking/index.mjs +4 -4
- package/dist/es/wgms/src/FactorTrendComparison/index.mjs +2 -2
- package/dist/es/wgms/src/KeyRiverWaterQualityEvaluation/index.mjs +3 -3
- package/dist/es/wgms/src/LakeRiverIndex/index.mjs +4 -4
- package/dist/es/wgms/src/NPTrendChange/index.mjs +2 -2
- package/dist/es/wgms/src/SevenDayKline/index.mjs +4 -4
- package/dist/es/wgms/src/SewageOutletsOnlineMonitor/index.mjs +4 -4
- package/dist/es/wgms/src/SewageOutletsOnlineMonitor/index.vue.d.ts +0 -1
- package/dist/es/wgms/src/SubordinateRanking/index.mjs +7 -4
- package/dist/es/wgms/src/SurroundingPollution/index.mjs +5 -5
- package/dist/es/wgms/src/UpstreamImpact/index.mjs +3 -3
- package/dist/es/wgms/src/UpstreamSection/index.mjs +3 -3
- package/dist/es/wgms/src/WaterEnvironmentOnlineMonitor/index.mjs +2 -2
- package/dist/es/wgms/src/WaterQualityClassification/index.mjs +3 -3
- package/dist/es/wgms/src/WaterQualityRainfall/index.mjs +3 -3
- package/dist/es/wgms/src/WaterQualityStatus/index.mjs +3 -3
- package/dist/es/wgms/src/common/select-panel.mjs +3 -1
- package/dist/es/wgms/utils/echarts/index.mjs +14 -2
- package/dist/es/wgms/utils/tools.mjs +1 -1
- package/dist/lib/aims/service/request.js +3 -3
- package/dist/lib/aims/src/AirQualityCalendar/index.js +20 -15
- package/dist/lib/aims/src/AirQualityLevelMonthRatio/index.js +6 -6
- package/dist/lib/aims/src/AirQualityLevelYearRatio/index.js +4 -4
- package/dist/lib/aims/src/AirQualityPresentSituation/index.js +9 -12
- package/dist/lib/aims/src/AirQualityRealTime/index.js +12 -15
- package/dist/lib/aims/src/AirTimeSeriesAnalysis/index.js +5 -5
- package/dist/lib/aims/src/CieqContributionMonthRatio/index.js +4 -4
- package/dist/lib/aims/src/CieqContributionYearRatio/index.js +6 -6
- package/dist/lib/aims/src/FactorRealTimeRankChart/index.js +7 -8
- package/dist/lib/aims/src/FactorRealTimeRankList/index.js +8 -8
- package/dist/lib/aims/src/FactorTargetYearPeriod/index.js +4 -4
- package/dist/lib/aims/src/MainPollutionMonthRatio/index.js +4 -4
- package/dist/lib/aims/src/MainPollutionYearRatio/index.js +4 -4
- package/dist/lib/aims/src/MulGridAirQualityLevelMonthRatio/index.js +4 -4
- package/dist/lib/aims/src/MulGridCieqContributionMonthRatio/index.js +4 -4
- package/dist/lib/aims/src/TbHbAnalysis/index.js +6 -6
- package/dist/lib/aims/src/WeatherCondition/index.js +5 -5
- package/dist/lib/aims/src/common/BasicDialog/index.js +3 -3
- package/dist/lib/aims/src/common/BasicEcharts/index.js +21 -2
- package/dist/lib/aims/src/common/BasicPanel/index.js +4 -2
- package/dist/lib/aims/utils/tools.js +2 -2
- package/dist/lib/bmp/config/index.js +8 -0
- package/dist/lib/bmp/service/base-serve.d.ts +4 -0
- package/dist/lib/bmp/service/base-serve.js +14 -0
- package/dist/lib/bmp/service/request.d.ts +3 -0
- package/dist/lib/bmp/service/request.js +80 -0
- package/dist/lib/bmp/service/types.d.ts +14 -0
- package/dist/lib/bmp/src/AlgaeMonitoring/api/index.d.ts +6 -0
- package/dist/lib/bmp/src/AlgaeMonitoring/api/index.js +14 -0
- package/dist/lib/bmp/src/AlgaeMonitoring/api/types.d.ts +21 -0
- package/dist/lib/bmp/src/AlgaeMonitoring/images/checked.js +5 -0
- package/dist/lib/bmp/src/AlgaeMonitoring/images/today-alarm.js +5 -0
- package/dist/lib/bmp/src/AlgaeMonitoring/index.d.ts +97 -0
- package/dist/lib/bmp/src/AlgaeMonitoring/index.js +214 -0
- package/dist/lib/bmp/src/AlgaeMonitoring/index.vue.d.ts +6 -0
- package/dist/lib/bmp/src/index.d.ts +1 -1
- package/dist/lib/bmp/src/index.js +2 -2
- package/dist/lib/index.js +65 -21
- package/dist/lib/ipes/service/request.js +4 -3
- package/dist/lib/ipes/src/AccessVehicleManage/index.d.ts +81 -7
- package/dist/lib/ipes/src/AccessVehicleManage/index.js +107 -44
- package/dist/lib/ipes/src/AccessVehicleManage/index.vue.d.ts +48 -3
- package/dist/lib/ipes/src/AirPollutionDischarge/images/new-nodata.js +5 -0
- package/dist/lib/ipes/src/AirPollutionDischarge/index.d.ts +3 -107
- package/dist/lib/ipes/src/AirPollutionDischarge/index.js +183 -126
- package/dist/lib/ipes/src/AirPollutionDischarge/index.vue.d.ts +1 -64
- package/dist/lib/ipes/src/AirQuality/index.js +25 -16
- package/dist/lib/ipes/src/AirQualityManagement/index.js +31 -20
- package/dist/lib/ipes/src/AlarmManage/images/alarm.js +5 -0
- package/dist/lib/ipes/src/AlarmManage/images/modeluIcon.js +5 -0
- package/dist/lib/ipes/src/AlarmManage/images/new-nodata.js +5 -0
- package/dist/lib/ipes/src/AlarmManage/index.d.ts +89 -0
- package/dist/lib/ipes/src/AlarmManage/index.js +177 -0
- package/dist/lib/ipes/src/AlarmManage/index.vue.d.ts +2 -0
- package/dist/lib/ipes/src/AlarmManage/type.d.ts +5 -0
- package/dist/lib/ipes/src/BusinessManage/images/icon-percent.js +5 -0
- package/dist/lib/ipes/src/BusinessManage/index.d.ts +89 -0
- package/dist/lib/ipes/src/BusinessManage/index.js +198 -0
- package/dist/lib/ipes/src/BusinessManage/index.vue.d.ts +2 -0
- package/dist/lib/ipes/src/BusinessManage/type.d.ts +10 -0
- package/dist/lib/ipes/src/EmergencyDuty/index.js +3 -3
- package/dist/lib/ipes/src/EnterpriseProtectionCode/index.d.ts +38 -3
- package/dist/lib/ipes/src/EnterpriseProtectionCode/index.js +52 -30
- package/dist/lib/ipes/src/EnterpriseProtectionCode/index.vue.d.ts +22 -1
- package/dist/lib/ipes/src/EnvManage/index.js +19 -16
- package/dist/lib/ipes/src/EnvironmentalProtection/images/module-title-icon.js +5 -0
- package/dist/lib/ipes/src/EnvironmentalProtection/images/piebottom.js +5 -0
- package/dist/lib/ipes/src/EnvironmentalProtection/images/pietop.js +5 -0
- package/dist/lib/ipes/src/EnvironmentalProtection/index.d.ts +101 -0
- package/dist/lib/ipes/src/EnvironmentalProtection/index.js +179 -0
- package/dist/lib/ipes/src/EnvironmentalProtection/index.vue.d.ts +6 -0
- package/dist/lib/ipes/src/EnvironmentalRiskManagement/.js +2 -2
- package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.d.ts +23 -3
- package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.js +47 -11
- package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.vue.d.ts +13 -1
- package/dist/lib/ipes/src/GasControl/.js +123 -0
- package/dist/lib/ipes/src/GasControl/components/AlarmStatistics.vue.d.ts +22 -0
- package/dist/lib/ipes/src/GasControl/components/SingleItem.vue.d.ts +16 -0
- package/dist/lib/{bmp/src/test-com → ipes/src/GasControl}/index.d.ts +28 -24
- package/dist/lib/ipes/src/GasControl/index.js +105 -0
- package/dist/lib/ipes/src/GasControl/index.vue.d.ts +23 -0
- package/dist/lib/ipes/src/GeneralManagement/.js +13 -16
- package/dist/lib/ipes/src/GeneralManagement/components/Tabs.vue.d.ts +10 -6
- package/dist/lib/ipes/src/GeneralManagement/index.d.ts +18 -9
- package/dist/lib/ipes/src/GeneralManagement/index.js +8 -10
- package/dist/lib/ipes/src/GeneralManagement/index.vue.d.ts +12 -6
- package/dist/lib/ipes/src/HazardousVehicleManage/index.d.ts +82 -14
- package/dist/lib/ipes/src/HazardousVehicleManage/index.js +74 -49
- package/dist/lib/ipes/src/HazardousVehicleManage/index.vue.d.ts +48 -5
- package/dist/lib/ipes/src/InspectionManage/images/module-title-icon.js +5 -0
- package/dist/lib/ipes/src/InspectionManage/images/new-nodata.js +5 -0
- package/dist/lib/ipes/src/InspectionManage/index.d.ts +136 -0
- package/dist/lib/ipes/src/InspectionManage/index.js +269 -0
- package/dist/lib/ipes/src/InspectionManage/index.vue.d.ts +27 -0
- package/dist/lib/ipes/src/InspectionManage/types/index.d.ts +11 -0
- package/dist/lib/ipes/src/Level3AirDefense/.js +37 -10
- package/dist/lib/ipes/src/Level3AirDefense/components/EmptyData.vue.d.ts +14 -0
- package/dist/lib/ipes/src/Level3AirDefense/images/empty.js +5 -0
- package/dist/lib/ipes/src/Level3AirDefense/index.js +9 -8
- package/dist/lib/ipes/src/OdorControl/index.js +2 -2
- package/dist/lib/ipes/src/PollutantSourceManage/index.d.ts +168 -0
- package/dist/lib/ipes/src/PollutantSourceManage/index.js +92 -0
- package/dist/lib/ipes/src/PollutantSourceManage/index.vue.d.ts +42 -0
- package/dist/lib/ipes/src/PollutantSourceManage/types.d.ts +18 -0
- package/dist/lib/ipes/src/RealTimeAirQualityManage/index.js +2 -2
- package/dist/lib/ipes/src/SealingManage/index.d.ts +121 -14
- package/dist/lib/ipes/src/SealingManage/index.js +222 -84
- package/dist/lib/ipes/src/SealingManage/index.vue.d.ts +72 -5
- package/dist/lib/ipes/src/TaskDispose/.js +21 -2
- package/dist/lib/ipes/src/VocStatistics/index.js +2 -2
- package/dist/lib/ipes/src/WaterNetworkManage/index.d.ts +81 -7
- package/dist/lib/ipes/src/WaterNetworkManage/index.js +73 -41
- package/dist/lib/ipes/src/WaterNetworkManage/index.vue.d.ts +48 -3
- package/dist/lib/ipes/src/common/Echarts.js +21 -2
- package/dist/lib/ipes/src/common/IpesPercentBar.js +40 -0
- package/dist/lib/ipes/src/common/IpesProgressBar.js +40 -0
- package/dist/lib/ipes/src/common/LottieAnimation.js +2 -2
- package/dist/lib/ipes/src/index.d.ts +6 -0
- package/dist/lib/ipes/src/index.js +12 -0
- package/dist/lib/style.css +1514 -909
- package/dist/lib/wgms/service/request.js +3 -3
- package/dist/lib/wgms/src/AuxiliaryJudgment/index.js +5 -5
- package/dist/lib/wgms/src/ChangesAlongTheProcess/index.js +4 -4
- package/dist/lib/wgms/src/ChlorophyllAchangeRate/index.js +4 -4
- package/dist/lib/wgms/src/CrossSectionCorrelation/index.js +6 -6
- package/dist/lib/wgms/src/DistributionPoints/index.js +3 -3
- package/dist/lib/wgms/src/DrinkingWaterComplianceRate/index.js +2 -2
- package/dist/lib/wgms/src/EnvironmentalAnalysis/index.js +10 -8
- package/dist/lib/wgms/src/FactorTopThreeRanking/index.js +3 -3
- package/dist/lib/wgms/src/FactorTrendComparison/index.js +2 -2
- package/dist/lib/wgms/src/KeyRiverWaterQualityEvaluation/index.js +3 -3
- package/dist/lib/wgms/src/LakeRiverIndex/index.js +6 -6
- package/dist/lib/wgms/src/NPTrendChange/index.js +2 -2
- package/dist/lib/wgms/src/SevenDayKline/index.js +9 -9
- package/dist/lib/wgms/src/SewageOutletsOnlineMonitor/index.js +4 -4
- package/dist/lib/wgms/src/SewageOutletsOnlineMonitor/index.vue.d.ts +0 -1
- package/dist/lib/wgms/src/SubordinateRanking/index.js +12 -9
- package/dist/lib/wgms/src/SurroundingPollution/index.js +8 -8
- package/dist/lib/wgms/src/UpstreamImpact/index.js +4 -4
- package/dist/lib/wgms/src/UpstreamSection/index.js +3 -3
- package/dist/lib/wgms/src/WaterEnvironmentOnlineMonitor/index.js +2 -2
- package/dist/lib/wgms/src/WaterQualityClassification/index.js +3 -3
- package/dist/lib/wgms/src/WaterQualityRainfall/index.js +5 -5
- package/dist/lib/wgms/src/WaterQualityStatus/index.js +3 -3
- package/dist/lib/wgms/src/common/select-panel.js +4 -2
- package/dist/lib/wgms/utils/echarts/index.js +34 -3
- package/dist/lib/wgms/utils/tools.js +2 -2
- package/package.json +2 -2
- package/dist/es/bmp/src/test-com/index.mjs +0 -33
- package/dist/es/bmp/src/test-com/index.vue.d.ts +0 -23
- package/dist/es/bmp/src/test-com/types.d.ts +0 -16
- package/dist/es/vendor/@ctrl_tinycolor@3.6.0.mjs +0 -1136
- package/dist/es/vendor/@element-plus_icons-vue@2.0.10_vue@3.3.4.mjs +0 -376
- package/dist/es/vendor/@floating-ui_core@1.3.1.mjs +0 -1
- package/dist/es/vendor/@floating-ui_dom@1.4.4.mjs +0 -1
- package/dist/es/vendor/@sxzz_popperjs-es@2.11.7.mjs +0 -3
- package/dist/es/vendor/@ued_fpi_element-plus-expand@0.7.19.mjs +0 -243
- package/dist/es/vendor/@vue_reactivity@3.3.4.mjs +0 -1
- package/dist/es/vendor/@vue_shared@3.3.4.mjs +0 -29
- package/dist/es/vendor/@vueuse_core@9.13.0_vue@3.3.4.mjs +0 -214
- package/dist/es/vendor/@vueuse_shared@9.13.0_vue@3.3.4.mjs +0 -72
- package/dist/es/vendor/async-validator@4.2.5.mjs +0 -1
- package/dist/es/vendor/axios@1.4.0.mjs +0 -3209
- package/dist/es/vendor/claygl@1.3.0.mjs +0 -24199
- package/dist/es/vendor/dayjs@1.11.9.mjs +0 -88
- package/dist/es/vendor/echarts-gl@2.0.9_echarts@5.4.2.mjs +0 -20973
- package/dist/es/vendor/echarts@5.4.2.mjs +0 -79359
- package/dist/es/vendor/element-plus@2.3.7_vue@3.3.4.mjs +0 -11032
- package/dist/es/vendor/escape-html@1.0.3.mjs +0 -1
- package/dist/es/vendor/fpi-tg-factor-tools@1.0.4.mjs +0 -195
- package/dist/es/vendor/lodash-es@4.17.21.mjs +0 -3255
- package/dist/es/vendor/lodash-unified@1.0.3_tknf7errc3xdqocd3ryzzla7vq.mjs +0 -1
- package/dist/es/vendor/memoize-one@6.0.0.mjs +0 -1
- package/dist/es/vendor/normalize-wheel-es@1.2.0.mjs +0 -1
- package/dist/es/vendor/tslib@2.3.0.mjs +0 -32
- package/dist/es/vendor/vue-demi@0.14.5_vue@3.3.4.mjs +0 -1
- package/dist/es/vendor/vue3-seamless-scroll@2.0.1.mjs +0 -562
- package/dist/es/vendor/zrender@5.4.3.mjs +0 -16894
- package/dist/lib/bmp/src/test-com/index.js +0 -35
- package/dist/lib/bmp/src/test-com/index.vue.d.ts +0 -23
- package/dist/lib/bmp/src/test-com/types.d.ts +0 -16
- package/dist/lib/vendor/@ctrl_tinycolor@3.6.0.js +0 -1138
- package/dist/lib/vendor/@element-plus_icons-vue@2.0.10_vue@3.3.4.js +0 -396
- package/dist/lib/vendor/@floating-ui_core@1.3.1.js +0 -2
- package/dist/lib/vendor/@floating-ui_dom@1.4.4.js +0 -2
- package/dist/lib/vendor/@sxzz_popperjs-es@2.11.7.js +0 -6
- package/dist/lib/vendor/@ued_fpi_element-plus-expand@0.7.19.js +0 -245
- package/dist/lib/vendor/@vue_reactivity@3.3.4.js +0 -2
- package/dist/lib/vendor/@vue_shared@3.3.4.js +0 -39
- package/dist/lib/vendor/@vueuse_core@9.13.0_vue@3.3.4.js +0 -219
- package/dist/lib/vendor/@vueuse_shared@9.13.0_vue@3.3.4.js +0 -82
- package/dist/lib/vendor/async-validator@4.2.5.js +0 -2
- package/dist/lib/vendor/axios@1.4.0.js +0 -3211
- package/dist/lib/vendor/claygl@1.3.0.js +0 -24255
- package/dist/lib/vendor/dayjs@1.11.9.js +0 -98
- package/dist/lib/vendor/echarts-gl@2.0.9_echarts@5.4.2.js +0 -20975
- package/dist/lib/vendor/echarts@5.4.2.js +0 -79400
- package/dist/lib/vendor/element-plus@2.3.7_vue@3.3.4.js +0 -11041
- package/dist/lib/vendor/escape-html@1.0.3.js +0 -2
- package/dist/lib/vendor/fpi-tg-factor-tools@1.0.4.js +0 -201
- package/dist/lib/vendor/lodash-es@4.17.21.js +0 -3265
- package/dist/lib/vendor/lodash-unified@1.0.3_tknf7errc3xdqocd3ryzzla7vq.js +0 -2
- package/dist/lib/vendor/memoize-one@6.0.0.js +0 -2
- package/dist/lib/vendor/normalize-wheel-es@1.2.0.js +0 -2
- package/dist/lib/vendor/tslib@2.3.0.js +0 -34
- package/dist/lib/vendor/vue-demi@0.14.5_vue@3.3.4.js +0 -4
- package/dist/lib/vendor/vue3-seamless-scroll@2.0.1.js +0 -564
- package/dist/lib/vendor/zrender@5.4.3.js +0 -17049
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
/* global Reflect, Promise */
|
|
16
|
-
|
|
17
|
-
var extendStatics = function(d, b) {
|
|
18
|
-
extendStatics = Object.setPrototypeOf ||
|
|
19
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
21
|
-
return extendStatics(d, b);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
function __extends(d, b) {
|
|
25
|
-
if (typeof b !== "function" && b !== null)
|
|
26
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
27
|
-
extendStatics(d, b);
|
|
28
|
-
function __() { this.constructor = d; }
|
|
29
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export { __extends as _ };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'vue';
|
|
@@ -1,562 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, nextTick, onBeforeMount, onMounted, createVNode, getCurrentInstance, Fragment } from 'vue';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable no-undefined,no-param-reassign,no-shadow */
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Throttle execution of a function. Especially useful for rate limiting
|
|
7
|
-
* execution of handlers on events like resize and scroll.
|
|
8
|
-
*
|
|
9
|
-
* @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
|
|
10
|
-
* @param {boolean} [noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the
|
|
11
|
-
* throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time
|
|
12
|
-
* after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,
|
|
13
|
-
* the internal counter is reset).
|
|
14
|
-
* @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
|
|
15
|
-
* to `callback` when the throttled-function is executed.
|
|
16
|
-
* @param {boolean} [debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),
|
|
17
|
-
* schedule `callback` to execute after `delay` ms.
|
|
18
|
-
*
|
|
19
|
-
* @returns {Function} A new, throttled, function.
|
|
20
|
-
*/
|
|
21
|
-
function throttle (delay, noTrailing, callback, debounceMode) {
|
|
22
|
-
/*
|
|
23
|
-
* After wrapper has stopped being called, this timeout ensures that
|
|
24
|
-
* `callback` is executed at the proper times in `throttle` and `end`
|
|
25
|
-
* debounce modes.
|
|
26
|
-
*/
|
|
27
|
-
var timeoutID;
|
|
28
|
-
var cancelled = false; // Keep track of the last time `callback` was executed.
|
|
29
|
-
|
|
30
|
-
var lastExec = 0; // Function to clear existing timeout
|
|
31
|
-
|
|
32
|
-
function clearExistingTimeout() {
|
|
33
|
-
if (timeoutID) {
|
|
34
|
-
clearTimeout(timeoutID);
|
|
35
|
-
}
|
|
36
|
-
} // Function to cancel next exec
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
function cancel() {
|
|
40
|
-
clearExistingTimeout();
|
|
41
|
-
cancelled = true;
|
|
42
|
-
} // `noTrailing` defaults to falsy.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (typeof noTrailing !== 'boolean') {
|
|
46
|
-
debounceMode = callback;
|
|
47
|
-
callback = noTrailing;
|
|
48
|
-
noTrailing = undefined;
|
|
49
|
-
}
|
|
50
|
-
/*
|
|
51
|
-
* The `wrapper` function encapsulates all of the throttling / debouncing
|
|
52
|
-
* functionality and when executed will limit the rate at which `callback`
|
|
53
|
-
* is executed.
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
function wrapper() {
|
|
58
|
-
for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59
|
-
arguments_[_key] = arguments[_key];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
var self = this;
|
|
63
|
-
var elapsed = Date.now() - lastExec;
|
|
64
|
-
|
|
65
|
-
if (cancelled) {
|
|
66
|
-
return;
|
|
67
|
-
} // Execute `callback` and update the `lastExec` timestamp.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
function exec() {
|
|
71
|
-
lastExec = Date.now();
|
|
72
|
-
callback.apply(self, arguments_);
|
|
73
|
-
}
|
|
74
|
-
/*
|
|
75
|
-
* If `debounceMode` is true (at begin) this is used to clear the flag
|
|
76
|
-
* to allow future `callback` executions.
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
function clear() {
|
|
81
|
-
timeoutID = undefined;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (debounceMode && !timeoutID) {
|
|
85
|
-
/*
|
|
86
|
-
* Since `wrapper` is being called for the first time and
|
|
87
|
-
* `debounceMode` is true (at begin), execute `callback`.
|
|
88
|
-
*/
|
|
89
|
-
exec();
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
clearExistingTimeout();
|
|
93
|
-
|
|
94
|
-
if (debounceMode === undefined && elapsed > delay) {
|
|
95
|
-
/*
|
|
96
|
-
* In throttle mode, if `delay` time has been exceeded, execute
|
|
97
|
-
* `callback`.
|
|
98
|
-
*/
|
|
99
|
-
exec();
|
|
100
|
-
} else if (noTrailing !== true) {
|
|
101
|
-
/*
|
|
102
|
-
* In trailing throttle mode, since `delay` time has not been
|
|
103
|
-
* exceeded, schedule `callback` to execute `delay` ms after most
|
|
104
|
-
* recent execution.
|
|
105
|
-
*
|
|
106
|
-
* If `debounceMode` is true (at begin), schedule `clear` to execute
|
|
107
|
-
* after `delay` ms.
|
|
108
|
-
*
|
|
109
|
-
* If `debounceMode` is false (at end), schedule `callback` to
|
|
110
|
-
* execute after `delay` ms.
|
|
111
|
-
*/
|
|
112
|
-
timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
wrapper.cancel = cancel; // Return the wrapper function.
|
|
117
|
-
|
|
118
|
-
return wrapper;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function useExpose(apis) {
|
|
122
|
-
const instance = getCurrentInstance();
|
|
123
|
-
|
|
124
|
-
if (instance) {
|
|
125
|
-
Object.assign(instance.proxy, apis);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
const Props = {
|
|
130
|
-
// 是否开启自动滚动
|
|
131
|
-
modelValue: {
|
|
132
|
-
type: Boolean,
|
|
133
|
-
default: true
|
|
134
|
-
},
|
|
135
|
-
// 原始数据列表
|
|
136
|
-
list: {
|
|
137
|
-
type: Array,
|
|
138
|
-
required: true,
|
|
139
|
-
default: []
|
|
140
|
-
},
|
|
141
|
-
// 步进速度,step 需是单步大小的约数
|
|
142
|
-
step: {
|
|
143
|
-
type: Number,
|
|
144
|
-
default: 1
|
|
145
|
-
},
|
|
146
|
-
// 开启滚动的数据量
|
|
147
|
-
limitScrollNum: {
|
|
148
|
-
type: Number,
|
|
149
|
-
default: 3
|
|
150
|
-
},
|
|
151
|
-
// 是否开启鼠标悬停
|
|
152
|
-
hover: {
|
|
153
|
-
type: Boolean,
|
|
154
|
-
default: false
|
|
155
|
-
},
|
|
156
|
-
// 控制滚动方向
|
|
157
|
-
direction: {
|
|
158
|
-
type: String,
|
|
159
|
-
default: "up"
|
|
160
|
-
},
|
|
161
|
-
// 单步运动停止的高度
|
|
162
|
-
singleHeight: {
|
|
163
|
-
type: Number,
|
|
164
|
-
default: 0
|
|
165
|
-
},
|
|
166
|
-
// 单步运动停止的宽度
|
|
167
|
-
singleWidth: {
|
|
168
|
-
type: Number,
|
|
169
|
-
default: 0
|
|
170
|
-
},
|
|
171
|
-
// 单步停止等待时间 (默认值 1000ms)
|
|
172
|
-
singleWaitTime: {
|
|
173
|
-
type: Number,
|
|
174
|
-
default: 1000
|
|
175
|
-
},
|
|
176
|
-
// 是否开启 rem 度量
|
|
177
|
-
isRemUnit: {
|
|
178
|
-
type: Boolean,
|
|
179
|
-
default: false
|
|
180
|
-
},
|
|
181
|
-
// 开启数据更新监听
|
|
182
|
-
isWatch: {
|
|
183
|
-
type: Boolean,
|
|
184
|
-
default: true
|
|
185
|
-
},
|
|
186
|
-
// 动画时间
|
|
187
|
-
delay: {
|
|
188
|
-
type: Number,
|
|
189
|
-
default: 0
|
|
190
|
-
},
|
|
191
|
-
// 动画方式
|
|
192
|
-
ease: {
|
|
193
|
-
type: [String, Object],
|
|
194
|
-
default: "ease-in"
|
|
195
|
-
},
|
|
196
|
-
// 动画循环次数,-1 表示一直动画
|
|
197
|
-
count: {
|
|
198
|
-
type: Number,
|
|
199
|
-
default: -1
|
|
200
|
-
},
|
|
201
|
-
// 拷贝几份滚动列表
|
|
202
|
-
copyNum: {
|
|
203
|
-
type: Number,
|
|
204
|
-
default: 1
|
|
205
|
-
},
|
|
206
|
-
// 开启鼠标悬停时支持滚轮滚动
|
|
207
|
-
wheel: {
|
|
208
|
-
type: Boolean,
|
|
209
|
-
default: false
|
|
210
|
-
},
|
|
211
|
-
// 启用单行滚动
|
|
212
|
-
singleLine: {
|
|
213
|
-
type: Boolean,
|
|
214
|
-
default: false
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
globalThis.window.cancelAnimationFrame = function () {
|
|
219
|
-
return globalThis.window.cancelAnimationFrame || // @ts-ignore
|
|
220
|
-
globalThis.window.webkitCancelAnimationFrame || // @ts-ignore
|
|
221
|
-
globalThis.window.mozCancelAnimationFrame || // @ts-ignore
|
|
222
|
-
globalThis.window.oCancelAnimationFrame || // @ts-ignore
|
|
223
|
-
globalThis.window.msCancelAnimationFrame || function (id) {
|
|
224
|
-
return globalThis.window.clearTimeout(id);
|
|
225
|
-
};
|
|
226
|
-
}();
|
|
227
|
-
|
|
228
|
-
globalThis.window.requestAnimationFrame = function () {
|
|
229
|
-
return globalThis.window.requestAnimationFrame || // @ts-ignore
|
|
230
|
-
globalThis.window.webkitRequestAnimationFrame || // @ts-ignore
|
|
231
|
-
globalThis.window.mozRequestAnimationFrame || // @ts-ignore
|
|
232
|
-
globalThis.window.oRequestAnimationFrame || // @ts-ignore
|
|
233
|
-
globalThis.window.msRequestAnimationFrame || function (callback) {
|
|
234
|
-
return globalThis.window.setTimeout(callback, 1000 / 60);
|
|
235
|
-
};
|
|
236
|
-
}();
|
|
237
|
-
|
|
238
|
-
function dataWarm(list) {
|
|
239
|
-
if (list && typeof list !== "boolean" && list.length > 100) {
|
|
240
|
-
console.warn(`数据达到了${list.length}条有点多哦~,可能会造成部分老旧浏览器卡顿。`);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
const Vue3SeamlessScroll = defineComponent({
|
|
245
|
-
name: "vue3-seamless-scroll",
|
|
246
|
-
inheritAttrs: false,
|
|
247
|
-
props: Props,
|
|
248
|
-
emits: ["stop", "count", "move"],
|
|
249
|
-
|
|
250
|
-
setup(_props, {
|
|
251
|
-
slots,
|
|
252
|
-
emit,
|
|
253
|
-
attrs
|
|
254
|
-
}) {
|
|
255
|
-
const props = _props;
|
|
256
|
-
const scrollRef = ref(null);
|
|
257
|
-
const slotListRef = ref(null);
|
|
258
|
-
const realBoxRef = ref(null);
|
|
259
|
-
const reqFrame = ref(null);
|
|
260
|
-
const singleWaitTimeout = ref(null);
|
|
261
|
-
const realBoxWidth = ref(0);
|
|
262
|
-
const realBoxHeight = ref(0);
|
|
263
|
-
const xPos = ref(0);
|
|
264
|
-
const yPos = ref(0);
|
|
265
|
-
const isHover = ref(false);
|
|
266
|
-
|
|
267
|
-
const _count = ref(0);
|
|
268
|
-
|
|
269
|
-
const isScroll = computed(() => props.list ? props.list.length >= props.limitScrollNum : false);
|
|
270
|
-
const realBoxStyle = computed(() => {
|
|
271
|
-
return {
|
|
272
|
-
width: realBoxWidth.value ? `${realBoxWidth.value}px` : "auto",
|
|
273
|
-
transform: `translate(${xPos.value}px,${yPos.value}px)`,
|
|
274
|
-
// @ts-ignore
|
|
275
|
-
transition: `all ${typeof props.ease === "string" ? props.ease : "cubic-bezier(" + props.ease.x1 + "," + props.ease.y1 + "," + props.ease.x2 + "," + props.ease.y2 + ")"} ${props.delay}ms`,
|
|
276
|
-
overflow: "hidden",
|
|
277
|
-
display: props.singleLine ? "flex" : "block"
|
|
278
|
-
};
|
|
279
|
-
});
|
|
280
|
-
const isHorizontal = computed(() => props.direction == "left" || props.direction == "right");
|
|
281
|
-
const floatStyle = computed(() => {
|
|
282
|
-
return isHorizontal.value ? {
|
|
283
|
-
float: "left",
|
|
284
|
-
overflow: "hidden",
|
|
285
|
-
display: props.singleLine ? "flex" : "block",
|
|
286
|
-
flexShrink: props.singleLine ? 0 : 1
|
|
287
|
-
} : {
|
|
288
|
-
overflow: "hidden"
|
|
289
|
-
};
|
|
290
|
-
});
|
|
291
|
-
const baseFontSize = computed(() => {
|
|
292
|
-
return props.isRemUnit ? parseInt(globalThis.window.getComputedStyle(globalThis.document.documentElement, null).fontSize) : 1;
|
|
293
|
-
});
|
|
294
|
-
const realSingleStopWidth = computed(() => props.singleWidth * baseFontSize.value);
|
|
295
|
-
const realSingleStopHeight = computed(() => props.singleHeight * baseFontSize.value);
|
|
296
|
-
const step = computed(() => {
|
|
297
|
-
let singleStep;
|
|
298
|
-
let _step = props.step;
|
|
299
|
-
|
|
300
|
-
if (isHorizontal.value) {
|
|
301
|
-
singleStep = realSingleStopWidth.value;
|
|
302
|
-
} else {
|
|
303
|
-
singleStep = realSingleStopHeight.value;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
if (singleStep > 0 && singleStep % _step > 0) {
|
|
307
|
-
console.error("如果设置了单步滚动,step 需是单步大小的约数,否则无法保证单步滚动结束的位置是否准确。~~~~~");
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
return _step;
|
|
311
|
-
});
|
|
312
|
-
|
|
313
|
-
const cancle = () => {
|
|
314
|
-
cancelAnimationFrame(reqFrame.value);
|
|
315
|
-
reqFrame.value = null;
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
const animation = (_direction, _step, isWheel) => {
|
|
319
|
-
reqFrame.value = requestAnimationFrame(function () {
|
|
320
|
-
const h = realBoxHeight.value / 2;
|
|
321
|
-
const w = realBoxWidth.value / 2;
|
|
322
|
-
|
|
323
|
-
if (_direction === "up") {
|
|
324
|
-
if (Math.abs(yPos.value) >= h) {
|
|
325
|
-
yPos.value = 0;
|
|
326
|
-
_count.value += 1;
|
|
327
|
-
emit("count", _count.value);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
yPos.value -= _step;
|
|
331
|
-
} else if (_direction === "down") {
|
|
332
|
-
if (yPos.value >= 0) {
|
|
333
|
-
yPos.value = h * -1;
|
|
334
|
-
_count.value += 1;
|
|
335
|
-
emit("count", _count.value);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
yPos.value += _step;
|
|
339
|
-
} else if (_direction === "left") {
|
|
340
|
-
if (Math.abs(xPos.value) >= w) {
|
|
341
|
-
xPos.value = 0;
|
|
342
|
-
_count.value += 1;
|
|
343
|
-
emit("count", _count.value);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
xPos.value -= _step;
|
|
347
|
-
} else if (_direction === "right") {
|
|
348
|
-
if (xPos.value >= 0) {
|
|
349
|
-
xPos.value = w * -1;
|
|
350
|
-
_count.value += 1;
|
|
351
|
-
emit("count", _count.value);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
xPos.value += _step;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
if (isWheel) {
|
|
358
|
-
return;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
let {
|
|
362
|
-
singleWaitTime
|
|
363
|
-
} = props;
|
|
364
|
-
|
|
365
|
-
if (singleWaitTimeout.value) {
|
|
366
|
-
clearTimeout(singleWaitTimeout.value);
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
if (!!realSingleStopHeight.value) {
|
|
370
|
-
if (Math.abs(yPos.value) % realSingleStopHeight.value < _step) {
|
|
371
|
-
singleWaitTimeout.value = setTimeout(() => {
|
|
372
|
-
move();
|
|
373
|
-
}, singleWaitTime);
|
|
374
|
-
} else {
|
|
375
|
-
move();
|
|
376
|
-
}
|
|
377
|
-
} else if (!!realSingleStopWidth.value) {
|
|
378
|
-
if (Math.abs(xPos.value) % realSingleStopWidth.value < _step) {
|
|
379
|
-
singleWaitTimeout.value = setTimeout(() => {
|
|
380
|
-
move();
|
|
381
|
-
}, singleWaitTime);
|
|
382
|
-
} else {
|
|
383
|
-
move();
|
|
384
|
-
}
|
|
385
|
-
} else {
|
|
386
|
-
move();
|
|
387
|
-
}
|
|
388
|
-
});
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
const move = () => {
|
|
392
|
-
cancle();
|
|
393
|
-
|
|
394
|
-
if (isHover.value || !isScroll.value || _count.value === props.count) {
|
|
395
|
-
emit("stop", _count.value);
|
|
396
|
-
_count.value = 0;
|
|
397
|
-
return;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
animation(props.direction, step.value, false);
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
const initMove = () => {
|
|
404
|
-
dataWarm(props.list);
|
|
405
|
-
|
|
406
|
-
if (isHorizontal.value) {
|
|
407
|
-
let slotListWidth = slotListRef.value.offsetWidth;
|
|
408
|
-
slotListWidth = slotListWidth * 2 + 1;
|
|
409
|
-
realBoxWidth.value = slotListWidth;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
if (isScroll.value) {
|
|
413
|
-
realBoxHeight.value = realBoxRef.value.offsetHeight;
|
|
414
|
-
|
|
415
|
-
if (props.modelValue) {
|
|
416
|
-
move();
|
|
417
|
-
}
|
|
418
|
-
} else {
|
|
419
|
-
cancle();
|
|
420
|
-
yPos.value = xPos.value = 0;
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
const startMove = () => {
|
|
425
|
-
isHover.value = false;
|
|
426
|
-
move();
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
const stopMove = () => {
|
|
430
|
-
isHover.value = true;
|
|
431
|
-
|
|
432
|
-
if (singleWaitTimeout.value) {
|
|
433
|
-
clearTimeout(singleWaitTimeout.value);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
cancle();
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
const hoverStop = computed(() => props.hover && props.modelValue && isScroll.value);
|
|
440
|
-
const throttleFunc = throttle(30, e => {
|
|
441
|
-
cancle();
|
|
442
|
-
const singleHeight = !!realSingleStopHeight.value ? realSingleStopHeight.value : 15;
|
|
443
|
-
|
|
444
|
-
if (e.deltaY < 0) {
|
|
445
|
-
animation("down", singleHeight, true);
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
if (e.deltaY > 0) {
|
|
449
|
-
animation("up", singleHeight, true);
|
|
450
|
-
}
|
|
451
|
-
});
|
|
452
|
-
|
|
453
|
-
const onWheel = e => {
|
|
454
|
-
throttleFunc(e);
|
|
455
|
-
};
|
|
456
|
-
|
|
457
|
-
const reset = () => {
|
|
458
|
-
cancle();
|
|
459
|
-
isHover.value = false;
|
|
460
|
-
initMove();
|
|
461
|
-
};
|
|
462
|
-
|
|
463
|
-
const Reset = () => {
|
|
464
|
-
reset();
|
|
465
|
-
};
|
|
466
|
-
|
|
467
|
-
useExpose({
|
|
468
|
-
Reset
|
|
469
|
-
});
|
|
470
|
-
watch(() => props.list, () => {
|
|
471
|
-
if (props.isWatch) {
|
|
472
|
-
nextTick(() => {
|
|
473
|
-
reset();
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
}, {
|
|
477
|
-
deep: true
|
|
478
|
-
});
|
|
479
|
-
watch(() => props.modelValue, newValue => {
|
|
480
|
-
if (newValue) {
|
|
481
|
-
startMove();
|
|
482
|
-
} else {
|
|
483
|
-
stopMove();
|
|
484
|
-
}
|
|
485
|
-
});
|
|
486
|
-
watch(() => props.count, newValue => {
|
|
487
|
-
if (newValue !== 0) {
|
|
488
|
-
startMove();
|
|
489
|
-
}
|
|
490
|
-
});
|
|
491
|
-
onBeforeMount(() => {
|
|
492
|
-
cancle();
|
|
493
|
-
clearTimeout(singleWaitTimeout.value);
|
|
494
|
-
});
|
|
495
|
-
onMounted(() => {
|
|
496
|
-
if (isScroll.value) {
|
|
497
|
-
initMove();
|
|
498
|
-
}
|
|
499
|
-
});
|
|
500
|
-
const {
|
|
501
|
-
default: $default,
|
|
502
|
-
html
|
|
503
|
-
} = slots;
|
|
504
|
-
const copyNum = new Array(props.copyNum).fill(null);
|
|
505
|
-
|
|
506
|
-
const getHtml = () => {
|
|
507
|
-
return createVNode(Fragment, null, [createVNode("div", {
|
|
508
|
-
"ref": slotListRef,
|
|
509
|
-
"style": floatStyle.value
|
|
510
|
-
}, [$default && $default()]), isScroll.value ? copyNum.map(() => {
|
|
511
|
-
if (html && typeof html === "function") {
|
|
512
|
-
return createVNode("div", {
|
|
513
|
-
"style": floatStyle.value
|
|
514
|
-
}, [html()]);
|
|
515
|
-
} else {
|
|
516
|
-
return createVNode("div", {
|
|
517
|
-
"style": floatStyle.value
|
|
518
|
-
}, [$default && $default()]);
|
|
519
|
-
}
|
|
520
|
-
}) : null]);
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
return () => createVNode("div", {
|
|
524
|
-
"ref": scrollRef,
|
|
525
|
-
"class": attrs.class
|
|
526
|
-
}, [props.wheel && props.hover ? createVNode("div", {
|
|
527
|
-
"ref": realBoxRef,
|
|
528
|
-
"style": realBoxStyle.value,
|
|
529
|
-
"onMouseenter": () => {
|
|
530
|
-
if (hoverStop.value) {
|
|
531
|
-
stopMove();
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
"onMouseleave": () => {
|
|
535
|
-
if (hoverStop.value) {
|
|
536
|
-
startMove();
|
|
537
|
-
}
|
|
538
|
-
},
|
|
539
|
-
"onWheel": e => {
|
|
540
|
-
if (hoverStop.value) {
|
|
541
|
-
onWheel(e);
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
}, [getHtml()]) : createVNode("div", {
|
|
545
|
-
"ref": realBoxRef,
|
|
546
|
-
"style": realBoxStyle.value,
|
|
547
|
-
"onMouseenter": () => {
|
|
548
|
-
if (hoverStop.value) {
|
|
549
|
-
stopMove();
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
"onMouseleave": () => {
|
|
553
|
-
if (hoverStop.value) {
|
|
554
|
-
startMove();
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}, [getHtml()])]);
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
});
|
|
561
|
-
|
|
562
|
-
export { Vue3SeamlessScroll as V };
|