mixdashboards 1.0.39 → 1.0.40
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/{EChartComponentBase-BaQpBzVC.cjs → EChartComponentBase-BTqBoBn8.cjs} +1 -1
- package/dist/{EChartComponentBase-BQOhWkz2.js → EChartComponentBase-GBbKjtlb.js} +1 -1
- package/dist/{UniverSheet-KlvmL1Yw.cjs → UniverSheet-B9dCqA-W.cjs} +1 -1
- package/dist/{UniverSheet-MSHzUXq0.js → UniverSheet-DIkltx8i.js} +2 -2
- package/dist/{accelerationChart-B1HPMmd2.js → accelerationChart-B7grHeml.js} +3 -3
- package/dist/{accelerationChart-DZj2V2vD.cjs → accelerationChart-CvNoIyue.cjs} +1 -1
- package/dist/{actionItem-BYCPoQK7.cjs → actionItem-BKNfuprM.cjs} +1 -1
- package/dist/{actionItem-Bb2xiYlY.js → actionItem-BrTSUE0J.js} +3 -3
- package/dist/{alarmLevelChart-CCioESvL.js → alarmLevelChart-CmjyIsWH.js} +2 -2
- package/dist/{alarmLevelChart-Bb0mAbwQ.cjs → alarmLevelChart-DBqGvaXQ.cjs} +1 -1
- package/dist/{alertTable-CQwr8YYt.js → alertTable-C8beWyfK.js} +2 -2
- package/dist/{alertTable-oaX5eJC0.cjs → alertTable-CZ2ufzg9.cjs} +1 -1
- package/dist/{annualRainfallChart-C21jEMBe.js → annualRainfallChart-D3Pck4he.js} +2 -2
- package/dist/{annualRainfallChart-pO8q6aUJ.cjs → annualRainfallChart-D3YQwScd.cjs} +1 -1
- package/dist/{api-P_s372dW.cjs → api-C0okiLNC.cjs} +1 -1
- package/dist/{api-C0GhBpqd.js → api-DhQsrEGY.js} +4 -4
- package/dist/{aqi-DlY2r7OA.cjs → aqi-91QfhWTq.cjs} +1 -1
- package/dist/{aqi-iLwQH4rc.js → aqi-DnrkU6z-.js} +10 -10
- package/dist/{aqiIndass-DBeVSBdy.js → aqiIndass-CzA5PVzc.js} +15 -15
- package/dist/{aqiIndass-BaIVBfdC.cjs → aqiIndass-D2h-731s.cjs} +1 -1
- package/dist/arrayCard-C-V_01r7.cjs +1 -0
- package/dist/arrayCard-mprI5bQN.js +94 -0
- package/dist/{audio-CThzVIDU.cjs → audio-CdVI14ea.cjs} +1 -1
- package/dist/{audio-CAP4D-J2.js → audio-Xj66qRvv.js} +5 -5
- package/dist/{bar-BjR566__.cjs → bar-DQ6kQXTC.cjs} +1 -1
- package/dist/{bar-D8C06GO4.js → bar-ub8ERs66.js} +4 -4
- package/dist/{bmp-Cjizh2x6.js → bmp-bXQBGW16.js} +3 -3
- package/dist/{bmp-DsmTzyce.cjs → bmp-xuWyQ9_n.cjs} +1 -1
- package/dist/{box-qgu_67OD.cjs → box-C9s5aZjl.cjs} +1 -1
- package/dist/{box-DqewT3MF.js → box-Dx6V-j_J.js} +2 -2
- package/dist/{chartConfigPanel-DwAUq3pf.js → chartConfigPanel-Bd47rczI.js} +1 -1
- package/dist/{chartConfigPanel-BiQArCoQ.cjs → chartConfigPanel-CLbbeZzN.cjs} +1 -1
- package/dist/{circleBar-CO89T7kj.cjs → circleBar-BsmKIein.cjs} +1 -1
- package/dist/{circleBar-DGHDWQih.js → circleBar-D8I2e0Ov.js} +8 -8
- package/dist/{clock-CT8YXEU3.js → clock-7kw9zMJ0.js} +2 -2
- package/dist/{clock-32hGccm4.cjs → clock-bnKjuzzp.cjs} +1 -1
- package/dist/{clt-5bP_g1O-.cjs → clt-7F8jS0WQ.cjs} +1 -1
- package/dist/{clt-FfIEfGtn.js → clt-BGGFfbQ5.js} +3 -3
- package/dist/{cmc-dbuLkE8o.cjs → cmc-B2ja2VKe.cjs} +1 -1
- package/dist/{cmc-B2nQFZIS.js → cmc-DTiGNWEl.js} +3 -3
- package/dist/{cmp-QQlYcnqo.js → cmp-BXx9BxO1.js} +12 -12
- package/dist/{cmp-l3U9fIrz.cjs → cmp-D9MzneF0.cjs} +1 -1
- package/dist/{composite-DjhrBgG1.js → composite-C6PQB2RS.js} +8 -8
- package/dist/{composite-DlY2_x6P.cjs → composite-Dh9pPcWq.cjs} +1 -1
- package/dist/config-D3MEjLGn.js +9 -0
- package/dist/config-UTUPYJ45.cjs +1 -0
- package/dist/{controlList-BdF8xNAi.js → controlList-VioXoP_4.js} +3 -3
- package/dist/{controlList-De6PXdOc.cjs → controlList-uLJtFu1P.cjs} +1 -1
- package/dist/{controlRecordList-CKpAr1ON.js → controlRecordList-DY7qKQp1.js} +3 -3
- package/dist/{controlRecordList-u5a7chIX.cjs → controlRecordList-GtFLhcc9.cjs} +1 -1
- package/dist/{crd-BVAf41oX.js → crd-Bf8Rmcf5.js} +2 -2
- package/dist/{crd-BoaXQhFQ.cjs → crd-DdsOuCBh.cjs} +1 -1
- package/dist/{ctrBtn-ZPRYWE66.js → ctrBtn-BSzyUEkN.js} +4 -4
- package/dist/{ctrBtn-C9kQiqY1.cjs → ctrBtn-GKFfJlE2.cjs} +1 -1
- package/dist/{ctrSet-C87dxLfQ.js → ctrSet--1TrVZDc.js} +4 -4
- package/dist/{ctrSet-CNCrnLSs.cjs → ctrSet-CDr5scQE.cjs} +1 -1
- package/dist/{ctrSwitch-CkC_Axtp.js → ctrSwitch-ezGEAkLG.js} +4 -4
- package/dist/{ctrSwitch-CVEtbdfb.cjs → ctrSwitch-kHoyJDax.cjs} +1 -1
- package/dist/{dataManagement-n711sd1g.cjs → dataManagement-DxTZAlJy.cjs} +1 -1
- package/dist/{dataManagement-CjlNfeYq.js → dataManagement-oWoI1QPO.js} +2 -2
- package/dist/{dataReport-ByjswEqq.js → dataReport-BATqcXj4.js} +2 -2
- package/dist/{dataReport-BsVjW3p7.cjs → dataReport-Dygq1jQV.cjs} +1 -1
- package/dist/{dataTable-K7j4fhnq.cjs → dataTable-CotUzlhz.cjs} +1 -1
- package/dist/{dataTable-DX500R1i.js → dataTable-DIKwnInT.js} +1 -1
- package/dist/{datetime-DVbJtALf.js → datetime-CK042aN0.js} +2 -2
- package/dist/{datetime-DYXWKrXI.cjs → datetime-DLASaAKw.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-CQUE05cK.js → deepClusterSlipSurface-C52_bDho.js} +6 -6
- package/dist/{deepClusterSlipSurface-B7nkEM9A.cjs → deepClusterSlipSurface-D8v4xJGF.cjs} +1 -1
- package/dist/{deepDataMatrix-DHZA0IAm.cjs → deepDataMatrix-C-NrtGtk.cjs} +1 -1
- package/dist/{deepDataMatrix-ai5rB6ET.js → deepDataMatrix-CdB1ZO5Q.js} +2 -2
- package/dist/{deepDisplacement3D-BsUzvbQb.js → deepDisplacement3D-C3Salw1w.js} +3 -3
- package/dist/{deepDisplacement3D-BFqKqSYg.cjs → deepDisplacement3D-CzM-wm4q.cjs} +1 -1
- package/dist/{deepDisplacementChart-Ba67v6um.cjs → deepDisplacementChart-BqZ4nUgg.cjs} +1 -1
- package/dist/{deepDisplacementChart-2JZNrhrw.cjs → deepDisplacementChart-ByIJTYX6.cjs} +1 -1
- package/dist/{deepDisplacementChart-igl4rW1K.js → deepDisplacementChart-GcH8IGA4.js} +2 -2
- package/dist/{deepDisplacementChart-BCIuCMdK.js → deepDisplacementChart-ndHgH60B.js} +4 -4
- package/dist/{deepDisplacementView-BedWJsx7.js → deepDisplacementView-Bo_pmf0R.js} +1 -1
- package/dist/{deepDisplacementView-wQxyKzB-.cjs → deepDisplacementView-Bq_G0GlS.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-DLeb9jKp.js → deepNodeTemperatureChart-CXgft_WM.js} +6 -6
- package/dist/{deepNodeTemperatureChart-albL8hKa.cjs → deepNodeTemperatureChart-Dsl1Zm8T.cjs} +1 -1
- package/dist/{deepTangentAngleChart-C6xOiITk.js → deepTangentAngleChart-D-WoGKz7.js} +7 -7
- package/dist/{deepTangentAngleChart-DukevXaM.cjs → deepTangentAngleChart-iLt3bK8f.cjs} +1 -1
- package/dist/{deepTemperatureField-B-y94GPV.js → deepTemperatureField-BFB8bQde.js} +7 -7
- package/dist/{deepTemperatureField-De4xKoHw.cjs → deepTemperatureField-DnpuZuD8.cjs} +1 -1
- package/dist/{deepTrendChart-MmuYSXtu.cjs → deepTrendChart-BghE13XG.cjs} +1 -1
- package/dist/{deepTrendChart-DCkV2HNv.js → deepTrendChart-E-mAzsST.js} +6 -6
- package/dist/{deviceOnlineStatus-CFuCTx7_.js → deviceOnlineStatus-CkZijkjC.js} +2 -2
- package/dist/{deviceOnlineStatus-B5cCjhNA.cjs → deviceOnlineStatus-TQ-Fv8ye.cjs} +1 -1
- package/dist/{deviceStatus-DsEtKiGo.cjs → deviceStatus-BkKc9wqU.cjs} +1 -1
- package/dist/{deviceStatus-B2ibBDSi.js → deviceStatus-BvJr98D0.js} +2 -2
- package/dist/{displacementDataTable-BDqG1IvI.js → displacementDataTable-BJ5S7te1.js} +2 -2
- package/dist/{displacementDataTable-oLnUdafv.cjs → displacementDataTable-DJUK3mBu.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-CBhPwZhe.cjs → displacementTrajectoryChart-C2estBCm.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-Crf55oKi.js → displacementTrajectoryChart-DGS9Mn7o.js} +3 -3
- package/dist/{displacementTrendChart-CWihCuIJ.cjs → displacementTrendChart-CgsIcHCK.cjs} +1 -1
- package/dist/{displacementTrendChart-10n_lC9j.js → displacementTrendChart-Ddgpsnta.js} +2 -2
- package/dist/{dxf-D8zHpz5g.js → dxf-B0EL1hyB.js} +5 -5
- package/dist/{dxf-DDh_DcQy.cjs → dxf-DbxtgQWv.cjs} +1 -1
- package/dist/{dzc-DLCdTCwW.js → dzc-ACr2bZGl.js} +10 -10
- package/dist/{dzc-uNTDJqpi.cjs → dzc-Bdm2nr1F.cjs} +1 -1
- package/dist/{arrayCard-DNNUEPvW.js → ele-arrayCard-icon-CAk9ojr4.js} +3 -91
- package/dist/ele-arrayCard-icon-QOabvV0y.cjs +1 -0
- package/dist/{element-resize-detector-Bo5uDQAu.cjs → element-resize-detector-BlMXyWIR.cjs} +1 -1
- package/dist/{element-resize-detector-DJcsrJ8s.js → element-resize-detector-DeMhGbNi.js} +4 -4
- package/dist/{evn-YwCALVXj.js → evn-D0llPvjK.js} +2 -2
- package/dist/{evn-DuL5oVRl.cjs → evn-Moewbl2h.cjs} +1 -1
- package/dist/{evolutionChart-4noZSdLX.js → evolutionChart-Cz_GOcB8.js} +3 -3
- package/dist/{evolutionChart-AeL67MAt.cjs → evolutionChart-DBwL00ZJ.cjs} +1 -1
- package/dist/{fileViewer-bsrjlJkC.cjs → fileViewer-BtjOAdM9.cjs} +1 -1
- package/dist/{fileViewer-DiH3PM0r.js → fileViewer-D-WNR3vF.js} +5 -5
- package/dist/{filterBar-Ct1BFhrS.cjs → filterBar-4Q9XSiAY.cjs} +1 -1
- package/dist/{filterBar-CWEguwYc.js → filterBar-DLYmU350.js} +2 -2
- package/dist/{fireCombustionCurve-DYPC4zKJ.js → fireCombustionCurve-BU3pplHd.js} +2 -2
- package/dist/{fireCombustionCurve-DyiQn-WA.cjs → fireCombustionCurve-CWggQsw1.cjs} +1 -1
- package/dist/{fireFilterBar-Bdm2ljuO.cjs → fireFilterBar-EKwzMAFp.cjs} +1 -1
- package/dist/{fireFilterBar-DGHPNTwF.js → fireFilterBar-ROtoXZex.js} +2 -2
- package/dist/{gag-HiNaL81R.cjs → gag-CvMEVCbE.cjs} +1 -1
- package/dist/{gag-kvkKzJuO.js → gag-D8mNPZnH.js} +5 -5
- package/dist/gasStationList-CWg8IYCo.cjs +1 -0
- package/dist/gasStationList-qVKS-fgC.js +984 -0
- package/dist/{glbModel-DtBI72ap.cjs → glbModel-CQBEujd2.cjs} +1 -1
- package/dist/{glbModel-CUz6CyVF.js → glbModel-U_yKQZWm.js} +2 -2
- package/dist/{gnssFilterBar-TBtirXIB.js → gnssFilterBar-o7zpW7jS.js} +2 -2
- package/dist/{gnssFilterBar-BQgY5x1W.cjs → gnssFilterBar-pvMsIjFy.cjs} +1 -1
- package/dist/{gnssHistoryTable-U8O7nyO7.js → gnssHistoryTable-BYg9jtl5.js} +3 -3
- package/dist/{gnssHistoryTable-D1ZLJOgh.cjs → gnssHistoryTable-Ddcw3-NB.cjs} +1 -1
- package/dist/{gnssMapView-42zmAd9q.cjs → gnssMapView--c2UXuOb.cjs} +1 -1
- package/dist/{gnssMapView-CaBfWeT1.js → gnssMapView-DMcq2u2c.js} +2 -2
- package/dist/{gnssTimeSeriesChart-CV2w_Aik.cjs → gnssTimeSeriesChart-984dcBPA.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-BrXYvuh6.js → gnssTimeSeriesChart-BtUSps0z.js} +4 -4
- package/dist/{gnssXYTrajectory-BmzSYjQ_.cjs → gnssXYTrajectory-D9JmAqC0.cjs} +1 -1
- package/dist/{gnssXYTrajectory-D2DoYnze.js → gnssXYTrajectory-DvIpI-GX.js} +3 -3
- package/dist/{grd-DW8cSFVR.cjs → grd-Cb8vd52d.cjs} +1 -1
- package/dist/{grd-B0GUjLm9.js → grd-DcxFaMyv.js} +3 -3
- package/dist/{grdIndass-DduUKZJm.js → grdIndass-BPLTUWIc.js} +3 -3
- package/dist/{grdIndass-BeBXVsos.cjs → grdIndass-FkNJ9pl6.cjs} +1 -1
- package/dist/{grg-CeX0pirQ.js → grg-Baot_Pdv.js} +6 -6
- package/dist/{grg-fnpcXtju.cjs → grg-CoDiLjcl.cjs} +1 -1
- package/dist/{gridview-DpABhCIw.cjs → gridview-BwDeg0tI.cjs} +1 -1
- package/dist/{gridview-BPwWXza9.js → gridview-DN8V84hl.js} +2 -2
- package/dist/{groupCard-De1E15mW.js → groupCard-D5wLscZo.js} +2 -2
- package/dist/{groupCard-WNE6gAAl.cjs → groupCard-DChtdioU.cjs} +1 -1
- package/dist/{headerBar-CZ3qcLHo.js → headerBar-DLvSZsMl.js} +3 -3
- package/dist/{headerBar-Qi1EXrr6.cjs → headerBar-m57S9WlE.cjs} +1 -1
- package/dist/{history-DAmBl4_5.cjs → history-C4gipwnp.cjs} +1 -1
- package/dist/{history-BkZhlpdY.js → history-DN0IVkYL.js} +3 -3
- package/dist/index-EnNA0nIi.cjs +582 -0
- package/dist/{index-kShjySl9.js → index-zPaMBZk-.js} +1047 -1065
- package/dist/{insarDeformChart-CnuSL1d9.js → insarDeformChart-DZl03mOe.js} +2 -2
- package/dist/{insarDeformChart-BGr2xe7w.cjs → insarDeformChart-DkiLrhem.cjs} +1 -1
- package/dist/{insarImageViewer-DRgGdQmN.cjs → insarImageViewer-ZcqHEEZr.cjs} +1 -1
- package/dist/{insarImageViewer-EmVThmVQ.js → insarImageViewer-kqYV5A1S.js} +2 -2
- package/dist/{kds-DTYWOq4K.cjs → kds-Ba0yzyNm.cjs} +1 -1
- package/dist/{kds-CpIQFgeY.js → kds-BbyaSB3L.js} +10 -10
- package/dist/{layerTabs-BATcBkTA.cjs → layerTabs-D2M3EVxt.cjs} +1 -1
- package/dist/{layerTabs-uze6K91A.js → layerTabs-SRHmamTF.js} +2 -2
- package/dist/{lin-Ba6fHkYf.cjs → lin-0U8FQZHZ.cjs} +1 -1
- package/dist/{lin-DU_EuPRg.js → lin-DxnORLL5.js} +8 -8
- package/dist/{linIndass-urYe5inp.cjs → linIndass-CX9Z02-e.cjs} +1 -1
- package/dist/{linIndass-XHKElG7L.js → linIndass-DXtxVxcr.js} +7 -7
- package/dist/{lst-C7aee1cU.js → lst-BKALUOuy.js} +2 -2
- package/dist/{lst-CpmoEQDY.cjs → lst-Bk2nvLuQ.cjs} +1 -1
- package/dist/{manualEntry-D9m_WPw3.js → manualEntry-DHH0Yrr3.js} +2 -2
- package/dist/{manualEntry-CJPiO5nh.cjs → manualEntry-DRK0QRnb.cjs} +1 -1
- package/dist/{mapBackground-6g_71Fwa.js → mapBackground-BXj8T-bG.js} +2 -2
- package/dist/{mapBackground-CF_TqNBy.cjs → mapBackground-DTuXORjO.cjs} +1 -1
- package/dist/{mappingList-CR55Tq4t.cjs → mappingList-M9OukdCu.cjs} +1 -1
- package/dist/{mappingList-luT5YE0d.js → mappingList-N-lL8mnV.js} +3 -3
- package/dist/{markdownViewer-D1hDk2Y7.cjs → markdownViewer-CcLL2hzV.cjs} +1 -1
- package/dist/{markdownViewer-CnguoUr8.js → markdownViewer-CgabPFUn.js} +5 -5
- package/dist/{mix-control-modal-CHiX3hQs.js → mix-control-modal-DRL4otx8.js} +3 -3
- package/dist/{mix-control-modal-BDHAB4Tw.cjs → mix-control-modal-Lhzopftt.cjs} +1 -1
- package/dist/{mixDataPermission-BaqV0Z6N.js → mixDataPermission-B5fpqFgm.js} +4 -3
- package/dist/{mixDataPermission-BTA1jNd1.cjs → mixDataPermission-CWt9H_Ib.cjs} +1 -1
- package/dist/{mixGrid-3BqQCvg8.cjs → mixGrid-DTwH6At3.cjs} +1 -1
- package/dist/{mixGrid-C0eEvwPy.js → mixGrid-wE427LB0.js} +3 -3
- package/dist/{mixMap-7upgYwWk.js → mixMap-Bo7_Womf.js} +3 -3
- package/dist/{mixMap-Bw-We4Cm.cjs → mixMap-DKDtSARk.cjs} +1 -1
- package/dist/{mixModel-BqE_Kd4c.js → mixModel-CdMcRi5k.js} +10 -10
- package/dist/{mixModel-CgV4XptM.cjs → mixModel-Dufgy8XG.cjs} +1 -1
- package/dist/{mixPie-9LfMCTQV.cjs → mixPie-BoUARcVT.cjs} +1 -1
- package/dist/{mixPie-B-HeglUn.js → mixPie-Dr9Toi5T.js} +7 -7
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-Cfw3rzT5.js → mjpegCamera-BBqBIpmz.js} +2 -2
- package/dist/{mjpegCamera-nxKfhobY.cjs → mjpegCamera-C20yRxub.cjs} +1 -1
- package/dist/{monitorAlert-Bt0baNh4.cjs → monitorAlert-BgRCm9Vs.cjs} +1 -1
- package/dist/{monitorAlert-Bg5vzzyG.js → monitorAlert-DVfJ6uNR.js} +2 -2
- package/dist/{monitorData-CzPVIk_4.cjs → monitorData-Dz_cHcBR.cjs} +1 -1
- package/dist/{monitorData-BvAMeOrp.js → monitorData-zfcYQmc8.js} +3 -3
- package/dist/{monitorSpeedChart-0bDuU3Kj.js → monitorSpeedChart-DYV_S1um.js} +1 -1
- package/dist/{monitorSpeedChart-C52QjA5K.cjs → monitorSpeedChart-jAf_Agnm.cjs} +1 -1
- package/dist/{mxa-eLAgZPMC.cjs → mxa-DGkX2ysU.cjs} +1 -1
- package/dist/{mxa-BW80xKCc.js → mxa-mziDHRQU.js} +7 -7
- package/dist/myValue-6J41vLFg.cjs +1 -0
- package/dist/myValue-s0IC6eg0.js +149 -0
- package/dist/myValueList-Dl-JfGq6.cjs +1 -0
- package/dist/myValueList-cOT1nYnO.js +451 -0
- package/dist/{objectList-Cf9GMyXN.js → objectList-DGBiB_w6.js} +100 -95
- package/dist/objectList-DK5_HGK_.cjs +1 -0
- package/dist/photo-CBfgcj6v.cjs +1 -0
- package/dist/photo-C_1tDAZa.js +342 -0
- package/dist/{pie-DxoBrm0D.cjs → pie-DAEzlPEp.cjs} +1 -1
- package/dist/{pie-BDLg-Rls.js → pie-p9CvjJ_m.js} +7 -7
- package/dist/{pressBtn-t0g4vk7s.cjs → pressBtn-DMMLEAFZ.cjs} +1 -1
- package/dist/{pressBtn-CXG1eSWC.js → pressBtn-DlhDUUdy.js} +4 -4
- package/dist/{progressBar-BXaFKSCq.js → progressBar-C3K0DYlI.js} +2 -2
- package/dist/{progressBar-CJEWkZ42.cjs → progressBar-ZksfXpzu.cjs} +1 -1
- package/dist/{progressCircle-DpOI5D5z.js → progressCircle-BBLr8loP.js} +2 -2
- package/dist/{progressCircle-uQ7vaMKM.cjs → progressCircle-eFwDltuC.cjs} +1 -1
- package/dist/{qrcode-CX8aymYZ.js → qrcode-DgwPQO8V.js} +297 -298
- package/dist/qrcode-F7MtRi3K.cjs +1 -0
- package/dist/{raceBar-Cv0-0ogd.cjs → raceBar-Cp-9uqpX.cjs} +1 -1
- package/dist/{raceBar-DFaH342G.js → raceBar-CyW79eH-.js} +7 -7
- package/dist/{rad-CFswUTwi.cjs → rad-CLvi3eWj.cjs} +1 -1
- package/dist/{rad-NS2G_nMg.js → rad-CbFS-xjy.js} +7 -7
- package/dist/{rainfallFilterBar-D_Ye_NeB.js → rainfallFilterBar-B0G4jUib.js} +2 -2
- package/dist/{rainfallFilterBar-BI45QvJm.cjs → rainfallFilterBar-DldKT-I5.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BHWqX47Q.js → rainfallTimeCurve-BlyxLbcV.js} +3 -3
- package/dist/{rainfallTimeCurve-Ke1JvSWq.cjs → rainfallTimeCurve-C5r3fOW8.cjs} +1 -1
- package/dist/{rangeLin-D6VZ2U3C.cjs → rangeLin-B2vKFJHK.cjs} +1 -1
- package/dist/{rangeLin-GMYEgLeP.js → rangeLin-CLAcLUai.js} +7 -7
- package/dist/{request-Bn100qAJ.cjs → request-4n94CBXg.cjs} +1 -1
- package/dist/{request-BD0x5Hkt.js → request-DT13bnc0.js} +1 -1
- package/dist/{retainer1-h-Whr2c9.js → retainer1-Dy2VHVgc.js} +3 -3
- package/dist/{retainer1-D2XmjXYH.cjs → retainer1-EFUFSxMm.cjs} +1 -1
- package/dist/{retainer2-ByQdiRjq.js → retainer2-3ITxlgwH.js} +3 -3
- package/dist/{retainer2-cF-trL2g.cjs → retainer2-BKVJLvBo.cjs} +1 -1
- package/dist/{riskRegionTable-CQxAkG7k.js → riskRegionTable-BQ88G7F7.js} +2 -2
- package/dist/{riskRegionTable-cKnxra4_.cjs → riskRegionTable-C2GOEi0n.cjs} +1 -1
- package/dist/{sankey-Bk1IcVJQ.js → sankey-ehJmtfKp.js} +9 -9
- package/dist/{sankey-MRirEgU0.cjs → sankey-utV5RADH.cjs} +1 -1
- package/dist/{scd-BDRpzmsa.js → scd-D-Y1EEoF.js} +2 -2
- package/dist/{scd-J-mN3eI5.cjs → scd-Nx15OHeb.cjs} +1 -1
- package/dist/{sideMenu-l8X2E00H.cjs → sideMenu-Ci3pDMFm.cjs} +1 -1
- package/dist/{sideMenu-BgTMtnMq.js → sideMenu-D6MgOAkf.js} +2 -2
- package/dist/{slopeStability-BPf7m0fJ.cjs → slopeStability-B9WvyL3-.cjs} +1 -1
- package/dist/{slopeStability-C5RqZ1im.js → slopeStability-Bu2a83d7.js} +3 -3
- package/dist/{speedCurve-C3pK-zZy.js → speedCurve-BR_xyp4X.js} +3 -3
- package/dist/{speedCurve-CluwNAZl.cjs → speedCurve-DrndMOKB.cjs} +1 -1
- package/dist/{staticLine-C6tGGXcN.cjs → staticLine-BLUdDtae.cjs} +1 -1
- package/dist/{staticLine-DXWOLj15.js → staticLine-DYQUjE_3.js} +7 -7
- package/dist/{store-DzDtVfSX.js → store-BpVoYd93.js} +2 -2
- package/dist/{store-BJW2NQkK.cjs → store-KXsdwyLp.cjs} +1 -1
- package/dist/{swiper-DGqDoUkX.cjs → swiper-53BGkj5I.cjs} +1 -1
- package/dist/{swiper-IMlGje3t.js → swiper-S8NYmcYS.js} +3 -3
- package/dist/{terminalConfigList-D6xDHsnb.cjs → terminalConfigList-DFDsxg1q.cjs} +1 -1
- package/dist/{terminalConfigList-SAyXi-BK.js → terminalConfigList-DaEpZiog.js} +3 -3
- package/dist/{terminalList-ml2C18MY.cjs → terminalList-BgNFp3E0.cjs} +1 -1
- package/dist/{terminalList-CjSHshiR.js → terminalList-mKVmYqJm.js} +3 -3
- package/dist/{textbox-BLV-SY8e.js → textbox-Bazh9LRC.js} +4 -4
- package/dist/{textbox-AQtCe25j.cjs → textbox-DAyhC67s.cjs} +1 -1
- package/dist/{timeQueryBar-BuKakMy8.cjs → timeQueryBar-2cbPr7zw.cjs} +1 -1
- package/dist/{timeQueryBar-BeMu_DYr.js → timeQueryBar-BnVnJk5K.js} +1 -1
- package/dist/{timeSeries-DP5iZKVM.js → timeSeries-BF-2qAA7.js} +4 -4
- package/dist/{timeSeries-DfGgFWiF.cjs → timeSeries-DEeo2zjY.cjs} +1 -1
- package/dist/{timeSeriesCurve-B0Mw6eNK.cjs → timeSeriesCurve-BMhNq3WC.cjs} +1 -1
- package/dist/{timeSeriesCurve-BSgtPqYw.js → timeSeriesCurve-CkCeP5mK.js} +3 -3
- package/dist/{toggleBtn-O2Y75Uen.js → toggleBtn-BnIia9MT.js} +7 -7
- package/dist/{toggleBtn-Dh64vVWo.cjs → toggleBtn-hg6nIH97.cjs} +1 -1
- package/dist/{trajectoryConfigPanel--C1h3tK6.js → trajectoryConfigPanel-CfnLHqWP.js} +1 -1
- package/dist/{trajectoryConfigPanel-P_Qa4omj.cjs → trajectoryConfigPanel-agVnGJJ6.cjs} +1 -1
- package/dist/{trajectoryScatter-VLrmImlq.js → trajectoryScatter-BBL5uJSS.js} +6 -6
- package/dist/{trajectoryScatter-BbpbgNb8.cjs → trajectoryScatter-BzFxJkJn.cjs} +1 -1
- package/dist/{universalConfigPanel-DBg76b4F.js → universalConfigPanel-BueS1CeL.js} +1 -1
- package/dist/{universalConfigPanel-C0lDSzOB.cjs → universalConfigPanel-Db87fd8H.cjs} +1 -1
- package/dist/{universalTable-DGK02ywi.js → universalTable-5QpYwmyj.js} +2 -2
- package/dist/{universalTable-Bzq9VqzA.cjs → universalTable-BXfm_1je.cjs} +1 -1
- package/dist/{video-DCzzaEmV.js → video-C75mXLnF.js} +5 -5
- package/dist/{video-CyRoSQf1.cjs → video-QWpkqafn.cjs} +1 -1
- package/dist/{videoMonitor-ByaQeIWR.js → videoMonitor-DSOQbTy9.js} +2 -2
- package/dist/{videoMonitor-BjD-ZFS0.cjs → videoMonitor-Dlvtlmf3.cjs} +1 -1
- package/dist/{vlu-h-9twmCr.js → vlu-BRrxfbLm.js} +2 -2
- package/dist/{vlu-CYZjYHaV.cjs → vlu-DqqX7UrQ.cjs} +1 -1
- package/dist/{weather-C_aC0XJ1.js → weather-B4twNcEf.js} +3 -3
- package/dist/{weather-B7B5E1EJ.cjs → weather-GNGvUFJc.cjs} +1 -1
- package/dist/{windLin-DPNzX7JN.cjs → windLin-DPr5J4_t.cjs} +1 -1
- package/dist/{windLin-B7V4NUV8.js → windLin-DSh910GU.js} +9 -9
- package/package.json +10 -9
- package/dist/arrayCard-OlVAAsZq.cjs +0 -1
- package/dist/config-BLSroAzs.cjs +0 -1
- package/dist/config-Cc2W4vke.js +0 -9
- package/dist/index-Mh5Dw2sd.cjs +0 -585
- package/dist/objectList-CpqQxG8L.cjs +0 -1
- package/dist/photo-BODEtaYh.cjs +0 -1
- package/dist/photo-BfLkWAo8.js +0 -256
- package/dist/qrcode-DHCRfp0M.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var bt=Object.defineProperty,vt=Object.defineProperties;var _t=Object.getOwnPropertyDescriptors;var je=Object.getOwnPropertySymbols;var Vt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable;var Re=(b,g,V)=>g in b?bt(b,g,{enumerable:!0,configurable:!0,writable:!0,value:V}):b[g]=V,U=(b,g)=>{for(var V in g||(g={}))Vt.call(g,V)&&Re(b,V,g[V]);if(je)for(var V of je(g))yt.call(g,V)&&Re(b,V,g[V]);return b},te=(b,g)=>vt(b,_t(g));var M=(b,g,V)=>new Promise((O,S)=>{var ae=B=>{try{w(V.next(B))}catch(H){S(H)}},X=B=>{try{w(V.throw(B))}catch(H){S(H)}},w=B=>B.done?O(B.value):Promise.resolve(B.value).then(ae,X);w((V=V.apply(b,g)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/empty/style/css");require("element-plus/es/components/collapse/style/css");require("element-plus/es/components/collapse-item/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/alert/style/css");require("element-plus/es/components/divider/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/switch/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),gt=require("./element-resize-detector-BlMXyWIR.cjs"),Me=require("./index-EnNA0nIi.cjs"),ht=require("./titleStyle-NSnz6cUg.cjs"),me=require("./config-UTUPYJ45.cjs"),k=require("element-plus"),wt=require("@element-plus/icons-vue"),q=require("./mixDataPermission-CWt9H_Ib.cjs"),le=require("./store-KXsdwyLp.cjs"),Pe=require("./ele-lst-icon-CrxnHZ-A.cjs"),fe=[{dataKey:"detailTab_baseinfo",label:"基础信息",defaultOn:!0},{dataKey:"detailTab_monitor",label:"监控",defaultOn:!1},{dataKey:"detailTab_history",label:"历程数据",defaultOn:!1},{dataKey:"detailTab_dashboard",label:"大屏脚本",defaultOn:!1},{dataKey:"detailTab_control",label:"控制记录",defaultOn:!1},{dataKey:"detailTab_child",label:"子对象",defaultOn:!1},{dataKey:"detailTab_terminal",label:"关联终端",defaultOn:!1},{dataKey:"detailTab_fv",label:"FV列表",defaultOn:!1},{dataKey:"detailTab_statistics",label:"统计项目",defaultOn:!1},{dataKey:"detailTab_statistics_result",label:"统计结果",defaultOn:!1},{dataKey:"detailTab_calculate",label:"计算任务",defaultOn:!1},{dataKey:"detailTab_calculate_result",label:"计算结果",defaultOn:!1},{dataKey:"detailTab_collect",label:"采集项目",defaultOn:!1},{dataKey:"detailTab_collect_record",label:"采集记录",defaultOn:!1},{dataKey:"detailTab_retainer",label:"历程项目",defaultOn:!1},{dataKey:"detailTab_retainer_record",label:"历程记录",defaultOn:!1},{dataKey:"detailTab_ai",label:"AI项目",defaultOn:!1},{dataKey:"detailTab_ai_result",label:"AI结果",defaultOn:!1},{dataKey:"detailTab_adaps",label:"特征检测项目",defaultOn:!1},{dataKey:"detailTab_adaps_result",label:"特征检测结果",defaultOn:!1},{dataKey:"detailTab_indass",label:"特征指标(Indass)",defaultOn:!1},{dataKey:"detailTab_data_for_record",label:"备档文件",defaultOn:!1}];function qe(){return Object.fromEntries(fe.map(b=>[b.dataKey,b.defaultOn]))}function kt(b){return b.replace(/^detailTab_/,"").replace(/_/g,"-")}const xt={class:"mix-body"},Nt={class:"toolbar"},Ct={class:"table-wrapper"},St={class:"pagination"},Bt={class:"context-menu"},Tt={class:"dialog-footer"},Et={class:"dialog-footer"},Dt={class:"view-detail-body"},At={key:1,class:"view-detail-layout"},Ot={class:"view-detail-tabs"},Lt=["onClick"],Ut={class:"view-detail-pane"},Ft={key:0,class:"view-detail-error"},Kt={class:"mix-detail-block"},jt=["src"],Rt={key:1,class:"mix-detail-title-sm"},Pt={key:2,class:"mix-detail-block"},Mt={key:1,class:"view-detail-stub"},qt={class:"stub-uid"},zt={DEFAULT_ICON:Pe.DEFAULT_ICON,ACTIVE_ICON:Pe.ACTIVE_ICON,NAME_CN:"对象列表",NAME_EN:"ObjectList",ORDER:1},It={bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"uid",label:"对象编号",width:180,visible:!0,useFv:!1},{key:"name",label:"对象名称",width:180,visible:!0,useFv:!1},{key:"alias",label:"对象别名",width:180,visible:!0,useFv:!1},{key:"model",label:"型号",width:160,visible:!0,useFv:!1},{key:"create_by_tpl",label:"创建方式",width:120,visible:!0,useFv:!1},{key:"customer_name",label:"客户名称",width:180,visible:!0,useFv:!1},{key:"terminal_list",label:"关联终端",width:180,visible:!0,useFv:!1},{key:"mapping_name",label:"映射表名称",width:180,visible:!0,useFv:!1},{key:"tag",label:"标签",width:120,visible:!0,useFv:!1},{key:"province",label:"省份",width:100,visible:!0,useFv:!1},{key:"city",label:"市/区",width:100,visible:!0,useFv:!1},{key:"description",label:"描述",width:150,visible:!0,useFv:!1},{key:"created",label:"创建时间",width:180,visible:!0,useFv:!1},{key:"last_modified",label:"更新时间",width:180,visible:!0,useFv:!1}]},pe=[te(U({name:"对象",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0},qe()),{addRealtimeData:!1,realtimeParams:[{name:"",fv:""}],alias:"对象别名",alias_visible:!0,model:"型号",model_visible:!0,create_by_tpl:"创建方式",create_by_tpl_visible:!0,customer_name:"客户名称",customer_name_visible:!0,terminal_list:"关联终端",terminal_list_visible:!0,mapping_name:"映射表名称",mapping_name_visible:!0,tag:"标签",tag_visible:!0,province:"省份",province_visible:!0,city:"市/区",city_visible:!0,description:"描述",description_visible:!0,created:"创建时间",created_visible:!0,last_modified:"更新时间",last_modified_visible:!0,textValueTransform:{mode:"numeric",numericRules:[{matchType:"value",matchValue:"",displayText:"",color:"#333333"}],rangeRules:[{op:"gt",boundary:"",displayText:"",color:"#333333"}]}})],$t=[{key:"showAddBtn",label:"添加对象按钮",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组",collapseIndentedChildren:!0,collapseExpandLabel:"展开查看详情",collapseCollapseLabel:"收起查看详情"},...fe.map(b=>({key:b.dataKey,label:b.label,type:"checkbox",group:"操作组",dependent:"showViewBtn",indent:!0})),{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"addRealtimeData",label:"添加实时数据",type:"checkbox"},{key:"realtimeParams",label:"实时数据参数",type:"array",fields:["name","fv"],dependent:"addRealtimeData"},{key:"alias",label:"对象别名",checkable:!0,checkboxKey:"alias_visible"},{key:"model",label:"型号",checkable:!0,checkboxKey:"model_visible"},{key:"create_by_tpl",label:"创建方式",checkable:!0,checkboxKey:"create_by_tpl_visible"},{key:"customer_name",label:"客户名称",checkable:!0,checkboxKey:"customer_name_visible"},{key:"terminal_list",label:"关联终端",checkable:!0,checkboxKey:"terminal_list_visible"},{key:"mapping_name",label:"映射表名称",checkable:!0,checkboxKey:"mapping_name_visible"},{key:"tag",label:"标签",checkable:!0,checkboxKey:"tag_visible"},{key:"province",label:"省份",checkable:!0,checkboxKey:"province_visible"},{key:"city",label:"市/区",checkable:!0,checkboxKey:"city_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"},{key:"last_modified",label:"更新时间",checkable:!0,checkboxKey:"last_modified_visible"}],Jt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Ht={},Yt=[{prop:"uid",label:"对象编号",width:180,visible:!0},{prop:"name",label:"对象名称",width:180,visible:!0},{prop:"alias",label:"对象别名",width:180,visible:!0},{prop:"model",label:"型号",width:160,visible:!0},{prop:"create_by_tpl",label:"创建方式",width:120,visible:!0},{prop:"customer_name",label:"客户名称",width:180,visible:!0},{prop:"terminal_list",label:"关联终端",width:180,visible:!0},{prop:"mapping_name",label:"映射表名称",width:180,visible:!0},{prop:"tag",label:"标签",width:120,visible:!0},{prop:"province",label:"省份",width:100,visible:!0},{prop:"city",label:"市/区",width:100,visible:!0},{prop:"description",label:"描述",width:150,visible:!0},{prop:"created",label:"创建时间",width:180,visible:!0},{prop:"last_modified",label:"更新时间",width:180,visible:!0}],Wt={DEFAULT:zt,OPTIONS:It,DATA:pe,PARAMS:$t,SOURCE:Jt,COMMON:Ht,COLUMNS_CONFIG:Yt},Gt=e.defineComponent(te(U({},Wt),{__name:"objectList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{default:"edit"},theme:{},objectList:{default:()=>[]},code:{default:""}},setup(b){const g=me.MIDDLE_PLATFORM_URL;function V(l){const t=q.action_mapping,i=l.split(".");return i.length===1?t[i[0]]:t[i[0]][i[1]]}function O(l,t={},i=!0){const o=U({},t);q.mergeMixDataPermission(l,o);const c=localStorage.getItem("globalApiUrl"),d=localStorage.getItem("globalApiToken"),y=window.location.href.includes("/preview");if(!!(c&&d&&y)){const _=V(l),D=U({block_mapping:_.block_mapping,action:_.action},o);return le.useCounterStore().changeLoading(!i),Me.apiProxy.post(D).catch(N=>{if(N.code===10018&&N.info&&N.info.includes("不存在的action和路由"))return console.warn(`[objectListApiPost] ApiProxy 不支持 action: ${_.action},回退到中台服务`),o.block_mapping=_.block_mapping,o.action=_.action,q.base.post(g,o);throw N}).finally(()=>{le.useCounterStore().changeLoading(!1)})}const h=V(l);return o.block_mapping=h.block_mapping,o.action=h.action,le.useCounterStore().changeLoading(!i),q.base.post(g,o).catch(_=>{if(q.mockManager.shouldUseMock(_))return console.warn(`⚠️ 服务不可用,使用 Mock 数据: ${h.action}`,_),q.mockManager.getMockData(h.action,o);throw _}).finally(()=>{le.useCounterStore().changeLoading(!1)})}const S=b;class ae extends gt.BaseComponent{getDataBool(t,i){var c,d;const o=(d=(c=this.props.conf)==null?void 0:c.data)==null?void 0:d[0];return o&&Object.prototype.hasOwnProperty.call(o,t)&&o[t]!==void 0?!!o[t]:this.getOptionValue(t,i)}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length)||this.props.conf.data.length===1&&this.props.conf.data[0].alias_visible===void 0)this.props.conf.data=JSON.parse(JSON.stringify(pe));else{const i=this.props.conf.data[0],o={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[d,y]of Object.entries(o))i[d]===void 0&&(i[d]=y);const c=qe();for(const[d,y]of Object.entries(c))i[d]===void 0&&(i[d]=y);i.textValueTransform===void 0&&(i.textValueTransform=JSON.parse(JSON.stringify(pe[0].textValueTransform)))}}}const X=new ae(S,"objectList");X.setupLifecycle();const w=X.getStyle(),B=e.computed(()=>ht.generateTitleStyle(S.conf.options)),H=e.computed(()=>{var o,c,d,y;const l=((c=(o=S.conf)==null?void 0:o.options)==null?void 0:c.columns)||[],t=((y=(d=S.conf)==null?void 0:d.data)==null?void 0:y[0])||{},i=Array.isArray(l)?l.map(m=>{const h=t[m.key],_=t[`${m.key}_visible`];return{prop:m.key,label:h!==void 0&&h!==""?h:m.label,width:m.width,visible:_!==void 0?_:m.visible}}):[];return t.addRealtimeData&&Array.isArray(t.realtimeParams)&&t.realtimeParams.forEach(m=>{m.name&&m.fv&&i.push({prop:m.fv,label:m.name,width:150,visible:!0})}),i}),x=e.reactive({current:1,pageSize:20,total:0}),Y=e.ref(""),z=e.ref("name"),W=e.ref(null),oe=e.ref([]),ie=e.ref(!1);function ze(){z.value==="created"?Y.value="":W.value=null}function Ie(){const l=[];if(z.value==="created"){const i=W.value;if(i&&i.length===2&&i[0]&&i[1]){const[o,c]=i;l.push(["created",">=",o<=c?o:c]),l.push(["created","<=",o<=c?c:o])}}else{const i=Y.value.trim();i&&l.push([z.value,"like",`%${i}%`])}const t={page_index:x.current,page_size:x.pageSize};return l.length&&(t.where_and=JSON.stringify(l)),t}function T(){return M(this,null,function*(){var l,t;ie.value=!0;try{const i=yield O("get_object_list",Ie(),!0),o=(l=i==null?void 0:i.result)!=null?l:i;let c=Array.isArray(o==null?void 0:o.data)?[...o.data]:Array.isArray(o)?[...o]:[];if((t=S.objectList)!=null&&t.length){const y=new Set(S.objectList.map(String));c=c.filter(m=>y.has(String(m.uid)))}oe.value=c;let d=o==null?void 0:o.total_records;typeof d!="number"&&(d=Array.isArray(o)?o.length:c.length),x.total=d,i&&i.code!==void 0&&i.code!==200&&k.ElMessage.warning(i.msg||i.info||"列表接口返回非成功状态")}catch(i){if(console.error(i),oe.value=[],x.total=0,q.mockManager.isServiceUnavailableError(i))k.ElMessage.warning("对象列表服务暂不可用(如 object 未在 Consul 注册),请检查后端");else{const o=i,c=o&&typeof o=="object"&&"isAxiosError"in o,d=o&&typeof o=="object"&&"code"in o&&("msg"in o||"info"in o);!c&&!d&&k.ElMessage.error("加载对象列表失败")}}finally{ie.value=!1}})}const $e=e.computed(()=>oe.value);function be(l){return l===!0||l===1||l==="1"}const I=e.ref(!1),ve=e.ref(0),_e=e.ref(0),E=e.ref(null),G=e.ref(!1),n=e.reactive({uid:"",name:"",alias:"",model:"",created:new Date().toLocaleString(),last_modified:new Date().toLocaleString(),description:"",customer_id:"",customer_name:"",customer_alias:"",terminal_list:"",mapping_id:"",mapping_name:"",tag:"",province:"",city:"",create_by_tpl:!1,tpl_uid:"",tpl_name:"",tpl_alias:""}),Ve=()=>{x.current=1,T()},Je=()=>{Y.value="",W.value=null,x.current=1,T()};function He(){x.current=1,T()}function Ye(){T()}e.watch(()=>{var l;return(l=S.objectList)==null?void 0:l.join(",")},()=>{x.current=1,T()});const We=(l,t)=>{l.preventDefault(),E.value=t,ve.value=l.clientY,_e.value=l.clientX,I.value=!0},$=e.ref(!1),Z=e.ref(!1),F=e.ref(""),p=e.ref(null),K=e.computed(()=>{var l,t;return((t=(l=S.conf)==null?void 0:l.data)==null?void 0:t[0])||{}}),Ge=e.computed(()=>{const l=new Set,t=K.value;if(t.addRealtimeData&&Array.isArray(t.realtimeParams))for(const i of t.realtimeParams)i!=null&&i.fv&&l.add(String(i.fv));return l}),ye=e.computed(()=>{const l=K.value;return!l.addRealtimeData||!Array.isArray(l.realtimeParams)?[]:l.realtimeParams.filter(t=>(t==null?void 0:t.name)&&(t==null?void 0:t.fv)).map(t=>({name:String(t.name),fv:String(t.fv)}))}),ge=e.computed(()=>{var l;return(l=K.value)==null?void 0:l.textValueTransform});function Qe(l){if(l==null||l==="")return!0;const t=String(l).trim();return!t||t==="未获取"}function he(l,t){if(!t)return null;if(t.mode==="numeric"){for(const i of t.numericRules||[])if(i.matchType==="unavailable"){if(Qe(l))return{text:i.displayText,color:i.color}}else if(String(l)===String(i.matchValue))return{text:i.displayText,color:i.color}}else{const i=typeof l=="number"?l:parseFloat(String(l).replace(/,/g,""));if(Number.isNaN(i))return null;for(const o of t.rangeRules||[]){const c=parseFloat(String(o.boundary));if(!Number.isNaN(c)){if(o.op==="gt"&&i>c)return{text:o.displayText,color:o.color};if(o.op==="lt"&&i<c)return{text:o.displayText,color:o.color}}}}return null}function we(l){return Ge.value.has(l)}function Xe(l,t){const i=l[t.prop];if(we(t.prop)){const o=he(i,ge.value);if(o)return o.text}return i==null?"":String(i)}function Ze(l,t){const i=l[t.prop];if(!we(t.prop))return{};const o=he(i,ge.value);return o!=null&&o.color?{color:o.color}:{}}const j=e.computed(()=>fe.filter(l=>K.value[l.dataKey]===!0).map(l=>te(U({},l),{tabKey:kt(l.dataKey)}))),J=e.ref("baseinfo"),et=e.computed(()=>{var t;const l=j.value.find(i=>i.tabKey===J.value);return(t=l==null?void 0:l.label)!=null?t:""}),tt=e.computed(()=>{try{return localStorage.getItem("sys_mode")||""}catch(l){return""}}),ke=e.computed(()=>{var i;const l=(i=p.value)==null?void 0:i.image;if(!l||typeof l!="string")return"";if(l.startsWith("http")||l.startsWith(me.FILE_URL))return l;const t=l.startsWith("/")?l.slice(1):l;return`${me.FILE_URL}${t}`}),xe=e.computed(()=>{var t;const l=(t=p.value)==null?void 0:t.tag;return Array.isArray(l)?l.map(String).filter(Boolean):typeof l=="string"&&l.trim()?l.split(/[,,]/).map(i=>i.trim()).filter(Boolean):[]}),re=e.computed(()=>{var t;const l=(t=p.value)==null?void 0:t.addition;return Array.isArray(l)?l.filter(i=>i&&typeof i=="object"&&Array.isArray(i.data)):[]}),lt=l=>`「${l}」的完整能力在 mixui 对象管理模块中提供;大屏组件内仅保留配置占位。`,Ne=()=>{const l=j.value;J.value=l.length?l[0].tabKey:"baseinfo"},Ce=l=>M(null,null,function*(){if(I.value=!1,F.value="",p.value=null,Ne(),!j.value.length){$.value=!0;return}$.value=!0,Z.value=!0;try{const t=yield O("get_object_item",{uid:l.uid},!0);t!=null&&t.result&&typeof t.result=="object"?p.value=t.result:p.value=U({},l),(t==null?void 0:t.code)!==void 0&&t.code!==200?F.value=t.msg||t.info||`请求失败 (${t.code})`:t!=null&&t.result||(F.value="未返回详情数据,已使用列表行暂代显示。")}catch(t){p.value=U({},l),F.value="加载详情失败,已使用列表行暂代显示。"}finally{Z.value=!1}}),at=()=>{p.value=null,F.value="",Z.value=!1};e.watch(j,()=>{if(!$.value)return;new Set(j.value.map(t=>t.tabKey)).has(J.value)||Ne()});const Se=()=>({uid:"",name:"",alias:"",model:"",description:"",customer_id:"",customer_name:"",customer_alias:"",terminal_list:"",mapping_id:"",mapping_name:"",tag:"",province:"",city:"",create_by_tpl:!1,tpl_uid:"",tpl_name:"",tpl_alias:""}),Q=e.ref(!1),u=e.reactive(Se()),Be=e.ref(0),ne=e.ref(!1),de=e.ref(!1),se=e.ref(!1);function ot(l){return Array.isArray(l)?l.map(String).filter(Boolean).join(", "):typeof l=="string"?l:""}function it(l){return l.split(/[,,]/).map(t=>t.trim()).filter(Boolean)}function rt(){const l=K.value;if(l.addRealtimeData&&Array.isArray(l.realtimeParams))for(const t of l.realtimeParams)t!=null&&t.fv&&Reflect.deleteProperty(u,String(t.fv));Object.assign(u,Se())}function Te(l){const t=K.value;if(!(!t.addRealtimeData||!Array.isArray(t.realtimeParams))){for(const i of t.realtimeParams)if(i!=null&&i.name&&(i!=null&&i.fv)){const o=String(i.fv),c=l[o];u[o]=c!=null?String(c):""}}}function Ee(l){var t,i,o,c,d,y,m,h,_,D,N,s,R,L,A,P;rt(),Object.assign(u,{uid:String((t=l.uid)!=null?t:""),name:String((i=l.name)!=null?i:""),alias:String((o=l.alias)!=null?o:""),model:String((c=l.model)!=null?c:""),description:String((d=l.description)!=null?d:""),customer_id:String((y=l.customer_id)!=null?y:""),customer_name:String((m=l.customer_name)!=null?m:""),customer_alias:String((h=l.customer_alias)!=null?h:""),terminal_list:String((_=l.terminal_list)!=null?_:""),mapping_id:String((D=l.mapping_id)!=null?D:""),mapping_name:String((N=l.mapping_name)!=null?N:""),tag:ot(l.tag),province:String((s=l.province)!=null?s:""),city:String((R=l.city)!=null?R:""),create_by_tpl:be(l.create_by_tpl),tpl_uid:String((L=l.tpl_uid)!=null?L:""),tpl_name:String((A=l.tpl_name)!=null?A:""),tpl_alias:String((P=l.tpl_alias)!=null?P:"")}),Be.value=Number(l.id)||0}function De(l,t){var i,o,c,d,y,m,h,_,D,N,s,R,L,A,P,ee,f;return{id:t,uid:String((i=l.uid)!=null?i:"").trim(),name:String((o=l.name)!=null?o:"").trim(),alias:String((c=l.alias)!=null?c:""),model:String((d=l.model)!=null?d:""),description:String((y=l.description)!=null?y:""),customer_id:String((m=l.customer_id)!=null?m:""),customer_name:String((h=l.customer_name)!=null?h:""),customer_alias:String((_=l.customer_alias)!=null?_:""),terminal_list:String((D=l.terminal_list)!=null?D:""),mapping_id:String((N=l.mapping_id)!=null?N:""),mapping_name:String((s=l.mapping_name)!=null?s:""),tag:it(String((R=l.tag)!=null?R:"")),province:String((L=l.province)!=null?L:""),city:String((A=l.city)!=null?A:""),create_by_tpl:l.create_by_tpl?1:0,tpl_uid:String((P=l.tpl_uid)!=null?P:""),tpl_name:String((ee=l.tpl_name)!=null?ee:""),tpl_alias:String((f=l.tpl_alias)!=null?f:""),addition:"[]"}}const Ae=l=>M(null,null,function*(){var t;I.value=!1,Q.value=!0,ne.value=!0;try{const i=yield O("get_object_item",{uid:l.uid},!0),o=(t=i==null?void 0:i.result)!=null?t:l;Ee(o),Te(o)}catch(i){Ee(l),Te(l),k.ElMessage.warning("拉取对象详情失败,已使用列表行编辑")}finally{ne.value=!1}}),nt=()=>M(null,null,function*(){if(!u.name.trim()){k.ElMessage.warning("请填写对象名称");return}de.value=!0;try{yield O("update_object",De(u,Be.value),!0),k.ElMessage.success("保存成功"),Q.value=!1,yield T()}catch(l){k.ElMessage.error("保存失败")}finally{de.value=!1}}),Oe=l=>{I.value=!1,k.ElMessageBox.confirm("确认删除该对象吗?","警告",{type:"warning"}).then(()=>M(null,null,function*(){try{yield O("delete_object",{uid:l.uid,id:l.id},!0),k.ElMessage.success("删除成功"),yield T()}catch(t){k.ElMessage.error("删除失败")}})).catch(()=>{})},dt=()=>{Object.assign(n,{uid:"",name:"",alias:"",model:"",created:new Date().toLocaleString(),last_modified:new Date().toLocaleString(),description:"",customer_id:"",customer_name:"",customer_alias:"",terminal_list:"",mapping_id:"",mapping_name:"",tag:"",province:"",city:"",create_by_tpl:!1,tpl_uid:"",tpl_name:"",tpl_alias:""}),G.value=!0},st=()=>M(null,null,function*(){var l,t;if(!((l=n.uid)!=null&&l.trim())||!((t=n.name)!=null&&t.trim())){k.ElMessage.warning("请填写对象编号与名称");return}se.value=!0;try{yield O("create_object",De(n,0),!0),G.value=!1,k.ElMessage.success("添加成功"),yield T()}catch(i){k.ElMessage.error("添加失败")}finally{se.value=!1}}),Le=l=>{I.value=!1,k.ElMessageBox.confirm(`确认对对象 [${l.name}] 进行资料备档吗?`,"提示",{type:"info"}).then(()=>{k.ElMessage.success("备档成功")}).catch(()=>{})};return e.onMounted(()=>{T()}),(l,t)=>{const i=v.ElIcon,o=v.ElInput,c=v.ElDatePicker,d=v.ElOption,y=v.ElSelect,m=v.ElButton,h=v.ElTableColumn,_=v.ElTable,D=v.ElPagination,N=v.ElPopover,s=v.ElFormItem,R=v.ElSwitch,L=v.ElForm,A=v.ElDialog,P=v.ElDivider,ee=v.ElAlert,f=v.ElDescriptionsItem,ut=v.ElTag,Ue=v.ElDescriptions,ct=v.ElCollapseItem,mt=v.ElCollapse,pt=v.ElEmpty,ue=v.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"object-list mix-component",style:e.normalizeStyle({backgroundColor:e.unref(w).bgColor,borderRadius:`${e.unref(w).radiusSize}px`})},[e.unref(w).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(B.value)},e.toDisplayString(b.conf.caption||b.conf.name),5)),e.createElementVNode("div",xt,[e.createElementVNode("div",Nt,[z.value!=="created"?(e.openBlock(),e.createBlock(o,{key:0,modelValue:Y.value,"onUpdate:modelValue":t[0]||(t[0]=a=>Y.value=a),placeholder:"搜索对象(与 mixui ObjectList 搜索字段一致)",size:"small",class:"toolbar-search",onKeyup:e.withKeys(Ve,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(i,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(wt.Search))]),_:1})]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(c,{key:1,modelValue:W.value,"onUpdate:modelValue":t[1]||(t[1]=a=>W.value=a),type:"datetimerange","range-separator":"至","start-placeholder":"创建开始","end-placeholder":"创建结束","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"toolbar-created-range"},null,8,["modelValue"])),e.createVNode(y,{modelValue:z.value,"onUpdate:modelValue":t[2]||(t[2]=a=>z.value=a),size:"small",class:"toolbar-field-select",onChange:ze},{default:e.withCtx(()=>[e.createVNode(d,{label:"对象名称",value:"name"}),e.createVNode(d,{label:"对象编号",value:"uid"}),e.createVNode(d,{label:"对象别名",value:"alias"}),e.createVNode(d,{label:"客户编号",value:"customer_id"}),e.createVNode(d,{label:"客户别名",value:"customer_alias"}),e.createVNode(d,{label:"客户名称",value:"customer_name"}),e.createVNode(d,{label:"映射表编号",value:"mapping_id"}),e.createVNode(d,{label:"映射表名称",value:"mapping_name"}),e.createVNode(d,{label:"关联终端",value:"terminal_list"}),e.createVNode(d,{label:"标签",value:"tag"}),e.createVNode(d,{label:"省份",value:"province"}),e.createVNode(d,{label:"市/区",value:"city"}),e.createVNode(d,{label:"型号",value:"model"}),e.createVNode(d,{label:"序列号",value:"serial_no"}),e.createVNode(d,{label:"创建时间",value:"created"})]),_:1},8,["modelValue"]),e.createVNode(m,{type:"primary",onClick:Ve},{default:e.withCtx(()=>[...t[47]||(t[47]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(m,{onClick:Je},{default:e.withCtx(()=>[...t[48]||(t[48]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(w).showAddBtn?(e.openBlock(),e.createBlock(m,{key:2,type:"success",onClick:dt},{default:e.withCtx(()=>[...t[49]||(t[49]=[e.createTextVNode("添加对象",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ct,[e.createVNode(_,{data:$e.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},onRowContextmenu:We},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a.prop},[a.visible?(e.openBlock(),e.createBlock(h,{key:0,prop:a.prop,label:a.label,width:a.width},{default:e.withCtx(C=>[a.prop==="create_by_tpl"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(be(C.row.create_by_tpl)?"模板创建":"手动创建"),1)],64)):(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(Ze(C.row,a))},e.toDisplayString(Xe(C.row,a)),5))]),_:2},1032,["prop","label","width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(h,{label:"操作","min-width":"250"},{default:e.withCtx(a=>[e.unref(w).showViewBtn?(e.openBlock(),e.createBlock(m,{key:0,size:"small",onClick:C=>Ce(a.row)},{default:e.withCtx(()=>[...t[50]||(t[50]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showEditBtn?(e.openBlock(),e.createBlock(m,{key:1,size:"small",type:"primary",onClick:C=>Ae(a.row)},{default:e.withCtx(()=>[...t[51]||(t[51]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showArchiveBtn?(e.openBlock(),e.createBlock(m,{key:2,size:"small",type:"info",onClick:C=>Le(a.row)},{default:e.withCtx(()=>[...t[52]||(t[52]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showDeleteBtn?(e.openBlock(),e.createBlock(m,{key:3,size:"small",type:"danger",onClick:C=>Oe(a.row)},{default:e.withCtx(()=>[...t[53]||(t[53]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data"])]),e.createElementVNode("div",St,[e.createVNode(D,{"current-page":x.current,"onUpdate:currentPage":t[3]||(t[3]=a=>x.current=a),"page-size":x.pageSize,"onUpdate:pageSize":t[4]||(t[4]=a=>x.pageSize=a),"page-sizes":[20,50,100,200],layout:"total, sizes, prev, pager, next, jumper",total:x.total,onSizeChange:He,onCurrentChange:Ye},null,8,["current-page","page-size","total"])]),e.createVNode(N,{visible:I.value,width:200,trigger:"click","popper-options":{placement:"bottom",modifiers:[{name:"offset",options:{offset:[_e.value,ve.value]}}]}},{default:e.withCtx(()=>[e.createElementVNode("div",Bt,[E.value&&e.unref(w).showViewBtn?(e.openBlock(),e.createBlock(m,{key:0,type:"text",onClick:t[5]||(t[5]=a=>Ce(E.value))},{default:e.withCtx(()=>[...t[54]||(t[54]=[e.createTextVNode("查看详情",-1)])]),_:1})):e.createCommentVNode("",!0),E.value&&e.unref(w).showEditBtn?(e.openBlock(),e.createBlock(m,{key:1,type:"text",onClick:t[6]||(t[6]=a=>Ae(E.value))},{default:e.withCtx(()=>[...t[55]||(t[55]=[e.createTextVNode("编辑对象",-1)])]),_:1})):e.createCommentVNode("",!0),E.value&&e.unref(w).showArchiveBtn?(e.openBlock(),e.createBlock(m,{key:2,type:"text",onClick:t[7]||(t[7]=a=>Le(E.value))},{default:e.withCtx(()=>[...t[56]||(t[56]=[e.createTextVNode("资料备档",-1)])]),_:1})):e.createCommentVNode("",!0),E.value&&e.unref(w).showDeleteBtn?(e.openBlock(),e.createBlock(m,{key:3,type:"text",onClick:t[8]||(t[8]=a=>Oe(E.value))},{default:e.withCtx(()=>[...t[57]||(t[57]=[e.createTextVNode("删除对象",-1)])]),_:1})):e.createCommentVNode("",!0)])]),_:1},8,["visible","popper-options"]),e.createVNode(A,{modelValue:G.value,"onUpdate:modelValue":t[28]||(t[28]=a=>G.value=a),title:"添加对象",width:"600px"},{footer:e.withCtx(()=>[e.createElementVNode("span",Tt,[e.createVNode(m,{onClick:t[27]||(t[27]=a=>G.value=!1)},{default:e.withCtx(()=>[...t[58]||(t[58]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(m,{type:"primary",loading:se.value,onClick:st},{default:e.withCtx(()=>[...t[59]||(t[59]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.createVNode(L,{model:n,"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"对象编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.uid,"onUpdate:modelValue":t[9]||(t[9]=a=>n.uid=a),placeholder:"请输入对象编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.name,"onUpdate:modelValue":t[10]||(t[10]=a=>n.name=a),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.alias,"onUpdate:modelValue":t[11]||(t[11]=a=>n.alias=a),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.model,"onUpdate:modelValue":t[12]||(t[12]=a=>n.model=a),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.description,"onUpdate:modelValue":t[13]||(t[13]=a=>n.description=a),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.customer_id,"onUpdate:modelValue":t[14]||(t[14]=a=>n.customer_id=a),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.customer_name,"onUpdate:modelValue":t[15]||(t[15]=a=>n.customer_name=a),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.customer_alias,"onUpdate:modelValue":t[16]||(t[16]=a=>n.customer_alias=a),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.terminal_list,"onUpdate:modelValue":t[17]||(t[17]=a=>n.terminal_list=a),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.mapping_id,"onUpdate:modelValue":t[18]||(t[18]=a=>n.mapping_id=a),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.mapping_name,"onUpdate:modelValue":t[19]||(t[19]=a=>n.mapping_name=a),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.tag,"onUpdate:modelValue":t[20]||(t[20]=a=>n.tag=a),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.province,"onUpdate:modelValue":t[21]||(t[21]=a=>n.province=a),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.city,"onUpdate:modelValue":t[22]||(t[22]=a=>n.city=a),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"创建方式"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:n.create_by_tpl,"onUpdate:modelValue":t[23]||(t[23]=a=>n.create_by_tpl=a),"active-text":"模板创建","inactive-text":"手动创建"},null,8,["modelValue"])]),_:1}),n.create_by_tpl?(e.openBlock(),e.createBlock(s,{key:0,label:"模板编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.tpl_uid,"onUpdate:modelValue":t[24]||(t[24]=a=>n.tpl_uid=a),placeholder:"请输入模板编号"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),n.create_by_tpl?(e.openBlock(),e.createBlock(s,{key:1,label:"模板名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.tpl_name,"onUpdate:modelValue":t[25]||(t[25]=a=>n.tpl_name=a),placeholder:"请输入模板名称"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),n.create_by_tpl?(e.openBlock(),e.createBlock(s,{key:2,label:"模板别名"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.tpl_alias,"onUpdate:modelValue":t[26]||(t[26]=a=>n.tpl_alias=a),placeholder:"请输入模板别名"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(A,{modelValue:Q.value,"onUpdate:modelValue":t[44]||(t[44]=a=>Q.value=a),title:"编辑对象",width:"600px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createElementVNode("span",Et,[e.createVNode(m,{onClick:t[43]||(t[43]=a=>Q.value=!1)},{default:e.withCtx(()=>[...t[61]||(t[61]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(m,{type:"primary",loading:de.value,onClick:nt},{default:e.withCtx(()=>[...t[62]||(t[62]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(L,{model:u,"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"对象编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.uid,"onUpdate:modelValue":t[29]||(t[29]=a=>u.uid=a),placeholder:"请输入对象编号",disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.name,"onUpdate:modelValue":t[30]||(t[30]=a=>u.name=a),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.alias,"onUpdate:modelValue":t[31]||(t[31]=a=>u.alias=a),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.model,"onUpdate:modelValue":t[32]||(t[32]=a=>u.model=a),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.description,"onUpdate:modelValue":t[33]||(t[33]=a=>u.description=a),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.customer_id,"onUpdate:modelValue":t[34]||(t[34]=a=>u.customer_id=a),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.customer_name,"onUpdate:modelValue":t[35]||(t[35]=a=>u.customer_name=a),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.customer_alias,"onUpdate:modelValue":t[36]||(t[36]=a=>u.customer_alias=a),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.terminal_list,"onUpdate:modelValue":t[37]||(t[37]=a=>u.terminal_list=a),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.mapping_id,"onUpdate:modelValue":t[38]||(t[38]=a=>u.mapping_id=a),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.mapping_name,"onUpdate:modelValue":t[39]||(t[39]=a=>u.mapping_name=a),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.tag,"onUpdate:modelValue":t[40]||(t[40]=a=>u.tag=a),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.province,"onUpdate:modelValue":t[41]||(t[41]=a=>u.province=a),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.city,"onUpdate:modelValue":t[42]||(t[42]=a=>u.city=a),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1}),K.value.addRealtimeData&&ye.value.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(P,{"content-position":"left"},{default:e.withCtx(()=>[...t[60]||(t[60]=[e.createTextVNode("实时数据",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ye.value,a=>(e.openBlock(),e.createBlock(s,{key:a.fv,label:a.name},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u[a.fv],"onUpdate:modelValue":C=>u[a.fv]=C,placeholder:"请输入"+a.name},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label"]))),128))],64)):e.createCommentVNode("",!0)]),_:1},8,["model"])),[[ue,ne.value]])]),_:1},8,["modelValue"]),e.createVNode(A,{modelValue:$.value,"onUpdate:modelValue":t[46]||(t[46]=a=>$.value=a),title:"对象详情",width:"920px",class:"object-view-detail-dialog","destroy-on-close":"",onClosed:at},{footer:e.withCtx(()=>[e.createVNode(m,{type:"primary",onClick:t[45]||(t[45]=a=>$.value=!1)},{default:e.withCtx(()=>[...t[63]||(t[63]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>{var a,C;return[e.withDirectives((e.openBlock(),e.createElementBlock("div",Dt,[j.value.length?(e.openBlock(),e.createElementBlock("div",At,[e.createElementVNode("aside",Ot,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.tabKey,class:e.normalizeClass(["view-detail-tab-item",{active:J.value===r.tabKey}]),onClick:ce=>J.value=r.tabKey},e.toDisplayString(r.label),11,Lt))),128))]),e.createElementVNode("div",Ut,[J.value==="baseinfo"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[F.value?(e.openBlock(),e.createElementBlock("div",Ft,e.toDisplayString(F.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Kt,[p.value?(e.openBlock(),e.createBlock(Ue,{key:0,column:2,border:""},{default:e.withCtx(()=>[ke.value?(e.openBlock(),e.createBlock(f,{key:0,label:"对象图片",span:2},{default:e.withCtx(()=>[e.createElementVNode("img",{class:"view-detail-head-img",src:ke.value,alt:""},null,8,jt)]),_:1})):e.createCommentVNode("",!0),e.createVNode(f,{label:"对象编号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.uid)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"对象名称"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.name)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"对象别名"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.alias)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"型号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.model)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"序列号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.serial_no)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"映射表编号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.mapping_id)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"映射表名称"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.mapping_name)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"映射表别名"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.mapping_alias)!=null?r:""),1)]}),_:1}),tt.value!=="box"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(f,{label:"项目编号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.customer_id)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"项目名称"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.customer_name)!=null?r:""),1)]}),_:1})],64)):e.createCommentVNode("",!0),e.createVNode(f,{label:"控制密码"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.control)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"控制码编号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.control_id)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"控制码名称"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.control_name)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"控制码别名"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.control_alias)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"地址"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.address)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"设置经纬度"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.custom_gis)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"GPS经纬度"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.gis)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"省份"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.province)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"城市"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.city)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"创建时间"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.created)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"更新时间"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.last_modified)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"标签",span:2},{default:e.withCtx(()=>[xe.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(xe.value,r=>(e.openBlock(),e.createBlock(ut,{key:r,style:{"margin-right":"6px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r),1)]),_:2},1024))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(f,{label:"描述",span:2},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.description)!=null?r:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)]),re.value.length?(e.openBlock(),e.createElementBlock("div",Rt,"扩展脚本信息")):e.createCommentVNode("",!0),re.value.length?(e.openBlock(),e.createElementBlock("div",Pt,[e.createVNode(mt,{"expand-icon-position":"left"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value,(r,ce)=>(e.openBlock(),e.createBlock(ct,{key:ce,name:ce,title:r.title},{default:e.withCtx(()=>[e.createVNode(Ue,{border:"",column:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.data,(Fe,ft)=>(e.openBlock(),e.createBlock(f,{key:ft,label:String(Fe[0])},{default:e.withCtx(()=>{var Ke;return[e.createTextVNode(e.toDisplayString((Ke=Fe[1])!=null?Ke:""),1)]}),_:2},1032,["label"]))),128))]),_:2},1024)]),_:2},1032,["name","title"]))),128))]),_:1})])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("div",Mt,[e.createVNode(pt,{description:lt(et.value)},null,8,["description"]),e.createElementVNode("div",qt,"对象编号:"+e.toDisplayString((C=(a=p.value)==null?void 0:a.uid)!=null?C:"—"),1)]))])])):(e.openBlock(),e.createBlock(ee,{key:0,type:"warning","show-icon":"",closable:!1,title:"请先在右侧「数据」面板勾选「查看」,并在其下的详情页签中至少启用一项。"}))])),[[ue,Z.value]])]}),_:1},8,["modelValue"])]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)),[[ue,ie.value]])}}})),Qt=Me._export_sfc(Gt,[["__scopeId","data-v-687241b1"]]);exports.default=Qt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var X=Object.defineProperty,Z=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable;var M=(n,t,o)=>t in n?X(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,V=(n,t)=>{for(var o in t||(t={}))Q.call(t,o)&&M(n,o,t[o]);if(I)for(var o of I(t))Y.call(t,o)&&M(n,o,t[o]);return n},B=(n,t)=>Z(n,K(t));var _=(n,t,o)=>new Promise((c,r)=>{var u=a=>{try{p(o.next(a))}catch(l){r(l)}},m=a=>{try{p(o.throw(a))}catch(l){r(l)}},p=a=>a.done?c(a.value):Promise.resolve(a.value).then(u,m);p((o=o.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),te=require("./vue-i18n-BvHMBi_b.cjs"),oe=require("./element-resize-detector-BlMXyWIR.cjs"),E=require("./index-EnNA0nIi.cjs"),ne=require("./api-C0okiLNC.cjs"),ie=require("./mixDataPermission-CWt9H_Ib.cjs"),b=require("element-plus"),L=require("./ele-bmp-icon-BBI0-SX7.cjs");function R(n){return n.replace(/\/$/,"")}function le(){return typeof window=="undefined"?!1:window.__MIXUI_MATERIAL_USE_MIXSERVICE_STORAGE__===!0}function re(){var c;const n="".trim();if(n)return R(n);if(le()&&typeof window!="undefined"&&((c=window.location)!=null&&c.origin))return`${window.location.origin}/mixservice/storage/yunfiles/material/file`;const t="https://yunui.mixyun.top".trim(),o=R(t);return o.toLowerCase().includes("yunfiles/material/file")?o:`${o}/mixdesignd/yunfiles/material/file`}function ae(n){if(!(n!=null&&n.trim()))return"";let t=String(n).trim().replace(/\\/g,"/");t=t.replace(/^\/+/,"");const o=t.toLowerCase(),c=p=>{const a=p.toLowerCase();if(o.startsWith(a))return t.slice(p.length).replace(/^\/+/,"");const l=o.indexOf("/"+a);return l>=0?t.slice(l+1+p.length).replace(/^\/+/,""):null};let r=c("mixdesignd/yunfiles/material/file/");if(r!=null||(r=c("mixservice/storage/yunfiles/material/file/"),r!=null)||(r=c("yunfiles/material/file/"),r!=null))return r;const u="mixservice/storage/material/mixyun_dashboard/",m=o.indexOf(u);return m>=0?t.slice(m+u.length).replace(/^\/+/,""):o.startsWith("mixdesignd/")&&(t=t.slice(11),t.toLowerCase().startsWith("yunfiles/material/file/"))?t.slice(23).replace(/^\/+/,""):t.replace(/^\/+/,"")}function A(n){return n.split("/").filter(Boolean).map(t=>{try{return encodeURIComponent(decodeURIComponent(t))}catch(o){return encodeURIComponent(t)}}).join("/")}function O(n){if(!(n!=null&&n.trim()))return"";const t=n.trim();if(t.startsWith("data:")||t.startsWith("blob:"))return t;if(t.startsWith("http://")||t.startsWith("https://"))try{const r=new URL(t),u=A(r.pathname.replace(/^\/+/,""));return r.pathname="/"+u,r.toString()}catch(r){return t}const o=A(ae(t));return o?`${re()}/${o}`.replace(/([^:])\/{2,}/g,"$1/"):""}function se(n){var o;if(!(n!=null&&n.trim()))return!1;const t=n.trim();if(!/^https?:\/\//i.test(t)||typeof window=="undefined"||!((o=window.location)!=null&&o.origin))return!1;try{const c=new URL(t,window.location.href);return c.origin!==window.location.origin?!1:/\/mixservice\/storage\//i.test(c.pathname)}catch(c){return!1}}const ce={class:"mix-body"},ue={class:"upload-content"},de={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},pe={class:"upload-text"},me={key:0,class:"upload-actions"},fe={key:1,class:"upload-supported"},ge={key:1,class:"viewer-container"},ve={key:0,class:"file-info"},he={class:"file-name"},ye=["title"],we=["src","alt"],_e={DEFAULT_ICON:L.DEFAULT_ICON,ACTIVE_ICON:L.ACTIVE_ICON,NAME_CN:"图片查看器",NAME_EN:"Photo Viewer",ORDER:2},be={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:"请上传素材"}},Ee=[],Ue=[],xe=[],Ce=null,Se={DEFAULT:_e,OPTIONS:be,DATA:Ee,PARAMS:Ue,SOURCE:xe,COMMON:Ce},ke=e.defineComponent(B(V({},Se),{__name:"photo",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){const{t}=te.useI18n(),o=n;class c extends oe.BaseComponent{extractStyles(){return{imageDisplayMode:this.getOptionValue("imageDisplayMode","center"),radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),F()}}const r=new c(o,"photo");r.setupLifecycle();const u=r.getStyle(),m=e.ref(null),p=e.ref(null),a=e.ref(""),l=e.ref(""),h=e.ref(""),U=e.ref(!1),D="image/gif,image/jpeg,image/bmp,image/png,image/svg+xml,image/x-icon,image/vnd.microsoft.icon",T=i=>O(i),F=()=>_(null,null,function*(){var s,d,f;const{conf:i}=o;(d=(s=i==null?void 0:i.options)==null?void 0:s.fileUrl)!=null&&d.value&&(a.value=T(i.options.fileUrl.value),yield x(),h.value=((f=i.options.fileName)==null?void 0:f.value)||"")}),y=i=>{i&&i.startsWith("blob:")&&URL.revokeObjectURL(i)},x=()=>_(null,null,function*(){if(a.value){if(y(l.value),se(a.value)){l.value=a.value;return}try{const i=ie.resolveHttpAuthToken();if(!i){l.value="";return}const s=yield fetch(a.value,{mode:"cors",credentials:"include",headers:{Authorization:`Bearer ${i}`}});if(!s.ok)throw new Error(`load image failed: ${s.status}`);const d=yield s.blob(),f=URL.createObjectURL(d);l.value=f}catch(i){console.error("[Photo] 拉取图片失败:",i),y(l.value),l.value=""}}}),P=e.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),j=e.computed(()=>{var s;const i=(s=u==null?void 0:u.value)==null?void 0:s.imageDisplayMode;return i==="tile"?{display:"none"}:i==="stretch"?{width:"100%",height:"100%",objectFit:"fill"}:{width:"100%",height:"100%",objectFit:"contain"}}),z=e.computed(()=>{var i;return((i=u==null?void 0:u.value)==null?void 0:i.imageDisplayMode)!=="tile"||!l.value?{}:{width:"100%",height:"100%",backgroundImage:`url(${l.value})`,backgroundRepeat:"repeat",backgroundPosition:"center center"}}),C=()=>{var i;(i=m.value)==null||i.click()},$=i=>_(null,null,function*(){var S,k;const s=i.target,d=(S=s==null?void 0:s.files)==null?void 0:S[0];if(!d)return;if(!["image/gif","image/jpeg","image/bmp","image/png","image/svg+xml","image/x-icon","image/vnd.microsoft.icon"].includes(d.type)){b.ElMessage.warning(t("component.photo.invalidType")||"请选择有效的图片文件 (GIF, JPG, BMP, PNG, SVG, ICO)");return}y(l.value),a.value="";const w=URL.createObjectURL(d);l.value=w,h.value=d.name;try{U.value=!0;const g=yield E.fileToBase64(d),H=E.getFileExtension(d.name)||"png",v=yield ne.api.post("upload_material",{material_Data:g,material_type:H},!0);if(v.code===200&&((k=v.result)!=null&&k.material_path)){const N=String(v.result.material_path).trim(),J=O(N);URL.revokeObjectURL(w),a.value=J,yield x(),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.imageUid||(o.conf.options.imageUid={value:"",type:"string",label:""}),o.conf.options.fileUrl.value=N,o.conf.options.fileName.value=v.result.file_name||d.name,o.conf.options.imageUid.value=v.result.image_uid||""),b.ElMessage.success("图片上传成功")}else throw new Error(v.msg||"上传失败")}catch(g){console.error("图片上传失败:",g),b.ElMessage.error("图片上传失败: "+((g==null?void 0:g.message)||"未知错误"))}finally{U.value=!1,m.value&&(m.value.value="")}}),q=()=>{y(l.value),l.value="",a.value="",h.value="",setTimeout(()=>{C()},100)},G=()=>{console.log("图片加载成功")},W=i=>{console.error("图片加载失败:",i),alert(t("component.photo.loadError")||"图片加载失败")};return e.onMounted(()=>{}),e.onBeforeUnmount(()=>{y(l.value)}),(i,s)=>{var f,w;const d=ee.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",ce,[l.value?(e.openBlock(),e.createElementBlock("div",ge,[o.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("span",he,e.toDisplayString(h.value),1),e.createElementVNode("button",{class:"change-file-btn",onClick:q,title:e.unref(t)("component.photo.changeFile")||"更换文件"},[...s[1]||(s[1]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.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,ye)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"image-container",style:e.normalizeStyle(P.value)},[e.createElementVNode("img",{ref_key:"imageRef",ref:p,src:l.value,alt:h.value,style:e.normalizeStyle(j.value),onLoad:G,onError:W},null,44,we),((w=(f=e.unref(u))==null?void 0:f.value)==null?void 0:w.imageDisplayMode)==="tile"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tiled-background",style:e.normalizeStyle(z.value)},null,4)):e.createCommentVNode("",!0)],4)])):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":o.mode==="preview"}])},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:m,type:"file",accept:D,onChange:$,style:{display:"none"}},null,544),e.createElementVNode("div",ue,[(e.openBlock(),e.createElementBlock("svg",de,[...s[0]||(s[0]=[e.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)])])),e.createElementVNode("p",pe,e.toDisplayString(o.mode==="preview"?"未上传素材":e.unref(t)("component.photo.uploadText")||"点击上传图片"),1),o.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",me,[e.createVNode(d,{type:"primary",size:"small",onClick:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("component.photo.uploadFile")||"上传文件"),1)]),_:1})])):e.createCommentVNode("",!0),o.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",fe,e.toDisplayString(e.unref(t)("component.photo.supportedTypes")||"支持格式: GIF, JPG, BMP, PNG, SVG, ICO"),1)):e.createCommentVNode("",!0)])],2))]),e.renderSlot(i.$slots,"default",{},void 0,!0)],4)}}})),Ne=E._export_sfc(ke,[["__scopeId","data-v-81a903ef"]]);exports.default=Ne;
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
var te = Object.defineProperty, oe = Object.defineProperties;
|
|
2
|
+
var ie = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var F = Object.getOwnPropertySymbols;
|
|
4
|
+
var ne = Object.prototype.hasOwnProperty, ae = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var D = (o, e, t) => e in o ? te(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, V = (o, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
ne.call(e, t) && D(o, t, e[t]);
|
|
8
|
+
if (F)
|
|
9
|
+
for (var t of F(e))
|
|
10
|
+
ae.call(e, t) && D(o, t, e[t]);
|
|
11
|
+
return o;
|
|
12
|
+
}, B = (o, e) => oe(o, ie(e));
|
|
13
|
+
var C = (o, e, t) => new Promise((s, a) => {
|
|
14
|
+
var c = (l) => {
|
|
15
|
+
try {
|
|
16
|
+
d(t.next(l));
|
|
17
|
+
} catch (n) {
|
|
18
|
+
a(n);
|
|
19
|
+
}
|
|
20
|
+
}, f = (l) => {
|
|
21
|
+
try {
|
|
22
|
+
d(t.throw(l));
|
|
23
|
+
} catch (n) {
|
|
24
|
+
a(n);
|
|
25
|
+
}
|
|
26
|
+
}, d = (l) => l.done ? s(l.value) : Promise.resolve(l.value).then(c, f);
|
|
27
|
+
d((t = t.apply(o, e)).next());
|
|
28
|
+
});
|
|
29
|
+
import { ElButton as le } from "element-plus/es";
|
|
30
|
+
import "element-plus/es/components/base/style/css";
|
|
31
|
+
import "element-plus/es/components/button/style/css";
|
|
32
|
+
import { defineComponent as re, ref as w, computed as L, onMounted as se, onBeforeUnmount as ce, openBlock as g, createElementBlock as h, normalizeStyle as S, unref as _, createElementVNode as p, normalizeClass as ue, toDisplayString as M, createVNode as pe, withCtx as de, createTextVNode as fe, createCommentVNode as I, renderSlot as me } from "vue";
|
|
33
|
+
import { u as ge } from "./vue-i18n-5Nahpzrm.js";
|
|
34
|
+
import { B as he } from "./element-resize-detector-DeMhGbNi.js";
|
|
35
|
+
import { c as ve, g as ye, _ as we } from "./index-zPaMBZk-.js";
|
|
36
|
+
import { a as _e } from "./api-DhQsrEGY.js";
|
|
37
|
+
import { r as be } from "./mixDataPermission-B5fpqFgm.js";
|
|
38
|
+
import { ElMessage as R } from "element-plus";
|
|
39
|
+
import { A as Ue, D as xe } from "./ele-bmp-icon-Pdolk1J5.js";
|
|
40
|
+
function P(o) {
|
|
41
|
+
return o.replace(/\/$/, "");
|
|
42
|
+
}
|
|
43
|
+
function Ce() {
|
|
44
|
+
return typeof window == "undefined" ? !1 : window.__MIXUI_MATERIAL_USE_MIXSERVICE_STORAGE__ === !0;
|
|
45
|
+
}
|
|
46
|
+
function Se() {
|
|
47
|
+
var s;
|
|
48
|
+
const o = "".trim();
|
|
49
|
+
if (o) return P(o);
|
|
50
|
+
if (Ce() && typeof window != "undefined" && ((s = window.location) != null && s.origin))
|
|
51
|
+
return `${window.location.origin}/mixservice/storage/yunfiles/material/file`;
|
|
52
|
+
const e = "https://yunui.mixyun.top".trim(), t = P(e);
|
|
53
|
+
return t.toLowerCase().includes("yunfiles/material/file") ? t : `${t}/mixdesignd/yunfiles/material/file`;
|
|
54
|
+
}
|
|
55
|
+
function Me(o) {
|
|
56
|
+
if (!(o != null && o.trim())) return "";
|
|
57
|
+
let e = String(o).trim().replace(/\\/g, "/");
|
|
58
|
+
e = e.replace(/^\/+/, "");
|
|
59
|
+
const t = e.toLowerCase(), s = (d) => {
|
|
60
|
+
const l = d.toLowerCase();
|
|
61
|
+
if (t.startsWith(l)) return e.slice(d.length).replace(/^\/+/, "");
|
|
62
|
+
const n = t.indexOf("/" + l);
|
|
63
|
+
return n >= 0 ? e.slice(n + 1 + d.length).replace(/^\/+/, "") : null;
|
|
64
|
+
};
|
|
65
|
+
let a = s("mixdesignd/yunfiles/material/file/");
|
|
66
|
+
if (a != null || (a = s("mixservice/storage/yunfiles/material/file/"), a != null) || (a = s("yunfiles/material/file/"), a != null)) return a;
|
|
67
|
+
const c = "mixservice/storage/material/mixyun_dashboard/", f = t.indexOf(c);
|
|
68
|
+
return f >= 0 ? e.slice(f + c.length).replace(/^\/+/, "") : t.startsWith("mixdesignd/") && (e = e.slice(11), e.toLowerCase().startsWith("yunfiles/material/file/")) ? e.slice(23).replace(/^\/+/, "") : e.replace(/^\/+/, "");
|
|
69
|
+
}
|
|
70
|
+
function j(o) {
|
|
71
|
+
return o.split("/").filter(Boolean).map((e) => {
|
|
72
|
+
try {
|
|
73
|
+
return encodeURIComponent(decodeURIComponent(e));
|
|
74
|
+
} catch (t) {
|
|
75
|
+
return encodeURIComponent(e);
|
|
76
|
+
}
|
|
77
|
+
}).join("/");
|
|
78
|
+
}
|
|
79
|
+
function $(o) {
|
|
80
|
+
if (!(o != null && o.trim())) return "";
|
|
81
|
+
const e = o.trim();
|
|
82
|
+
if (e.startsWith("data:") || e.startsWith("blob:")) return e;
|
|
83
|
+
if (e.startsWith("http://") || e.startsWith("https://"))
|
|
84
|
+
try {
|
|
85
|
+
const a = new URL(e), c = j(a.pathname.replace(/^\/+/, ""));
|
|
86
|
+
return a.pathname = "/" + c, a.toString();
|
|
87
|
+
} catch (a) {
|
|
88
|
+
return e;
|
|
89
|
+
}
|
|
90
|
+
const t = j(Me(e));
|
|
91
|
+
return t ? `${Se()}/${t}`.replace(/([^:])\/{2,}/g, "$1/") : "";
|
|
92
|
+
}
|
|
93
|
+
function Ie(o) {
|
|
94
|
+
var t;
|
|
95
|
+
if (!(o != null && o.trim())) return !1;
|
|
96
|
+
const e = o.trim();
|
|
97
|
+
if (!/^https?:\/\//i.test(e) || typeof window == "undefined" || !((t = window.location) != null && t.origin)) return !1;
|
|
98
|
+
try {
|
|
99
|
+
const s = new URL(e, window.location.href);
|
|
100
|
+
return s.origin !== window.location.origin ? !1 : /\/mixservice\/storage\//i.test(s.pathname);
|
|
101
|
+
} catch (s) {
|
|
102
|
+
return !1;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
const Le = { class: "mix-body" }, Re = { class: "upload-content" }, ke = {
|
|
106
|
+
viewBox: "0 0 24 24",
|
|
107
|
+
width: "48",
|
|
108
|
+
height: "48",
|
|
109
|
+
fill: "currentColor",
|
|
110
|
+
style: { opacity: "0.5" }
|
|
111
|
+
}, Ee = { class: "upload-text" }, Ae = {
|
|
112
|
+
key: 0,
|
|
113
|
+
class: "upload-actions"
|
|
114
|
+
}, Ne = {
|
|
115
|
+
key: 1,
|
|
116
|
+
class: "upload-supported"
|
|
117
|
+
}, Oe = {
|
|
118
|
+
key: 1,
|
|
119
|
+
class: "viewer-container"
|
|
120
|
+
}, Te = {
|
|
121
|
+
key: 0,
|
|
122
|
+
class: "file-info"
|
|
123
|
+
}, Fe = { class: "file-name" }, De = ["title"], Ve = ["src", "alt"], Be = {
|
|
124
|
+
DEFAULT_ICON: xe,
|
|
125
|
+
ACTIVE_ICON: Ue,
|
|
126
|
+
NAME_CN: "图片查看器",
|
|
127
|
+
NAME_EN: "Photo Viewer",
|
|
128
|
+
ORDER: 2
|
|
129
|
+
}, Pe = {
|
|
130
|
+
imageDisplayMode: {
|
|
131
|
+
value: "center",
|
|
132
|
+
type: "select",
|
|
133
|
+
options: [
|
|
134
|
+
{ label: "component.photo.center", value: "center" },
|
|
135
|
+
{ label: "component.photo.tile", value: "tile" },
|
|
136
|
+
{ label: "component.photo.stretch", value: "stretch" }
|
|
137
|
+
],
|
|
138
|
+
label: "component.options.imageDisplayMode"
|
|
139
|
+
},
|
|
140
|
+
fileUrl: { value: "", type: "string", label: "component.options.fileUrl", placeholder: "请上传素材" },
|
|
141
|
+
fileName: { value: "", type: "string", label: "component.options.fileName", placeholder: "请上传素材" }
|
|
142
|
+
}, je = [], $e = [], ze = [], Ge = null, We = { DEFAULT: Be, OPTIONS: Pe, DATA: je, PARAMS: $e, SOURCE: ze, COMMON: Ge }, He = /* @__PURE__ */ re(B(V({}, We), {
|
|
143
|
+
__name: "photo",
|
|
144
|
+
props: {
|
|
145
|
+
conf: { type: Object, default: () => ({}) },
|
|
146
|
+
uid: { type: String, default: "" },
|
|
147
|
+
mode: { type: String, default: "edit" },
|
|
148
|
+
theme: { type: String, default: "light" }
|
|
149
|
+
},
|
|
150
|
+
setup(o) {
|
|
151
|
+
const { t: e } = ge(), t = o;
|
|
152
|
+
class s extends he {
|
|
153
|
+
extractStyles() {
|
|
154
|
+
return {
|
|
155
|
+
imageDisplayMode: this.getOptionValue("imageDisplayMode", "center"),
|
|
156
|
+
radiusSize: this.getOptionValue("radiusSize", 0)
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
init() {
|
|
160
|
+
this.Style.value = this.extractStyles(), this.applyTheme(), W();
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
const a = new s(t, "photo");
|
|
164
|
+
a.setupLifecycle();
|
|
165
|
+
const c = a.getStyle(), f = w(null), d = w(null), l = w(""), n = w(""), b = w(""), k = w(!1), z = "image/gif,image/jpeg,image/bmp,image/png,image/svg+xml,image/x-icon,image/vnd.microsoft.icon", G = (i) => $(i), W = () => C(null, null, function* () {
|
|
166
|
+
var r, u, m;
|
|
167
|
+
const { conf: i } = t;
|
|
168
|
+
(u = (r = i == null ? void 0 : i.options) == null ? void 0 : r.fileUrl) != null && u.value && (l.value = G(i.options.fileUrl.value), yield E(), b.value = ((m = i.options.fileName) == null ? void 0 : m.value) || "");
|
|
169
|
+
}), U = (i) => {
|
|
170
|
+
i && i.startsWith("blob:") && URL.revokeObjectURL(i);
|
|
171
|
+
}, E = () => C(null, null, function* () {
|
|
172
|
+
if (l.value) {
|
|
173
|
+
if (U(n.value), Ie(l.value)) {
|
|
174
|
+
n.value = l.value;
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
try {
|
|
178
|
+
const i = be();
|
|
179
|
+
if (!i) {
|
|
180
|
+
n.value = "";
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
const r = yield fetch(l.value, {
|
|
184
|
+
mode: "cors",
|
|
185
|
+
credentials: "include",
|
|
186
|
+
headers: { Authorization: `Bearer ${i}` }
|
|
187
|
+
});
|
|
188
|
+
if (!r.ok) throw new Error(`load image failed: ${r.status}`);
|
|
189
|
+
const u = yield r.blob(), m = URL.createObjectURL(u);
|
|
190
|
+
n.value = m;
|
|
191
|
+
} catch (i) {
|
|
192
|
+
console.error("[Photo] 拉取图片失败:", i), U(n.value), n.value = "";
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}), H = L(() => ({
|
|
196
|
+
width: "100%",
|
|
197
|
+
height: "100%",
|
|
198
|
+
display: "flex",
|
|
199
|
+
alignItems: "center",
|
|
200
|
+
justifyContent: "center",
|
|
201
|
+
overflow: "hidden"
|
|
202
|
+
})), J = L(() => {
|
|
203
|
+
var r;
|
|
204
|
+
const i = (r = c == null ? void 0 : c.value) == null ? void 0 : r.imageDisplayMode;
|
|
205
|
+
return i === "tile" ? { display: "none" } : i === "stretch" ? { width: "100%", height: "100%", objectFit: "fill" } : { width: "100%", height: "100%", objectFit: "contain" };
|
|
206
|
+
}), X = L(() => {
|
|
207
|
+
var i;
|
|
208
|
+
return ((i = c == null ? void 0 : c.value) == null ? void 0 : i.imageDisplayMode) !== "tile" || !n.value ? {} : {
|
|
209
|
+
width: "100%",
|
|
210
|
+
height: "100%",
|
|
211
|
+
backgroundImage: `url(${n.value})`,
|
|
212
|
+
backgroundRepeat: "repeat",
|
|
213
|
+
backgroundPosition: "center center"
|
|
214
|
+
};
|
|
215
|
+
}), A = () => {
|
|
216
|
+
var i;
|
|
217
|
+
(i = f.value) == null || i.click();
|
|
218
|
+
}, Z = (i) => C(null, null, function* () {
|
|
219
|
+
var N, O;
|
|
220
|
+
const r = i.target, u = (N = r == null ? void 0 : r.files) == null ? void 0 : N[0];
|
|
221
|
+
if (!u) return;
|
|
222
|
+
if (!["image/gif", "image/jpeg", "image/bmp", "image/png", "image/svg+xml", "image/x-icon", "image/vnd.microsoft.icon"].includes(u.type)) {
|
|
223
|
+
R.warning(e("component.photo.invalidType") || "请选择有效的图片文件 (GIF, JPG, BMP, PNG, SVG, ICO)");
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
U(n.value), l.value = "";
|
|
227
|
+
const x = URL.createObjectURL(u);
|
|
228
|
+
n.value = x, b.value = u.name;
|
|
229
|
+
try {
|
|
230
|
+
k.value = !0;
|
|
231
|
+
const v = yield ve(u), Y = ye(u.name) || "png", y = yield _e.post("upload_material", {
|
|
232
|
+
material_Data: v,
|
|
233
|
+
material_type: Y
|
|
234
|
+
}, !0);
|
|
235
|
+
if (y.code === 200 && ((O = y.result) != null && O.material_path)) {
|
|
236
|
+
const T = String(y.result.material_path).trim(), ee = $(T);
|
|
237
|
+
URL.revokeObjectURL(x), l.value = ee, yield E(), t.conf && t.conf.options && (t.conf.options.fileUrl || (t.conf.options.fileUrl = { value: "", type: "string", label: "" }), t.conf.options.fileName || (t.conf.options.fileName = { value: "", type: "string", label: "" }), t.conf.options.imageUid || (t.conf.options.imageUid = { value: "", type: "string", label: "" }), t.conf.options.fileUrl.value = T, t.conf.options.fileName.value = y.result.file_name || u.name, t.conf.options.imageUid.value = y.result.image_uid || ""), R.success("图片上传成功");
|
|
238
|
+
} else
|
|
239
|
+
throw new Error(y.msg || "上传失败");
|
|
240
|
+
} catch (v) {
|
|
241
|
+
console.error("图片上传失败:", v), R.error("图片上传失败: " + ((v == null ? void 0 : v.message) || "未知错误"));
|
|
242
|
+
} finally {
|
|
243
|
+
k.value = !1, f.value && (f.value.value = "");
|
|
244
|
+
}
|
|
245
|
+
}), q = () => {
|
|
246
|
+
U(n.value), n.value = "", l.value = "", b.value = "", setTimeout(() => {
|
|
247
|
+
A();
|
|
248
|
+
}, 100);
|
|
249
|
+
}, K = () => {
|
|
250
|
+
console.log("图片加载成功");
|
|
251
|
+
}, Q = (i) => {
|
|
252
|
+
console.error("图片加载失败:", i), alert(e("component.photo.loadError") || "图片加载失败");
|
|
253
|
+
};
|
|
254
|
+
return se(() => {
|
|
255
|
+
}), ce(() => {
|
|
256
|
+
U(n.value);
|
|
257
|
+
}), (i, r) => {
|
|
258
|
+
var m, x;
|
|
259
|
+
const u = le;
|
|
260
|
+
return g(), h("div", {
|
|
261
|
+
class: "mix-component",
|
|
262
|
+
style: S({ borderRadius: `${_(c).radiusSize}px` })
|
|
263
|
+
}, [
|
|
264
|
+
p("div", Le, [
|
|
265
|
+
n.value ? (g(), h("div", Oe, [
|
|
266
|
+
t.mode !== "preview" ? (g(), h("div", Te, [
|
|
267
|
+
p("span", Fe, M(b.value), 1),
|
|
268
|
+
p("button", {
|
|
269
|
+
class: "change-file-btn",
|
|
270
|
+
onClick: q,
|
|
271
|
+
title: _(e)("component.photo.changeFile") || "更换文件"
|
|
272
|
+
}, [...r[1] || (r[1] = [
|
|
273
|
+
p("svg", {
|
|
274
|
+
viewBox: "0 0 24 24",
|
|
275
|
+
width: "16",
|
|
276
|
+
height: "16",
|
|
277
|
+
fill: "currentColor"
|
|
278
|
+
}, [
|
|
279
|
+
p("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" })
|
|
280
|
+
], -1)
|
|
281
|
+
])], 8, De)
|
|
282
|
+
])) : I("", !0),
|
|
283
|
+
p("div", {
|
|
284
|
+
class: "image-container",
|
|
285
|
+
style: S(H.value)
|
|
286
|
+
}, [
|
|
287
|
+
p("img", {
|
|
288
|
+
ref_key: "imageRef",
|
|
289
|
+
ref: d,
|
|
290
|
+
src: n.value,
|
|
291
|
+
alt: b.value,
|
|
292
|
+
style: S(J.value),
|
|
293
|
+
onLoad: K,
|
|
294
|
+
onError: Q
|
|
295
|
+
}, null, 44, Ve),
|
|
296
|
+
((x = (m = _(c)) == null ? void 0 : m.value) == null ? void 0 : x.imageDisplayMode) === "tile" ? (g(), h("div", {
|
|
297
|
+
key: 0,
|
|
298
|
+
class: "tiled-background",
|
|
299
|
+
style: S(X.value)
|
|
300
|
+
}, null, 4)) : I("", !0)
|
|
301
|
+
], 4)
|
|
302
|
+
])) : (g(), h("div", {
|
|
303
|
+
key: 0,
|
|
304
|
+
class: ue(["upload-area", { "preview-mode": t.mode === "preview" }])
|
|
305
|
+
}, [
|
|
306
|
+
p("input", {
|
|
307
|
+
ref_key: "fileInputRef",
|
|
308
|
+
ref: f,
|
|
309
|
+
type: "file",
|
|
310
|
+
accept: z,
|
|
311
|
+
onChange: Z,
|
|
312
|
+
style: { display: "none" }
|
|
313
|
+
}, null, 544),
|
|
314
|
+
p("div", Re, [
|
|
315
|
+
(g(), h("svg", ke, [...r[0] || (r[0] = [
|
|
316
|
+
p("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)
|
|
317
|
+
])])),
|
|
318
|
+
p("p", Ee, M(t.mode === "preview" ? "未上传素材" : _(e)("component.photo.uploadText") || "点击上传图片"), 1),
|
|
319
|
+
t.mode !== "preview" ? (g(), h("div", Ae, [
|
|
320
|
+
pe(u, {
|
|
321
|
+
type: "primary",
|
|
322
|
+
size: "small",
|
|
323
|
+
onClick: A
|
|
324
|
+
}, {
|
|
325
|
+
default: de(() => [
|
|
326
|
+
fe(M(_(e)("component.photo.uploadFile") || "上传文件"), 1)
|
|
327
|
+
]),
|
|
328
|
+
_: 1
|
|
329
|
+
})
|
|
330
|
+
])) : I("", !0),
|
|
331
|
+
t.mode !== "preview" ? (g(), h("p", Ne, M(_(e)("component.photo.supportedTypes") || "支持格式: GIF, JPG, BMP, PNG, SVG, ICO"), 1)) : I("", !0)
|
|
332
|
+
])
|
|
333
|
+
], 2))
|
|
334
|
+
]),
|
|
335
|
+
me(i.$slots, "default", {}, void 0, !0)
|
|
336
|
+
], 4);
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
})), at = /* @__PURE__ */ we(He, [["__scopeId", "data-v-81a903ef"]]);
|
|
340
|
+
export {
|
|
341
|
+
at as default
|
|
342
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var V=Object.defineProperty,E=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var y=(r,s,c)=>s in r?V(r,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[s]=c,h=(r,s)=>{for(var c in s||(s={}))$.call(s,c)&&y(r,c,s[c]);if(v)for(var c of v(s))B.call(s,c)&&y(r,c,s[c]);return r},f=(r,s)=>E(r,z(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),M=require("./element-resize-detector-
|
|
1
|
+
"use strict";var V=Object.defineProperty,E=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var y=(r,s,c)=>s in r?V(r,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[s]=c,h=(r,s)=>{for(var c in s||(s={}))$.call(s,c)&&y(r,c,s[c]);if(v)for(var c of v(s))B.call(s,c)&&y(r,c,s[c]);return r},f=(r,s)=>E(r,z(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),M=require("./element-resize-detector-BlMXyWIR.cjs"),b=require("./index-EnNA0nIi.cjs"),N=require("./EChartComponentBase-BTqBoBn8.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),g=require("./installCanvasRenderer-CyhM1Qpl.cjs"),j=require("./install-DV5cEgNV.cjs"),A=require("./install-CltTFs4e.cjs"),I=require("./install-nDY6w-GK.cjs"),T="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(-101.000000,%20-888.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M109.65,888.3%20C114.068274,888.3%20117.65,891.881726%20117.65,896.3%20C117.65,896.655494%20117.361815,896.943678%20117.006322,896.943678%20L117.006322,896.943678%20L110.42435,896.943678%20C110.35217,896.943678%20110.293678,897.00217%20110.293678,897.07435%20L110.293678,897.07435%20L110.293678,903.656322%20C110.293678,904.011815%20110.005494,904.3%20109.65,904.3%20C105.231726,904.3%20101.65,900.718274%20101.65,896.3%20C101.65,891.881726%20105.231726,888.3%20109.65,888.3%20Z%20M116.619147,897.979371%20C116.974641,897.979371%20117.262825,898.267555%20117.262825,898.623049%20L117.262825,898.623049%20L117.262825,903.269147%20C117.262825,903.624641%20116.974641,903.912825%20116.619147,903.912825%20L116.619147,903.912825%20L111.973049,903.912825%20C111.617555,903.912825%20111.329371,903.624641%20111.329371,903.269147%20L111.329371,903.269147%20L111.329371,898.623049%20C111.329371,898.267555%20111.617555,897.979371%20111.973049,897.979371%20L111.973049,897.979371%20Z%20M109.65,889.587356%20C105.942713,889.587356%20102.937356,892.592713%20102.937356,896.3%20C102.937356,899.78485%20105.59289,902.649474%20108.990767,902.980683%20L108.990767,902.980683%20L109.006322,902.981379%20L109.006322,897.07435%20C109.006322,896.334692%20109.572602,895.72732%20110.295278,895.662117%20L110.295278,895.662117%20L110.42435,895.656322%20L116.331379,895.656322%20L116.305497,895.420134%20C115.883945,892.200222%20113.180401,889.698255%20109.871576,889.590944%20L109.871576,889.590944%20Z%20M115.974598,899.266437%20L112.616437,899.266437%20L112.616437,902.624598%20L115.974598,902.624598%20L115.974598,899.266437%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="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(-101.000000,%20-888.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M109.65,888.3%20C114.068274,888.3%20117.65,891.881726%20117.65,896.3%20C117.65,896.655494%20117.361815,896.943678%20117.006322,896.943678%20L117.006322,896.943678%20L110.42435,896.943678%20C110.35217,896.943678%20110.293678,897.00217%20110.293678,897.07435%20L110.293678,897.07435%20L110.293678,903.656322%20C110.293678,904.011815%20110.005494,904.3%20109.65,904.3%20C105.231726,904.3%20101.65,900.718274%20101.65,896.3%20C101.65,891.881726%20105.231726,888.3%20109.65,888.3%20Z%20M116.619147,897.979371%20C116.974641,897.979371%20117.262825,898.267555%20117.262825,898.623049%20L117.262825,898.623049%20L117.262825,903.269147%20C117.262825,903.624641%20116.974641,903.912825%20116.619147,903.912825%20L116.619147,903.912825%20L111.973049,903.912825%20C111.617555,903.912825%20111.329371,903.624641%20111.329371,903.269147%20L111.329371,903.269147%20L111.329371,898.623049%20C111.329371,898.267555%20111.617555,897.979371%20111.973049,897.979371%20L111.973049,897.979371%20Z%20M109.65,889.587356%20C105.942713,889.587356%20102.937356,892.592713%20102.937356,896.3%20C102.937356,899.78485%20105.59289,902.649474%20108.990767,902.980683%20L108.990767,902.980683%20L109.006322,902.981379%20L109.006322,897.07435%20C109.006322,896.334692%20109.572602,895.72732%20110.295278,895.662117%20L110.295278,895.662117%20L110.42435,895.656322%20L116.331379,895.656322%20L116.305497,895.420134%20C115.883945,892.200222%20113.180401,889.698255%20109.871576,889.590944%20L109.871576,889.590944%20Z%20M115.974598,899.266437%20L112.616437,899.266437%20L112.616437,902.624598%20L115.974598,902.624598%20L115.974598,899.266437%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",q={class:"mix-body"},D=["id"],Z={DEFAULT_ICON:T,ACTIVE_ICON:F,NAME_CN:"饼状图",NAME_EN:"Pie",ORDER:1},P={titleColor:"#111",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,showLabel:!1,showLegend:!0,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:!0,showRate:!1,wrap:!1,wrapByte:{value:5,type:"number",label:"component.options.pie_wrapByte",dependent:"wrap"}},U=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"},{name:"参数二",fv:"",object_id:"",color:"#3bbc6a"},{name:"参数三",fv:"",object_id:"",color:"#e24359"}],H=["name","fv","object_id","color"],G=["mosaic","statistics","calculate"],K={useAlias:!1,multiObject:!1,source:"mosaic"},X={DEFAULT:Z,OPTIONS:P,DATA:U,PARAMS:H,SOURCE:G,COMMON:K},J=a.defineComponent(f(h({},X),{__name:"pie",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){g.use([j.install,A.install,g.install,g.install$1,I.install]);const s=r,c=b.useLinkStore(),S={horizontal:{orient:"horizontal",bottom:"5%",left:"center"},vertical:{orient:"vertical",right:"5%",top:"5%"}};class x extends N.EChartComponentBase{initChart(){var e,o;super.initChart(),this.props.mode==="preview"&&((e=this.chartObj)==null||e.off("click"),(o=this.chartObj)==null||o.on("click",t=>{var i,n,p,u,d,w;const l=t==null?void 0:t.name;if(typeof l=="string"&&l){const k=((n=(i=this.props.conf)==null?void 0:i.options)==null?void 0:n.linkChannel)==="custom"?(u=(p=this.props.conf)==null?void 0:p.options)==null?void 0:u.customChannel:(w=(d=this.props.conf)==null?void 0:d.options)==null?void 0:w.linkChannel;c.publish(k||"pie","pie",{objectId:"",deviceId:"",type:"select",fieldKey:l,fv:h({key:l},t),source:"pie"})}}))}extractStyles(){return f(h({},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:o,name:t}=this.props.conf,l=o.map((i,n)=>i.color||M.COLORS[n]);return{title:{show:!1,text:t||"",x:"center"},color:l,tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:f(h({show:e.showLegend},S[e.orient]),{data:o.map(i=>i.name),textStyle:{color:e.textColor}}),series:this.formatSeries()}}formatSeries(){const e=this.Style.value,{data:o,name:t}=this.props.conf,l=o.map(n=>({value:0,name:n.name})),i=e.type==="pie"?`${e.radius}%`:[`${e.inside}%`,`${e.outside}%`];return[{name:t,type:"pie",radius:i,center:["50%","40%"],data:l,emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{color:e.textColor,lineHeight:16,fontSize:e.textSize,formatter:n=>this.formatLabel(n)}}]}formatLabel(e){const o=this.Style.value;let t=e.name;return o.showValue&&o.showRate?t=`${e.name}: ${e.value}(${e.percent}%)`:o.showValue?t=`${e.name}: ${e.value}`:o.showRate&&(t=`${e.name}${e.percent}%`),this.insertBreaks(t)}insertBreaks(e){const o=this.Style.value;if(!o.wrap)return e;const t=o.wrapByte||5;let l="",i=0,n=0;for(const p of e)p.charCodeAt(0)>=19968&&p.charCodeAt(0)<=40959?(n++,i+=2):i+=1,l+=p,(n>=t||i>=t*2)&&(l+=`
|
|
2
2
|
`,n=0,i=0);return l}setSocketData(e){if(!e||!this.chartObj)return;const{data:o}=this.props.conf,t=this.chartObj.getOption();o.forEach((l,i)=>{var p,u,d;const n=this.extractDataValue(e,l.fv);(d=(u=(p=t.series)==null?void 0:p[0])==null?void 0:u.data)!=null&&d[i]&&(t.series[0].data[i].value=n!=null?n:0)}),this.updateChart(t)}}const m=new x(s,"pie");m.setupLifecycle();const L=m.getStyle(),O=m.getEchartId(),_=a.computed(()=>R.generateTitleStyle(s.conf.options));return(C,e)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(L).bgColor,borderRadius:`${a.unref(L).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(_.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(O)},null,8,D)]),a.renderSlot(C.$slots,"default",{},void 0,!0)],4))}})),Q=b._export_sfc(J,[["__scopeId","data-v-d2224a67"]]);exports.default=Q;
|
|
@@ -11,13 +11,13 @@ var y = (a, s, r) => s in a ? V(a, s, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return a;
|
|
12
12
|
}, u = (a, s) => E(a, $(s));
|
|
13
13
|
import { defineComponent as M, computed as A, openBlock as j, createElementBlock as I, normalizeStyle as b, unref as m, createElementVNode as g, toDisplayString as N, renderSlot as R } from "vue";
|
|
14
|
-
import { C as F } from "./element-resize-detector-
|
|
15
|
-
import { u as T, _ as D } from "./index-
|
|
16
|
-
import { E as Z } from "./EChartComponentBase-
|
|
14
|
+
import { C as F } from "./element-resize-detector-DeMhGbNi.js";
|
|
15
|
+
import { u as T, _ as D } from "./index-zPaMBZk-.js";
|
|
16
|
+
import { E as Z } from "./EChartComponentBase-GBbKjtlb.js";
|
|
17
17
|
import { g as P } from "./titleStyle-BT5GlpAb.js";
|
|
18
|
-
import {
|
|
19
|
-
import { i as
|
|
20
|
-
import {
|
|
18
|
+
import { u as U, i as H, a as G } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
19
|
+
import { i as K } from "./install-CBde4hAM.js";
|
|
20
|
+
import { i as X } from "./install-hfre7yvV.js";
|
|
21
21
|
import { i as q } from "./install-BzdOSCzO.js";
|
|
22
22
|
const J = "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(-101.000000,%20-888.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M109.65,888.3%20C114.068274,888.3%20117.65,891.881726%20117.65,896.3%20C117.65,896.655494%20117.361815,896.943678%20117.006322,896.943678%20L117.006322,896.943678%20L110.42435,896.943678%20C110.35217,896.943678%20110.293678,897.00217%20110.293678,897.07435%20L110.293678,897.07435%20L110.293678,903.656322%20C110.293678,904.011815%20110.005494,904.3%20109.65,904.3%20C105.231726,904.3%20101.65,900.718274%20101.65,896.3%20C101.65,891.881726%20105.231726,888.3%20109.65,888.3%20Z%20M116.619147,897.979371%20C116.974641,897.979371%20117.262825,898.267555%20117.262825,898.623049%20L117.262825,898.623049%20L117.262825,903.269147%20C117.262825,903.624641%20116.974641,903.912825%20116.619147,903.912825%20L116.619147,903.912825%20L111.973049,903.912825%20C111.617555,903.912825%20111.329371,903.624641%20111.329371,903.269147%20L111.329371,903.269147%20L111.329371,898.623049%20C111.329371,898.267555%20111.617555,897.979371%20111.973049,897.979371%20L111.973049,897.979371%20Z%20M109.65,889.587356%20C105.942713,889.587356%20102.937356,892.592713%20102.937356,896.3%20C102.937356,899.78485%20105.59289,902.649474%20108.990767,902.980683%20L108.990767,902.980683%20L109.006322,902.981379%20L109.006322,897.07435%20C109.006322,896.334692%20109.572602,895.72732%20110.295278,895.662117%20L110.295278,895.662117%20L110.42435,895.656322%20L116.331379,895.656322%20L116.305497,895.420134%20C115.883945,892.200222%20113.180401,889.698255%20109.871576,889.590944%20L109.871576,889.590944%20Z%20M115.974598,899.266437%20L112.616437,899.266437%20L112.616437,902.624598%20L115.974598,902.624598%20L115.974598,899.266437%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Q = "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(-101.000000,%20-888.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M109.65,888.3%20C114.068274,888.3%20117.65,891.881726%20117.65,896.3%20C117.65,896.655494%20117.361815,896.943678%20117.006322,896.943678%20L117.006322,896.943678%20L110.42435,896.943678%20C110.35217,896.943678%20110.293678,897.00217%20110.293678,897.07435%20L110.293678,897.07435%20L110.293678,903.656322%20C110.293678,904.011815%20110.005494,904.3%20109.65,904.3%20C105.231726,904.3%20101.65,900.718274%20101.65,896.3%20C101.65,891.881726%20105.231726,888.3%20109.65,888.3%20Z%20M116.619147,897.979371%20C116.974641,897.979371%20117.262825,898.267555%20117.262825,898.623049%20L117.262825,898.623049%20L117.262825,903.269147%20C117.262825,903.624641%20116.974641,903.912825%20116.619147,903.912825%20L116.619147,903.912825%20L111.973049,903.912825%20C111.617555,903.912825%20111.329371,903.624641%20111.329371,903.269147%20L111.329371,903.269147%20L111.329371,898.623049%20C111.329371,898.267555%20111.617555,897.979371%20111.973049,897.979371%20L111.973049,897.979371%20Z%20M109.65,889.587356%20C105.942713,889.587356%20102.937356,892.592713%20102.937356,896.3%20C102.937356,899.78485%20105.59289,902.649474%20108.990767,902.980683%20L108.990767,902.980683%20L109.006322,902.981379%20L109.006322,897.07435%20C109.006322,896.334692%20109.572602,895.72732%20110.295278,895.662117%20L110.295278,895.662117%20L110.42435,895.656322%20L116.331379,895.656322%20L116.305497,895.420134%20C115.883945,892.200222%20113.180401,889.698255%20109.871576,889.590944%20L109.871576,889.590944%20Z%20M115.974598,899.266437%20L112.616437,899.266437%20L112.616437,902.624598%20L115.974598,902.624598%20L115.974598,899.266437%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", W = { class: "mix-body" }, Y = ["id"], ee = {
|
|
23
23
|
DEFAULT_ICON: J,
|
|
@@ -77,7 +77,7 @@ const J = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3cs
|
|
|
77
77
|
theme: { type: String, default: "light" }
|
|
78
78
|
},
|
|
79
79
|
setup(a) {
|
|
80
|
-
|
|
80
|
+
U([K, X, H, G, q]);
|
|
81
81
|
const s = a, r = T(), x = {
|
|
82
82
|
horizontal: { orient: "horizontal", bottom: "5%", left: "center" },
|
|
83
83
|
vertical: { orient: "vertical", right: "5%", top: "5%" }
|