mixdashboards 1.1.13 → 1.1.15
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/{AgGridTable-Bi7O66-r.cjs → AgGridTable-B0ARi6iQ.cjs} +39 -39
- package/dist/{AgGridTable-BjGMC3qC.js → AgGridTable-CiUB86Yi.js} +34 -35
- package/dist/{BaseComponent-B38Blgw3.js → BaseComponent-7Sa7XOg-.js} +3 -3
- package/dist/{BaseComponent-9njJjeix.cjs → BaseComponent-BabOc6Kc.cjs} +1 -1
- package/dist/{EChartComponentBase-DJScukmS.js → EChartComponentBase-DCKFGbqb.js} +2 -2
- package/dist/{EChartComponentBase-BwbycwwW.cjs → EChartComponentBase-DM6aSCAR.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-BxzP1xYW.cjs → EmergencyPlanPanel-B95hRGD5.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-D3GF-xQQ.js → EmergencyPlanPanel-BJ1w9aHu.js} +1 -1
- package/dist/{HistoryPlanDialog-DpaiRZgi.js → HistoryPlanDialog-0jjitoAV.js} +1 -1
- package/dist/{HistoryPlanDialog-DQXCUsy4.cjs → HistoryPlanDialog-DjIJTjzR.cjs} +1 -1
- package/dist/{MixiotAppDetailPage-BGfF3qrm.js → MixiotAppDetailPage-DcAZ_rZN.js} +1 -1
- package/dist/{MixiotAppDetailPage-CL1Sd9HJ.cjs → MixiotAppDetailPage-JpvZKz0u.cjs} +1 -1
- package/dist/{MonitoringMap-Wzsw3hVH.cjs → MonitoringMap-BFTZh1EC.cjs} +1 -1
- package/dist/{MonitoringMap-DQkO116Z.js → MonitoringMap-D6HBxlBf.js} +2 -2
- package/dist/{UniverSheet-Bne7JZyr.cjs → UniverSheet-0biXXXxr.cjs} +1 -1
- package/dist/{UniverSheet-Cd2a9LPx.js → UniverSheet-B4uisgP1.js} +2 -2
- package/dist/{accelerationChart-BJhVC_l5.cjs → accelerationChart-BDRSdpFi.cjs} +1 -1
- package/dist/{accelerationChart-BUsbSkwA.js → accelerationChart-Bw7lk5Ds.js} +19 -19
- package/dist/{actionItem-B3B4MFcW.js → actionItem-CvYP-t6r.js} +2 -2
- package/dist/{actionItem-DxB7IvtW.cjs → actionItem-DThWcN9C.cjs} +1 -1
- package/dist/{alarmLevelChart-DC-q2AgI.js → alarmLevelChart-687B7l09.js} +2 -2
- package/dist/{alarmLevelChart-DC_hx4Pn.cjs → alarmLevelChart-tIuQCLIZ.cjs} +1 -1
- package/dist/{alertTable-CHfA0TR-.cjs → alertTable-DRMDbKnY.cjs} +1 -1
- package/dist/{alertTable-CGRDnNPw.js → alertTable-VF9l7Yae.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-DGoLPE4i.cjs → aliasObjectSelectorDemo-CM81kBda.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DuGQCEcG.js → aliasObjectSelectorDemo-W1sOe5E-.js} +7 -7
- package/dist/{annualRainfallChart-CLxVqN5Z.cjs → annualRainfallChart-CqR6pOpX.cjs} +1 -1
- package/dist/{annualRainfallChart-Dr8KKYOG.js → annualRainfallChart-NcsPJb-C.js} +2 -2
- package/dist/{aqi-rBhSWA_m.js → aqi-3Gq00rd7.js} +2 -2
- package/dist/{aqi-BmYGSf2e.cjs → aqi-CZ_4TrPd.cjs} +1 -1
- package/dist/{aqiIndass-DqJBc799.js → aqiIndass-BZ7HrCcK.js} +16 -16
- package/dist/{aqiIndass-Cpqau5M0.cjs → aqiIndass-C1bAEiH_.cjs} +1 -1
- package/dist/{areaDeformCurve-DpHWg6pf.js → areaDeformCurve-DQ3jFm7O.js} +2 -2
- package/dist/{areaDeformCurve-B924KVWX.cjs → areaDeformCurve-DgQjsOl5.cjs} +1 -1
- package/dist/{arrayCard-Bzjg3HKN.cjs → arrayCard-BVII-4mg.cjs} +1 -1
- package/dist/{arrayCard-C7anoYI-.js → arrayCard-BvkmBFMi.js} +2 -2
- package/dist/{audio-DTiS2piX.js → audio-86V-n6Mh.js} +2 -2
- package/dist/{audio-aADcgdZP.cjs → audio-DAVcGaCv.cjs} +1 -1
- package/dist/{bar-D32xICYZ.js → bar-D0uX_Pwu.js} +2 -2
- package/dist/{bar-DqY55XnC.cjs → bar-DdCjm6M9.cjs} +1 -1
- package/dist/{basicShapeToolbox-D8q86CzB.js → basicShapeToolbox-cjpSxBSI.js} +12 -12
- package/dist/{basicShapeToolbox-BvJjH4fV.cjs → basicShapeToolbox-vlF8ai0y.cjs} +1 -1
- package/dist/{bmp-DIFGLoNl.cjs → bmp-DmCehXiK.cjs} +1 -1
- package/dist/{bmp-DU3vm7yj.js → bmp-L5PC6_bj.js} +2 -2
- package/dist/{box-DTQKGR9g.js → box-BBDYqZhV.js} +16 -16
- package/dist/{box-C8pOZXek.cjs → box-DCe5iz-w.cjs} +1 -1
- package/dist/{chartConfigPanel-D4vk7zWs.cjs → chartConfigPanel-BDGfFdm5.cjs} +1 -1
- package/dist/{chartConfigPanel-Bz82sVyH.js → chartConfigPanel-BG38-Lo9.js} +1 -1
- package/dist/{circleBar-B48h_-uK.cjs → circleBar-BBrdfpn6.cjs} +1 -1
- package/dist/{circleBar-ClO05bgq.js → circleBar-CnStKTJz.js} +2 -2
- package/dist/{clock-D8ZXhy53.js → clock-CfoMLhjJ.js} +2 -2
- package/dist/{clock-DB94wQje.cjs → clock-D4FqM5tD.cjs} +1 -1
- package/dist/{clt-cxeCTOaA.cjs → clt-DrF15d3K.cjs} +1 -1
- package/dist/{clt-BX0SNGZr.js → clt-mVBTHfPs.js} +2 -2
- package/dist/{cmc-BvnYrQrR.cjs → cmc-BEKqMpSQ.cjs} +1 -1
- package/dist/{cmc-Co13D559.js → cmc-kC4VJ8V0.js} +17 -17
- package/dist/{cmp-Dd56EQ09.cjs → cmp-BBKmso3S.cjs} +1 -1
- package/dist/{cmp-B4cYCR4p.js → cmp-CEeDDeHU.js} +2 -2
- package/dist/{conclusionCard-Bla25-qd.js → conclusionCard-Drlv8OIb.js} +2 -2
- package/dist/{conclusionCard-Cd3DoD1l.cjs → conclusionCard-glbRT95d.cjs} +1 -1
- package/dist/{controlList-Dx4wSpA7.js → controlList-2sHPYEnd.js} +3 -3
- package/dist/{controlList-CyT_LYgr.cjs → controlList-V6TbbBW2.cjs} +1 -1
- package/dist/{controlRecordList-DsxYHRrs.cjs → controlRecordList-CqMshyV4.cjs} +1 -1
- package/dist/{controlRecordList-BAI_15ZN.js → controlRecordList-kZuqwCCC.js} +3 -3
- package/dist/{controlRecordListAPP-Zfiwcrmq.cjs → controlRecordListAPP-BevyiiWD.cjs} +1 -1
- package/dist/{controlRecordListAPP-BQlABx3f.js → controlRecordListAPP-rsphOVsE.js} +2 -2
- package/dist/{crd-IsqkYOAy.js → crd-1Q8p4BGc.js} +56 -57
- package/dist/crd-z0xGDAjD.cjs +1 -0
- package/dist/{ctrBtn-LwuY-nVR.js → ctrBtn-CDT6KYFl.js} +12 -12
- package/dist/{ctrBtn-C3OqkyNS.cjs → ctrBtn-DNMQrtKl.cjs} +1 -1
- package/dist/{ctrSet-B0nYCdwh.cjs → ctrSet-B8m_Qs1d.cjs} +1 -1
- package/dist/{ctrSet-Qb5XEdD4.js → ctrSet-DF2TcM9X.js} +13 -13
- package/dist/{ctrSwitch-B3jo3Gx0.js → ctrSwitch-_QtKcaSt.js} +3 -3
- package/dist/{ctrSwitch-Bps4Ak15.cjs → ctrSwitch-eUtgP6uT.cjs} +1 -1
- package/dist/{dataManagement-BFxVtU33.cjs → dataManagement-D1uUQ_Ex.cjs} +1 -1
- package/dist/{dataManagement-CVHalRKp.js → dataManagement-xM0ruay1.js} +2 -2
- package/dist/{dataReport-Bk79cBkV.cjs → dataReport-DbQ_m74F.cjs} +1 -1
- package/dist/{dataReport-B2AiDMdM.js → dataReport-XrPAwXcb.js} +2 -2
- package/dist/{dataTable-D9sSJRQn.js → dataTable-BIy_sh-b.js} +1 -1
- package/dist/{dataTable-Dh7s14jM.cjs → dataTable-G_Elyj_e.cjs} +1 -1
- package/dist/{datetime-C25d1bAc.cjs → datetime-CLJrKpiX.cjs} +1 -1
- package/dist/{datetime-CEKzNAlD.js → datetime-Dyw8-i5g.js} +2 -2
- package/dist/{deepClusterSlipSurface-DODVh-Qw.js → deepClusterSlipSurface-CcoFFz6r.js} +26 -26
- package/dist/{deepClusterSlipSurface-BLZL2xX6.cjs → deepClusterSlipSurface-Cthw-rk5.cjs} +1 -1
- package/dist/{deepDataMatrix-D_NPV2sQ.cjs → deepDataMatrix-C8yzdPMG.cjs} +1 -1
- package/dist/{deepDataMatrix-9iClruS0.js → deepDataMatrix-Dy-9hAeO.js} +16 -16
- package/dist/{deepDisplacement3D-C6puNK1m.cjs → deepDisplacement3D-B3jtZ9_l.cjs} +1 -1
- package/dist/{deepDisplacement3D-C5YMqHiD.js → deepDisplacement3D-BqAQle8x.js} +2 -2
- package/dist/{deepDisplacementChart-DhQO428W.cjs → deepDisplacementChart-BT5FC0DX.cjs} +1 -1
- package/dist/{deepDisplacementChart-9sQF6tFO.js → deepDisplacementChart-BdEWrVgi.js} +20 -20
- package/dist/{deepDisplacementChart-DEn2yqGO.js → deepDisplacementChart-C1jrx9vY.js} +25 -25
- package/dist/{deepDisplacementChart-D-dqPlzq.cjs → deepDisplacementChart-DL5yJXj2.cjs} +1 -1
- package/dist/{deepDisplacementView-tzX-vzxO.cjs → deepDisplacementView-B722va1V.cjs} +1 -1
- package/dist/{deepDisplacementView-Cux6lFtG.js → deepDisplacementView-DLOv9gJ6.js} +1 -1
- package/dist/{deepNodeTemperatureChart--GH8-4O7.js → deepNodeTemperatureChart-D5ZY6ywC.js} +27 -27
- package/dist/{deepNodeTemperatureChart-Cyfnw2BR.cjs → deepNodeTemperatureChart-Dj3Xm6SY.cjs} +1 -1
- package/dist/{deepTangentAngleChart-DPMDFXiA.cjs → deepTangentAngleChart-9HyIvRNJ.cjs} +1 -1
- package/dist/{deepTangentAngleChart-Dae_3j30.js → deepTangentAngleChart-DVDa5Zxc.js} +26 -26
- package/dist/{deepTemperatureField-Cr2e_Ytp.js → deepTemperatureField-BO4TyQ_g.js} +3 -3
- package/dist/{deepTemperatureField-B3Eu4zqv.cjs → deepTemperatureField-cbehgtiQ.cjs} +1 -1
- package/dist/{deepTrendChart-8fniZ16K.js → deepTrendChart-BRdRCV_a.js} +14 -14
- package/dist/{deepTrendChart-BPYqojQ2.cjs → deepTrendChart-D9yoOBuy.cjs} +1 -1
- package/dist/{deviceOnlineStatus-mJ0KVMo4.cjs → deviceOnlineStatus-43VQlj7e.cjs} +1 -1
- package/dist/{deviceOnlineStatus-DP7-u5lC.js → deviceOnlineStatus-BAas3BvQ.js} +2 -2
- package/dist/{deviceStatus-Ih0jQNYO.js → deviceStatus-2Jyg0ILJ.js} +10 -10
- package/dist/{deviceStatus-B0AxN-cY.cjs → deviceStatus-CcrMdiqm.cjs} +1 -1
- package/dist/{displacementDataTable-BbZjdMtX.js → displacementDataTable-Cuy2--YT.js} +12 -12
- package/dist/{displacementDataTable-Dkka_jGJ.cjs → displacementDataTable-VumJPDi3.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DDwm-jr2.cjs → displacementTrajectoryChart-knwhmSBU.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-BZDSkYoZ.js → displacementTrajectoryChart-qLo3xtpZ.js} +23 -23
- package/dist/{displacementTrendChart-DZZaVi86.js → displacementTrendChart-D2Ronskq.js} +34 -34
- package/dist/{displacementTrendChart-CUeVa58Q.cjs → displacementTrendChart-DbAH_mjd.cjs} +1 -1
- package/dist/{dxf-BOfmTSO8.cjs → dxf-BAH7igHZ.cjs} +1 -1
- package/dist/{dxf-DYC74yWV.js → dxf-BSXyBPzC.js} +2 -2
- package/dist/{dzc-DUFiz7a_.cjs → dzc-D105FzEq.cjs} +1 -1
- package/dist/{dzc-BU7yYW4I.js → dzc-DvtA7L0o.js} +2 -2
- package/dist/{emergencyPlan-DDb6j7YU.cjs → emergencyPlan-CAs6Mk1Y.cjs} +1 -1
- package/dist/{emergencyPlan-DabL46QK.js → emergencyPlan-CFmxsb7R.js} +3 -3
- package/dist/{evn-DrreVqnm.cjs → evn-D-e0vp61.cjs} +1 -1
- package/dist/{evn-DhdColcF.js → evn-DtTKI8zs.js} +2 -2
- package/dist/{evolutionChart-QuGAgjXo.cjs → evolutionChart-6EMuwRiR.cjs} +1 -1
- package/dist/{evolutionChart-aedDj0mQ.js → evolutionChart-uRWhCC8C.js} +3 -3
- package/dist/{fileViewer-CvNnUxUK.cjs → fileViewer-CPG-66F1.cjs} +1 -1
- package/dist/{fileViewer-oBpWIjGb.js → fileViewer-Cxo-Sbha.js} +2 -2
- package/dist/{filterBar-CwHODFoy.cjs → filterBar-CI0jzG-8.cjs} +1 -1
- package/dist/{filterBar-DYpEssxC.js → filterBar-DchvCgB0.js} +2 -2
- package/dist/{fireCombustionCurve-wbKsWk4E.js → fireCombustionCurve-fvldUBQh.js} +3 -3
- package/dist/{fireCombustionCurve-lu2qH6_b.cjs → fireCombustionCurve-qOiCa6aW.cjs} +1 -1
- package/dist/{fireFilterBar-B8su74tt.cjs → fireFilterBar-B8J3V0n-.cjs} +1 -1
- package/dist/{fireFilterBar-9_fqGo2q.js → fireFilterBar-D7mx1XUg.js} +2 -2
- package/dist/{fireHistoryTable-C1C95uYN.js → fireHistoryTable-CP0kgqS6.js} +2 -2
- package/dist/{fireHistoryTable-pOJz1_Rp.cjs → fireHistoryTable-r_xPEo29.cjs} +1 -1
- package/dist/{gag-LSkHPD7f.cjs → gag-BhUKp8vX.cjs} +1 -1
- package/dist/{gag-BGUeQKJJ.js → gag-n3ajZOT8.js} +2 -2
- package/dist/{gasStationList-4TtBLsqC.js → gasStationList-CRZGXdZ-.js} +3 -3
- package/dist/{gasStationList-DJTrXjkv.cjs → gasStationList-DX9Q2lFd.cjs} +1 -1
- package/dist/{geo3dViewer-CK89hYK7.cjs → geo3dViewer-CfPFjRsL.cjs} +1 -1
- package/dist/{geo3dViewer-DIjv75YP.js → geo3dViewer-DFD75mZU.js} +3 -3
- package/dist/{glbModel-BDgY9S4f.cjs → glbModel-BrwlvZq6.cjs} +1 -1
- package/dist/{glbModel-IOIVpCjq.js → glbModel-x4OZxfPi.js} +2 -2
- package/dist/{globalObjectSelector-B2dkzNyk.js → globalObjectSelector-Bx2SbcG0.js} +1 -1
- package/dist/{globalObjectSelector-N7s0yyOp.cjs → globalObjectSelector-PiWbhkZ4.cjs} +1 -1
- package/dist/{gnssFilterBar-BF_tbN4_.js → gnssFilterBar-8ie4Hrtf.js} +2 -2
- package/dist/{gnssFilterBar-8eSkGWMH.cjs → gnssFilterBar-BY7YScHH.cjs} +1 -1
- package/dist/{gnssHistoryTable-DUjRjXoS.js → gnssHistoryTable-DH3MNQRj.js} +2 -2
- package/dist/{gnssHistoryTable-X_cgOa6r.cjs → gnssHistoryTable-lvtSQu6T.cjs} +1 -1
- package/dist/{gnssMapView-DnF2bYAD.cjs → gnssMapView-BalPUoGu.cjs} +2 -2
- package/dist/{gnssMapView-BnwPDey9.js → gnssMapView-eqR9-FLA.js} +4 -4
- package/dist/{gnssSectionProfile-D0sbRu3A.js → gnssSectionProfile-C2v9LYEI.js} +2 -2
- package/dist/{gnssSectionProfile-DoEXHKTy.cjs → gnssSectionProfile-fXM6wumD.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-Csm6PwRv.cjs → gnssTimeSeriesChart-DK08VGh2.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-glTixABx.js → gnssTimeSeriesChart-DO4m_7q7.js} +2 -2
- package/dist/{gnssXYTrajectory-4c8JDd_b.cjs → gnssXYTrajectory-CDgAcydt.cjs} +1 -1
- package/dist/{gnssXYTrajectory-BMCO0sb0.js → gnssXYTrajectory-Jdb53wOw.js} +2 -2
- package/dist/{grd-D1enzYOI.cjs → grd-BcVJB4b5.cjs} +1 -1
- package/dist/{grd-BTGTCp0z.js → grd-Bf5VZY3M.js} +19 -19
- package/dist/{grdIndass-B6fwa_k8.cjs → grdIndass-CTaKBOun.cjs} +1 -1
- package/dist/{grdIndass-Dn62HL6y.js → grdIndass-DrBidpYt.js} +2 -2
- package/dist/{grg-DMOF8h8j.js → grg-57h3YudF.js} +5 -5
- package/dist/{grg-B5128EcW.cjs → grg-DR1f44AO.cjs} +1 -1
- package/dist/{gridview-Dewc5Eax.js → gridview-BEiHeWnU.js} +2 -2
- package/dist/{gridview-Ddin99YO.cjs → gridview-DUOWjiqv.cjs} +1 -1
- package/dist/{groundwaterFilterBar-mukvYHDm.js → groundwaterFilterBar-Djh4tnLM.js} +2 -2
- package/dist/{groundwaterFilterBar-2uj_Hf_Q.cjs → groundwaterFilterBar-WfAm45Iv.cjs} +1 -1
- package/dist/{groundwaterProfileChart-DDVsfzyr.cjs → groundwaterProfileChart-B9NrkncY.cjs} +2 -2
- package/dist/{groundwaterProfileChart-BPTP8WBi.js → groundwaterProfileChart-Dvme4PHf.js} +3 -3
- package/dist/{groundwaterTimeCurve-jtQFr0hU.js → groundwaterTimeCurve-DLhsSDRO.js} +3 -3
- package/dist/{groundwaterTimeCurve-Zzn-sEsW.cjs → groundwaterTimeCurve-pLt2KuEY.cjs} +1 -1
- package/dist/{groupCard-DWjFdiH0.cjs → groupCard-DK5_osdM.cjs} +1 -1
- package/dist/{groupCard-B3fp05QD.js → groupCard-QV7NnbBa.js} +2 -2
- package/dist/{headerBar-BkpSQMNy.js → headerBar-CBTHBko2.js} +2 -2
- package/dist/{headerBar-B6lX3WST.cjs → headerBar-DcMgFL7n.cjs} +1 -1
- package/dist/{history-DqPjJP_E.cjs → history-BKLujk4W.cjs} +1 -1
- package/dist/{history-DgSlSTUD.js → history-BvM7EXsN.js} +11 -11
- package/dist/{index-Bo49zvKb.cjs → index-Cm7hGuPj.cjs} +13 -13
- package/dist/{index-BbXEpgom.js → index-DUL649KZ.js} +3422 -3379
- package/dist/{insarDeformChart-8UyVWXTx.cjs → insarDeformChart-D13o5hNr.cjs} +1 -1
- package/dist/{insarDeformChart-DNBHbVuk.js → insarDeformChart-DPq39rTv.js} +2 -2
- package/dist/{insarImageViewer-BeykgIJy.js → insarImageViewer-BLYbI4bm.js} +2 -2
- package/dist/{insarImageViewer-B8PhDcuG.cjs → insarImageViewer-BoqwF7sg.cjs} +1 -1
- package/dist/{kds-CS473Sia.js → kds-B2xqXmO8.js} +2 -2
- package/dist/{kds-BJwYrjV_.cjs → kds-B8Jdw9vL.cjs} +1 -1
- package/dist/{kpiCard-OMuCQe7O.cjs → kpiCard-BGsf7G30.cjs} +1 -1
- package/dist/{kpiCard-CNgj9P9s.js → kpiCard-DRR1gTcG.js} +2 -2
- package/dist/{landslideMap-NaGM5jJE.cjs → landslideMap-CD2LDzJA.cjs} +1 -1
- package/dist/{landslideMap-DMNcfDYF.js → landslideMap-DDlN9f2H.js} +9 -9
- package/dist/{landslideWarning-V1wB3aWq.cjs → landslideWarning-27SNVapD.cjs} +1 -1
- package/dist/{landslideWarning-DU-dDiiS.js → landslideWarning-r1zdMCih.js} +26 -26
- package/dist/{layerTabs-VfYlv6Ks.cjs → layerTabs-B86d5HH7.cjs} +1 -1
- package/dist/{layerTabs-Bgi7pfof.js → layerTabs-BjHiCU_F.js} +2 -2
- package/dist/{leaflet-src-4AJHN6it.js → leaflet-src-CAGnqnjZ.js} +1 -1
- package/dist/{leaflet-src-WG2ob5HA.cjs → leaflet-src-DYGpvxW6.cjs} +1 -1
- package/dist/{lerc-CEea2nO1.cjs → lerc-5z3DZffX.cjs} +1 -1
- package/dist/{lerc-BDiJ3I_S.js → lerc-Dh5beGkQ.js} +2 -2
- package/dist/{lin-BO1pGlXr.js → lin-DDWiOEA0.js} +6 -6
- package/dist/{lin-B_rN6QBj.cjs → lin-r6oOjphh.cjs} +1 -1
- package/dist/{linIndass-BGpoCQ4j.js → linIndass-CWcaOARi.js} +10 -10
- package/dist/{linIndass-B7XnW5XO.cjs → linIndass-CYCVyf-Z.cjs} +1 -1
- package/dist/{lst-BBl9nn63.js → lst-BKViAE6J.js} +2 -2
- package/dist/{lst-BeB_Gi9l.cjs → lst-Jc5oufSH.cjs} +1 -1
- package/dist/{manualEntry-C3qifAlP.js → manualEntry-CR0vY9l1.js} +2 -2
- package/dist/{manualEntry-BQVUqtm7.cjs → manualEntry-DpKGLaSi.cjs} +1 -1
- package/dist/{mapBackground-CDS60ZJC.js → mapBackground-BmlSVAtG.js} +3 -3
- package/dist/{mapBackground-D3-V7S-d.cjs → mapBackground-Cx8KweQ8.cjs} +1 -1
- package/dist/{mappingList-DnoAuivo.cjs → mappingList-BZz7GqJ4.cjs} +1 -1
- package/dist/{mappingList-B0jG2LlO.js → mappingList-C92OnAaA.js} +3 -3
- package/dist/{markdownViewer-BlXaqjhL.js → markdownViewer-ICTPV_72.js} +2 -2
- package/dist/{markdownViewer-BMkbW1Cl.cjs → markdownViewer-O5ng8kl7.cjs} +1 -1
- package/dist/materialFileUrl-C_Aqly-o.cjs +1 -0
- package/dist/{materialFileUrl-hKqW_JAq.js → materialFileUrl-CfFfqtB7.js} +5 -4
- package/dist/{mix-control-modal-BEXucxt5.js → mix-control-modal-CGLYKUCc.js} +5 -5
- package/dist/{mix-control-modal-aUWGjwZP.cjs → mix-control-modal-oxp6LmrP.cjs} +1 -1
- package/dist/{mixGrid-B5pKpGT3.cjs → mixGrid-DO73I4-D.cjs} +1 -1
- package/dist/{mixGrid-DQf7U1_8.js → mixGrid-DnxCOTqm.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-CJgiIk0q.cjs → mjpegCamera-DSMbdhJe.cjs} +1 -1
- package/dist/{mjpegCamera-C6pxWuEr.js → mjpegCamera-Dj5Lyrml.js} +2 -2
- package/dist/{monitorAlert-BPd1b_Cx.cjs → monitorAlert-C0e3mU_8.cjs} +1 -1
- package/dist/{monitorAlert-ZNF5siqY.js → monitorAlert-FwFl3Tjd.js} +12 -12
- package/dist/{monitorData-DIxZYNVr.js → monitorData-CnFHs2-k.js} +10 -10
- package/dist/{monitorData-slk6ogNe.cjs → monitorData-ICqlDSYT.cjs} +1 -1
- package/dist/{monitorSpeedChart-BRwbLD8B.cjs → monitorSpeedChart-B_02qTZy.cjs} +1 -1
- package/dist/{monitorSpeedChart-DCO39Aka.js → monitorSpeedChart-XCq3duqZ.js} +1 -1
- package/dist/{mxa-Bp4RH0w3.cjs → mxa-B9Ioifrx.cjs} +1 -1
- package/dist/{mxa-DFq19ply.js → mxa-DkvNrmvM.js} +2 -2
- package/dist/{myValue-g8shJQA9.cjs → myValue-CJZpYcAp.cjs} +1 -1
- package/dist/{myValue-BvItzUMv.js → myValue-aYi3bo7x.js} +2 -2
- package/dist/{myValueList-A_UGyNxN.js → myValueList-BIZ2JfrI.js} +2 -2
- package/dist/{myValueList-DnZBoJXp.cjs → myValueList-CFnHg4pl.cjs} +1 -1
- package/dist/objectList-B_BnqBg1.js +1842 -0
- package/dist/objectList-BgyTh2e7.cjs +1 -0
- package/dist/{objectListAPP-DxRImk8W.cjs → objectListAPP-B7Yk07oG.cjs} +1 -1
- package/dist/{objectListAPP-CdewSo8l.js → objectListAPP-Bq1S1FGu.js} +3 -3
- package/dist/{percentBar-Cq5ACj9c.cjs → percentBar-DmrRQirp.cjs} +1 -1
- package/dist/{percentBar-BvmYW_u6.js → percentBar-L0Ur3boP.js} +2 -2
- package/dist/{photo-t11P9WKh.js → photo-9c2Vrzor.js} +3 -3
- package/dist/{photo-B-kxNdb5.cjs → photo-BzVvbKrh.cjs} +1 -1
- package/dist/{pie-yTahcSl_.js → pie-BVbkpFWj.js} +2 -2
- package/dist/{pie-0s6FwVBt.cjs → pie-CeeMdBgu.cjs} +1 -1
- package/dist/{placeholder-DBmyvwFn.cjs → placeholder-C07ZscJc.cjs} +1 -1
- package/dist/{placeholder-D_CaQ-hg.js → placeholder-CUYSWWf8.js} +1 -1
- package/dist/{pressBtn-CP4kJr-P.js → pressBtn-Ds60I7hM.js} +3 -3
- package/dist/{pressBtn-JFezb7Yx.cjs → pressBtn-sqz6yim1.cjs} +1 -1
- package/dist/{processTable-BXswsnmt.js → processTable-COz7CKEG.js} +2 -2
- package/dist/{processTable-DRdI9ExW.cjs → processTable-CytoNBR2.cjs} +1 -1
- package/dist/{progressBar-Sn6tAxTY.cjs → progressBar-BxHPc2DD.cjs} +1 -1
- package/dist/{progressBar-D1Xh5APg.js → progressBar-CUnuEFaQ.js} +2 -2
- package/dist/{progressCircle-DLk9v_Os.cjs → progressCircle-BUNOFiUO.cjs} +1 -1
- package/dist/{progressCircle-BMpJVwIE.js → progressCircle-DWKJHFm-.js} +2 -2
- package/dist/{qrcode-BDtn3Ql7.cjs → qrcode-DJrUuI_e.cjs} +1 -1
- package/dist/{qrcode-BqlqV7Jf.js → qrcode-elzi9Ev5.js} +2 -2
- package/dist/{raceBar-BpvWNCV7.cjs → raceBar-BWYiOHgT.cjs} +2 -2
- package/dist/{raceBar-zSL-J18j.js → raceBar-C1Js5fWq.js} +156 -136
- package/dist/{rad-DSfVfaMa.cjs → rad-B__LOwb8.cjs} +1 -1
- package/dist/{rad-CZhY-L-z.js → rad-Dau_xw7q.js} +2 -2
- package/dist/{radarMapViewer-B4tTLLyl.js → radarMapViewer-0jrnj6Nm.js} +2 -2
- package/dist/{radarMapViewer-GmzS18dJ.cjs → radarMapViewer-30nLi5D4.cjs} +1 -1
- package/dist/{rainfallFilterBar-ijVmoglb.js → rainfallFilterBar-CnNMm1L4.js} +2 -2
- package/dist/{rainfallFilterBar-DHaVjXt5.cjs → rainfallFilterBar-io0Xy92q.cjs} +1 -1
- package/dist/{rainfallTimeCurve-B3_bl5L6.js → rainfallTimeCurve-CO3kxkO1.js} +3 -3
- package/dist/{rainfallTimeCurve-Crz3Adzh.cjs → rainfallTimeCurve-CsQNzhJI.cjs} +1 -1
- package/dist/{rangeLin-BOEsEaV1.js → rangeLin-C9p4yw-H.js} +8 -8
- package/dist/{rangeLin-DpEbvxsg.cjs → rangeLin-F-eJUSOD.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-C2u4a2JL.js → realtimeEvolutionMap-BSHmiJdM.js} +2 -2
- package/dist/{realtimeEvolutionMap-BwQJkus6.cjs → realtimeEvolutionMap-DbPSlUVo.cjs} +1 -1
- package/dist/{regionBar-P1fqv7Vb.cjs → regionBar-BqpQ17-j.cjs} +1 -1
- package/dist/{regionBar-BQr-kq-M.js → regionBar-DcIaWt42.js} +2 -2
- package/dist/{request-D9N74QdZ.cjs → request-BNiCZV7_.cjs} +1 -1
- package/dist/{request-Bn2gQLgM.js → request-CEUCACCR.js} +5 -5
- package/dist/{retainer1-Fnw0-Jvy.js → retainer1-BYe-4QPq.js} +3 -3
- package/dist/{retainer1-BCh8WSOq.cjs → retainer1-CtwKT7UP.cjs} +1 -1
- package/dist/{retainer2-nPyFv6Hs.js → retainer2-C8M7swsz.js} +3 -3
- package/dist/{retainer2-_3NOOefF.cjs → retainer2-CQf-EzAl.cjs} +1 -1
- package/dist/{retainerRecordList-C_UsUKsQ.js → retainerRecordList-B-xwovFD.js} +3 -3
- package/dist/{retainerRecordList-BaOTTQQN.cjs → retainerRecordList-DyRQQ0N-.cjs} +1 -1
- package/dist/{retainerRecordListAPP-BgKyfAMh.js → retainerRecordListAPP-CMNYP6hk.js} +3 -3
- package/dist/{retainerRecordListAPP-CE3l6WrB.cjs → retainerRecordListAPP-UPROwhvr.cjs} +1 -1
- package/dist/{ringTopN-Dz0EoM-A.js → ringTopN-FlVjUrQT.js} +2 -2
- package/dist/{ringTopN-DEv30Ms2.cjs → ringTopN-tPWwyl2Y.cjs} +1 -1
- package/dist/{riskRegionTable-BODT2UTF.cjs → riskRegionTable-BbJAvy7W.cjs} +1 -1
- package/dist/{riskRegionTable-Dot8zD_6.js → riskRegionTable-BjZoKdPt.js} +2 -2
- package/dist/{sankey-CYTyQB-L.cjs → sankey-CbPDXthr.cjs} +1 -1
- package/dist/{sankey-CbEUEE5B.js → sankey-Df3nSWC_.js} +7 -7
- package/dist/{scd-Btsiastw.js → scd-B9eeXnYU.js} +344 -348
- package/dist/scd-Ds6_WZDt.cjs +1 -0
- package/dist/{sideMenu-BxJRAAdM.js → sideMenu-BZ8iCENQ.js} +2 -2
- package/dist/{sideMenu-dnpq3qTF.cjs → sideMenu-CCohX7e6.cjs} +1 -1
- package/dist/{slopeStability-DX7WP5ZW.cjs → slopeStability-CO2BLtaT.cjs} +1 -1
- package/dist/{slopeStability-DrooNf1g.js → slopeStability-ChLLwaQA.js} +19 -19
- package/dist/{speedCurve-CNUJ5ScK.js → speedCurve-B7vwk0ti.js} +2 -2
- package/dist/{speedCurve-BT8wnfZI.cjs → speedCurve-DC8GN7er.cjs} +1 -1
- package/dist/{stackedBar-X8Y4lVgT.cjs → stackedBar-Bdt1ii7n.cjs} +1 -1
- package/dist/{stackedBar-nIfO6Aa3.js → stackedBar-p5hQcLfe.js} +2 -2
- package/dist/{stationList-D7lGCblu.js → stationList-4JLmJjJs.js} +3 -3
- package/dist/{stationList-DVzvGGHI.cjs → stationList-BHhnU7rg.cjs} +1 -1
- package/dist/{stressFilterBar-D5xktTRI.cjs → stressFilterBar-CDvVQZhK.cjs} +1 -1
- package/dist/{stressFilterBar-DqeqFHm7.js → stressFilterBar-D5uGrRbV.js} +2 -2
- package/dist/{stressTimeCurve-DfjNQ0rU.js → stressTimeCurve-BmXoUDOP.js} +3 -3
- package/dist/{stressTimeCurve-Bhhb-eqB.cjs → stressTimeCurve-Chj7Kmdb.cjs} +1 -1
- package/dist/{swiper-DuNuvT_N.js → swiper-CkVk-qls.js} +2 -2
- package/dist/{swiper-XCpwFkWS.cjs → swiper-OOktak53.cjs} +1 -1
- package/dist/{tablemanCreate-Cp5DaYUd.cjs → tablemanCreate-D6UFJZIo.cjs} +1 -1
- package/dist/{tablemanCreate-Cp9nOGg2.js → tablemanCreate-Hi3dHyzp.js} +3 -3
- package/dist/{tablemanDetail-DvZdgdHD.js → tablemanDetail-Bpuptxn4.js} +4 -4
- package/dist/{tablemanDetail-3ZMWkdpz.cjs → tablemanDetail-CHy58vFi.cjs} +1 -1
- package/dist/{tablemanList-DZdb1FUR.js → tablemanList-C16Timv1.js} +4 -4
- package/dist/{tablemanList-OLxgUmAi.cjs → tablemanList-C_bH6tMi.cjs} +1 -1
- package/dist/{tablemanTableList-CqsnRIHS.js → tablemanTableList-BW1WE2Ph.js} +3 -3
- package/dist/{tablemanTableList-BN6QjYEV.cjs → tablemanTableList-Duc6n-hm.cjs} +1 -1
- package/dist/{tablemanUpdate-CHs5OgAG.js → tablemanUpdate-Cvrm6nnk.js} +3 -3
- package/dist/{tablemanUpdate-E3d7A3WM.cjs → tablemanUpdate-DIpc92Cl.cjs} +1 -1
- package/dist/{terminalConfigList-BlgcWy40.cjs → terminalConfigList-C8dkmhQS.cjs} +1 -1
- package/dist/{terminalConfigList-BEBNi1Nl.js → terminalConfigList-yGZl93f_.js} +3 -3
- package/dist/{terminalList-Bl5BPmF9.cjs → terminalList-CanK2pyt.cjs} +1 -1
- package/dist/{terminalList-CJpH2Z-r.js → terminalList-dgawgsuV.js} +3 -3
- package/dist/{terminalListAPP-Dgvz8I3j.cjs → terminalListAPP-0iTXcRsu.cjs} +1 -1
- package/dist/{terminalListAPP-BpONJQOA.js → terminalListAPP-DNQzjxMX.js} +3 -3
- package/dist/{textbox-CJnSDwg7.js → textbox-88HaqHYa.js} +2 -2
- package/dist/{textbox-DR0bQEX7.cjs → textbox-CJP0S05E.cjs} +1 -1
- package/dist/{timeQueryBar-FJDQv-gp.js → timeQueryBar-B6WFuoFy.js} +1 -1
- package/dist/{timeQueryBar-Cmyan_30.cjs → timeQueryBar-B7m2zNqC.cjs} +1 -1
- package/dist/{timeSeries-t4uZvXRF.js → timeSeries-CBEMu62t.js} +12 -12
- package/dist/{timeSeries-_RLSUPmg.cjs → timeSeries-pv1B8rAD.cjs} +1 -1
- package/dist/{timeSeriesCurve-BxWiI6w-.js → timeSeriesCurve-C8I6T04V.js} +3 -3
- package/dist/{timeSeriesCurve-BUuLFQ8A.cjs → timeSeriesCurve-DfKXoiJf.cjs} +1 -1
- package/dist/{toggleBtn-BcpJcxpU.cjs → toggleBtn-D892Lgcg.cjs} +1 -1
- package/dist/{toggleBtn-Cx44qVci.js → toggleBtn-DxOPkmCn.js} +2 -2
- package/dist/{trajectoryConfigPanel-BTUv5OVS.cjs → trajectoryConfigPanel-2_KO7Fm_.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-dyo30nx9.js → trajectoryConfigPanel-CiHG2Nj3.js} +1 -1
- package/dist/{trajectoryScatter-CK4_Z1iU.cjs → trajectoryScatter-ceIqjQdd.cjs} +1 -1
- package/dist/{trajectoryScatter-BghFGqxH.js → trajectoryScatter-gYFCMKo8.js} +2 -2
- package/dist/{universalConfigPanel-Cvlpgn-j.cjs → universalConfigPanel-BuJ0pSOp.cjs} +1 -1
- package/dist/{universalConfigPanel-yJFrQDBa.js → universalConfigPanel-T07C_JVG.js} +1 -1
- package/dist/{universalTable-CvBC-L9Z.js → universalTable-C6iYcfCe.js} +2 -2
- package/dist/{universalTable-CRJ7Rx0P.cjs → universalTable-DA2F0v4F.cjs} +1 -1
- package/dist/useMixiotPanelPopperClass-DDtFtXLr.cjs +1 -0
- package/dist/useMixiotPanelPopperClass-DtvQI0g1.js +52 -0
- package/dist/{useTablemanApi-fqoMpRxe.cjs → useTablemanApi-BbUulkUz.cjs} +1 -1
- package/dist/{useTablemanApi-BAt370b-.js → useTablemanApi-Ch3eQRoG.js} +1 -1
- package/dist/{useTablemanFormPanel-Cxo0WsI1.cjs → useTablemanFormPanel-BdBoaHFU.cjs} +1 -1
- package/dist/{useTablemanFormPanel-BKbM39_H.js → useTablemanFormPanel-EtmBEDl7.js} +2 -2
- package/dist/{useTablemanListActions-DRXW-WTa.cjs → useTablemanListActions-Dlfnpnld.cjs} +1 -1
- package/dist/{useTablemanListActions-CYauYy6z.js → useTablemanListActions-gqs6gpza.js} +4 -4
- package/dist/{video-C1N8Ikkh.js → video-BVmqEL79.js} +2 -2
- package/dist/{video-BN19nKK_.cjs → video-jHJpadOt.cjs} +1 -1
- package/dist/{videoMonitor-PKypdwRl.cjs → videoMonitor-BZkwTydy.cjs} +1 -1
- package/dist/{videoMonitor-fkEuZ25x.js → videoMonitor-BwdC2_nR.js} +8 -8
- package/dist/{vlu-B8tqM9md.js → vlu-BSasXwGB.js} +2 -2
- package/dist/{vlu-DrABl6SW.cjs → vlu-DONKeVps.cjs} +1 -1
- package/dist/{warningOverview-_rp_SbLs.js → warningOverview-7bSJ0uSZ.js} +3 -3
- package/dist/{warningOverview-DaTHPveq.cjs → warningOverview-DVtqkIDv.cjs} +1 -1
- package/dist/{weather-B_XCWwDa.cjs → weather--IcwH6Si.cjs} +1 -1
- package/dist/{weather-qvsptrt0.js → weather-CVLrwzcA.js} +2 -2
- package/dist/{windLin-BDtJUYBu.js → windLin-ByNz1LOX.js} +2 -2
- package/dist/{windLin-P84T5W3o.cjs → windLin-C-BHdrGl.cjs} +1 -1
- package/package.json +1 -1
- package/dist/crd-C6iegy7d.cjs +0 -1
- package/dist/materialFileUrl-8YHw7z1T.cjs +0 -1
- package/dist/objectList-BcSCvy54.cjs +0 -1
- package/dist/objectList-DgVJlA1o.js +0 -1828
- package/dist/scd-DwdWl6Wz.cjs +0 -1
- package/dist/useMixiotPanelPopperClass-2tTzKUsO.cjs +0 -1
- package/dist/useMixiotPanelPopperClass-UGlVKJTK.js +0 -53
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Y=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var q=(e,t,a)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,b=(e,t)=>{for(var a in t||(t={}))ae.call(t,a)&&q(e,a,t[a]);if(O)for(var a of O(t))oe.call(t,a)&&q(e,a,t[a]);return e},S=(e,t)=>ee(e,te(t));var s=(e,t,a)=>new Promise((l,o)=>{var c=y=>{try{i(a.next(y))}catch(v){o(v)}},h=y=>{try{i(a.throw(y))}catch(v){o(v)}},i=y=>y.done?l(y.value):Promise.resolve(y.value).then(c,h);i((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");const r=require("vue"),re=require("vue-router"),ne=require("vue-i18n"),le=require("./BaseComponent-9njJjeix.cjs"),f=require("./index-Bo49zvKb.cjs"),A=require("./materialFileUrl-8YHw7z1T.cjs"),V=require("element-plus"),T=require("./ele-bmp-icon-BBI0-SX7.cjs"),U=e=>{const t=typeof e=="string"?Number(e):e;return t===0||t===200},se=(e,t)=>{if(e&&String(e).trim()){const a=String(e).trim();if(a.startsWith("http://")||a.startsWith("https://"))try{return new URL(a).pathname||""}catch(l){return a}return a.startsWith("/")?a:`/${a}`}return t?`/yunfiles/material/file/${t}`:""},de={uploadFile(e){return s(this,null,function*(){var l;const t=new FormData;t.append("file",e);const a=yield f.api.upload(t,!0);if(U(a.code)&&((l=a.result)!=null&&l.url))return a.result.url;throw new Error(a.msg||"文件上传失败")})},uploadMaterialGetPath(e,t){return s(this,null,function*(){var c,h;const l={material_data:e.includes(",")?e.split(",")[1]:e,material_type:t||"png"},o=yield f.api.post("upload_material",l,!0);if(U(o.code)&&o.result){const i=o.result,y=se(i.material_path||i.relative_path||"",i.file_id);if(y)return S(b({},i),{material_path:y,material_size:(h=(c=i.material_size)!=null?c:i.file_size)!=null?h:0,material_type:i.material_type||i.mime_type||t||"png",name:i.name||i.file_name||""})}throw new Error(o.info||o.msg||"上传原图获取路径失败")})},createMaterial(e){return s(this,null,function*(){var a;const t=yield f.api.post("create_dashboard_material",e,!0);if(U(t.code)&&((a=t.result)!=null&&a.uid))return t.result;throw new Error(t.info||t.msg||"创建素材失败")})},uploadAndCreateMaterial(a){return s(this,arguments,function*(e,t={}){var h;const l=((h=e.name.split(".").pop())==null?void 0:h.toLowerCase())||"png",o=yield this._fileToBase64(e),c=yield this.uploadMaterialGetPath(o,l);if(c.uid)return{uid:c.uid};throw new Error("upload_material 未返回 uid")})},_fileToBase64(e){return new Promise((t,a)=>{const l=new FileReader;l.onload=()=>t(l.result),l.onerror=()=>a(new Error("文件读取失败")),l.readAsDataURL(e)})},getMaterialList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return yield f.api.post("get_dashboard_material_list",t)})},getMyMaterialList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return yield f.api.post("get_my_dashboard_material_list",t)})},getMaterialItem(e){return s(this,null,function*(){return yield f.api.post("get_dashboard_material_item",{uid:e})})},updateMaterial(e){return s(this,null,function*(){return yield f.api.post("update_dashboard_material",e,!0)})},deleteMaterial(e){return s(this,null,function*(){return yield f.api.post("delete_dashboard_material",{uid:e},!0)})},deleteMaterialByPath(e){return s(this,null,function*(){var a;if(!e||!String(e).trim())return;const t=String(e).replace(/^\//,"");try{const l=yield this.getMyMaterialList({page_index:1,page_size:10,where_and:JSON.stringify([["material_path","=",t]])}),o=(a=l==null?void 0:l.result)==null?void 0:a.data;Array.isArray(o)&&o.length>0&&o[0].uid&&(yield this.deleteMaterial(o[0].uid))}catch(l){}})}},W={_buildWhereAnd(e){return JSON.stringify(e.filter(([,,t])=>t!=null))},_isEmptyId(e){return e==null||String(e).trim()===""},_isComponentLevel(e){return!this._isEmptyId(e.component_id)},_isLayerLevel(e){return this._isEmptyId(e.component_id)&&!this._isEmptyId(e.layer_id)},_isSheetLevel(e){return this._isEmptyId(e.component_id)&&this._isEmptyId(e.layer_id)&&!this._isEmptyId(e.sheet_id)},_isDashboardLevel(e){return this._isEmptyId(e.component_id)&&this._isEmptyId(e.layer_id)&&this._isEmptyId(e.sheet_id)},_listRelations(e){return s(this,null,function*(){var a;const t=yield this.getMaterialRelationList({page_index:1,page_size:999,where_and:e});return((a=t==null?void 0:t.result)==null?void 0:a.data)||[]})},_deleteByUid(e,t){return s(this,null,function*(){t&&(yield this.deleteMaterialRelation({dashboard_record_uid:e,uid:t}))})},_deleteByRelation(e){return s(this,null,function*(){e!=null&&e.dashboard_record_uid&&(yield this.deleteMaterialRelation({dashboard_record_uid:e.dashboard_record_uid,dashboard_id:e.dashboard_id,sheet_id:e.sheet_id,layer_id:e.layer_id,component_id:e.component_id,uid:e.uid}))})},_deleteRelationList(e,t){return s(this,null,function*(){for(const a of t)yield this._deleteByUid(e,a.uid)})},createMaterialRelation(e){return s(this,null,function*(){return yield f.api.post("create_dashboard_materials_relation",e,!0)})},deleteMaterialRelation(e){return s(this,null,function*(){return yield f.api.post("delete_dashboard_materials_relation",e,!0)})},getMaterialRelationList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return!e.order_by&&!e.order_type&&e.order?t.order=e.order:delete t.order,yield f.api.post("get_my_dashboard_materials_relation_list",t)})},getMaterialRelationsByDashboard(a){return s(this,arguments,function*(e,t={}){const l=JSON.stringify([["dashboard_record_uid","=",e]]);return yield this.getMaterialRelationList(S(b({},t),{where_and:l}))})},getMaterialRelationByComponent(l,o){return s(this,arguments,function*(e,t,a={}){const c=JSON.stringify([["dashboard_record_uid","=",e],["component_id","=",t]]);return yield this.getMaterialRelationList(S(b({},a),{where_and:c}))})},getRelationsByMaterial(e){return s(this,null,function*(){var l;if(!e)return[];const t=JSON.stringify([["material_uid","=",e]]),a=yield this.getMaterialRelationList({page_index:1,page_size:999,where_and:t});return((l=a==null?void 0:a.result)==null?void 0:l.data)||[]})},getMaterialUsageSummary(e){return s(this,null,function*(){const t=yield this.getRelationsByMaterial(e),a=new Set;return t.forEach(l=>{const o=String(l.dashboard_record_uid||"").trim();o&&a.add(o)}),{relationCount:t.length,dashboardCount:a.size,relations:t}})},deleteAllRelationsByMaterial(e){return s(this,null,function*(){const t=yield this.getRelationsByMaterial(e);for(const a of t)!(a!=null&&a.uid)||!(a!=null&&a.dashboard_record_uid)||(yield this.deleteMaterialRelation({dashboard_record_uid:a.dashboard_record_uid,uid:a.uid}));return t.length})},deleteAllRelationsByDashboard(e){return s(this,null,function*(){return yield this.deleteRelationsByDashboardHierarchy(e)})},deleteRelationByComponent(e,t){return s(this,null,function*(){return yield this.deleteMaterialRelation({dashboard_record_uid:e,component_id:t})})},deleteComponentRelations(e,t,a,l){return s(this,null,function*(){if(!e||!t||!a||!l)return;const o=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",a],["component_id","=",l]]),c=yield this._listRelations(o);for(const h of c)yield this._deleteByRelation(h)})},deleteLayerLevelRelations(e,t,a){return s(this,null,function*(){if(!e||!t||!a)return;const l=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",a]]),c=(yield this._listRelations(l)).filter(h=>this._isLayerLevel(h));for(const h of c)yield this._deleteByRelation(h)})},deleteSheetLevelRelations(e,t){return s(this,null,function*(){if(!e||!t)return;const a=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t]]),o=(yield this._listRelations(a)).filter(c=>this._isSheetLevel(c));for(const c of o)yield this._deleteByRelation(c)})},deleteDashboardLevelRelations(e){return s(this,null,function*(){if(!e)return;const t=this._buildWhereAnd([["dashboard_record_uid","=",e]]),l=(yield this._listRelations(t)).filter(o=>this._isDashboardLevel(o));for(const o of l)yield this._deleteByRelation(o)})},deleteRelationsByLayerHierarchy(e,t,a){return s(this,null,function*(){if(!e||!t||!a)return;const l=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",a]]),o=yield this._listRelations(l),c=o.filter(i=>this._isComponentLevel(i)),h=o.filter(i=>this._isLayerLevel(i));for(const i of c)yield this._deleteByRelation(i);for(const i of h)yield this._deleteByRelation(i)})},deleteRelationsBySheetHierarchy(e,t){return s(this,null,function*(){if(!e||!t)return;const a=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t]]),l=yield this._listRelations(a),o=l.filter(i=>this._isComponentLevel(i)),c=l.filter(i=>this._isLayerLevel(i)),h=l.filter(i=>this._isSheetLevel(i));for(const i of o)yield this._deleteByRelation(i);for(const i of c)yield this._deleteByRelation(i);for(const i of h)yield this._deleteByRelation(i)})},deleteRelationsByDashboardHierarchy(e){return s(this,null,function*(){if(!e)return;const t=this._buildWhereAnd([["dashboard_record_uid","=",e]]),a=yield this._listRelations(t),l=a.filter(i=>this._isComponentLevel(i)),o=a.filter(i=>this._isLayerLevel(i)),c=a.filter(i=>this._isSheetLevel(i)),h=a.filter(i=>this._isDashboardLevel(i));for(const i of l)yield this._deleteByRelation(i);for(const i of o)yield this._deleteByRelation(i);for(const i of c)yield this._deleteByRelation(i);for(const i of h)yield this._deleteByRelation(i)})}},ce=r.ref(!1),ue=r.ref("all");function he(e="all"){return ue.value=e,ce.value=!0,new Promise(t=>{})}const _e={class:"mix-body"},pe={class:"upload-content"},me={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},fe={class:"upload-text"},ye={key:0,class:"upload-actions"},ge={key:1,class:"viewer-container"},ve={key:0,class:"file-info"},we={class:"file-name"},be=["title"],Re=["src","alt"],Me={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"图片查看器",NAME_EN:"Photo Viewer",ORDER:2,PLATFORM:["pc","screen","mobile"]},Le={imageDisplayMode:{value:"center",type:"select",options:[{label:"component.photo.center",value:"center"},{label:"component.photo.tile",value:"tile"},{label:"component.photo.stretch",value:"stretch"}],label:"component.options.imageDisplayMode"},fileUrl:{value:"",type:"string",label:"component.options.fileUrl",placeholder:"请上传素材"},fileName:{value:"",type:"string",label:"component.options.fileName",placeholder:"请上传素材"},materialUid:{value:"",type:"string",label:"component.options.materialUid",placeholder:"素材UID"}},Se=[],Be=[],Ce=[],Ne=null,Ee={DEFAULT:Me,OPTIONS:Le,DATA:Se,PARAMS:Be,SOURCE:Ce,COMMON:Ne},Ae=r.defineComponent(S(b({},Ee),{__name:"photo",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(e){const{t}=ne.useI18n(),a=f.useCounterStore(),l=re.useRoute(),o=e;class c extends le.BaseComponent{extractStyles(){return{imageDisplayMode:this.getOptionValue("imageDisplayMode","center"),radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),j()}}const h=new c(o,"photo");h.setupLifecycle();const i=h.getStyle(),y=r.ref(null),v=r.ref(""),p=r.ref(""),R=r.ref(""),k=r.ref(!1),P=r.ref(!1),$=n=>A.buildMaterialFileUrlByMaterialPath(n),j=()=>s(null,null,function*(){var d,u,_;const{conf:n}=o;(u=(d=n==null?void 0:n.options)==null?void 0:d.fileUrl)!=null&&u.value&&(v.value=$(n.options.fileUrl.value),yield I(),R.value=((_=n.options.fileName)==null?void 0:_.value)||"")}),D=n=>{n&&n.startsWith("blob:")&&URL.revokeObjectURL(n)},I=()=>s(null,null,function*(){if(v.value)try{const n=f.resolveHttpAuthTokenForFetch();if(!n){p.value="";return}const d=A.encodeMaterialFileRequestUrl(v.value),u=yield fetch(d,{mode:"cors",credentials:"include",headers:{Authorization:`Bearer ${n}`}});if(!u.ok)throw new Error(`load image failed: ${u.status}`);const _=yield u.blob(),g=URL.createObjectURL(_);D(p.value),p.value=g}catch(n){console.error("[Photo] 拉取图片失败:",n),D(p.value),p.value=""}}),H=r.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),J=r.computed(()=>{var d;const n=(d=i==null?void 0:i.value)==null?void 0:d.imageDisplayMode;return n==="tile"?{display:"none"}:n==="stretch"?{width:"100%",height:"100%",objectFit:"fill"}:{width:"100%",height:"100%",objectFit:"contain"}}),G=r.computed(()=>{var n;return((n=i==null?void 0:i.value)==null?void 0:n.imageDisplayMode)!=="tile"||!p.value?{}:{width:"100%",height:"100%",backgroundImage:`url(${p.value})`,backgroundRepeat:"repeat",backgroundPosition:"center center"}}),x=r.computed(()=>{const n=l.params.id;return n?String(n):""}),z=n=>{var u;const d=((u=a.pageData)==null?void 0:u.sheets)||[];for(const _ of d){const g=_.id,M=_.caption||_.name||_.id,B=_.layers||[];for(const w of B){const C=w.id,N=w.caption||w.name||w.id,E=w.components||[];for(const m of E)if((m==null?void 0:m.id)===n){const L=m.caption||m.name||m.id;return{sheetId:g,layerId:C,sheetName:M,layerName:N,componentName:L}}}}return{sheetId:"",layerId:"",sheetName:"",layerName:"",componentName:""}},Z=n=>s(null,null,function*(){var g;if(!x.value)return;const d=o.uid||((g=o.conf)==null?void 0:g.id);if(!d||!n)return;const{sheetId:u,layerId:_}=z(d);try{yield W.deleteComponentRelations(x.value,u,_,d),yield W.createMaterialRelation({dashboard_record_uid:x.value,material_uid:n,sheet_id:u||void 0,layer_id:_||void 0,component_id:d})}catch(M){console.warn("[Photo] 同步素材关联失败:",M)}}),F=()=>s(null,null,function*(){try{const n=yield he("image");if(n){if(console.log("[Photo] 选中的素材:",n),console.log("[Photo] material_path:",n.material_path),console.log("[Photo] thumbnail:",n.thumbnail),console.log("[Photo] file_id:",n.file_id),!n.material_path){V.ElMessage.warning("该素材缺少 material_path,无法获取原图"),console.warn("[Photo] 素材缺少 material_path");return}const d=String(n.material_path).trim(),u=A.buildMaterialFileUrlByMaterialPath(d);console.log("[Photo] 原图URL:",u),v.value=u,yield I(),R.value=n.name,o.conf&&o.conf.options&&(o.conf.options.fileUrl||(o.conf.options.fileUrl={value:"",type:"string",label:""}),o.conf.options.fileName||(o.conf.options.fileName={value:"",type:"string",label:""}),o.conf.options.materialUid||(o.conf.options.materialUid={value:"",type:"string",label:""}),o.conf.options.fileUrl.value=d,o.conf.options.fileName.value=n.name,o.conf.options.materialUid.value=n.uid,console.log("[Photo] 配置已保存:",{fileUrl:o.conf.options.fileUrl.value,fileName:o.conf.options.fileName.value,materialUid:o.conf.options.materialUid.value})),console.log("[Photo] uploadedFileUrl.value:",p.value),V.ElMessage.success(t("component.photo.materialSelected")||"素材选择成功"),yield Z(n.uid)}else console.log("[Photo] 用户取消选择")}catch(n){console.error("[Photo] 素材选择失败:",n),V.ElMessage.error("素材选择失败")}}),K=()=>{D(p.value),p.value="",v.value="",R.value="",o.mode!=="preview"&&F()},Q=()=>{k.value=!1,y.value,console.log("图片加载成功")},X=n=>{var g,M,B,w,C,N,E;if(console.error("图片加载失败:",n),k.value||P.value)return;const d=o.uid||((g=o.conf)==null?void 0:g.id)||"",u=d?z(d):null;u&&(u.sheetName||u.layerName||u.componentName)?`${u.sheetName||"-"}${u.layerName||"-"}${u.componentName||"-"}`:R.value;const _=String(((w=(B=(M=o.conf)==null?void 0:M.options)==null?void 0:B.materialUid)==null?void 0:w.value)||((E=(N=(C=o.conf)==null?void 0:C.options)==null?void 0:N.imageUid)==null?void 0:E.value)||"").trim();_&&(P.value=!0,de.getMaterialItem(_).then(m=>{if(U(m==null?void 0:m.code)&&(m!=null&&m.result)){const L=m.result;L!=null&&L.material_path&&(v.value=A.buildMaterialFileUrlByMaterialPath(String(L.material_path).trim()),I());return}k.value=!0}).catch(()=>{}).finally(()=>{P.value=!1}))};return r.onMounted(()=>{}),r.onBeforeUnmount(()=>{p.value&&p.value.startsWith("blob:")&&URL.revokeObjectURL(p.value)}),(n,d)=>{var _,g;const u=ie.ElButton;return r.openBlock(),r.createElementBlock("div",{class:"mix-component",style:r.normalizeStyle({borderRadius:`${r.unref(i).radiusSize}px`})},[r.createElementVNode("div",_e,[p.value?(r.openBlock(),r.createElementBlock("div",ge,[o.mode!=="preview"?(r.openBlock(),r.createElementBlock("div",ve,[r.createElementVNode("span",we,r.toDisplayString(R.value),1),r.createElementVNode("button",{class:"change-file-btn",onClick:K,title:r.unref(t)("component.photo.changeFile")||"更换文件"},[...d[1]||(d[1]=[r.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[r.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])],8,be)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"image-container",style:r.normalizeStyle(H.value)},[r.createElementVNode("img",{ref_key:"imageRef",ref:y,src:p.value,alt:R.value,style:r.normalizeStyle(J.value),onLoad:Q,onError:X},null,44,Re),((g=(_=r.unref(i))==null?void 0:_.value)==null?void 0:g.imageDisplayMode)==="tile"?(r.openBlock(),r.createElementBlock("div",{key:0,class:"tiled-background",style:r.normalizeStyle(G.value)},null,4)):r.createCommentVNode("",!0)],4)])):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["upload-area",{"preview-mode":o.mode==="preview"}])},[r.createElementVNode("div",pe,[(r.openBlock(),r.createElementBlock("svg",me,[...d[0]||(d[0]=[r.createElementVNode("path",{d:"M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z"},null,-1)])])),r.createElementVNode("p",fe,r.toDisplayString(o.mode==="preview"?"未上传素材":r.unref(t)("component.photo.selectFromLibrary")||"从素材库选择"),1),o.mode!=="preview"?(r.openBlock(),r.createElementBlock("div",ye,[r.createVNode(u,{type:"primary",size:"small",onClick:F},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(t)("component.photo.selectFromLibrary")||"从素材库选择"),1)]),_:1})])):r.createCommentVNode("",!0)])],2))]),r.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),Ue=f._export_sfc(Ae,[["__scopeId","data-v-57314f5b"]]);exports.default=Ue;
|
|
1
|
+
"use strict";var Y=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var q=(e,t,a)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,b=(e,t)=>{for(var a in t||(t={}))ae.call(t,a)&&q(e,a,t[a]);if(O)for(var a of O(t))oe.call(t,a)&&q(e,a,t[a]);return e},S=(e,t)=>ee(e,te(t));var s=(e,t,a)=>new Promise((l,o)=>{var c=y=>{try{i(a.next(y))}catch(v){o(v)}},h=y=>{try{i(a.throw(y))}catch(v){o(v)}},i=y=>y.done?l(y.value):Promise.resolve(y.value).then(c,h);i((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");const r=require("vue"),re=require("vue-router"),ne=require("vue-i18n"),le=require("./BaseComponent-BabOc6Kc.cjs"),f=require("./index-Cm7hGuPj.cjs"),A=require("./materialFileUrl-C_Aqly-o.cjs"),V=require("element-plus"),T=require("./ele-bmp-icon-BBI0-SX7.cjs"),U=e=>{const t=typeof e=="string"?Number(e):e;return t===0||t===200},se=(e,t)=>{if(e&&String(e).trim()){const a=String(e).trim();if(a.startsWith("http://")||a.startsWith("https://"))try{return new URL(a).pathname||""}catch(l){return a}return a.startsWith("/")?a:`/${a}`}return t?`/yunfiles/material/file/${t}`:""},de={uploadFile(e){return s(this,null,function*(){var l;const t=new FormData;t.append("file",e);const a=yield f.api.upload(t,!0);if(U(a.code)&&((l=a.result)!=null&&l.url))return a.result.url;throw new Error(a.msg||"文件上传失败")})},uploadMaterialGetPath(e,t){return s(this,null,function*(){var c,h;const l={material_data:e.includes(",")?e.split(",")[1]:e,material_type:t||"png"},o=yield f.api.post("upload_material",l,!0);if(U(o.code)&&o.result){const i=o.result,y=se(i.material_path||i.relative_path||"",i.file_id);if(y)return S(b({},i),{material_path:y,material_size:(h=(c=i.material_size)!=null?c:i.file_size)!=null?h:0,material_type:i.material_type||i.mime_type||t||"png",name:i.name||i.file_name||""})}throw new Error(o.info||o.msg||"上传原图获取路径失败")})},createMaterial(e){return s(this,null,function*(){var a;const t=yield f.api.post("create_dashboard_material",e,!0);if(U(t.code)&&((a=t.result)!=null&&a.uid))return t.result;throw new Error(t.info||t.msg||"创建素材失败")})},uploadAndCreateMaterial(a){return s(this,arguments,function*(e,t={}){var h;const l=((h=e.name.split(".").pop())==null?void 0:h.toLowerCase())||"png",o=yield this._fileToBase64(e),c=yield this.uploadMaterialGetPath(o,l);if(c.uid)return{uid:c.uid};throw new Error("upload_material 未返回 uid")})},_fileToBase64(e){return new Promise((t,a)=>{const l=new FileReader;l.onload=()=>t(l.result),l.onerror=()=>a(new Error("文件读取失败")),l.readAsDataURL(e)})},getMaterialList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return yield f.api.post("get_dashboard_material_list",t)})},getMyMaterialList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return yield f.api.post("get_my_dashboard_material_list",t)})},getMaterialItem(e){return s(this,null,function*(){return yield f.api.post("get_dashboard_material_item",{uid:e})})},updateMaterial(e){return s(this,null,function*(){return yield f.api.post("update_dashboard_material",e,!0)})},deleteMaterial(e){return s(this,null,function*(){return yield f.api.post("delete_dashboard_material",{uid:e},!0)})},deleteMaterialByPath(e){return s(this,null,function*(){var a;if(!e||!String(e).trim())return;const t=String(e).replace(/^\//,"");try{const l=yield this.getMyMaterialList({page_index:1,page_size:10,where_and:JSON.stringify([["material_path","=",t]])}),o=(a=l==null?void 0:l.result)==null?void 0:a.data;Array.isArray(o)&&o.length>0&&o[0].uid&&(yield this.deleteMaterial(o[0].uid))}catch(l){}})}},W={_buildWhereAnd(e){return JSON.stringify(e.filter(([,,t])=>t!=null))},_isEmptyId(e){return e==null||String(e).trim()===""},_isComponentLevel(e){return!this._isEmptyId(e.component_id)},_isLayerLevel(e){return this._isEmptyId(e.component_id)&&!this._isEmptyId(e.layer_id)},_isSheetLevel(e){return this._isEmptyId(e.component_id)&&this._isEmptyId(e.layer_id)&&!this._isEmptyId(e.sheet_id)},_isDashboardLevel(e){return this._isEmptyId(e.component_id)&&this._isEmptyId(e.layer_id)&&this._isEmptyId(e.sheet_id)},_listRelations(e){return s(this,null,function*(){var a;const t=yield this.getMaterialRelationList({page_index:1,page_size:999,where_and:e});return((a=t==null?void 0:t.result)==null?void 0:a.data)||[]})},_deleteByUid(e,t){return s(this,null,function*(){t&&(yield this.deleteMaterialRelation({dashboard_record_uid:e,uid:t}))})},_deleteByRelation(e){return s(this,null,function*(){e!=null&&e.dashboard_record_uid&&(yield this.deleteMaterialRelation({dashboard_record_uid:e.dashboard_record_uid,dashboard_id:e.dashboard_id,sheet_id:e.sheet_id,layer_id:e.layer_id,component_id:e.component_id,uid:e.uid}))})},_deleteRelationList(e,t){return s(this,null,function*(){for(const a of t)yield this._deleteByUid(e,a.uid)})},createMaterialRelation(e){return s(this,null,function*(){return yield f.api.post("create_dashboard_materials_relation",e,!0)})},deleteMaterialRelation(e){return s(this,null,function*(){return yield f.api.post("delete_dashboard_materials_relation",e,!0)})},getMaterialRelationList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return!e.order_by&&!e.order_type&&e.order?t.order=e.order:delete t.order,yield f.api.post("get_my_dashboard_materials_relation_list",t)})},getMaterialRelationsByDashboard(a){return s(this,arguments,function*(e,t={}){const l=JSON.stringify([["dashboard_record_uid","=",e]]);return yield this.getMaterialRelationList(S(b({},t),{where_and:l}))})},getMaterialRelationByComponent(l,o){return s(this,arguments,function*(e,t,a={}){const c=JSON.stringify([["dashboard_record_uid","=",e],["component_id","=",t]]);return yield this.getMaterialRelationList(S(b({},a),{where_and:c}))})},getRelationsByMaterial(e){return s(this,null,function*(){var l;if(!e)return[];const t=JSON.stringify([["material_uid","=",e]]),a=yield this.getMaterialRelationList({page_index:1,page_size:999,where_and:t});return((l=a==null?void 0:a.result)==null?void 0:l.data)||[]})},getMaterialUsageSummary(e){return s(this,null,function*(){const t=yield this.getRelationsByMaterial(e),a=new Set;return t.forEach(l=>{const o=String(l.dashboard_record_uid||"").trim();o&&a.add(o)}),{relationCount:t.length,dashboardCount:a.size,relations:t}})},deleteAllRelationsByMaterial(e){return s(this,null,function*(){const t=yield this.getRelationsByMaterial(e);for(const a of t)!(a!=null&&a.uid)||!(a!=null&&a.dashboard_record_uid)||(yield this.deleteMaterialRelation({dashboard_record_uid:a.dashboard_record_uid,uid:a.uid}));return t.length})},deleteAllRelationsByDashboard(e){return s(this,null,function*(){return yield this.deleteRelationsByDashboardHierarchy(e)})},deleteRelationByComponent(e,t){return s(this,null,function*(){return yield this.deleteMaterialRelation({dashboard_record_uid:e,component_id:t})})},deleteComponentRelations(e,t,a,l){return s(this,null,function*(){if(!e||!t||!a||!l)return;const o=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",a],["component_id","=",l]]),c=yield this._listRelations(o);for(const h of c)yield this._deleteByRelation(h)})},deleteLayerLevelRelations(e,t,a){return s(this,null,function*(){if(!e||!t||!a)return;const l=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",a]]),c=(yield this._listRelations(l)).filter(h=>this._isLayerLevel(h));for(const h of c)yield this._deleteByRelation(h)})},deleteSheetLevelRelations(e,t){return s(this,null,function*(){if(!e||!t)return;const a=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t]]),o=(yield this._listRelations(a)).filter(c=>this._isSheetLevel(c));for(const c of o)yield this._deleteByRelation(c)})},deleteDashboardLevelRelations(e){return s(this,null,function*(){if(!e)return;const t=this._buildWhereAnd([["dashboard_record_uid","=",e]]),l=(yield this._listRelations(t)).filter(o=>this._isDashboardLevel(o));for(const o of l)yield this._deleteByRelation(o)})},deleteRelationsByLayerHierarchy(e,t,a){return s(this,null,function*(){if(!e||!t||!a)return;const l=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",a]]),o=yield this._listRelations(l),c=o.filter(i=>this._isComponentLevel(i)),h=o.filter(i=>this._isLayerLevel(i));for(const i of c)yield this._deleteByRelation(i);for(const i of h)yield this._deleteByRelation(i)})},deleteRelationsBySheetHierarchy(e,t){return s(this,null,function*(){if(!e||!t)return;const a=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t]]),l=yield this._listRelations(a),o=l.filter(i=>this._isComponentLevel(i)),c=l.filter(i=>this._isLayerLevel(i)),h=l.filter(i=>this._isSheetLevel(i));for(const i of o)yield this._deleteByRelation(i);for(const i of c)yield this._deleteByRelation(i);for(const i of h)yield this._deleteByRelation(i)})},deleteRelationsByDashboardHierarchy(e){return s(this,null,function*(){if(!e)return;const t=this._buildWhereAnd([["dashboard_record_uid","=",e]]),a=yield this._listRelations(t),l=a.filter(i=>this._isComponentLevel(i)),o=a.filter(i=>this._isLayerLevel(i)),c=a.filter(i=>this._isSheetLevel(i)),h=a.filter(i=>this._isDashboardLevel(i));for(const i of l)yield this._deleteByRelation(i);for(const i of o)yield this._deleteByRelation(i);for(const i of c)yield this._deleteByRelation(i);for(const i of h)yield this._deleteByRelation(i)})}},ce=r.ref(!1),ue=r.ref("all");function he(e="all"){return ue.value=e,ce.value=!0,new Promise(t=>{})}const _e={class:"mix-body"},pe={class:"upload-content"},me={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},fe={class:"upload-text"},ye={key:0,class:"upload-actions"},ge={key:1,class:"viewer-container"},ve={key:0,class:"file-info"},we={class:"file-name"},be=["title"],Re=["src","alt"],Me={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"图片查看器",NAME_EN:"Photo Viewer",ORDER:2,PLATFORM:["pc","screen","mobile"]},Le={imageDisplayMode:{value:"center",type:"select",options:[{label:"component.photo.center",value:"center"},{label:"component.photo.tile",value:"tile"},{label:"component.photo.stretch",value:"stretch"}],label:"component.options.imageDisplayMode"},fileUrl:{value:"",type:"string",label:"component.options.fileUrl",placeholder:"请上传素材"},fileName:{value:"",type:"string",label:"component.options.fileName",placeholder:"请上传素材"},materialUid:{value:"",type:"string",label:"component.options.materialUid",placeholder:"素材UID"}},Se=[],Be=[],Ce=[],Ne=null,Ee={DEFAULT:Me,OPTIONS:Le,DATA:Se,PARAMS:Be,SOURCE:Ce,COMMON:Ne},Ae=r.defineComponent(S(b({},Ee),{__name:"photo",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(e){const{t}=ne.useI18n(),a=f.useCounterStore(),l=re.useRoute(),o=e;class c extends le.BaseComponent{extractStyles(){return{imageDisplayMode:this.getOptionValue("imageDisplayMode","center"),radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),j()}}const h=new c(o,"photo");h.setupLifecycle();const i=h.getStyle(),y=r.ref(null),v=r.ref(""),p=r.ref(""),R=r.ref(""),k=r.ref(!1),P=r.ref(!1),$=n=>A.buildMaterialFileUrlByMaterialPath(n),j=()=>s(null,null,function*(){var d,u,_;const{conf:n}=o;(u=(d=n==null?void 0:n.options)==null?void 0:d.fileUrl)!=null&&u.value&&(v.value=$(n.options.fileUrl.value),yield I(),R.value=((_=n.options.fileName)==null?void 0:_.value)||"")}),D=n=>{n&&n.startsWith("blob:")&&URL.revokeObjectURL(n)},I=()=>s(null,null,function*(){if(v.value)try{const n=f.resolveHttpAuthTokenForFetch();if(!n){p.value="";return}const d=A.encodeMaterialFileRequestUrl(v.value),u=yield fetch(d,{mode:"cors",credentials:"include",headers:{Authorization:`Bearer ${n}`}});if(!u.ok)throw new Error(`load image failed: ${u.status}`);const _=yield u.blob(),g=URL.createObjectURL(_);D(p.value),p.value=g}catch(n){console.error("[Photo] 拉取图片失败:",n),D(p.value),p.value=""}}),H=r.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),J=r.computed(()=>{var d;const n=(d=i==null?void 0:i.value)==null?void 0:d.imageDisplayMode;return n==="tile"?{display:"none"}:n==="stretch"?{width:"100%",height:"100%",objectFit:"fill"}:{width:"100%",height:"100%",objectFit:"contain"}}),G=r.computed(()=>{var n;return((n=i==null?void 0:i.value)==null?void 0:n.imageDisplayMode)!=="tile"||!p.value?{}:{width:"100%",height:"100%",backgroundImage:`url(${p.value})`,backgroundRepeat:"repeat",backgroundPosition:"center center"}}),x=r.computed(()=>{const n=l.params.id;return n?String(n):""}),z=n=>{var u;const d=((u=a.pageData)==null?void 0:u.sheets)||[];for(const _ of d){const g=_.id,M=_.caption||_.name||_.id,B=_.layers||[];for(const w of B){const C=w.id,N=w.caption||w.name||w.id,E=w.components||[];for(const m of E)if((m==null?void 0:m.id)===n){const L=m.caption||m.name||m.id;return{sheetId:g,layerId:C,sheetName:M,layerName:N,componentName:L}}}}return{sheetId:"",layerId:"",sheetName:"",layerName:"",componentName:""}},Z=n=>s(null,null,function*(){var g;if(!x.value)return;const d=o.uid||((g=o.conf)==null?void 0:g.id);if(!d||!n)return;const{sheetId:u,layerId:_}=z(d);try{yield W.deleteComponentRelations(x.value,u,_,d),yield W.createMaterialRelation({dashboard_record_uid:x.value,material_uid:n,sheet_id:u||void 0,layer_id:_||void 0,component_id:d})}catch(M){console.warn("[Photo] 同步素材关联失败:",M)}}),F=()=>s(null,null,function*(){try{const n=yield he("image");if(n){if(console.log("[Photo] 选中的素材:",n),console.log("[Photo] material_path:",n.material_path),console.log("[Photo] thumbnail:",n.thumbnail),console.log("[Photo] file_id:",n.file_id),!n.material_path){V.ElMessage.warning("该素材缺少 material_path,无法获取原图"),console.warn("[Photo] 素材缺少 material_path");return}const d=String(n.material_path).trim(),u=A.buildMaterialFileUrlByMaterialPath(d);console.log("[Photo] 原图URL:",u),v.value=u,yield I(),R.value=n.name,o.conf&&o.conf.options&&(o.conf.options.fileUrl||(o.conf.options.fileUrl={value:"",type:"string",label:""}),o.conf.options.fileName||(o.conf.options.fileName={value:"",type:"string",label:""}),o.conf.options.materialUid||(o.conf.options.materialUid={value:"",type:"string",label:""}),o.conf.options.fileUrl.value=d,o.conf.options.fileName.value=n.name,o.conf.options.materialUid.value=n.uid,console.log("[Photo] 配置已保存:",{fileUrl:o.conf.options.fileUrl.value,fileName:o.conf.options.fileName.value,materialUid:o.conf.options.materialUid.value})),console.log("[Photo] uploadedFileUrl.value:",p.value),V.ElMessage.success(t("component.photo.materialSelected")||"素材选择成功"),yield Z(n.uid)}else console.log("[Photo] 用户取消选择")}catch(n){console.error("[Photo] 素材选择失败:",n),V.ElMessage.error("素材选择失败")}}),K=()=>{D(p.value),p.value="",v.value="",R.value="",o.mode!=="preview"&&F()},Q=()=>{k.value=!1,y.value,console.log("图片加载成功")},X=n=>{var g,M,B,w,C,N,E;if(console.error("图片加载失败:",n),k.value||P.value)return;const d=o.uid||((g=o.conf)==null?void 0:g.id)||"",u=d?z(d):null;u&&(u.sheetName||u.layerName||u.componentName)?`${u.sheetName||"-"}${u.layerName||"-"}${u.componentName||"-"}`:R.value;const _=String(((w=(B=(M=o.conf)==null?void 0:M.options)==null?void 0:B.materialUid)==null?void 0:w.value)||((E=(N=(C=o.conf)==null?void 0:C.options)==null?void 0:N.imageUid)==null?void 0:E.value)||"").trim();_&&(P.value=!0,de.getMaterialItem(_).then(m=>{if(U(m==null?void 0:m.code)&&(m!=null&&m.result)){const L=m.result;L!=null&&L.material_path&&(v.value=A.buildMaterialFileUrlByMaterialPath(String(L.material_path).trim()),I());return}k.value=!0}).catch(()=>{}).finally(()=>{P.value=!1}))};return r.onMounted(()=>{}),r.onBeforeUnmount(()=>{p.value&&p.value.startsWith("blob:")&&URL.revokeObjectURL(p.value)}),(n,d)=>{var _,g;const u=ie.ElButton;return r.openBlock(),r.createElementBlock("div",{class:"mix-component",style:r.normalizeStyle({borderRadius:`${r.unref(i).radiusSize}px`})},[r.createElementVNode("div",_e,[p.value?(r.openBlock(),r.createElementBlock("div",ge,[o.mode!=="preview"?(r.openBlock(),r.createElementBlock("div",ve,[r.createElementVNode("span",we,r.toDisplayString(R.value),1),r.createElementVNode("button",{class:"change-file-btn",onClick:K,title:r.unref(t)("component.photo.changeFile")||"更换文件"},[...d[1]||(d[1]=[r.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[r.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])],8,be)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"image-container",style:r.normalizeStyle(H.value)},[r.createElementVNode("img",{ref_key:"imageRef",ref:y,src:p.value,alt:R.value,style:r.normalizeStyle(J.value),onLoad:Q,onError:X},null,44,Re),((g=(_=r.unref(i))==null?void 0:_.value)==null?void 0:g.imageDisplayMode)==="tile"?(r.openBlock(),r.createElementBlock("div",{key:0,class:"tiled-background",style:r.normalizeStyle(G.value)},null,4)):r.createCommentVNode("",!0)],4)])):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["upload-area",{"preview-mode":o.mode==="preview"}])},[r.createElementVNode("div",pe,[(r.openBlock(),r.createElementBlock("svg",me,[...d[0]||(d[0]=[r.createElementVNode("path",{d:"M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z"},null,-1)])])),r.createElementVNode("p",fe,r.toDisplayString(o.mode==="preview"?"未上传素材":r.unref(t)("component.photo.selectFromLibrary")||"从素材库选择"),1),o.mode!=="preview"?(r.openBlock(),r.createElementBlock("div",ye,[r.createVNode(u,{type:"primary",size:"small",onClick:F},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(t)("component.photo.selectFromLibrary")||"从素材库选择"),1)]),_:1})])):r.createCommentVNode("",!0)])],2))]),r.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),Ue=f._export_sfc(Ae,[["__scopeId","data-v-57314f5b"]]);exports.default=Ue;
|
|
@@ -11,9 +11,9 @@ var O = (l, a, r) => a in l ? k(l, a, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return l;
|
|
12
12
|
}, d = (l, a) => E(l, $(a));
|
|
13
13
|
import { defineComponent as z, computed as R, openBlock as j, createElementBlock as I, normalizeStyle as _, unref as m, createElementVNode as b, toDisplayString as N, renderSlot as D } from "vue";
|
|
14
|
-
import { l as T, C as P, _ as H } from "./index-
|
|
14
|
+
import { l as T, C as P, _ as H } from "./index-DUL649KZ.js";
|
|
15
15
|
import "element-plus";
|
|
16
|
-
import { E as M } from "./EChartComponentBase-
|
|
16
|
+
import { E as M } from "./EChartComponentBase-DCKFGbqb.js";
|
|
17
17
|
import { g as F } from "./titleStyle-BT5GlpAb.js";
|
|
18
18
|
import { A as U, D as W } from "./ele-pie-icon-RPfHJxqp.js";
|
|
19
19
|
import { u as G, i as K, a as X } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var k=Object.defineProperty,A=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var O=(r,l,c)=>l in r?k(r,l,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[l]=c,d=(r,l)=>{for(var c in l||(l={}))$.call(l,c)&&O(r,c,l[c]);if(C)for(var c of C(l))I.call(l,c)&&O(r,c,l[c]);return r},f=(r,l)=>A(r,B(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),y=require("./index-
|
|
1
|
+
"use strict";var k=Object.defineProperty,A=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var O=(r,l,c)=>l in r?k(r,l,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[l]=c,d=(r,l)=>{for(var c in l||(l={}))$.call(l,c)&&O(r,c,l[c]);if(C)for(var c of C(l))I.call(l,c)&&O(r,c,l[c]);return r},f=(r,l)=>A(r,B(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),y=require("./index-Cm7hGuPj.cjs");require("element-plus");const N=require("./EChartComponentBase-DM6aSCAR.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),S=require("./ele-pie-icon-BNhXPoUT.cjs"),b=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),j=require("./install-CltTFs4e.cjs"),T=require("./install-nDY6w-GK.cjs"),q={class:"mix-body"},D=["id"],P={DEFAULT_ICON:S.DEFAULT_ICON,ACTIVE_ICON:S.ACTIVE_ICON,NAME_CN:"饼状图",NAME_EN:"Pie",ORDER:1,PLATFORM:["pc","screen","mobile"]},M={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,type:{value:"pie",type:"radio",option:[{value:"pie",label:"component.options.pie_type_pie"},{value:"circle",label:"component.options.pie_type_circle"}],label:"component.options.pie_type"},radius:{value:50,type:"number",label:"component.options.pie_radius",dependent:"type",repel:"circle"},inside:{value:40,type:"number",label:"component.options.pie_inside",dependent:"type",repel:"pie"},outside:{value:75,type:"number",label:"component.options.pie_outside",dependent:"type",repel:"pie"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,showLabel:!1,showLegend:{value:!0,type:"checkbox",label:"component.options.showLegend",dependent:"showLabel"},orient:{value:"horizontal",type:"radio",option:[{value:"horizontal",label:"component.options.orient_horizontal"},{value:"vertical",label:"component.options.orient_vertical"}],label:"component.options.orient",dependent:"showLegend"},showValue:{value:!0,type:"checkbox",label:"component.options.showValue",dependent:"showLabel"},showRate:{value:!1,type:"checkbox",label:"component.options.showRate",dependent:"showLabel"},wrap:{value:!1,type:"checkbox",label:"component.options.wrap",dependent:"showLabel"},wrapByte:{value:5,type:"number",label:"component.options.pie_wrapByte",dependent:"wrap"}},H=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"},{name:"参数二",fv:"",object_id:"",color:"#3bbc6a"},{name:"参数三",fv:"",object_id:"",color:"#e24359"}],F=["name","fv","object_id","color"],U=["mosaic","statistics","calculate"],W={useAlias:!1,multiObject:!1,source:"mosaic"},G={DEFAULT:P,OPTIONS:M,DATA:H,PARAMS:F,SOURCE:U,COMMON:W},K=a.defineComponent(f(d({},G),{__name:"pie",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){b.use([R.install,j.install,b.install,b.install$1,T.install]);const l=r,c=y.useLinkStore(),_={horizontal:{orient:"horizontal",bottom:"5%",left:"center"},vertical:{orient:"vertical",right:"5%",top:"5%"}};class L extends N.EChartComponentBase{initChart(){var e,t;super.initChart(),this.props.mode==="preview"&&((e=this.chartObj)==null||e.off("click"),(t=this.chartObj)==null||t.on("click",o=>{var n,s,p,u,h,v;const i=o==null?void 0:o.name;if(typeof i=="string"&&i){const E=((s=(n=this.props.conf)==null?void 0:n.options)==null?void 0:s.linkChannel)==="custom"?(u=(p=this.props.conf)==null?void 0:p.options)==null?void 0:u.customChannel:(v=(h=this.props.conf)==null?void 0:h.options)==null?void 0:v.linkChannel;c.publish(E||"pie","pie",{objectId:"",deviceId:"",type:"select",fieldKey:i,fv:d({key:i},o),source:"pie"})}}))}extractStyles(){return f(d({},super.extractStyles()),{type:this.getOptionValue("type","pie"),radius:this.getOptionValue("radius",50),inside:this.getOptionValue("inside",40),outside:this.getOptionValue("outside",75),showLabel:this.getOptionValue("showLabel",!1),showLegend:this.getOptionValue("showLegend",!0),orient:this.getOptionValue("orient","horizontal"),showValue:this.getOptionValue("showValue",!0),showRate:this.getOptionValue("showRate",!1),wrap:this.getOptionValue("wrap",!1),wrapByte:this.getOptionValue("wrapByte",5)})}getChartOption(){const e=this.Style.value,{data:t,name:o}=this.props.conf,i=t.map((n,s)=>n.color||y.COLORS[s]);return{title:{show:!1,text:o||"",x:"center"},color:i,tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:f(d({show:e.showLabel&&e.showLegend},_[e.orient]),{data:t.map(n=>n.name),textStyle:{color:e.textColor}}),series:this.formatSeries()}}formatSeries(){const e=this.Style.value,{data:t,name:o}=this.props.conf,i=t.map(s=>({value:0,name:s.name})),n=e.type==="pie"?`${e.radius}%`:[`${e.inside}%`,`${e.outside}%`];return[{name:o,type:"pie",radius:n,center:["50%","40%"],data:i,emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{show:e.showLabel,color:e.textColor,lineHeight:16,fontSize:e.textSize,formatter:s=>this.formatLabel(s)}}]}formatLabel(e){const t=this.Style.value;if(!t.showLabel)return"";let o=e.name;return t.showValue&&t.showRate?o=`${e.name}: ${e.value}(${e.percent}%)`:t.showValue?o=`${e.name}: ${e.value}`:t.showRate&&(o=`${e.name}${e.percent}%`),this.insertBreaks(o)}insertBreaks(e){const t=this.Style.value;if(!t.showLabel||!t.wrap)return e;const o=t.wrapByte||5;let i="",n=0,s=0;for(const p of e)p.charCodeAt(0)>=19968&&p.charCodeAt(0)<=40959?(s++,n+=2):n+=1,i+=p,(s>=o||n>=o*2)&&(i+=`
|
|
2
2
|
`,s=0,n=0);return i}setHistoryData(e){if(!e||!(e!=null&&e.length))return;const t=this.chartObj.getOption();t.series[0].data.forEach((o,i)=>{var n;o.value=(n=e[i].data[0])!=null?n:0}),this.updateChart(t)}setSocketData(e){if(!e||!this.chartObj)return;const{data:t}=this.props.conf,o=this.chartObj.getOption();t.forEach((i,n)=>{var p,u,h;const s=this.extractDataValue(e,i.fv);(h=(u=(p=o.series)==null?void 0:p[0])==null?void 0:u.data)!=null&&h[n]&&(o.series[0].data[n].value=s!=null?s:0)}),this.updateChart(o)}}const m=new L(l,"pie");m.setupLifecycle();const w=m.getStyle(),V=m.getEchartId(),x=a.computed(()=>z.generateTitleStyle(l.conf.options));return(g,e)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(w).bgColor,borderRadius:`${a.unref(w).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(x.value)},a.toDisplayString(r.conf.caption||r.conf.name),5),a.createElementVNode("div",q,[a.createElementVNode("div",{class:"w-full h-full",id:a.unref(V)},null,8,D)]),a.renderSlot(g.$slots,"default",{},void 0,!0)],4))}})),X=y._export_sfc(K,[["__scopeId","data-v-e6c1bd86"]]);exports.default=X;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var P=Object.defineProperty,A=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var O=(l,t,r)=>t in l?P(l,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[t]=r,M=(l,t)=>{for(var r in t||(t={}))$.call(t,r)&&O(l,r,t[r]);if(D)for(var r of D(t))U.call(t,r)&&O(l,r,t[r]);return l},T=(l,t)=>A(l,W(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),z=require("./ele-box-icon-NZ0BTjhm.cjs"),j=require("./index-
|
|
1
|
+
"use strict";var P=Object.defineProperty,A=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var O=(l,t,r)=>t in l?P(l,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[t]=r,M=(l,t)=>{for(var r in t||(t={}))$.call(t,r)&&O(l,r,t[r]);if(D)for(var r of D(t))U.call(t,r)&&O(l,r,t[r]);return l},T=(l,t)=>A(l,W(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),z=require("./ele-box-icon-NZ0BTjhm.cjs"),j=require("./index-Cm7hGuPj.cjs"),q=["data-placeholder-id","data-placeholder-name","data-x","data-y","data-w","data-h"],G={key:0,class:"mix-placeholder__label"},H={class:"mix-placeholder__title"},J={key:0,class:"mix-placeholder__name"},K={class:"mix-placeholder__meta"},Q={key:0,class:"mix-placeholder__pixel"},X={class:"mix-placeholder__pixel-pos"},Y={key:1,class:"mix-placeholder__desc"},Z={key:0,class:"mix-placeholder__name-runtime"},ee={DEFAULT_ICON:z.DEFAULT_ICON,ACTIVE_ICON:z.ACTIVE_ICON,NAME_CN:"占位组件",NAME_EN:"Placeholder",ORDER:99,PLATFORM:["pc","screen","mobile"]},te={placeholderName:{value:"",type:"string",label:"占位组件名称"},description:{value:"",type:"string",label:"描述"},bgColor:{value:"rgba(64, 158, 255, 0.08)",type:"color",label:"填充色"},borderColor:{value:"#409EFF",type:"color",label:"边框颜色"},borderWidth:{value:2,type:"number",label:"边框宽度",min:0,max:10},borderStyle:{value:"dashed",type:"radio",label:"边框样式",option:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]},radiusSize:{value:4,type:"number",label:"圆角",min:0,max:50},showLabel:{value:!0,type:"checkbox",label:"显示标签"},showInPreview:{value:!1,type:"checkbox",label:"运行时显示边框"}},oe=[],le={},ae={DEFAULT:ee,OPTIONS:te,SOURCE:oe,COMMON:le},ne=e.defineComponent(T(M({},ae),{__name:"placeholder",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(l){const t=l,r=(o,a)=>{var c,i;const n=(i=(c=t.conf)==null?void 0:c.options)==null?void 0:i[o];return n==null?a:typeof n=="object"&&"value"in n?n.value:n},d=e.computed(()=>({placeholderName:r("placeholderName",""),description:r("description",""),bgColor:r("bgColor","rgba(64, 158, 255, 0.08)"),borderColor:r("borderColor","#409EFF"),borderWidth:Number(r("borderWidth",2))||0,borderStyle:r("borderStyle","dashed"),radiusSize:Number(r("radiusSize",4))||0,showLabel:r("showLabel",!0)!==!1,showInPreview:r("showInPreview",!1)===!0})),_=e.computed(()=>{var o,a;return d.value.placeholderName||((o=t.conf)==null?void 0:o.name)||((a=t.conf)==null?void 0:a.id)||""}),b=e.computed(()=>{var o,a;return d.value.placeholderName||((o=t.conf)==null?void 0:o.caption)||((a=t.conf)==null?void 0:a.name)||""}),F=e.computed(()=>({backgroundColor:d.value.bgColor,borderColor:d.value.borderColor,borderStyle:d.value.borderStyle,borderWidth:`${d.value.borderWidth}px`,borderRadius:`${d.value.radiusSize}px`})),L=e.computed(()=>({borderColor:d.value.borderColor,borderStyle:d.value.borderStyle,borderWidth:`${Math.max(1,d.value.borderWidth)}px`,borderRadius:`${d.value.radiusSize}px`,backgroundColor:"transparent"})),m=e.ref(null),S=e.useTemplateRef("rootRef"),N=()=>{const o=S.value;if(!o)return{gridItem:null,canvas:null};const a=o.closest(".vgl-item")||o.closest(".vue-grid-item"),n=o.closest(".canvas");return{gridItem:a,canvas:n}},x=()=>{const{gridItem:o,canvas:a}=N();if(!o||!a)return;const n=o.getBoundingClientRect(),c=a.getBoundingClientRect(),i=a.offsetWidth||1,u=c.width/i||1,s=u===0?1:u;m.value={left:Math.round((n.left-c.left)/s),top:Math.round((n.top-c.top)/s),width:Math.round(n.width/s),height:Math.round(n.height/s)}},y=o=>{var a,n,c,i,u,s,h,v,f;if(typeof window!="undefined")try{window.dispatchEvent(new CustomEvent(`mix-placeholder:${o}`,{detail:{id:((a=t.conf)==null?void 0:a.id)||"",name:_.value,grid:{x:(c=(n=t.conf)==null?void 0:n.x)!=null?c:0,y:(u=(i=t.conf)==null?void 0:i.y)!=null?u:0,w:(h=(s=t.conf)==null?void 0:s.w)!=null?h:0,h:(f=(v=t.conf)==null?void 0:v.h)!=null?f:0},pixel:m.value,mode:t.mode}}))}catch(g){}};let p=null;return e.onMounted(()=>{e.nextTick(()=>{x(),y("registered");const{gridItem:o}=N();o&&typeof ResizeObserver!="undefined"&&(p=new ResizeObserver(()=>{x(),y("updated")}),p.observe(o))})}),e.onBeforeUnmount(()=>{p==null||p.disconnect(),p=null,y("unregistered")}),e.watch(()=>{var o,a,n,c,i;return[(o=t.conf)==null?void 0:o.x,(a=t.conf)==null?void 0:a.y,(n=t.conf)==null?void 0:n.w,(c=t.conf)==null?void 0:c.h,(i=t.conf)==null?void 0:i.options,t.mode]},()=>{e.nextTick(()=>{x(),y("updated")})},{deep:!0}),(o,a)=>{var n,c,i,u,s,h,v,f,g,w,C,E,k,B,R,I,V;return e.openBlock(),e.createElementBlock("div",{ref_key:"rootRef",ref:S,class:"mix-placeholder",style:e.normalizeStyle({pointerEvents:l.mode==="edit"?"auto":void 0}),"data-placeholder-id":((n=l.conf)==null?void 0:n.id)||"","data-placeholder-name":_.value,"data-x":(i=(c=l.conf)==null?void 0:c.x)!=null?i:0,"data-y":(s=(u=l.conf)==null?void 0:u.y)!=null?s:0,"data-w":(v=(h=l.conf)==null?void 0:h.w)!=null?v:0,"data-h":(g=(f=l.conf)==null?void 0:f.h)!=null?g:0},[l.mode==="edit"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-placeholder__frame mix-placeholder__frame--edit",style:e.normalizeStyle(F.value)},[d.value.showLabel?(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",H,[a[0]||(a[0]=e.createElementVNode("span",{class:"mix-placeholder__tag"},"占位组件",-1)),b.value?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",K,[e.createElementVNode("span",null,"x:"+e.toDisplayString((C=(w=l.conf)==null?void 0:w.x)!=null?C:0),1),e.createElementVNode("span",null,"y:"+e.toDisplayString((k=(E=l.conf)==null?void 0:E.y)!=null?k:0),1),e.createElementVNode("span",null,"w:"+e.toDisplayString((R=(B=l.conf)==null?void 0:B.w)!=null?R:0),1),e.createElementVNode("span",null,"h:"+e.toDisplayString((V=(I=l.conf)==null?void 0:I.h)!=null?V:0),1)]),m.value?(e.openBlock(),e.createElementBlock("div",Q,[e.createTextVNode(e.toDisplayString(m.value.width)+"px × "+e.toDisplayString(m.value.height)+"px ",1),e.createElementVNode("span",X,"@("+e.toDisplayString(m.value.left)+", "+e.toDisplayString(m.value.top)+")",1)])):e.createCommentVNode("",!0),d.value.description?(e.openBlock(),e.createElementBlock("div",Y,e.toDisplayString(d.value.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],4)):d.value.showInPreview?(e.openBlock(),e.createElementBlock("div",{key:1,class:"mix-placeholder__frame mix-placeholder__frame--runtime",style:e.normalizeStyle(L.value)},[d.value.showLabel&&b.value?(e.openBlock(),e.createElementBlock("span",Z,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},void 0,!0)],12,q)}}})),re=j._export_sfc(ne,[["__scopeId","data-v-d6ad7f4c"]]);exports.default=re;
|
|
@@ -12,7 +12,7 @@ var $ = (o, e, r) => e in o ? q(o, e, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, D = (o, e) => G(o, H(e));
|
|
13
13
|
import { defineComponent as Q, computed as w, ref as X, useTemplateRef as Y, onMounted as Z, nextTick as U, onBeforeUnmount as ee, watch as te, openBlock as h, createElementBlock as m, normalizeStyle as R, createElementVNode as p, toDisplayString as i, createCommentVNode as b, createTextVNode as oe, renderSlot as le } from "vue";
|
|
14
14
|
import { A as ae, D as re } from "./ele-box-icon-Brlhb3oN.js";
|
|
15
|
-
import { _ as de } from "./index-
|
|
15
|
+
import { _ as de } from "./index-DUL649KZ.js";
|
|
16
16
|
const ne = ["data-placeholder-id", "data-placeholder-name", "data-x", "data-y", "data-w", "data-h"], ce = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "mix-placeholder__label"
|
|
@@ -28,10 +28,10 @@ var _ = (o, t, e) => new Promise((d, g) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as t2, reactive as T, ref as S, computed as y, openBlock as L, createElementBlock as v, Fragment as F, createElementVNode as m, normalizeStyle as w, unref as f, createTextVNode as o2, toDisplayString as M, normalizeClass as j, createCommentVNode as I, renderList as i2, renderSlot as s2, createVNode as n2 } from "vue";
|
|
30
30
|
import "html2canvas";
|
|
31
|
-
import { B as l2 } from "./BaseComponent-
|
|
32
|
-
import {
|
|
31
|
+
import { B as l2 } from "./BaseComponent-7Sa7XOg-.js";
|
|
32
|
+
import { a2, x as E, a as r2, _ as c2 } from "./index-DUL649KZ.js";
|
|
33
33
|
import { g as d2 } from "./titleStyle-BT5GlpAb.js";
|
|
34
|
-
import { _ as u2, g as p2, c as B } from "./mix-control-modal-
|
|
34
|
+
import { _ as u2, g as p2, c as B } from "./mix-control-modal-CGLYKUCc.js";
|
|
35
35
|
import { ElMessage as O } from "element-plus";
|
|
36
36
|
const m2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", f2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", C2 = { class: "font-semibold flex items-center justify-between" }, g2 = { class: "flex items-center" }, h2 = { class: "mix-body" }, L2 = { class: "w-full flex flex-wrap content-start" }, v2 = ["onMousedown", "onMouseup"], w2 = {
|
|
37
37
|
DEFAULT_ICON: m2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,I=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols,P=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,H=Reflect.get;var M=(n,o,t)=>o in n?F(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,k=(n,o)=>{for(var t in o||(o={}))D.call(o,t)&&M(n,t,o[t]);if(_)for(var t of _(o))R.call(o,t)&&M(n,t,o[t]);return n},O=(n,o)=>I(n,j(o));var w=(n,o,t)=>H(P(n),t,o);var x=(n,o,t)=>new Promise((u,f)=>{var g=a=>{try{c(t.next(a))}catch(l){f(l)}},p=a=>{try{c(t.throw(a))}catch(l){f(l)}},c=a=>a.done?u(a.value):Promise.resolve(a.value).then(g,p);c((t=t.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const $=require("./BaseComponent-9njJjeix.cjs"),h=require("./index-Bo49zvKb.cjs"),q=require("./titleStyle-NSnz6cUg.cjs"),v=require("./mix-control-modal-aUWGjwZP.cjs"),S=require("element-plus"),U="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",W="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",G={class:"font-semibold flex items-center justify-between"},J={class:"flex items-center"},K={class:"mix-body"},Y={class:"w-full flex flex-wrap content-start"},Q=["onMousedown","onMouseup"],X={DEFAULT_ICON:U,ACTIVE_ICON:W,NAME_CN:"双控",NAME_EN:"Dual Control",ORDER:3,PLATFORM:["pc","screen","mobile"]},e2={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:h.CONTROL_OPTIONS}},z=[{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"关机",color:"#c92309",code:0},{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"开机",color:"#217406",code:1}],t2=["name","color","upper","down"],o2={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},n2=["mosaic"],l2={DEFAULT:X,OPTIONS:e2,DATA:z,PARAMS:t2,SOURCE:n2,COMMON:o2},i2=e.defineComponent(O(k({},l2),{__name:"pressBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(n){const o=n,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),u=e.reactive({text:"",color:""}),f=e.ref(null),g=e.ref(!0),p=e.ref(!1);class c extends $.BaseComponent{extractStyles(){const{options:i}=this.props.conf;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),method:this.getOptionValue("method","alway"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){w(c.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:z})}onPreview(){return x(this,null,function*(){yield w(c.prototype,this,"onPreview").call(this);const i=yield v.getAuthorized(this.props);t.authorized=i.authorized,t.password=i.password})}setSocketData(i){var d,b;if(!i)return;const{common:r}=this.props.conf,m=this.extractDataValue(i,r.statusFv);if(m!=null){const C=r.status.find(Z=>String(Z.code)===String(m));u.text=(d=C==null?void 0:C.text)!=null?d:"",u.color=(b=C==null?void 0:C.color)!=null?b:""}}}const a=new c(o,"pressBtn");a.setupLifecycle();const l=a.getStyle(),E=e.computed(()=>q.generateTitleStyle(o.conf.options)),N=e.computed(()=>`${(100/l.value.items).toFixed(2)||100}%`),L=e.computed(()=>{const s=l.value.method||"alway";return s==="once"&&g.value||s==="alway"&&!p.value}),V=()=>{p.value||(f.value.modal.visible=!0)},A=()=>{p.value=!0,l.value.method==="once"&&(g.value=!1)},B=s=>{if(L.value)return;if(!v.checkPermission(t.authorized,s.down.command)){S.ElMessage.error("您没有控制权限!");return}const{common:i}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let d={block_mapping:"mapping",action:"publish_command",object_id:i.useAlias?r[i.object_alias]:i.object_id||o.uid,command:s.down.command.toString(),value:s.down.code.toString()||"",control:t.password,rule:l.value.method};y(d,"down")},T=s=>{if(L.value)return;if(!v.checkPermission(t.authorized,s.upper.command)){S.ElMessage.error("您没有控制权限!");return}const{common:i}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let d={block_mapping:"mapping",action:"publish_command",object_id:i.useAlias?r[i.object_alias]:i.object_id||o.uid,command:s.upper.command.toString(),value:s.upper.code.toString()||"",control:t.password,rule:l.value.method};y(d,"up")},y=(s,i)=>{h.api.platform(r=>{r.code===200&&(S.ElMessage.success(r.msg),g.value=!1,l.value.method==="alway"&&i==="up"&&(p.value=!1))},s)};return(s,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(l).bgColor,borderRadius:`${e.unref(l).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",G,[e.createTextVNode(e.toDisplayString(n.conf.caption||n.conf.name)+" ",1),e.createElementVNode("div",J,[e.unref(l).method!=="never"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["verify-btn",{disabled:p.value}]),onClick:V},"验证密码",2)):e.createCommentVNode("",!0),u.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"status-btn",style:e.normalizeStyle({backgroundColor:u.color,color:e.unref(l).textColor})},e.toDisplayString(u.text),5)):e.createCommentVNode("",!0)])])],4),e.createElementVNode("div",K,[e.createElementVNode("div",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.conf.data,(r,m)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:m,style:e.normalizeStyle({width:N.value,height:`${e.unref(l).itemHeight}px`,fontSize:`${e.unref(l).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:L.value}]),style:e.normalizeStyle({backgroundColor:r.color,color:e.unref(l).textColor}),onMousedown:d=>B(r),onMouseup:d=>T(r)},e.toDisplayString(r.name),47,Q)],4))),128))])]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4),e.createVNode(v._sfc_main,{ref_key:"controlRef",ref:f,onSubmit:A,password:t.password},null,8,["password"])],64))}})),s2=h._export_sfc(i2,[["__scopeId","data-v-818c3267"]]);exports.default=s2;
|
|
1
|
+
"use strict";var F=Object.defineProperty,I=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols,P=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,H=Reflect.get;var M=(n,o,t)=>o in n?F(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,k=(n,o)=>{for(var t in o||(o={}))D.call(o,t)&&M(n,t,o[t]);if(_)for(var t of _(o))R.call(o,t)&&M(n,t,o[t]);return n},O=(n,o)=>I(n,j(o));var w=(n,o,t)=>H(P(n),t,o);var x=(n,o,t)=>new Promise((u,f)=>{var g=a=>{try{c(t.next(a))}catch(l){f(l)}},p=a=>{try{c(t.throw(a))}catch(l){f(l)}},c=a=>a.done?u(a.value):Promise.resolve(a.value).then(g,p);c((t=t.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const $=require("./BaseComponent-BabOc6Kc.cjs"),h=require("./index-Cm7hGuPj.cjs"),q=require("./titleStyle-NSnz6cUg.cjs"),v=require("./mix-control-modal-oxp6LmrP.cjs"),S=require("element-plus"),U="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",W="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",G={class:"font-semibold flex items-center justify-between"},J={class:"flex items-center"},K={class:"mix-body"},Y={class:"w-full flex flex-wrap content-start"},Q=["onMousedown","onMouseup"],X={DEFAULT_ICON:U,ACTIVE_ICON:W,NAME_CN:"双控",NAME_EN:"Dual Control",ORDER:3,PLATFORM:["pc","screen","mobile"]},e2={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:h.CONTROL_OPTIONS}},z=[{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"关机",color:"#c92309",code:0},{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"开机",color:"#217406",code:1}],t2=["name","color","upper","down"],o2={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},n2=["mosaic"],l2={DEFAULT:X,OPTIONS:e2,DATA:z,PARAMS:t2,SOURCE:n2,COMMON:o2},i2=e.defineComponent(O(k({},l2),{__name:"pressBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(n){const o=n,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),u=e.reactive({text:"",color:""}),f=e.ref(null),g=e.ref(!0),p=e.ref(!1);class c extends $.BaseComponent{extractStyles(){const{options:i}=this.props.conf;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),method:this.getOptionValue("method","alway"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){w(c.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:z})}onPreview(){return x(this,null,function*(){yield w(c.prototype,this,"onPreview").call(this);const i=yield v.getAuthorized(this.props);t.authorized=i.authorized,t.password=i.password})}setSocketData(i){var d,b;if(!i)return;const{common:r}=this.props.conf,m=this.extractDataValue(i,r.statusFv);if(m!=null){const C=r.status.find(Z=>String(Z.code)===String(m));u.text=(d=C==null?void 0:C.text)!=null?d:"",u.color=(b=C==null?void 0:C.color)!=null?b:""}}}const a=new c(o,"pressBtn");a.setupLifecycle();const l=a.getStyle(),E=e.computed(()=>q.generateTitleStyle(o.conf.options)),N=e.computed(()=>`${(100/l.value.items).toFixed(2)||100}%`),L=e.computed(()=>{const s=l.value.method||"alway";return s==="once"&&g.value||s==="alway"&&!p.value}),V=()=>{p.value||(f.value.modal.visible=!0)},A=()=>{p.value=!0,l.value.method==="once"&&(g.value=!1)},B=s=>{if(L.value)return;if(!v.checkPermission(t.authorized,s.down.command)){S.ElMessage.error("您没有控制权限!");return}const{common:i}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let d={block_mapping:"mapping",action:"publish_command",object_id:i.useAlias?r[i.object_alias]:i.object_id||o.uid,command:s.down.command.toString(),value:s.down.code.toString()||"",control:t.password,rule:l.value.method};y(d,"down")},T=s=>{if(L.value)return;if(!v.checkPermission(t.authorized,s.upper.command)){S.ElMessage.error("您没有控制权限!");return}const{common:i}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let d={block_mapping:"mapping",action:"publish_command",object_id:i.useAlias?r[i.object_alias]:i.object_id||o.uid,command:s.upper.command.toString(),value:s.upper.code.toString()||"",control:t.password,rule:l.value.method};y(d,"up")},y=(s,i)=>{h.api.platform(r=>{r.code===200&&(S.ElMessage.success(r.msg),g.value=!1,l.value.method==="alway"&&i==="up"&&(p.value=!1))},s)};return(s,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(l).bgColor,borderRadius:`${e.unref(l).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",G,[e.createTextVNode(e.toDisplayString(n.conf.caption||n.conf.name)+" ",1),e.createElementVNode("div",J,[e.unref(l).method!=="never"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["verify-btn",{disabled:p.value}]),onClick:V},"验证密码",2)):e.createCommentVNode("",!0),u.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"status-btn",style:e.normalizeStyle({backgroundColor:u.color,color:e.unref(l).textColor})},e.toDisplayString(u.text),5)):e.createCommentVNode("",!0)])])],4),e.createElementVNode("div",K,[e.createElementVNode("div",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.conf.data,(r,m)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:m,style:e.normalizeStyle({width:N.value,height:`${e.unref(l).itemHeight}px`,fontSize:`${e.unref(l).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:L.value}]),style:e.normalizeStyle({backgroundColor:r.color,color:e.unref(l).textColor}),onMousedown:d=>B(r),onMouseup:d=>T(r)},e.toDisplayString(r.name),47,Q)],4))),128))])]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4),e.createVNode(v._sfc_main,{ref_key:"controlRef",ref:f,onSubmit:A,password:t.password},null,8,["password"])],64))}})),s2=h._export_sfc(i2,[["__scopeId","data-v-818c3267"]]);exports.default=s2;
|
|
@@ -12,8 +12,8 @@ var V = (c, o, a) => o in c ? H(c, o, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, D = (c, o) => U(c, I(o));
|
|
13
13
|
import { defineComponent as Y, computed as C, ref as G, watch as W, openBlock as d, createElementBlock as v, normalizeStyle as m, unref as n, createElementVNode as i, toDisplayString as u, withDirectives as q, Fragment as E, renderList as A, vModelSelect as J, createCommentVNode as h, renderSlot as K } from "vue";
|
|
14
14
|
import { u as Q } from "./safeI18n-C5fF3KBo.js";
|
|
15
|
-
import { B as X } from "./BaseComponent-
|
|
16
|
-
import { _ as Z } from "./index-
|
|
15
|
+
import { B as X } from "./BaseComponent-7Sa7XOg-.js";
|
|
16
|
+
import { _ as Z } from "./index-DUL649KZ.js";
|
|
17
17
|
import { g as tt } from "./titleStyle-BT5GlpAb.js";
|
|
18
18
|
import { A as et, D as lt } from "./ele-evn-icon-MWzAujnD.js";
|
|
19
19
|
const ot = { class: "title-text" }, nt = { class: "title-actions" }, st = ["value"], at = { class: "mix-body" }, it = { class: "pt-thead" }, ct = { class: "pt-th pt-col-stage" }, ut = { class: "pt-th pt-col-duration" }, pt = { class: "pt-th pt-col-status" }, rt = { class: "pt-td pt-col-stage" }, dt = { class: "pt-td pt-col-duration" }, vt = { class: "pt-td pt-col-status" }, _t = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var B=Object.defineProperty,L=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var C=(i,n,a)=>n in i?B(i,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[n]=a,k=(i,n)=>{for(var a in n||(n={}))z.call(n,a)&&C(i,a,n[a]);if(S)for(var a of S(n))F.call(n,a)&&C(i,a,n[a]);return i},w=(i,n)=>L(i,$(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),A=require("./safeI18n-D-TYNVsv.cjs"),j=require("./BaseComponent-
|
|
1
|
+
"use strict";var B=Object.defineProperty,L=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var C=(i,n,a)=>n in i?B(i,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[n]=a,k=(i,n)=>{for(var a in n||(n={}))z.call(n,a)&&C(i,a,n[a]);if(S)for(var a of S(n))F.call(n,a)&&C(i,a,n[a]);return i},w=(i,n)=>L(i,$(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),A=require("./safeI18n-D-TYNVsv.cjs"),j=require("./BaseComponent-BabOc6Kc.cjs"),I=require("./index-Cm7hGuPj.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-evn-icon-DUQMS-9T.cjs"),R={class:"title-text"},U={class:"title-actions"},H=["value"],q={class:"mix-body"},P={class:"pt-thead"},Y={class:"pt-th pt-col-stage"},G={class:"pt-th pt-col-duration"},W={class:"pt-th pt-col-status"},J={class:"pt-td pt-col-stage"},K={class:"pt-td pt-col-duration"},Q={class:"pt-td pt-col-status"},X={key:0,class:"pt-empty"},Z={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"流程效率表",NAME_EN:"Process Table",ORDER:12,PLATFORM:["pc","screen"]},ee={bgColor:"#fff",titleColor:"#111",textColor:"#666",radiusSize:8,textSize:13,rowHeight:44,isHideTitle:!1,description:"关注预警发出、任务下达、现场反馈到隐患关闭全过程。",showFilter:!0,defaultLevel:{value:"1",type:"select",label:"component.options.lw_defaultLevel",options:[{label:"component.options.lw_level_1",value:"1"},{label:"component.options.lw_level_2",value:"2"},{label:"component.options.lw_level_3",value:"3"},{label:"component.options.lw_level_4",value:"4"},{label:"component.options.lw_level_all",value:"all"}]},btnText:"数据下载",linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},te=[{stage:"预警推送",fv:"",object_id:"",value:1.8,unit:"min",status:"正常",statusType:"normal",level:"1"},{stage:"调度确认",fv:"",object_id:"",value:6.5,unit:"min",status:"可优化",statusType:"warn",level:"1"},{stage:"现场响应",fv:"",object_id:"",value:12.4,unit:"min",status:"波动较大",statusType:"danger",level:"1"},{stage:"隐患关闭",fv:"",object_id:"",value:3.2,unit:"h",status:"持续跟踪",statusType:"info",level:"1"}],le=[{key:"stage",label:"component.options.lw_stage",type:"string"},"fv","object_id",{key:"unit",label:"component.options.lw_unitMinH",type:"string"},{key:"status",label:"component.options.lw_statusText",type:"string"},{key:"statusType",label:"component.options.lw_statusType",type:"select",options:[{label:"component.options.lw_statusType_normal",value:"normal"},{label:"component.options.lw_statusType_warn",value:"warn"},{label:"component.options.lw_statusType_danger",value:"danger"},{label:"component.options.lw_statusType_info",value:"info"}]},{key:"level",label:"component.options.lw_level",type:"select",options:[{label:"component.options.lw_levelShort_1",value:"1"},{label:"component.options.lw_levelShort_2",value:"2"},{label:"component.options.lw_levelShort_3",value:"3"},{label:"component.options.lw_levelShort_4",value:"4"}]}],oe=["mosaic","statistics","calculate"],ne={useAlias:!1,multiObject:!0,source:"statistics"},se={DEFAULT:Z,OPTIONS:ee,DATA:te,PARAMS:le,SOURCE:oe,COMMON:ne},ae=e.defineComponent(w(k({},se),{__name:"processTable",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const n=i,a={normal:{bg:"#e7f7ec",color:"#1f9d4a"},warn:{bg:"#fff5e0",color:"#d97706"},danger:{bg:"#fde8e8",color:"#dc2626"},info:{bg:"#e0ecfd",color:"#2563eb"}};class T extends j.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),rowHeight:this.getOptionValue("rowHeight",44),description:this.getOptionValue("description",""),showFilter:this.getOptionValue("showFilter",!0),defaultLevel:this.getOptionValue("defaultLevel","1"),btnText:this.getOptionValue("btnText",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const t=this.Style.value;return(t==null?void 0:t.linkChannel)==="custom"?t.customChannel||"":(t==null?void 0:t.linkChannel)||""}setSocketData(t){var r;if(!t)return;(((r=this.props.conf)==null?void 0:r.data)||[]).forEach(m=>{const p=this.extractDataValue(t,m.fv);p!=null&&(m.value=Number(p)||0)})}}const g=new T(n,"processTable");g.setupLifecycle();const{t:c}=A.useSafeI18n(),s=g.getStyle(),b=n.conf,V=e.computed(()=>M.generateTitleStyle(n.conf.options)),x=e.computed(()=>[{label:c("component.options.lw_level_1"),value:"1"},{label:c("component.options.lw_level_2"),value:"2"},{label:c("component.options.lw_level_3"),value:"3"},{label:c("component.options.lw_level_4"),value:"4"},{label:c("component.options.lw_level_all"),value:"all"}]),u=e.ref(s.value.defaultLevel||"1");e.watch(()=>s.value.defaultLevel,l=>{l&&(u.value=l)});const v=e.computed(()=>{var t;const l=((t=n.conf)==null?void 0:t.data)||[];return u.value==="all"?l:l.filter(o=>String(o.level||"1")===String(u.value))});function h(l){const t=l==null?void 0:l.value;if(t==null||t==="")return"--";const o=(l==null?void 0:l.unit)||"",r=typeof t=="number"?Number.isInteger(t)?String(t):t.toFixed(1):String(t);return o?`${r} ${o}`:r}function N(l){const t=a[l]||a.info;return{background:t.bg,color:t.color}}function _(l){const t=String(l!=null?l:"");return/[",\n]/.test(t)?`"${t.replace(/"/g,'""')}"`:t}function O(){const l=new Date,t=o=>String(o).padStart(2,"0");return`${l.getFullYear()}${t(l.getMonth()+1)}${t(l.getDate())}_${t(l.getHours())}${t(l.getMinutes())}${t(l.getSeconds())}`}function D(){if(n.mode!=="preview")return;const l=v.value;if(!l.length)return;const t=["阶段","平均时长","状态"].join(","),o=l.map(f=>[_(f.stage),_(h(f)),_(f.status)].join(",")).join(`
|
|
2
2
|
`),r=t+`
|
|
3
3
|
`+o,m=u.value==="all"?"全部":`${u.value}级`,p=new Blob(["\uFEFF"+r],{type:"text/csv;charset=utf-8;"}),y=URL.createObjectURL(p),d=document.createElement("a");d.href=y,d.download=`流程效率表_${m}_${O()}.csv`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(y)}return(l,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(s).bgColor,borderRadius:`${e.unref(s).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(V.value)},[e.createElementVNode("span",R,e.toDisplayString(e.unref(b).caption||e.unref(b).name),1),e.createElementVNode("div",U,[e.unref(s).showFilter?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:0,"onUpdate:modelValue":t[0]||(t[0]=o=>u.value=o),class:"pt-select"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,o=>(e.openBlock(),e.createElementBlock("option",{key:o.value,value:o.value},e.toDisplayString(o.label),9,H))),128))],512)),[[e.vModelSelect,u.value]]):e.createCommentVNode("",!0),e.unref(s).btnText?(e.openBlock(),e.createElementBlock("button",{key:1,class:"pt-btn",onClick:D},e.toDisplayString(e.unref(s).btnText),1)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",q,[e.unref(s).description?(e.openBlock(),e.createElementBlock("div",{key:0,class:"body-desc",style:e.normalizeStyle({fontSize:`${e.unref(s).textSize}px`,color:e.unref(s).textColor})},e.toDisplayString(e.unref(s).description),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"body-table",style:e.normalizeStyle({fontSize:`${e.unref(s).textSize}px`,color:e.unref(s).textColor})},[e.createElementVNode("div",P,[e.createElementVNode("div",Y,e.toDisplayString(e.unref(c)("component.options.lw_th_stage")),1),e.createElementVNode("div",G,e.toDisplayString(e.unref(c)("component.options.lw_th_duration")),1),e.createElementVNode("div",W,e.toDisplayString(e.unref(c)("component.options.lw_th_status")),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"pt-tr",style:e.normalizeStyle({minHeight:`${e.unref(s).rowHeight}px`})},[e.createElementVNode("div",J,e.toDisplayString(o.stage||"--"),1),e.createElementVNode("div",K,e.toDisplayString(h(o)),1),e.createElementVNode("div",Q,[e.createElementVNode("span",{class:"pt-tag",style:e.normalizeStyle(N(o.statusType))},e.toDisplayString(o.status||"--"),5)])],4))),128)),v.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",X,e.toDisplayString(e.unref(c)("component.options.lw_noData")),1))],4)]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),ie=I._export_sfc(ae,[["__scopeId","data-v-231420a4"]]);exports.default=ie;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty,h=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var f=(r,o,l)=>o in r?m(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l,g=(r,o)=>{for(var l in o||(o={}))y.call(o,l)&&f(r,l,o[l]);if(p)for(var l of p(o))b.call(o,l)&&f(r,l,o[l]);return r},L=(r,o)=>h(r,v(o));var x=(r,o,l)=>new Promise((c,n)=>{var C=a=>{try{i(l.next(a))}catch(t){n(t)}},d=a=>{try{i(l.throw(a))}catch(t){n(t)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(C,d);i((l=l.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),w=require("./BaseComponent-9njJjeix.cjs"),M=require("./index-Bo49zvKb.cjs"),_=require("./titleStyle-NSnz6cUg.cjs"),O="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-col"},k={class:"flex-1"},E={DEFAULT_ICON:O,ACTIVE_ICON:T,NAME_CN:"条形进度",NAME_EN:"Progress Bar",ORDER:2,PLATFORM:["pc","screen","mobile"]},V={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,labelWidth:48,barWidth:16,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},z=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],Z=["name","fv","object_id","color","maxType","max"],N=["mosaic"],A={useAlias:!1,multiObject:!1,source:"mosaic"},F={DEFAULT:E,OPTIONS:V,DATA:z,PARAMS:Z,SOURCE:N,COMMON:A},D=e.defineComponent(L(g({},F),{__name:"progressBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const o=r;class l extends w.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",80),barWidth:this.getOptionValue("barWidth",16),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])})}setHistoryData(i){if(!i)return;const{data:a}=this.props.conf;!Array.isArray(a)||!a.length||a.forEach((t,s)=>{var u;t.value=(u=i[s].data[0])!=null?u:0,t.percent=t.value/t.max*100})}setSocketData(i){if(!i)return;const{data:a}=this.props.conf;a.forEach(t=>{t.value=this.extractDataValue(i,t.fv)||0;const s=t.maxType==="value"?t.max:this.extractDataValue(i,t.max)||0;t.percent=s==0?0:Number((t.value/s*100).toFixed(2))})}}const c=new l(o,"progressBar");c.setupLifecycle();const n=c.getStyle(),C=e.computed(()=>_.generateTitleStyle(o.conf.options));return(d,i)=>{const a=S.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(C.value)},e.toDisplayString(r.conf.caption||r.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.conf.data,(t,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"flex item"},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor,width:e.unref(n).labelWidth+"px"})},e.toDisplayString(t.name),5),e.createElementVNode("div",k,[e.createVNode(a,{percentage:t.percent,"text-inside":!0,style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:t.color,"stroke-width":e.unref(n).barWidth},null,8,["percentage","style","color","stroke-width"])]),e.createElementVNode("div",{class:"value",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(t.value),5)]))),128))]),e.renderSlot(d.$slots,"default",{},void 0,!0)],4)}}})),W=M._export_sfc(D,[["__scopeId","data-v-22bac22c"]]);exports.default=W;
|
|
1
|
+
"use strict";var m=Object.defineProperty,h=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var f=(r,o,l)=>o in r?m(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l,g=(r,o)=>{for(var l in o||(o={}))y.call(o,l)&&f(r,l,o[l]);if(p)for(var l of p(o))b.call(o,l)&&f(r,l,o[l]);return r},L=(r,o)=>h(r,v(o));var x=(r,o,l)=>new Promise((c,n)=>{var C=a=>{try{i(l.next(a))}catch(t){n(t)}},d=a=>{try{i(l.throw(a))}catch(t){n(t)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(C,d);i((l=l.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),w=require("./BaseComponent-BabOc6Kc.cjs"),M=require("./index-Cm7hGuPj.cjs"),_=require("./titleStyle-NSnz6cUg.cjs"),O="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-col"},k={class:"flex-1"},E={DEFAULT_ICON:O,ACTIVE_ICON:T,NAME_CN:"条形进度",NAME_EN:"Progress Bar",ORDER:2,PLATFORM:["pc","screen","mobile"]},V={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,labelWidth:48,barWidth:16,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},z=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],Z=["name","fv","object_id","color","maxType","max"],N=["mosaic"],A={useAlias:!1,multiObject:!1,source:"mosaic"},F={DEFAULT:E,OPTIONS:V,DATA:z,PARAMS:Z,SOURCE:N,COMMON:A},D=e.defineComponent(L(g({},F),{__name:"progressBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const o=r;class l extends w.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",80),barWidth:this.getOptionValue("barWidth",16),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])})}setHistoryData(i){if(!i)return;const{data:a}=this.props.conf;!Array.isArray(a)||!a.length||a.forEach((t,s)=>{var u;t.value=(u=i[s].data[0])!=null?u:0,t.percent=t.value/t.max*100})}setSocketData(i){if(!i)return;const{data:a}=this.props.conf;a.forEach(t=>{t.value=this.extractDataValue(i,t.fv)||0;const s=t.maxType==="value"?t.max:this.extractDataValue(i,t.max)||0;t.percent=s==0?0:Number((t.value/s*100).toFixed(2))})}}const c=new l(o,"progressBar");c.setupLifecycle();const n=c.getStyle(),C=e.computed(()=>_.generateTitleStyle(o.conf.options));return(d,i)=>{const a=S.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(C.value)},e.toDisplayString(r.conf.caption||r.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.conf.data,(t,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"flex item"},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor,width:e.unref(n).labelWidth+"px"})},e.toDisplayString(t.name),5),e.createElementVNode("div",k,[e.createVNode(a,{percentage:t.percent,"text-inside":!0,style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:t.color,"stroke-width":e.unref(n).barWidth},null,8,["percentage","style","color","stroke-width"])]),e.createElementVNode("div",{class:"value",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(t.value),5)]))),128))]),e.renderSlot(d.$slots,"default",{},void 0,!0)],4)}}})),W=M._export_sfc(D,[["__scopeId","data-v-22bac22c"]]);exports.default=W;
|
|
@@ -30,8 +30,8 @@ import { ElProgress as T } from "element-plus/es";
|
|
|
30
30
|
import "element-plus/es/components/base/style/css";
|
|
31
31
|
import "element-plus/es/components/progress/style/css";
|
|
32
32
|
import { defineComponent as B, computed as Z, openBlock as L, createElementBlock as g, normalizeStyle as c, unref as s, createElementVNode as d, toDisplayString as x, Fragment as k, renderList as V, createVNode as z, renderSlot as A } from "vue";
|
|
33
|
-
import { B as E } from "./BaseComponent-
|
|
34
|
-
import { _ as F } from "./index-
|
|
33
|
+
import { B as E } from "./BaseComponent-7Sa7XOg-.js";
|
|
34
|
+
import { _ as F } from "./index-DUL649KZ.js";
|
|
35
35
|
import { g as N } from "./titleStyle-BT5GlpAb.js";
|
|
36
36
|
const W = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", D = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", P = { class: "mix-body flex flex-col" }, j = { class: "flex-1" }, R = {
|
|
37
37
|
DEFAULT_ICON: W,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var b=Object.defineProperty,S=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var v=(a,l,r)=>l in a?b(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r,x=(a,l)=>{for(var r in l||(l={}))k.call(l,r)&&v(a,r,l[r]);if(m)for(var r of m(l))N.call(l,r)&&v(a,r,l[r]);return a},y=(a,l)=>S(a,w(l));var h=(a,l,r)=>new Promise((d,n)=>{var g=s=>{try{p(r.next(s))}catch(c){n(c)}},f=s=>{try{p(r.throw(s))}catch(c){n(c)}},p=s=>s.done?d(s.value):Promise.resolve(s.value).then(g,f);p((r=r.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),V=require("./BaseComponent-9njJjeix.cjs"),_=require("./index-Bo49zvKb.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",E="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-wrap"},M={DEFAULT_ICON:T,ACTIVE_ICON:E,NAME_CN:"环形进度",NAME_EN:"Progress Circle",ORDER:3,PLATFORM:["pc","screen","mobile"]},A={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,barWidth:16,diameter:70,position:{value:"outer",type:"radio",option:[{value:"outer",label:"component.gauge.outer"},{value:"inner",label:"component.gauge.inner"}],label:"component.gauge.position"},type:{value:"value",type:"radio",option:[{value:"value",label:"component.gauge.value"},{value:"rate",label:"component.gauge.rate"}],label:"component.gauge.type"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},D=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],F=["name","fv","object_id","color","maxType","max"],L=["mosaic"],P={useAlias:!1,multiObject:!1,source:"mosaic"},j={DEFAULT:M,OPTIONS:A,DATA:D,PARAMS:F,SOURCE:L,COMMON:P},Z=e.defineComponent(y(x({},j),{__name:"progressCircle",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){const l=a;class r extends V.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",16),diameter:this.getOptionValue("diameter",70),position:this.getOptionValue("position","outer"),type:this.getOptionValue("type","value"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return h(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])})}setHistoryData(t){if(!t)return;const{data:i}=this.props.conf;!Array.isArray(i)||!i.length||i.forEach((o,u)=>{var C;o.value=(C=t[u].data[0])!=null?C:0,o.percent=o.value/o.max*100})}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.forEach(o=>{o.value=this.extractDataValue(t,o.fv)||0;const u=o.maxType==="value"?o.max:this.extractDataValue(t,o.max)||0;o.percent=u==0?0:Number((o.value/u*100).toFixed(2))})}}const d=new r(l,"progressCircle");d.setupLifecycle();const n=d.getStyle(),g=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.diameter,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>0?t:70}),f=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.barWidth,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>=0?t:16}),p=e.computed(()=>z.generateTitleStyle(l.conf.options)),s=(c,t)=>n.value.type==="value"?t==null?void 0:t.value:c+"%";return(c,t)=>{const i=O.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(p.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(o,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"circle-item"},[e.createElementVNode("div",null,[e.createVNode(i,{percentage:o.percent,type:"circle",style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:o.color,"stroke-width":f.value,width:g.value},{default:e.withCtx(({percentage:C})=>[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(s(C,o)),5),e.unref(n).position==="inner"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mt-1.5",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)]),_:2},1032,["percentage","style","color","stroke-width","width"]),e.unref(n).position==="outer"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)])]))),128))]),e.renderSlot(c.$slots,"default",{},void 0,!0)],4)}}})),q=_._export_sfc(Z,[["__scopeId","data-v-0f05a5f9"]]);exports.default=q;
|
|
1
|
+
"use strict";var b=Object.defineProperty,S=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var v=(a,l,r)=>l in a?b(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r,x=(a,l)=>{for(var r in l||(l={}))k.call(l,r)&&v(a,r,l[r]);if(m)for(var r of m(l))N.call(l,r)&&v(a,r,l[r]);return a},y=(a,l)=>S(a,w(l));var h=(a,l,r)=>new Promise((d,n)=>{var g=s=>{try{p(r.next(s))}catch(c){n(c)}},f=s=>{try{p(r.throw(s))}catch(c){n(c)}},p=s=>s.done?d(s.value):Promise.resolve(s.value).then(g,f);p((r=r.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),V=require("./BaseComponent-BabOc6Kc.cjs"),_=require("./index-Cm7hGuPj.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",E="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-wrap"},M={DEFAULT_ICON:T,ACTIVE_ICON:E,NAME_CN:"环形进度",NAME_EN:"Progress Circle",ORDER:3,PLATFORM:["pc","screen","mobile"]},A={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,barWidth:16,diameter:70,position:{value:"outer",type:"radio",option:[{value:"outer",label:"component.gauge.outer"},{value:"inner",label:"component.gauge.inner"}],label:"component.gauge.position"},type:{value:"value",type:"radio",option:[{value:"value",label:"component.gauge.value"},{value:"rate",label:"component.gauge.rate"}],label:"component.gauge.type"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},D=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],F=["name","fv","object_id","color","maxType","max"],L=["mosaic"],P={useAlias:!1,multiObject:!1,source:"mosaic"},j={DEFAULT:M,OPTIONS:A,DATA:D,PARAMS:F,SOURCE:L,COMMON:P},Z=e.defineComponent(y(x({},j),{__name:"progressCircle",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){const l=a;class r extends V.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",16),diameter:this.getOptionValue("diameter",70),position:this.getOptionValue("position","outer"),type:this.getOptionValue("type","value"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return h(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])})}setHistoryData(t){if(!t)return;const{data:i}=this.props.conf;!Array.isArray(i)||!i.length||i.forEach((o,u)=>{var C;o.value=(C=t[u].data[0])!=null?C:0,o.percent=o.value/o.max*100})}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.forEach(o=>{o.value=this.extractDataValue(t,o.fv)||0;const u=o.maxType==="value"?o.max:this.extractDataValue(t,o.max)||0;o.percent=u==0?0:Number((o.value/u*100).toFixed(2))})}}const d=new r(l,"progressCircle");d.setupLifecycle();const n=d.getStyle(),g=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.diameter,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>0?t:70}),f=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.barWidth,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>=0?t:16}),p=e.computed(()=>z.generateTitleStyle(l.conf.options)),s=(c,t)=>n.value.type==="value"?t==null?void 0:t.value:c+"%";return(c,t)=>{const i=O.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(p.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(o,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"circle-item"},[e.createElementVNode("div",null,[e.createVNode(i,{percentage:o.percent,type:"circle",style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:o.color,"stroke-width":f.value,width:g.value},{default:e.withCtx(({percentage:C})=>[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(s(C,o)),5),e.unref(n).position==="inner"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mt-1.5",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)]),_:2},1032,["percentage","style","color","stroke-width","width"]),e.unref(n).position==="outer"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)])]))),128))]),e.renderSlot(c.$slots,"default",{},void 0,!0)],4)}}})),q=_._export_sfc(Z,[["__scopeId","data-v-0f05a5f9"]]);exports.default=q;
|
|
@@ -30,8 +30,8 @@ import { ElProgress as E } from "element-plus/es";
|
|
|
30
30
|
import "element-plus/es/components/base/style/css";
|
|
31
31
|
import "element-plus/es/components/progress/style/css";
|
|
32
32
|
import { defineComponent as F, computed as b, openBlock as C, createElementBlock as g, normalizeStyle as u, unref as s, createElementVNode as x, toDisplayString as v, Fragment as B, renderList as D, createVNode as L, withCtx as P, createCommentVNode as T, renderSlot as Z } from "vue";
|
|
33
|
-
import { B as j } from "./BaseComponent-
|
|
34
|
-
import { _ as W } from "./index-
|
|
33
|
+
import { B as j } from "./BaseComponent-7Sa7XOg-.js";
|
|
34
|
+
import { _ as W } from "./index-DUL649KZ.js";
|
|
35
35
|
import { g as R } from "./titleStyle-BT5GlpAb.js";
|
|
36
36
|
const H = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", I = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", U = { class: "mix-body flex flex-wrap" }, $ = {
|
|
37
37
|
DEFAULT_ICON: H,
|