import{d as y,l as h,r,o as e,x as o,u as p,F as m,z as n,c as u,B as s,b as c,a as _,t as k,A as i,D as N}from"./vue.1703796278973.js";import{_ as f}from"./_plugin-vue_export-helper.1703796278973.js";const x={key:0},v={class:"center-item"},I={class:"trigger-options-name"},T={key:1},w={key:0,class:"center-item"},B={className:"trigger-options-type"},C={key:1},b={className:"trigger-options-when"},A={key:2},V={className:"trigger-options-time"},j={key:3},D={className:"trigger-options-extraTime"},E={key:4,class:"center-item"},O={className:"trigger-options-action"},z={key:5,class:"center-item"},F={className:"trigger-options-type"},S=y({name:"DeviceTitle"}),q=y({...S,props:{options:{type:Object,default:()=>({})}},setup(t){const d=t,l=h(()=>(console.log(d.options,Object.keys(d.options).length),!!Object.keys(d.options).length));return(G,H)=>{const a=r("AIcon"),g=r("Ellipsis");return e(),o("div",{class:N(["trigger-options-content",p(l)?"is-add":""])},[p(l)?(e(),o(m,{key:1},[n("div",v,[t.options.selectorIcon?(e(),u(a,{key:0,type:t.options.selectorIcon,class:"icon-padding-right"},null,8,["type"])):s("",!0),n("span",I,[c(g,{style:{"max-width":"310px"}},{default:_(()=>[k(i(t.options.name),1)]),_:1})]),t.options.extraName?(e(),o("span",T,i(t.options.extraName),1)):s("",!0)]),t.options.onlyName?s("",!0):(e(),o(m,{key:0},[t.options.productName?(e(),o("div",w,[c(a,{type:"icon-chanpin1",class:"icon-padding-right"}),n("span",B,i(t.options.productName),1)])):s("",!0),t.options.when?(e(),o("div",C,[n("span",b,i(t.options.when),1)])):s("",!0),t.options.time?(e(),o("div",A,[n("span",V,i(t.options.time),1)])):s("",!0),t.options.extraTime?(e(),o("div",j,[n("span",D,i(t.options.extraTime),1)])):s("",!0),t.options.action?(e(),o("div",E,[c(a,{type:t.options.typeIcon,class:"icon-padding-right"},null,8,["type"]),n("span",O,i(t.options.action),1)])):s("",!0),t.options.type?(e(),o("div",z,[c(a,{type:t.options.typeIcon,class:"icon-padding-right"},null,8,["type"]),n("span",F,i(t.options.type),1)])):s("",!0)],64))],64)):(e(),o("span",x," 点击配置设备触发 "))],2)}}});const L=f(q,[["__scopeId","data-v-1d32f3f9"]]);export{L as default};
