var T=Object.defineProperty,$=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var c=(a,o,n)=>o in a?T(a,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[o]=n,g=(a,o)=>{for(var n in o||(o={}))N.call(o,n)&&c(a,n,o[n]);if(u)for(var n of u(o))V.call(o,n)&&c(a,n,o[n]);return a},C=(a,o)=>$(a,D(o));import{useData as L}from"./hook-Cmz51VBR.js";import{P as E}from"./index-CnAi1QxJ.js";import{d as I,x as M,r as m,o as O,c as j,e as q,b as r,h as l,u as e,f,R as _,a8 as b}from"./index-CRmU-Qpi.js";import{u as A}from"./hooks-ItYVRz1P.js";import{d as F}from"./add-circle-line-DOJqVT3s.js";import"./form.vue_vue_type_script_setup_true_lang-DOzyNmG6.js";import"./sortable.esm-7jaD_3Ar.js";import"./epTheme-Dbh1KLs6.js";const G={class:"main"},oe=I({name:"newuserTag",__name:"index",setup(a){const{onSearch:o,isShow:n,tableList:h,pagination:v,tableLabel:x,handleSizeChange:y,handleCurrentChange:k,handleDelete:w,loading:P,openDialog:d}=L();return M(()=>{o()}),(H,t)=>{const s=m("el-button"),R=m("el-popconfirm"),B=m("pure-table");return O(),j("div",G,[q("div",{ref:"contentRef",class:_(["flex",e(b)()?"flex-wrap":""])},[r(e(E),{title:"标签列表",class:_([e(n)&&!e(b)()?"!w-[60vw]":"w-full"]),columns:e(x),onRefresh:e(o)},{buttons:l(()=>[r(s,{type:"primary",icon:e(A)(e(F)),onClick:t[0]||(t[0]=i=>e(d)("新增",{}))},{default:l(()=>t[1]||(t[1]=[f(" 新增标签 ")])),_:1},8,["icon"])]),default:l(({size:i,dynamicColumns:S})=>[r(B,{ref:"tableRef","align-whole":"center",showOverflowTooltip:"","table-layout":"auto","default-expand-all":"",loading:e(P),size:i,"row-key":"id",adaptive:"",adaptiveConfig:{offsetBottom:108},data:e(h),columns:S,pagination:C(g({},e(v)),{size:i}),"header-cell-style":{background:"var(--el-fill-color-light)",color:"var(--el-text-color-primary)"},onPageCurrentChange:e(k),onPageSizeChange:e(y)},{operation:l(({row:p})=>[r(s,{link:"",type:"primary",size:i,onClick:z=>e(d)("编辑",p)},{default:l(()=>t[2]||(t[2]=[f(" 编辑 ")])),_:2},1032,["size","onClick"]),r(R,{title:`是否确认删除标签名称为【${p.tag_name}】的这条数据`,onConfirm:z=>e(w)(p)},{reference:l(()=>[r(s,{link:"",type:"primary",size:i},{default:l(()=>t[3]||(t[3]=[f(" 删除 ")])),_:2},1032,["size"])]),_:2},1032,["title","onConfirm"])]),_:2},1032,["loading","size","data","columns","pagination","onPageCurrentChange","onPageSizeChange"])]),_:1},8,["class","columns","onRefresh"])],2)])}}});export{oe as default};