UNPKG

zzlhpdk-ui

Version:

基于element-ui二次封装的组件库

2 lines (1 loc) 21.2 kB
(function(e,S){typeof exports=="object"&&typeof module<"u"?module.exports=S(require("vue")):typeof define=="function"&&define.amd?define(["vue"],S):(e=typeof globalThis<"u"?globalThis:e||self,e["zzlhpdk-ui"]=S(e.Vue))})(this,function(e){"use strict";const S=(m,f,p)=>e.computed({get(){const y=m[f]??{};return new Proxy(y,{get(c,d){return Reflect.get(c,d)},set(c,d,i){return p(`update:${f}`,{...c,[d]:i}),!0}})},set(y){p(`update:${f}`,y)}}),I=e.defineComponent({__name:"index",props:{formFields:{default:()=>{},type:Object},formConfig:{type:Object,default:()=>({labelWidth:"120px",type:"submit",formItemWidth:"430px"})},modelValue:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(m,{emit:f}){const p=m,{formFields:y,formConfig:c}=e.toRefs(p),i=S(p,"modelValue",f),h=(t,n)=>{if(c.value.type==="view")return[];if(c.value.type==="search")return t.rules&&t.rules.length>0?[...t.rules,{required:!1}]:{required:!1};if(c.value.type==="submit"){if(t.required&&!t.rules)return[{required:t.required,message:`请${n}${t.label||"此项内容"}`,trigger:["change","blur"]}];if(t.required&&t.rules&&t.rules.length>0)return[...t.rules,{required:t.required,message:`请${n}${t.label||"此项内容"}`,trigger:["change","blur"]}];if(t.rules&&t.rules.length>0)return[...t.rules,{required:t.required,message:`请${n}${t.label||"此项内容"}`,trigger:["change","blur"]}]}},_=t=>c.value.type==="view"?!0:t.disabled||!1,w=(t,n)=>t.placeholder?t.placeholder:c.value.type!=="view"?`请${n}${t.label}`:"",C=(t,n)=>t.focus?t.focus(n):null,g=(t,n)=>t.blur?t.blur(n):null,V=(t,n)=>t.click?t.click(n):null,N=(t,n)=>t.change?t.change(n):null;return(t,n)=>{const $=e.resolveComponent("el-button"),B=e.resolveComponent("el-input"),k=e.resolveComponent("el-form-item"),D=e.resolveComponent("el-option"),W=e.resolveComponent("el-select"),F=e.resolveComponent("el-tree-select"),U=e.resolveComponent("el-date-picker"),z=e.resolveComponent("el-checkbox"),a=e.resolveComponent("el-checkbox-group"),r=e.resolveComponent("el-cascader"),x=e.resolveComponent("el-radio"),u=e.resolveComponent("el-radio-group");return e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),(l,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("span",{style:e.normalizeStyle({width:l.remove||l.hidden?0:e.unref(c).formItemWidth||"430px",...l.style}),key:s},[l.type==="input"&&!l.remove?(e.openBlock(),e.createBlock(k,{key:0,prop:s,label:l.label,"label-width":l.labelWidth||e.unref(c).labelWidth||"120px",rules:h(l,"输入")},{default:e.withCtx(()=>[e.createVNode(B,{"show-word-limit":l.showWordLimit||!1,"show-password":l.showPassword||!1,disabled:_(l),type:l.inputType||"text",modelValue:e.unref(i)[s],"onUpdate:modelValue":o=>e.unref(i)[s]=o,modelModifiers:{trim:!0},maxlength:l.maxlength||30,placeholder:w(l,"输入"),onFocus:o=>C(l,o),onBlur:o=>g(l,o),onClick:o=>V(l,o),formatter:l.formatter?o=>l.formatter(o):null},e.createSlots({_:2},[l.append&&e.unref(c).type!=="view"?{name:"append",fn:e.withCtx(()=>[e.createVNode($,{onClick:o=>l.appendClick?l.appendClick(o):null,icon:l.icon},null,8,["onClick","icon"])]),key:"0"}:void 0]),1032,["show-word-limit","show-password","disabled","type","modelValue","onUpdate:modelValue","maxlength","placeholder","onFocus","onBlur","onClick","formatter"])]),_:2},1032,["prop","label","label-width","rules"])):e.createCommentVNode("",!0),l.type==="select"&&!l.remove?(e.openBlock(),e.createBlock(k,{key:1,prop:s,label:l.label,"label-width":l.labelWidth||e.unref(c).labelWidth||"120px",rules:h(l,"输入")},{default:e.withCtx(()=>[e.createVNode(W,{mode:l.mode||"default",style:{width:"100%"},multiple:l.multiple,filterable:l.filterable||!0,clearable:l.clearable||!0,"collapse-tags":l.collapseTags,"collapse-tags-tooltip":l.collapseTagsTooltip,disabled:_(l),modelValue:e.unref(i)[s],"onUpdate:modelValue":o=>e.unref(i)[s]=o,placeholder:w(l,"选择"),onChange:o=>{l.change&&l.change(o)}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.options,o=>(e.openBlock(),e.createBlock(D,{key:o.key||o.value,label:o.label,value:o.value,disabled:o.disabled||!1},null,8,["label","value","disabled"]))),128))]),_:2},1032,["mode","multiple","filterable","clearable","collapse-tags","collapse-tags-tooltip","disabled","modelValue","onUpdate:modelValue","placeholder","onChange"])]),_:2},1032,["prop","label","label-width","rules"])):e.createCommentVNode("",!0),l.type==="treeSelect"&&!l.remove?(e.openBlock(),e.createBlock(k,{key:2,prop:s,label:l.label,"label-width":l.labelWidth||e.unref(c).labelWidth||"120px",rules:h(l,"选择")},{default:e.withCtx(()=>[e.createVNode(F,{"render-after-expand":!1,modelValue:e.unref(i)[s],"onUpdate:modelValue":o=>e.unref(i)[s]=o,data:l.options||[],placeholder:w(l,"选择"),"show-checkbox":l.showCheckbox||!0,"check-strictly":l.checkStrictly||!1,disabled:_(l),multiple:l.multiple||!1,props:l.props||{},filterable:l.filterable||!1,"filter-node-method":l.filterNodeMethod||null,"expand-on-click-node":l.expandOnClickNode||!1,"default-expand-all":l.defaultExpandAll||!1,"default-expanded-keys":l.defaultExpandedKeys||[],onNodeClick:l.nodeClick},null,8,["modelValue","onUpdate:modelValue","data","placeholder","show-checkbox","check-strictly","disabled","multiple","props","filterable","filter-node-method","expand-on-click-node","default-expand-all","default-expanded-keys","onNodeClick"])]),_:2},1032,["prop","label","label-width","rules"])):e.createCommentVNode("",!0),l.type==="date"&&!l.remove?(e.openBlock(),e.createBlock(k,{key:3,prop:s,label:l.label,"label-width":l.labelWidth||e.unref(c).labelWidth||"120px",rules:h(l,"输入")},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(U,{key:s,onFocus:o=>C(l,o),onBlur:o=>g(l,o),onChange:o=>N(l,o),disabled:_(l),modelValue:e.unref(i)[s],"onUpdate:modelValue":o=>e.unref(i)[s]=o,type:l.picker||"date",format:l.showFormat||"YYYY/MM/DD HH:mm:ss",placeholder:w(l,"选择"),"value-format":l.valueFormat||"YYYY-MM-DD HH:mm:ss",style:{width:"100%"},"start-placeholder":"开始时间","end-placeholder":"结束时间","disabled-date":l.disabledDate||null,shortcuts:l.shortcuts||[],"default-time":l.defaultTime},null,8,["onFocus","onBlur","onChange","disabled","modelValue","onUpdate:modelValue","type","format","placeholder","value-format","disabled-date","shortcuts","default-time"]))]),_:2},1032,["prop","label","label-width","rules"])):e.createCommentVNode("",!0),l.type==="textarea"&&!l.remove?(e.openBlock(),e.createBlock(k,{key:4,prop:s,label:l.label,"label-width":l.labelWidth||e.unref(c).labelWidth||"120px",rules:h(l,"输入")},{default:e.withCtx(()=>[e.createVNode(B,{type:"textarea","show-word-limit":"",placeholder:w(l,"输入"),disabled:_(l),modelValue:e.unref(i)[s],"onUpdate:modelValue":o=>e.unref(i)[s]=o,rows:l.rows||4,maxlength:l.maxlength||2e3},null,8,["placeholder","disabled","modelValue","onUpdate:modelValue","rows","maxlength"])]),_:2},1032,["prop","label","label-width","rules"])):e.createCommentVNode("",!0),l.type==="checkBox"&&!l.remove?(e.openBlock(),e.createBlock(k,{key:5,prop:s,label:l.label,"label-width":l.labelWidth||e.unref(c).labelWidth||"120px",rules:h(l,"选择")},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(i)[s],"onUpdate:modelValue":o=>e.unref(i)[s]=o,disabled:_(l),placeholder:w(l,"选择")},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.options,o=>(e.openBlock(),e.createBlock(z,{label:o.value,key:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","placeholder"])]),_:2},1032,["prop","label","label-width","rules"])):e.createCommentVNode("",!0),l.type==="cascader"&&!l.remove?(e.openBlock(),e.createBlock(k,{key:6,prop:s,label:l.label,"label-width":l.labelWidth||e.unref(c).labelWidth||"120px",rules:h(l,"选择")},{default:e.withCtx(()=>[e.createVNode(r,{placeholder:w(l,"选择"),disabled:_(l),modelValue:e.unref(i)[s],"onUpdate:modelValue":o=>e.unref(i)[s]=o,options:l.options||[],props:l.props||{},"show-all-levels":l.showAllLevels||!1,clearable:l.clearable||!0,"collapse-tags":"",style:{width:"100%"},filterable:"",onChange:o=>{l.change&&l.change(o)}},null,8,["placeholder","disabled","modelValue","onUpdate:modelValue","options","props","show-all-levels","clearable","onChange"])]),_:2},1032,["prop","label","label-width","rules"])):e.createCommentVNode("",!0),l.type==="radio"&&!l.remove?(e.openBlock(),e.createBlock(k,{key:7,prop:s,label:l.label,"label-width":l.labelWidth||e.unref(c).labelWidth||"120px",rules:h(l,"选择")},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(i)[s],"onUpdate:modelValue":o=>e.unref(i)[s]=o,disabled:_(l),placeholder:w(l,"选择")},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.options,o=>(e.openBlock(),e.createBlock(x,{key:o.value,value:o.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","placeholder"])]),_:2},1032,["prop","label","label-width","rules"])):e.createCommentVNode("",!0)],4)),[[e.vShow,!l.hidden||!l.remove]])),128)),e.createElementVNode("span",null,[e.renderSlot(t.$slots,"custom")])],64)}}}),j=e.defineComponent({__name:"index",props:{formConfig:{type:Object,default:()=>({labelWidth:"120px",type:"submit",labelPosition:"right",inline:!0,style:{width:"100%",display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"center"}})},formFields:{default:()=>{},type:Object},modelValue:{default:()=>{},type:Object}},emits:["update:modelValue"],setup(m,{expose:f,emit:p}){const y=m,{formFields:c,formConfig:d}=e.toRefs(y),h=S(y,"modelValue",p),_=e.ref(null),w=()=>{const g=e.getCurrentInstance(),V=Object.entries(_.value.$.exposed);for(const[N,t]of V)g.exposed[N]=t};return e.onMounted(()=>{w()}),f({check:async()=>_.value.validate(g=>(g||setTimeout(()=>{document.querySelectorAll(".el-form-item__error")[0].scrollIntoView({block:"center",behavior:"smooth"})},100),g))}),(g,V)=>{const N=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(N,{"label-position":e.unref(d).labelPosition,inline:e.unref(d).inline??!0,class:"form",style:e.normalizeStyle(e.unref(d).style),ref_key:"formRef",ref:_,"label-width":e.unref(d).labelWidth||"120px",model:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(I,{formConfig:e.unref(d),formFields:e.unref(c),modelValue:e.unref(h),"onUpdate:modelValue":V[0]||(V[0]=t=>e.isRef(h)?h.value=t:null)},{custom:e.withCtx(()=>[e.renderSlot(g.$slots,"custom",{},void 0,!0)]),_:3},8,["formConfig","formFields","modelValue"])]),_:3},8,["label-position","inline","style","label-width","model"])}}}),E=(m,f)=>{const p=m.__vccOpts||m;for(const[y,c]of f)p[y]=c;return p},q=E(j,[["__scopeId","data-v-1b13ffe2"]]);/*! Element Plus Icons Vue v2.3.1 */var M=e.defineComponent({name:"RefreshLeft",__name:"refresh-left",setup(m){return(f,p)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),O=M,L=e.defineComponent({name:"Search",__name:"search",setup(m){return(f,p)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),A=L;const P={style:{width:"100%"}},Y={style:{display:"inline-block","margin-left":"16px",height:"50px"}},H={key:1,style:{"text-align":"right",width:"100%","margin-top":"20px"}},K=e.defineComponent({name:"zz-table",__name:"index",props:{tableColumns:{type:Object,default:()=>({})},tableConfig:{default:()=>({rowKey:"id",showSearch:!1,multiple:!1,singleSelect:!1,pageApi:()=>{},hiddenPageInfo:!1,reserveSelection:!1,beforeRequest:null}),type:Object},searchFields:{default:()=>({}),type:Object},searchConfig:{default:()=>({defaultSearch:{},labelWidth:"120px",type:"search",labelPosition:"right"}),type:Object}},emits:["selectionChange","sendResultInfo"],setup(m,{expose:f,emit:p}){const y=m,{tableColumns:c,tableConfig:d,searchFields:i,searchConfig:h}=e.toRefs(y),_=e.ref(),w=e.ref(0),C=e.ref({current:1,size:10}),g=e.ref(!1),V=e.ref([]),N=e.ref({});e.onMounted(()=>{n()});const t=e.ref(),n=async()=>{if(!d.value.pageApi)return;g.value=!0;let a={...h.value.defaultSearch,...C.value,..._.value};typeof d.value.beforeRequest=="function"&&(a=await d.value.beforeRequest(a)),d.value.pageApi(a).then(r=>{var x,u;V.value=(r==null?void 0:r.records)||((x=r==null?void 0:r.data)==null?void 0:x.records)||[],w.value=Number((r==null?void 0:r.total)??((u=r==null?void 0:r.data)==null?void 0:u.total)??0),N.value=r}).finally(()=>{g.value=!1,$("sendResultInfo",{total:w.value,allResponse:N.value})})},$=p,B=()=>{n()},k=()=>{_.value={},C.value={current:1,size:10},n()},D=a=>{C.value.current=a,B()},W=a=>{C.value.size=a,B()},F=a=>{$("selectionChange",a)},U=a=>(C.value.current-1)*C.value.size+a+1,z=(a,r)=>{if(r.options){const x=r.options.find(u=>u.value===a[r.prop]);if(x)return(x==null?void 0:x.label)??""}return a[r.prop]};return f({getTableData:n,tableData:V,selectionChange:F,handleRest:k}),(a,r)=>{const x=e.resolveComponent("el-button"),u=e.resolveComponent("el-table-column"),l=e.resolveComponent("el-table"),s=e.resolveComponent("el-pagination"),o=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",P,[e.unref(d).showSearch?(e.openBlock(),e.createBlock(q,{key:0,ref_key:"zzFormRef",ref:t,modelValue:_.value,"onUpdate:modelValue":r[0]||(r[0]=b=>_.value=b),formFields:e.unref(i),formConfig:e.unref(h)},{custom:e.withCtx(()=>[e.createElementVNode("span",Y,[e.createVNode(x,{icon:e.unref(A),type:"primary",onClick:B,loading:!1},{default:e.withCtx(()=>r[2]||(r[2]=[e.createTextVNode(" 查询 ")])),_:1},8,["icon"]),e.createVNode(x,{icon:e.unref(O),style:{"margin-left":"20px"},loading:!1,onClick:k},{default:e.withCtx(()=>r[3]||(r[3]=[e.createTextVNode(" 重置 ")])),_:1},8,["icon"])])]),_:1},8,["modelValue","formFields","formConfig"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"tableHeader"),e.withDirectives((e.openBlock(),e.createBlock(l,{ref:"tableRef","cell-style":{textAlign:"center"},"header-cell-style":{textAlign:"center",background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},data:V.value,style:{width:"100%","margin-top":"20px"},"row-key":e.unref(d).rowKey,"highlight-current-row":e.unref(d).singleSelect,onSelectionChange:F,border:""},{default:e.withCtx(()=>[e.unref(d).multiple?(e.openBlock(),e.createBlock(u,{key:0,"reserve-selection":e.unref(d).reserveSelection,type:"selection",width:"55"},null,8,["reserve-selection"])):e.createCommentVNode("",!0),e.createVNode(u,{fixed:"left",type:"index",index:U,label:"序号",width:"80"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),b=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[b.slot?(e.openBlock(),e.createBlock(u,{prop:b.prop,label:b.label,width:b.width,fixed:b.fixed?b.fixed:!1,key:b.prop+1,"show-overflow-tooltip":""},{default:e.withCtx(R=>[e.renderSlot(a.$slots,b.slot,{row:R.row,column:R.column})]),_:2},1032,["prop","label","width","fixed"])):(e.openBlock(),e.createBlock(u,{prop:b.prop,label:b.label,width:b.width,fixed:b.fixed?b.fixed:!1,key:b.prop,"show-overflow-tooltip":""},{default:e.withCtx(({row:R})=>[e.createElementVNode("span",{style:e.normalizeStyle(b.style||null)},e.toDisplayString(z(R,b)),5)]),_:2},1032,["prop","label","width","fixed"]))],64))),256))]),_:3},8,["data","row-key","highlight-current-row"])),[[o,g.value]]),e.unref(d).hiddenPageInfo?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(s,{"current-page":C.value.current,"onUpdate:currentPage":r[1]||(r[1]=b=>C.value.current=b),"page-size":C.value.size,layout:"total, sizes,prev, pager, next,jumper",total:w.value,onCurrentChange:D,onSizeChange:W},null,8,["current-page","page-size","total"])]))])}}}),G=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(m){var f=Math.random()*16|0,p=m=="x"?f:f&3|8;return p.toString(16)}),J={class:"buttons"},T={form:q,table:K,editTable:E(e.defineComponent({__name:"index",props:{formConfig:{type:Object,default:()=>({labelWidth:"120px",type:"submit",labelPosition:"right",showIndex:!0,rowKey:"id"})},formFields:{default:()=>{},type:Object}},setup(m,{expose:f}){const p=e.ref({tableData:[]}),y=m,{formFields:c,formConfig:d}=e.toRefs(y),i=({row:t,rowIndex:n})=>{t.index=n},h=t=>{const n=G(),$=Object.keys(c.value),B={};B&&($.forEach(k=>{B[k]=t[k]||""}),p.value.tableData.push({...B,uuId:n}))};e.onMounted(()=>{h({})});const _=t=>{h({})},w=t=>{p.value.tableData=p.value.tableData.filter(n=>n.uuId!==t)},C=(t,n)=>{if(d.value.type==="view")return[];if(d.value.type==="submit"){if(t.required&&!t.rules)return[{required:t.required,message:`请${n}${t.label||"此项内容"}`,trigger:["change","blur"]}];if(t.required&&t.rules&&t.rules.length>0)return[...t.rules,{required:t.required,message:`请${n}${t.label||"此项内容"}`,trigger:["change","blur"]}];if(t.rules&&t.rules.length>0)return[...t.rules,{required:t.required,message:`请${n}${t.label||"此项内容"}`,trigger:["change","blur"]}]}return[]},g=(t,n)=>t.placeholder?t.placeholder:d.value.type!=="view"?`请${n}${t.label}`:"",V=t=>d.value.type==="view"?!0:t.disabled||!1,N=e.computed(()=>{var t;return(t=p.value)==null?void 0:t.tableData});return f({handleAdd:h,result:N}),(t,n)=>{const $=e.resolveComponent("el-table-column"),B=e.resolveComponent("el-option"),k=e.resolveComponent("el-select"),D=e.resolveComponent("el-form-item"),W=e.resolveComponent("el-input"),F=e.resolveComponent("el-button"),U=e.resolveComponent("el-table"),z=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(z,{model:p.value,ref:"formRef"},{default:e.withCtx(()=>[e.createVNode(U,{"cell-style":{textAlign:"center"},"header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)",textAlign:"center"},"row-key":e.unref(d).rowKey||"id",border:"",data:p.value.tableData,"row-class-name":i,style:{width:"100%"}},{default:e.withCtx(()=>[e.unref(d).showIndex?(e.openBlock(),e.createBlock($,{key:0,prop:"index",label:"序号",width:"80"},{default:e.withCtx(({row:a})=>[e.createTextVNode(e.toDisplayString(a.index+1),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(a,r)=>(e.openBlock(),e.createBlock($,{prop:r,label:a.label,"label-width":a.labelWidth||e.unref(d).labelWidth||"120px"},{default:e.withCtx(({row:x})=>[a.type==="select"?(e.openBlock(),e.createBlock(D,{key:0,prop:`tableData[${x.index}].${r}`,rules:C(a,"选择"),placeholder:g(a,"选择")},{default:e.withCtx(()=>[e.createVNode(k,{mode:a.mode||"default",style:{width:"100%"},multiple:a.multiple,filterable:a.filterable||!0,clearable:a.clearable||!0,"collapse-tags":a.collapseTags,"collapse-tags-tooltip":a.collapseTagsTooltip,disabled:V(a),modelValue:x[r],"onUpdate:modelValue":u=>x[r]=u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.options,u=>(e.openBlock(),e.createBlock(B,{key:u.key||u.value,label:u.label,value:u.value,disabled:u.disabled||!1},null,8,["label","value","disabled"]))),128))]),_:2},1032,["mode","multiple","filterable","clearable","collapse-tags","collapse-tags-tooltip","disabled","modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules","placeholder"])):e.createCommentVNode("",!0),a.type==="input"?(e.openBlock(),e.createBlock(D,{key:1,prop:`tableData[${x.index}].${r}`,rules:C(a,"输入"),placeholder:g(a,"输入")},{default:e.withCtx(()=>[e.createVNode(W,{type:a.inputType||"text",disabled:V(a),modelValue:x[r],"onUpdate:modelValue":u=>x[r]=u,modelModifiers:{trim:!0},maxlength:a.maxlength||30,placeholder:g(a,"输入")},null,8,["type","disabled","modelValue","onUpdate:modelValue","maxlength","placeholder"])]),_:2},1032,["prop","rules","placeholder"])):e.createCommentVNode("",!0)]),_:2},1032,["prop","label","label-width"]))),256)),e.createVNode($,{fixed:"right",label:"操作",width:"120px"},{default:e.withCtx(a=>[e.createElementVNode("div",J,[a.$index===p.value.tableData.length-1?(e.openBlock(),e.createBlock(F,{key:0,link:"",type:"primary",onClick:r=>_(a.row)},{default:e.withCtx(()=>n[0]||(n[0]=[e.createTextVNode(" 添加 ")])),_:2},1032,["onClick"])):e.createCommentVNode("",!0),e.createVNode(F,{disabled:p.value.tableData.length===1,link:"",type:"danger",onClick:r=>w(a.row.uuId)},{default:e.withCtx(()=>n[1]||(n[1]=[e.createTextVNode(" 移除 ")])),_:2},1032,["disabled","onClick"])])]),_:1})]),_:1},8,["row-key","data"])]),_:1},8,["model"])])}}}),[["__scopeId","data-v-62aac5c5"]])};return function(m){for(const f in T)m.component(`zz-${f}`,T[f])}});