import"./index-M_JNBppB.js";/* empty css                     *//* empty css                 *//* empty css                        *//* empty css               *//* empty css                  *//* empty css                     *//* empty css                  *//* empty css                  */import{_}from"./CommonAttr-DJ3ylPmc.js";import{ax as f,c,B as v,z as n,O as l,u as b,F as m,y as V,I as g}from"./vue-BJk78QHK.js";import{b as y,r as E,d as z,e as C,n as x,a as U}from"./element-3_pOinej.js";import"./threejs-BafxXW5-.js";import"./utils-YI6ye1sf.js";import"./vxe-Dx3zSILm.js";/* empty css                    */import"./el-tooltip-l0sNRNKZ.js";import"./el-collapse-item-l0sNRNKZ.js";/* empty css                              *//* empty css                  */import"./attr-DzN5Wxes.js";/* empty css                   *//* empty css                  *//* empty css                   *//* empty css                    *//* empty css                 *//* empty css                *//* empty css                   *//* empty css                 *//* empty css                */import"./request-CEvu378m.js";const k={class:"attr-list v-talbe-attr"},rl=Object.assign({name:"AlarmAttr"},{__name:"AlarmAttr",setup(w){const i=f(),e=c(()=>i.state.curComponent.propValue);return(A,a)=>{const s=E,r=y,o=C,p=z,u=x,d=U;return n(),v("div",k,[l(b(_)),l(d,{class:"more-form","label-position":"left","label-width":"100px"},{default:m(()=>[l(r,{label:"允许声音:"},{default:m(()=>[l(s,{size:"small",modelValue:e.value.config.ifCanPlay,"onUpdate:modelValue":a[0]||(a[0]=t=>e.value.config.ifCanPlay=t)},null,8,["modelValue"])]),_:1}),e.value.config.ifCanPlay?(n(),V(r,{key:0,label:"警告音:"},{default:m(()=>[l(p,{size:"small",modelValue:e.value.config.mp3,"onUpdate:modelValue":a[1]||(a[1]=t=>e.value.config.mp3=t),placeholder:"请选择"},{default:m(()=>[l(o,{label:"警报音1",value:0}),l(o,{label:"警报音2",value:1}),l(o,{label:"警报音3",value:2}),l(o,{label:"警报音4",value:3}),l(o,{label:"警报音5",value:4})]),_:1},8,["modelValue"])]),_:1})):g("",!0),l(r,{label:"触发公式:"},{default:m(()=>[l(p,{size:"small",modelValue:e.value.config.type,"onUpdate:modelValue":a[2]||(a[2]=t=>e.value.config.type=t),placeholder:"请选择"},{default:m(()=>[l(o,{label:">",value:">"}),l(o,{label:">=",value:">="}),l(o,{label:"=",value:"="}),l(o,{label:"<=",value:"<="}),l(o,{label:"<",value:"<"})]),_:1},8,["modelValue"])]),_:1}),l(r,{label:"警告值:"},{default:m(()=>[l(u,{size:"small",modelValue:e.value.config.alarmValue,"onUpdate:modelValue":a[3]||(a[3]=t=>e.value.config.alarmValue=t),step:1},null,8,["modelValue"])]),_:1}),l(r,{label:"当前值:"},{default:m(()=>[l(u,{size:"small",modelValue:e.value.data,"onUpdate:modelValue":a[4]||(a[4]=t=>e.value.data=t),step:1},null,8,["modelValue"])]),_:1})]),_:1})])}}});export{rl as default};
