import{a5 as h,r as v,av as w,aw as y}from"./index.17037962789732.js";import"./index.170379627897319.js";import"./index.170379627897327.js";import"./index.170379627897318.js";import"./index.170379627897316.js";import"./index.170379627897317.js";import{f as x}from"./comm.1703796278973.js";import{d as f,k as j,o as C,c as k,a as r,b as n,u as d,M as N,t as P}from"./vue.1703796278973.js";const R=f({name:"ReadProperties"}),M=f({...R,props:{value:{type:Array,default:()=>[]},action:{type:String,default:""},properties:{type:Array,default:()=>[]}},emits:["update:value","update:action"],setup(u,{emit:i}){const p=j(u.value),g=(c,a)=>{const s=a.map(e=>e.name);let t="",o=!1,l=0;t=s.reduce((e,m,_)=>e.length<=30?(l=_,_===0?m:e+"、"+m):(o=!0,e),""),o&&s.length-1>l&&(t+=`等${a.length}个属性`),i("update:value",c),i("update:action",`读取 ${t}`)};return(c,a)=>{const s=h,t=v,o=w,l=y;return C(),k(l,{gutter:[24]},{default:r(()=>[n(o,{span:10},{default:r(()=>[n(t,{name:"readProperties",rules:[{required:!0,message:"请选择属性"}]},{default:r(()=>[n(s,{"show-search":"",mode:"multiple","max-tag-count":"responsive",placeholder:"请选择属性",style:{width:"100%"},value:d(p),"onUpdate:value":a[0]||(a[0]=e=>N(p)?p.value=e:null),options:u.properties,"filter-option":d(x),onChange:g},null,8,["value","options","filter-option"])]),_:1})]),_:1}),n(o,{span:14},{default:r(()=>[n(t,null,{default:r(()=>[P("定时读取所选属性值")]),_:1})]),_:1})]),_:1})}}});export{M as _};
