auto-vue-basic 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(A,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("auto-vue-manual")):typeof define=="function"&&define.amd?define(["exports","vue","auto-vue-manual"],e):(A=typeof globalThis<"u"?globalThis:A||self,e(A.AutoVueBasic={},A.Vue,A["auto-vue-manual"]))})(this,function(A,e,l){"use strict";const q=l.createAutoApi("admin",{},"key"),O=l.createAutoApi("role",{},"key"),F=e.defineComponent({__name:"info",emits:["refresh"],setup(T,{expose:N,emit:w}){const V=w,t=e.reactive({key:"",avatar:"",username:"",password:"",salt:"",phone:"",email:"",language:"zh-CN",remark:"",roles:[]}),a=e.computed(()=>!t.key),c={username:[{required:!0,message:l.Translate("base.placeholder.input base.username"),trigger:"blur"}],phone:[{required:!0,validator:l.RulesUtils.phoneRule,message:l.Translate("base.placeholder.input base.phone"),trigger:"blur"}],password:[{required:a,message:l.Translate("base.placeholder.input base.password"),trigger:"blur"}],email:[{required:!0,message:l.Translate("base.placeholder.input base.email"),trigger:"blur"}],language:[{required:!0,message:l.Translate("base.placeholder.select base.language"),trigger:"change"}],roles:[{required:!0,type:"array",message:l.Translate("base.placeholder.select base.roles"),trigger:"change"}]},d=e.ref([]),_=async()=>{const n=await O.list();d.value=Array.isArray(n==null?void 0:n.data)?n.data:[]},{modal:C,title:x,form:i,requesting:b,executing:h,open:R,modify:B,submit:s,closed:r}=l.useForm(V,t,q);return N({openOrModify:async n=>{d.value.length||await _(),n?(t.key=n,B()):R()}}),(n,m)=>{const k=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),f=e.resolveComponent("el-radio-button"),S=e.resolveComponent("el-radio-group"),p=e.resolveComponent("el-checkbox"),U=e.resolveComponent("el-checkbox-group"),M=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(C),"onUpdate:modelValue":m[7]||(m[7]=y=>e.isRef(C)?C.value=y:null),title:e.unref(x)(),width:"900px",executing:e.unref(h),onClosed:e.unref(r),onSubmit:e.unref(s)},{default:e.withCtx(()=>[e.createVNode(M,{ref_key:"form",ref:i,model:t,"label-width":"auto",rules:c,disabled:e.unref(b)||e.unref(h)},{default:e.withCtx(()=>[e.createVNode(g,{label:e.unref(l.Translate)("base.username"),prop:"username"},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:t.username,"onUpdate:modelValue":m[0]||(m[0]=y=>t.username=y),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(g,{label:e.unref(l.Translate)("base.phone"),prop:"phone"},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:t.phone,"onUpdate:modelValue":m[1]||(m[1]=y=>t.phone=y),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(g,{label:e.unref(l.Translate)("base.password"),prop:"password",required:a.value},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:t.password,"onUpdate:modelValue":m[2]||(m[2]=y=>t.password=y),placeholder:e.unref(l.Translate)("base.placeholder.input"),"show-password":"",autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label","required"]),e.createVNode(g,{label:e.unref(l.Translate)("base.email"),prop:"email"},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:t.email,"onUpdate:modelValue":m[3]||(m[3]=y=>t.email=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(g,{label:e.unref(l.Translate)("base.language"),prop:"language"},{default:e.withCtx(()=>[e.createVNode(S,{modelValue:t.language,"onUpdate:modelValue":m[4]||(m[4]=y=>t.language=y)},{default:e.withCtx(()=>[e.createVNode(f,{label:"zh-CN"},{default:e.withCtx(()=>m[8]||(m[8]=[e.createTextVNode("zh-CN")])),_:1,__:[8]}),e.createVNode(f,{label:"en-US"},{default:e.withCtx(()=>m[9]||(m[9]=[e.createTextVNode("en-US")])),_:1,__:[9]})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(g,{label:e.unref(l.Translate)("base.roles"),prop:"roles"},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:t.roles,"onUpdate:modelValue":m[5]||(m[5]=y=>t.roles=y)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,y=>(e.openBlock(),e.createBlock(p,{key:y.key,label:y.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.translate),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(g,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:t.remark,"onUpdate:modelValue":m[6]||(m[6]=y=>t.remark=y),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),z=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(T){const N={keyword:""},w=[{label:l.Translate("base.avatar"),prop:"avatar",width:60,render:({row:i})=>e.createVNode(e.resolveComponent("el-avatar"),{size:"default",src:i.avatar},null)},{label:l.Translate("base.user"),width:200,align:"left",render:({row:i})=>e.createVNode(e.resolveComponent("el-space"),{direction:"vertical",alignment:"start"},{default:()=>[e.createVNode("div",null,[i.username]),e.createVNode("div",null,[i.email])]})},{label:l.Translate("base.phone"),prop:"phone",width:140},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.login_at"),prop:"login_at",width:160},{label:l.Translate("base.created_at"),prop:"created_at",width:160},{label:l.Translate("base.updated_at"),prop:"updated_at",width:160},{prop:"action",label:l.Translate("base.action"),width:80,align:"center",render:({row:i})=>e.createVNode(l.ModifyButton,{onModify:()=>x(i.key)},null)}],{tableRef:V,infoRef:t,keyword:a,search:c,refresh:d,reset:_,openInfo:C,modifyInfo:x}=l.useTablePage(N);return(i,b)=>{const h=e.resolveComponent("el-input"),R=e.resolveComponent("el-space"),B=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(B,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(R,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(d)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(C)},null,8,["onOpen"]),e.createVNode(h,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":b[0]||(b[0]=s=>e.unref(a).keyword=s),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(c),["enter"]),onClear:e.unref(c)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(c)},null,8,["onSearch"]),e.createVNode(e.unref(l.ResetButton),{onReset:e.unref(_)},null,8,["onReset"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:V,size:"small",columns:w,url:e.unref(q).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(F,{ref_key:"infoRef",ref:t,onRefresh:e.unref(_)},null,8,["onRefresh"])]),_:1})}}})},Symbol.toStringTag,{value:"Module"})),L=l.createAutoApi("translate",{},"key"),P=e.defineComponent({__name:"info",emits:["refresh"],setup(T,{expose:N,emit:w}){const V=w,t=e.reactive({module:"",key:"",language:"",result:"",status:1,remark:"",created_at:"",updated_at:""}),a={module:[{required:!0,message:l.Translate("language.placeholder.module"),trigger:"blur"}],key:[{required:!0,message:l.Translate("language.placeholder.key"),trigger:"blur"}],language:[{required:!0,message:l.Translate("language.placeholder.language"),trigger:"change"}],result:[{required:!0,message:l.Translate("language.placeholder.result"),trigger:"blur"}]},{modal:c,title:d,form:_,requesting:C,executing:x,open:i,modify:b,submit:h,closed:R}=l.useForm(V,t,L);return N({openOrModify:s=>{s?(t.key=s,b()):i()}}),(s,r)=>{const o=e.resolveComponent("el-input"),n=e.resolveComponent("el-form-item"),m=e.resolveComponent("el-radio-button"),k=e.resolveComponent("el-radio-group"),g=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(c),"onUpdate:modelValue":r[5]||(r[5]=f=>e.isRef(c)?c.value=f:null),title:e.unref(d)(),width:"900px",executing:e.unref(x),onClosed:e.unref(R),onSubmit:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(g,{ref_key:"form",ref:_,model:t,"label-width":"auto",rules:a,disabled:e.unref(C)||e.unref(x)},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("language.module"),prop:"module",required:""},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:t.module,"onUpdate:modelValue":r[0]||(r[0]=f=>t.module=f),placeholder:e.unref(l.Translate)("language.placeholder.module")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("language.key"),prop:"key",required:""},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:t.key,"onUpdate:modelValue":r[1]||(r[1]=f=>t.key=f),placeholder:e.unref(l.Translate)("language.placeholder.key")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("language.language"),prop:"language",required:""},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:t.language,"onUpdate:modelValue":r[2]||(r[2]=f=>t.language=f)},{default:e.withCtx(()=>[e.createVNode(m,{label:"zh-CN"},{default:e.withCtx(()=>r[6]||(r[6]=[e.createTextVNode("zh-CN")])),_:1,__:[6]}),e.createVNode(m,{label:"en-US"},{default:e.withCtx(()=>r[7]||(r[7]=[e.createTextVNode("en-US")])),_:1,__:[7]})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("language.result"),prop:"result",required:""},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:t.result,"onUpdate:modelValue":r[3]||(r[3]=f=>t.result=f),placeholder:e.unref(l.Translate)("language.placeholder.result")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:t.remark,"onUpdate:modelValue":r[4]||(r[4]=f=>t.remark=f),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(T){const N={keyword:"",status:0},w=[{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.language"),prop:"language",width:100},{label:l.Translate("base.key"),prop:"key",width:200},{label:l.Translate("base.result"),prop:"result",width:200},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:L.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.created_at"),prop:"created_at",width:160},{label:l.Translate("base.updated_at"),prop:"updated_at",width:160},{prop:"action",label:l.Translate("base.action"),width:80,align:"center",render:({row:i})=>e.createVNode(l.ModifyButton,{onModify:()=>x(i.key)},null)}],{tableRef:V,infoRef:t,keyword:a,search:c,refresh:d,reset:_,openInfo:C,modifyInfo:x}=l.useTablePage(N);return(i,b)=>{const h=e.resolveComponent("el-input"),R=e.resolveComponent("el-radio-button"),B=e.resolveComponent("el-radio-group"),s=e.resolveComponent("el-space"),r=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(r,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(s,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(d)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(C)},null,8,["onOpen"]),e.createVNode(h,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":b[0]||(b[0]=o=>e.unref(a).keyword=o),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(c),["enter"]),onClear:e.unref(c)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(B,{modelValue:e.unref(a).status,"onUpdate:modelValue":b[1]||(b[1]=o=>e.unref(a).status=o),onChange:e.unref(c)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],o=>e.createVNode(R,{key:o,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${o}`),value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(c)},null,8,["onSearch"]),e.createVNode(e.unref(l.ResetButton),{onReset:e.unref(_)},null,8,["onReset"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref:"proTableRef",size:"small",columns:w,url:e.unref(L).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(P,{ref_key:"infoRef",ref:t,onRefresh:e.unref(_)},null,8,["onRefresh"])]),_:1})}}})},Symbol.toStringTag,{value:"Module"})),u={tops:"tops",rules:"rules"},E=l.AutoApiUtils.createAutoApi("menu",u,"id",Object.keys(u)),I=e.defineComponent({__name:"menuSelect",props:{modelValue:{type:Number,required:!0},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(T,{emit:N}){const w=N,V=T,{requesting:t}=l.useLoading(E),{value:a,options:c,change:d,refresh:_,filterOptions:C}=l.useSelect(e.toRef(V,"modelValue"),w,{key:"MENU_LIST",api:E,url:E.urls.tops,isArray:!0});return(x,i)=>{const b=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(b,{modelValue:e.unref(a),"onUpdate:modelValue":i[1]||(i[1]=h=>e.isRef(a)?a.value=h:null),options:e.unref(c),multiple:T.multiple,disabled:e.unref(t),placeholder:e.unref(l.Translate)("base.placeholder.select"),filterable:"",filterOptions:e.unref(C),onChange:e.unref(d)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(t),text:"",size:"small",onRefresh:i[0]||(i[0]=h=>e.unref(_)(!0))},null,8,["loading"])]),_:1},8,["modelValue","options","multiple","disabled","placeholder","filterOptions","onChange"])}}}),j=e.defineComponent({__name:"info",emits:["refresh"],setup(T,{expose:N,emit:w}){const V=w,t=e.reactive({id:0,menu_id:0,level:0,sort:0,name:"",en_name:"",translate:"",url:"",component:"",icon:"",module:"",remark:"",meta:{active:"",icon:"",title:"",affix:!1,full:!1,hide:!1,keep_alive:!1,link:!1}}),a={sort:[{required:!0,type:"number",message:l.Translate("base.placeholder.input base.sort"),trigger:"blur"}],module:[{required:!0,message:l.Translate("base.placeholder.input menu.module"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}],url:[{required:!0,message:l.Translate("base.placeholder.input base.url"),trigger:"blur"}],component:[{required:!0,message:l.Translate("base.placeholder.input menu.component"),trigger:"blur"}]},{modal:c,title:d,form:_,requesting:C,executing:x,open:i,modify:b,submit:h,closed:R}=l.useForm(V,t,E);return N({openOrModify:s=>{s?(t.id=s,b()):i()}}),(s,r)=>{const o=e.resolveComponent("el-form-item"),n=e.resolveComponent("el-col"),m=e.resolveComponent("el-input-number"),k=e.resolveComponent("el-row"),g=e.resolveComponent("el-input"),f=e.resolveComponent("el-switch"),S=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(c),"onUpdate:modelValue":r[17]||(r[17]=p=>e.isRef(c)?c.value=p:null),title:e.unref(d)(),width:"900px",executing:e.unref(x),onClosed:e.unref(R),onSubmit:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(S,{ref_key:"form",ref:_,model:t,"label-width":"auto",rules:a,disabled:e.unref(C)||e.unref(x)},{default:e.withCtx(()=>[e.createVNode(k,{gutter:20},{default:e.withCtx(()=>[e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{gutter:10},{default:e.withCtx(()=>[e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.parent"),prop:"menu_id"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:t.menu_id,"onUpdate:modelValue":r[0]||(r[0]=p=>t.menu_id=p)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:t.sort,"onUpdate:modelValue":r[1]||(r[1]=p=>t.sort=p),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(o,{label:e.unref(l.Translate)("menu.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.module,"onUpdate:modelValue":r[2]||(r[2]=p=>t.module=p),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.name,"onUpdate:modelValue":r[3]||(r[3]=p=>t.name=p),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.en_name,"onUpdate:modelValue":r[4]||(r[4]=p=>t.en_name=p),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("menu.component"),prop:"component"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.component,"onUpdate:modelValue":r[5]||(r[5]=p=>t.component=p),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.url"),prop:"url"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.url,"onUpdate:modelValue":r[6]||(r[6]=p=>t.url=p),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.remark,"onUpdate:modelValue":r[7]||(r[7]=p=>t.remark=p),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.icon"),prop:"icon"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.icon,"onUpdate:modelValue":r[8]||(r[8]=p=>t.icon=p),placeholder:e.unref(l.Translate)("base.placeholder.input"),onInput:r[9]||(r[9]=p=>{t.meta.icon=p})},{prepend:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass("iconfont "+t.icon)},null,2)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.title"),prop:"meta.title"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.meta.title,"onUpdate:modelValue":r[10]||(r[10]=p=>t.meta.title=p),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("menu.active"),prop:"meta.active"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.meta.active,"onUpdate:modelValue":r[11]||(r[11]=p=>t.meta.active=p),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(k,null,{default:e.withCtx(()=>[e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.link"),prop:"meta.link"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.meta.link,"onUpdate:modelValue":r[12]||(r[12]=p=>t.meta.link=p)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.keep_alive"),prop:"meta.keep_alive"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.meta.keep_alive,"onUpdate:modelValue":r[13]||(r[13]=p=>t.meta.keep_alive=p)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.hide"),prop:"meta.hide"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.meta.hide,"onUpdate:modelValue":r[14]||(r[14]=p=>t.meta.hide=p)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.full"),prop:"meta.full"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.meta.full,"onUpdate:modelValue":r[15]||(r[15]=p=>t.meta.full=p)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.affix"),prop:"meta.affix"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.meta.affix,"onUpdate:modelValue":r[16]||(r[16]=p=>t.meta.affix=p)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),D=e.defineComponent({__name:"index",setup(T){const N={keyword:"",status:0},w=[{label:l.Translate("base.index"),type:"index",width:60},{label:l.Translate("base.icon"),prop:"icon",width:60,render:({row:i})=>e.createVNode("span",{class:"iconfont "+i.icon,style:"font-size: 16px;"},null)},{label:l.Translate("menu.module"),prop:"module",width:120},{label:l.Translate("base.parent"),prop:"parent",width:120,render:({row:i})=>{var b;return e.createVNode(e.Fragment,null,[(b=i.menu)==null?void 0:b.name])}},{label:l.Translate("base.name"),prop:"translate",width:120},{label:l.Translate("base.url"),prop:"url",width:200},{label:l.Translate("menu.component"),prop:"component",width:200},{label:l.Translate("menu.rules"),prop:"rules",width:0,align:"left",render:({row:i})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>{var b;return[(b=i.rules)==null?void 0:b.map(h=>e.createVNode(e.resolveComponent("el-tag"),{key:h.key},{default:()=>[h.translate]}))]}})},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:E.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:i})=>e.createVNode(l.ModifyButton,{onModify:()=>x(i.id)},null)}],{tableRef:V,infoRef:t,keyword:a,search:c,refresh:d,reset:_,openInfo:C,modifyInfo:x}=l.useTablePage(N);return(i,b)=>{const h=e.resolveComponent("el-input"),R=e.resolveComponent("el-radio-button"),B=e.resolveComponent("el-radio-group"),s=e.resolveComponent("el-space"),r=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(r,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(s,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(d)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(C)},null,8,["onOpen"]),e.createVNode(h,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":b[0]||(b[0]=o=>e.unref(a).keyword=o),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(c),["enter"]),onClear:e.unref(c)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(B,{modelValue:e.unref(a).status,"onUpdate:modelValue":b[1]||(b[1]=o=>e.unref(a).status=o),onChange:e.unref(c)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],o=>e.createVNode(R,{key:o,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${o}`),value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(c)},null,8,["onSearch"]),e.createVNode(e.unref(l.ResetButton),{onReset:e.unref(_)},null,8,["onReset"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:V,size:"small",columns:w,url:e.unref(E).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(j,{ref_key:"infoRef",ref:t,onRefresh:e.unref(_)},null,8,["onRefresh"])]),_:1})}}}),Y=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),G={class:"rule-check"},W={style:{width:"80px","line-height":"36px"}},H=e.defineComponent({__name:"rulesCheck",props:{modelValue:{type:Array,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(T,{expose:N,emit:w}){const{requesting:V}=l.useLoading(E),t=T,a=w,c=e.ref(!1),d=e.reactive({checkAll:!1,indeterminate:!1,MenuAll:{},MenuList:{},MenuIndeterminate:{}}),{options:_,refresh:C}=l.useSelect(e.toRef(t,"modelValue"),a,{key:"RULE_CHECK",api:E,url:E.urls.rules,isArray:!0},!1);function x(){_.value.forEach(s=>{var r;(r=s.rules)!=null&&r.length&&(d.MenuAll[s.id]=!1,d.MenuIndeterminate[s.id]=!1,d.MenuList[s.id]=[])})}function i(s){_.value.forEach(r=>{var o;(o=r.rules)!=null&&o.length&&(d.MenuList[r.id]=s?r.rules.map(n=>n.key):[])}),h()}function b(s,r){const o=_.value.find(n=>n.id===r);d.MenuList[r]=s&&o?o.rules.map(n=>n.key):[],h()}function h(){_.value.forEach(s=>{var n,m;const r=((n=s.rules)==null?void 0:n.length)||0,o=((m=d.MenuList[s.id])==null?void 0:m.length)||0;d.MenuAll[s.id]=o===r&&r>0,d.MenuIndeterminate[s.id]=o>0&&o<r}),d.checkAll=Object.values(d.MenuAll).every(Boolean),d.indeterminate=!d.checkAll&&Object.values(d.MenuList).some(s=>s.length>0),a("update:modelValue",Object.values(d.MenuList).flat())}function R(){d.checkAll=!1,d.indeterminate=!1,d.MenuAll={},d.MenuList={},d.MenuIndeterminate={},x(),a("update:modelValue",[]),c.value=!1}function B(s){var r;if(Array.isArray(_.value)&&_.value.length>0){for(let o of _.value)if(Array.isArray(o.rules)&&o.rules.length>0)for(let n of o.rules)s.some(m=>m===n.key)&&(d.MenuList[o.id]=(((r=d.MenuList)==null?void 0:r[o.id])||[]).concat([n.key]));h(),c.value=!0}}return e.onMounted(async()=>{var s;(s=_.value)!=null&&s.length||await C(),!c.value&&t.modelValue&&B(t.modelValue)}),e.watch(()=>t.modelValue,s=>{e.nextTick(()=>{var r;c.value||!((r=_.value)!=null&&r.length)||s&&s.length>0&&B(s)})},{deep:!0,immediate:!0}),N({generateOption:B,cleanChecked:R}),(s,r)=>{const o=e.resolveComponent("el-checkbox"),n=e.resolveComponent("el-space"),m=e.resolveComponent("el-text"),k=e.resolveComponent("el-divider"),g=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",G,[e.createVNode(n,{style:{"margin-bottom":"6px"}},{default:e.withCtx(()=>[e.createVNode(o,{"model-value":d.checkAll,indeterminate:d.indeterminate,id:"all",disabled:T.disabled,onChange:i},{default:e.withCtx(()=>r[1]||(r[1]=[e.createElementVNode("span",null,"全选",-1)])),_:1,__:[1]},8,["model-value","indeterminate","disabled"]),e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(V),text:"",size:"small",onRefresh:r[0]||(r[0]=f=>e.unref(C)(!0))},null,8,["loading"])]),_:1}),e.createVNode(n,{direction:"vertical",alignment:"start"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),f=>(e.openBlock(),e.createElementBlock("div",{key:f.id},[e.createVNode(n,{direction:"horizontal",size:2},{default:e.withCtx(()=>[e.createVNode(o,{style:{"min-width":"150px"},"model-value":d.MenuAll[f.id],disabled:T.disabled||!f.rules||f.rules.length<=0,indeterminate:d.MenuIndeterminate[f.id],onChange:S=>b(S,f.id)},{default:e.withCtx(()=>[e.createVNode(m,{style:{"font-size":"15px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.translate),1)]),_:2},1024)]),_:2},1032,["model-value","disabled","indeterminate","onChange"]),e.createVNode(k,{direction:"vertical"}),f.rules?(e.openBlock(),e.createBlock(g,{key:0,modelValue:d.MenuList[f.id],"onUpdate:modelValue":S=>d.MenuList[f.id]=S,disabled:T.disabled,style:{margin:"auto"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.rules,S=>(e.openBlock(),e.createBlock(o,{key:S.key,value:S.key},{default:e.withCtx(()=>[e.createElementVNode("div",W,e.toDisplayString(S.translate),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1})])}}}),J=e.defineComponent({__name:"info",emits:["refresh"],setup(T,{expose:N,emit:w}){const V=w,t=e.ref(),a=e.reactive({key:"",module:"",sort:0,name:"",en_name:"",translate:"",remark:"",rules:[]}),c={name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}]},{modal:d,title:_,form:C,requesting:x,executing:i,open:b,modify:h,submit:R,closed:B}=l.useForm(V,a,O),s=o=>{o?(a.key=o,h()):b()},r=()=>{var o;(o=t.value)==null||o.cleanChecked(),B()};return N({openOrModify:s}),(o,n)=>{const m=e.resolveComponent("el-input"),k=e.resolveComponent("el-form-item"),g=e.resolveComponent("el-col"),f=e.resolveComponent("el-input-number"),S=e.resolveComponent("el-row"),p=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(d),"onUpdate:modelValue":n[6]||(n[6]=U=>e.isRef(d)?d.value=U:null),title:e.unref(_)(),width:"900px",executing:e.unref(i),onClosed:r,onSubmit:e.unref(R)},{default:e.withCtx(()=>[e.createVNode(p,{ref_key:"form",ref:C,model:a,"label-width":"auto",rules:c,disabled:e.unref(x)||e.unref(i)},{default:e.withCtx(()=>[e.createVNode(S,{gutter:20},{default:e.withCtx(()=>[e.createVNode(g,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{label:e.unref(l.Translate)("base.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:a.module,"onUpdate:modelValue":n[0]||(n[0]=U=>a.module=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(g,{span:12},{default:e.withCtx(()=>[e.createVNode(k,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.sort,"onUpdate:modelValue":n[1]||(n[1]=U=>a.sort=U),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(k,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:a.name,"onUpdate:modelValue":n[2]||(n[2]=U=>a.name=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(k,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:a.en_name,"onUpdate:modelValue":n[3]||(n[3]=U=>a.en_name=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(k,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:a.remark,"onUpdate:modelValue":n[4]||(n[4]=U=>a.remark=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(k,{label:e.unref(l.Translate)("base.rules"),prop:"rules"},{default:e.withCtx(()=>[e.createVNode(H,{ref_key:"rulesCheck",ref:t,modelValue:a.rules,"onUpdate:modelValue":n[5]||(n[5]=U=>a.rules=U),disabled:e.unref(x)||e.unref(i)},null,8,["modelValue","disabled"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onSubmit"])}}}),K=e.defineComponent({__name:"index",setup(T){const N={keyword:""},w=[{label:l.Translate("base.sort"),prop:"sort",width:80},{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.name"),prop:"translate",width:120},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.created_at"),prop:"created_at",width:180},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:i})=>e.createVNode(l.ModifyButton,{onModify:()=>x(i.key)},null)}],{tableRef:V,infoRef:t,keyword:a,search:c,refresh:d,reset:_,openInfo:C,modifyInfo:x}=l.useTablePage(N);return(i,b)=>{const h=e.resolveComponent("el-input"),R=e.resolveComponent("el-space"),B=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(B,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(R,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(d)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(C)},null,8,["onOpen"]),e.createVNode(h,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":b[0]||(b[0]=s=>e.unref(a).keyword=s),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(c),["enter"]),onClear:e.unref(c)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(c)},null,8,["onSearch"]),e.createVNode(e.unref(l.ResetButton),{onReset:e.unref(_)},null,8,["onReset"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:V,size:"small",columns:w,url:e.unref(O).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(J,{ref_key:"infoRef",ref:t,onRefresh:e.unref(_)},null,8,["onRefresh"])]),_:1})}}}),Q=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"})),X={install:(T,N)=>{Reflect.ownKeys(T._context.provides).some(w=>String(w)==="Symbol(pinia)")||console.warn("Pinia is not provided. Please install and provide Pinia in your app."),console.log(Reflect.ownKeys(T._context.provides))},version:"__VERSION__"},Z=Object.assign({"./views/admin/index.vue":z,"./views/language/index.vue":$,"./views/menu/index.vue":Y,"./views/role/index.vue":Q});A.MenusPage=D,A.RolesPage=K,A.basicModules=Z,A.default=X,Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(A,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("auto-vue-manual")):typeof define=="function"&&define.amd?define(["exports","vue","auto-vue-manual"],e):(A=typeof globalThis<"u"?globalThis:A||self,e(A.AutoVueBasic={},A.Vue,A["auto-vue-manual"]))})(this,function(A,e,l){"use strict";const q=l.createAutoApi("admin",{},"key"),E=l.createAutoApi("role",{},"key"),K=e.defineComponent({__name:"info",emits:["refresh"],setup(R,{expose:y,emit:x}){const B=x,r=e.reactive({key:"",avatar:"",username:"",password:"",salt:"",phone:"",email:"",language:"zh-CN",remark:"",roles:[]}),a=e.computed(()=>!r.key),p={username:[{required:!0,message:l.Translate("base.placeholder.input base.username"),trigger:"blur"}],phone:[{required:!0,validator:l.RulesUtils.phoneRule,message:l.Translate("base.placeholder.input base.phone"),trigger:"blur"}],password:[{required:a,message:l.Translate("base.placeholder.input base.password"),trigger:"blur"}],email:[{required:!0,message:l.Translate("base.placeholder.input base.email"),trigger:"blur"}],language:[{required:!0,message:l.Translate("base.placeholder.select base.language"),trigger:"change"}],roles:[{required:!0,type:"array",message:l.Translate("base.placeholder.select base.roles"),trigger:"change"}]},s=e.ref([]),b=async()=>{const n=await E.list();s.value=Array.isArray(n==null?void 0:n.data)?n.data:[]},{modal:k,title:T,form:m,requesting:h,executing:g,open:N,modify:C,submit:d,closed:t}=l.useForm(B,r,q);return y({openOrModify:async n=>{s.value.length||await b(),n?(r.key=n,C()):N()}}),(n,i)=>{const V=e.resolveComponent("el-input"),_=e.resolveComponent("el-form-item"),f=e.resolveComponent("el-radio-button"),w=e.resolveComponent("el-radio-group"),c=e.resolveComponent("el-checkbox"),S=e.resolveComponent("el-checkbox-group"),te=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(k),"onUpdate:modelValue":i[7]||(i[7]=U=>e.isRef(k)?k.value=U:null),title:e.unref(T)(),width:"900px",executing:e.unref(g),onClosed:e.unref(t),onSubmit:e.unref(d)},{default:e.withCtx(()=>[e.createVNode(te,{ref_key:"form",ref:m,model:r,"label-width":"auto",rules:p,disabled:e.unref(h)||e.unref(g)},{default:e.withCtx(()=>[e.createVNode(_,{label:e.unref(l.Translate)("base.username"),prop:"username"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.username,"onUpdate:modelValue":i[0]||(i[0]=U=>r.username=U),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(_,{label:e.unref(l.Translate)("base.phone"),prop:"phone"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.phone,"onUpdate:modelValue":i[1]||(i[1]=U=>r.phone=U),placeholder:e.unref(l.Translate)("base.placeholder.input"),autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(_,{label:e.unref(l.Translate)("base.password"),prop:"password",required:a.value},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.password,"onUpdate:modelValue":i[2]||(i[2]=U=>r.password=U),placeholder:e.unref(l.Translate)("base.placeholder.input"),"show-password":"",autocomplete:"off"},null,8,["modelValue","placeholder"])]),_:1},8,["label","required"]),e.createVNode(_,{label:e.unref(l.Translate)("base.email"),prop:"email"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.email,"onUpdate:modelValue":i[3]||(i[3]=U=>r.email=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(_,{label:e.unref(l.Translate)("base.language"),prop:"language"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:r.language,"onUpdate:modelValue":i[4]||(i[4]=U=>r.language=U)},{default:e.withCtx(()=>[e.createVNode(f,{label:"zh-CN"},{default:e.withCtx(()=>i[8]||(i[8]=[e.createTextVNode("zh-CN")])),_:1,__:[8]}),e.createVNode(f,{label:"en-US"},{default:e.withCtx(()=>i[9]||(i[9]=[e.createTextVNode("en-US")])),_:1,__:[9]})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(_,{label:e.unref(l.Translate)("base.roles"),prop:"roles"},{default:e.withCtx(()=>[e.createVNode(S,{modelValue:r.roles,"onUpdate:modelValue":i[5]||(i[5]=U=>r.roles=U)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,U=>(e.openBlock(),e.createBlock(c,{key:U.key,label:U.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U.translate),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(_,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.remark,"onUpdate:modelValue":i[6]||(i[6]=U=>r.remark=U),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(R){const y={keyword:""},x=[{label:l.Translate("base.avatar"),prop:"avatar",width:60,render:({row:m})=>e.createVNode(e.resolveComponent("el-avatar"),{size:"default",src:m.avatar},null)},{label:l.Translate("base.user"),width:200,align:"left",render:({row:m})=>e.createVNode(e.resolveComponent("el-space"),{direction:"vertical",alignment:"start"},{default:()=>[e.createVNode("div",null,[m.username]),e.createVNode("div",null,[m.email])]})},{label:l.Translate("base.phone"),prop:"phone",width:140},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.login_at"),prop:"login_at",width:160},{label:l.Translate("base.created_at"),prop:"created_at",width:160},{label:l.Translate("base.updated_at"),prop:"updated_at",width:160},{prop:"action",label:l.Translate("base.action"),width:80,align:"center",render:({row:m})=>e.createVNode(l.ModifyButton,{onModify:()=>T(m.key)},null)}],{tableRef:B,infoRef:r,keyword:a,search:p,refresh:s,reset:b,openInfo:k,modifyInfo:T}=l.useTablePage(y);return(m,h)=>{const g=e.resolveComponent("el-input"),N=e.resolveComponent("el-space"),C=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(C,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(N,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(k)},null,8,["onOpen"]),e.createVNode(g,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":h[0]||(h[0]=d=>e.unref(a).keyword=d),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(p),["enter"]),onClear:e.unref(p)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(p)},null,8,["onSearch"]),e.createVNode(e.unref(l.ResetButton),{onReset:e.unref(b)},null,8,["onReset"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:B,size:"small",columns:x,url:e.unref(q).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(K,{ref_key:"infoRef",ref:r,onRefresh:e.unref(b)},null,8,["onRefresh"])]),_:1})}}})},Symbol.toStringTag,{value:"Module"})),O=l.createAutoApi("translate",{},"key"),z=e.defineComponent({__name:"info",emits:["refresh"],setup(R,{expose:y,emit:x}){const B=x,r=e.reactive({module:"",key:"",language:"",result:"",status:1,remark:"",created_at:"",updated_at:""}),a={module:[{required:!0,message:l.Translate("language.placeholder.module"),trigger:"blur"}],key:[{required:!0,message:l.Translate("language.placeholder.key"),trigger:"blur"}],language:[{required:!0,message:l.Translate("language.placeholder.language"),trigger:"change"}],result:[{required:!0,message:l.Translate("language.placeholder.result"),trigger:"blur"}]},{modal:p,title:s,form:b,requesting:k,executing:T,open:m,modify:h,submit:g,closed:N}=l.useForm(B,r,O);return y({openOrModify:d=>{d?(r.key=d,h()):m()}}),(d,t)=>{const o=e.resolveComponent("el-input"),n=e.resolveComponent("el-form-item"),i=e.resolveComponent("el-radio-button"),V=e.resolveComponent("el-radio-group"),_=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(p),"onUpdate:modelValue":t[5]||(t[5]=f=>e.isRef(p)?p.value=f:null),title:e.unref(s)(),width:"900px",executing:e.unref(T),onClosed:e.unref(N),onSubmit:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(_,{ref_key:"form",ref:b,model:r,"label-width":"auto",rules:a,disabled:e.unref(k)||e.unref(T)},{default:e.withCtx(()=>[e.createVNode(n,{label:e.unref(l.Translate)("language.module"),prop:"module",required:""},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:r.module,"onUpdate:modelValue":t[0]||(t[0]=f=>r.module=f),placeholder:e.unref(l.Translate)("language.placeholder.module")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("language.key"),prop:"key",required:""},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:r.key,"onUpdate:modelValue":t[1]||(t[1]=f=>r.key=f),placeholder:e.unref(l.Translate)("language.placeholder.key")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("language.language"),prop:"language",required:""},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:r.language,"onUpdate:modelValue":t[2]||(t[2]=f=>r.language=f)},{default:e.withCtx(()=>[e.createVNode(i,{label:"zh-CN"},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("zh-CN")])),_:1,__:[6]}),e.createVNode(i,{label:"en-US"},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("en-US")])),_:1,__:[7]})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("language.result"),prop:"result",required:""},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:r.result,"onUpdate:modelValue":t[3]||(t[3]=f=>r.result=f),placeholder:e.unref(l.Translate)("language.placeholder.result")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(n,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:r.remark,"onUpdate:modelValue":t[4]||(t[4]=f=>r.remark=f),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),P=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",setup(R){const y={keyword:"",status:0},x=[{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.language"),prop:"language",width:100},{label:l.Translate("base.key"),prop:"key",width:200},{label:l.Translate("base.result"),prop:"result",width:200},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:O.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.created_at"),prop:"created_at",width:160},{label:l.Translate("base.updated_at"),prop:"updated_at",width:160},{prop:"action",label:l.Translate("base.action"),width:80,align:"center",render:({row:m})=>e.createVNode(l.ModifyButton,{onModify:()=>T(m.key)},null)}],{tableRef:B,infoRef:r,keyword:a,search:p,refresh:s,reset:b,openInfo:k,modifyInfo:T}=l.useTablePage(y);return(m,h)=>{const g=e.resolveComponent("el-input"),N=e.resolveComponent("el-radio-button"),C=e.resolveComponent("el-radio-group"),d=e.resolveComponent("el-space"),t=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(t,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(d,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(k)},null,8,["onOpen"]),e.createVNode(g,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":h[0]||(h[0]=o=>e.unref(a).keyword=o),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(p),["enter"]),onClear:e.unref(p)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(C,{modelValue:e.unref(a).status,"onUpdate:modelValue":h[1]||(h[1]=o=>e.unref(a).status=o),onChange:e.unref(p)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],o=>e.createVNode(N,{key:o,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${o}`),value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(p)},null,8,["onSearch"]),e.createVNode(e.unref(l.ResetButton),{onReset:e.unref(b)},null,8,["onReset"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref:"proTableRef",size:"small",columns:x,url:e.unref(O).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(z,{ref_key:"infoRef",ref:r,onRefresh:e.unref(b)},null,8,["onRefresh"])]),_:1})}}})},Symbol.toStringTag,{value:"Module"})),L={tops:"tops",rules:"rules"},u=l.AutoApiUtils.createAutoApi("menu",L,"id",Object.keys(L));/*! Element Plus Icons Vue v2.3.1 */var I=e.defineComponent({name:"Key",__name:"key",setup(R){return(y,x)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),j=I;const Y=e.defineComponent({__name:"topMenuSelect",props:{modelValue:{type:[Number,Array],required:!0},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(R,{emit:y}){const x=y,B=R,{requesting:r}=l.useLoading(u),{value:a,options:p,change:s,refresh:b,filterOptions:k}=l.useSelect(e.toRef(B,"modelValue"),x,{key:"MENU_LIST",api:u,url:u.urls.tops,isArray:!0});return(T,m)=>{const h=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(h,{modelValue:e.unref(a),"onUpdate:modelValue":m[1]||(m[1]=g=>e.isRef(a)?a.value=g:null),options:e.unref(p),multiple:R.multiple,disabled:e.unref(r),placeholder:e.unref(l.Translate)("base.placeholder.select"),filterable:"",filterOptions:e.unref(k),onChange:e.unref(s)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(r),text:"",size:"small",onRefresh:m[0]||(m[0]=g=>e.unref(b)(!0))},null,8,["loading"])]),_:1},8,["modelValue","options","multiple","disabled","placeholder","filterOptions","onChange"])}}}),G=e.defineComponent({__name:"info",emits:["refresh"],setup(R,{expose:y,emit:x}){const B=x,r=e.reactive({id:0,menu_id:0,level:0,sort:0,name:"",en_name:"",translate:"",url:"",component:"",icon:"",module:"",remark:"",meta:{active:"",icon:"",title:"",affix:!1,full:!1,hide:!1,keep_alive:!1,link:!1}}),a={sort:[{required:!0,type:"number",message:l.Translate("base.placeholder.input base.sort"),trigger:"blur"}],module:[{required:!0,message:l.Translate("base.placeholder.input menu.module"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}],url:[{required:!0,message:l.Translate("base.placeholder.input base.url"),trigger:"blur"}],component:[{required:!0,message:l.Translate("base.placeholder.input menu.component"),trigger:"blur"}]},{modal:p,title:s,form:b,requesting:k,executing:T,open:m,modify:h,submit:g,closed:N}=l.useForm(B,r,u);return y({openOrModify:d=>{d?(r.id=d,h()):m()}}),(d,t)=>{const o=e.resolveComponent("el-form-item"),n=e.resolveComponent("el-col"),i=e.resolveComponent("el-input-number"),V=e.resolveComponent("el-row"),_=e.resolveComponent("el-input"),f=e.resolveComponent("el-switch"),w=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(p),"onUpdate:modelValue":t[17]||(t[17]=c=>e.isRef(p)?p.value=c:null),title:e.unref(s)(),width:"900px",executing:e.unref(T),onClosed:e.unref(N),onSubmit:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(w,{ref_key:"form",ref:b,model:r,"label-width":"auto",rules:a,disabled:e.unref(k)||e.unref(T)},{default:e.withCtx(()=>[e.createVNode(V,{gutter:20},{default:e.withCtx(()=>[e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{gutter:10},{default:e.withCtx(()=>[e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.parent"),prop:"menu_id"},{default:e.withCtx(()=>[e.createVNode(Y,{modelValue:r.menu_id,"onUpdate:modelValue":t[0]||(t[0]=c=>r.menu_id=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.sort,"onUpdate:modelValue":t[1]||(t[1]=c=>r.sort=c),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(o,{label:e.unref(l.Translate)("menu.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.module,"onUpdate:modelValue":t[2]||(t[2]=c=>r.module=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.name,"onUpdate:modelValue":t[3]||(t[3]=c=>r.name=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.en_name,"onUpdate:modelValue":t[4]||(t[4]=c=>r.en_name=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("menu.component"),prop:"component"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.component,"onUpdate:modelValue":t[5]||(t[5]=c=>r.component=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.url"),prop:"url"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.url,"onUpdate:modelValue":t[6]||(t[6]=c=>r.url=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.remark,"onUpdate:modelValue":t[7]||(t[7]=c=>r.remark=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.icon"),prop:"icon"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.icon,"onUpdate:modelValue":t[8]||(t[8]=c=>r.icon=c),placeholder:e.unref(l.Translate)("base.placeholder.input"),onInput:t[9]||(t[9]=c=>{r.meta.icon=c})},{prepend:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass("iconfont "+r.icon)},null,2)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.title"),prop:"meta.title"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.meta.title,"onUpdate:modelValue":t[10]||(t[10]=c=>r.meta.title=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("menu.active"),prop:"meta.active"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:r.meta.active,"onUpdate:modelValue":t[11]||(t[11]=c=>r.meta.active=c),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.link"),prop:"meta.link"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.link,"onUpdate:modelValue":t[12]||(t[12]=c=>r.meta.link=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.keep_alive"),prop:"meta.keep_alive"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.keep_alive,"onUpdate:modelValue":t[13]||(t[13]=c=>r.meta.keep_alive=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.hide"),prop:"meta.hide"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.hide,"onUpdate:modelValue":t[14]||(t[14]=c=>r.meta.hide=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.full"),prop:"meta.full"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.full,"onUpdate:modelValue":t[15]||(t[15]=c=>r.meta.full=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(n,{span:12},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.affix"),prop:"meta.affix"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:r.meta.affix,"onUpdate:modelValue":t[16]||(t[16]=c=>r.meta.affix=c)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),W=l.createAutoApi("rule",{},"key"),H=e.defineComponent({__name:"menuSelect",props:{modelValue:{type:[Number,Array],required:!0},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(R,{emit:y}){const x=y,B=R,{requesting:r}=l.useLoading(u),{value:a,options:p,change:s,refresh:b,filterOptions:k}=l.useSelect(e.toRef(B,"modelValue"),x,{key:"MENU_LIST",api:u,isArray:!0});return(T,m)=>{const h=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(h,{modelValue:e.unref(a),"onUpdate:modelValue":m[1]||(m[1]=g=>e.isRef(a)?a.value=g:null),options:e.unref(p),multiple:R.multiple,disabled:e.unref(r),placeholder:e.unref(l.Translate)("base.placeholder.select"),filterable:"",filterOptions:e.unref(k),onChange:e.unref(s)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(r),text:"",size:"small",onRefresh:m[0]||(m[0]=g=>e.unref(b)(!0))},null,8,["loading"])]),_:1},8,["modelValue","options","multiple","disabled","placeholder","filterOptions","onChange"])}}}),J=e.defineComponent({__name:"rule",emits:["refresh"],setup(R,{expose:y,emit:x}){const B=x,r=e.reactive({key:"",menu_id:0,sort:0,name:"",en_name:"",urls:"",remark:""}),a={menu_id:[{required:!0,type:"number",message:l.Translate("base.placeholder.select menu.Menu"),trigger:"blur"}],sort:[{required:!0,type:"number",message:l.Translate("base.placeholder.input base.sort"),trigger:"blur"}],name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}],urls:[{required:!0,message:l.Translate("base.placeholder.input base.rules"),trigger:"blur"}]},{modal:p,title:s,form:b,requesting:k,executing:T,open:m,modify:h,submit:g,closed:N}=l.useForm(B,r,W);return y({openOrModify:d=>{d?(r.key=d,h()):m()}}),(d,t)=>{const o=e.resolveComponent("el-form-item"),n=e.resolveComponent("el-input-number"),i=e.resolveComponent("el-input"),V=e.resolveComponent("el-col"),_=e.resolveComponent("el-row"),f=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(p),"onUpdate:modelValue":t[6]||(t[6]=w=>e.isRef(p)?p.value=w:null),title:e.unref(s)(),width:"700px",executing:e.unref(T),onClosed:e.unref(N),onSubmit:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(f,{ref_key:"form",ref:b,model:r,"label-width":"auto",rules:a,disabled:e.unref(k)||e.unref(T)},{default:e.withCtx(()=>[e.createVNode(_,{gutter:20},{default:e.withCtx(()=>[e.createVNode(V,{span:10},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("menu.Menu"),prop:"menu_id"},{default:e.withCtx(()=>[e.createVNode(H,{modelValue:r.menu_id,"onUpdate:modelValue":t[0]||(t[0]=w=>r.menu_id=w)},null,8,["modelValue"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:r.sort,"onUpdate:modelValue":t[1]||(t[1]=w=>r.sort=w),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.name,"onUpdate:modelValue":t[2]||(t[2]=w=>r.name=w),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.en_name,"onUpdate:modelValue":t[3]||(t[3]=w=>r.en_name=w),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(o,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.remark,"onUpdate:modelValue":t[4]||(t[4]=w=>r.remark=w),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(V,{span:14},{default:e.withCtx(()=>[e.createVNode(o,{label:e.unref(l.Translate)("base.rules"),prop:"urls"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:r.urls,"onUpdate:modelValue":t[5]||(t[5]=w=>r.urls=w),type:"textarea",rows:11,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}}),D=e.defineComponent({__name:"index",setup(R){const y={keyword:"",status:0},x=[{label:l.Translate("base.index"),type:"index",width:60},{label:l.Translate("base.icon"),prop:"icon",width:60,render:({row:N})=>e.createVNode("span",{class:"iconfont "+N.icon,style:"font-size: 16px;"},null)},{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.parent"),prop:"parent",width:120,render:({row:N})=>{var C;return e.createVNode(e.Fragment,null,[(C=N.menu)==null?void 0:C.name])}},{label:l.Translate("base.name"),prop:"translate",width:120},{label:l.Translate("base.url"),prop:"url",width:200},{label:l.Translate("menu.component"),prop:"component",width:200},{label:l.Translate("menu.rules"),prop:"rules",width:0,align:"left",render:({row:N})=>e.createVNode(e.resolveComponent("el-space"),null,{default:()=>{var C;return[(C=N.rules)==null?void 0:C.map(d=>e.createVNode(e.resolveComponent("el-tag"),{key:d.key,onClick:()=>g(d.key)},{default:()=>[d.translate]}))]}})},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:u.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:N})=>e.createVNode(l.ModifyButton,{onModify:()=>T(N.id)},null)}],{tableRef:B,infoRef:r,keyword:a,search:p,refresh:s,reset:b,openInfo:k,modifyInfo:T}=l.useTablePage(y),{infoRef:m,openInfo:h,modifyInfo:g}=l.useTablePage();return(N,C)=>{const d=e.resolveComponent("el-button"),t=e.resolveComponent("el-input"),o=e.resolveComponent("el-radio-button"),n=e.resolveComponent("el-radio-group"),i=e.resolveComponent("el-space"),V=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(V,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(i,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(k)},null,8,["onOpen"]),e.createVNode(d,{circle:"",onClick:e.unref(h),icon:e.unref(j)},null,8,["onClick","icon"]),e.createVNode(t,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":C[0]||(C[0]=_=>e.unref(a).keyword=_),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(p),["enter"]),onClear:e.unref(p)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(n,{modelValue:e.unref(a).status,"onUpdate:modelValue":C[1]||(C[1]=_=>e.unref(a).status=_),onChange:e.unref(p)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],_=>e.createVNode(o,{key:_,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${_}`),value:_},null,8,["label","value"])),64))]),_:1},8,["modelValue","onChange"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(p)},null,8,["onSearch"]),e.createVNode(e.unref(l.ResetButton),{onReset:e.unref(b)},null,8,["onReset"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:B,size:"small",columns:x,url:e.unref(u).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(G,{ref_key:"infoRef",ref:r,onRefresh:e.unref(b)},null,8,["onRefresh"]),e.createVNode(J,{ref_key:"ruleRef",ref:m,onRefresh:e.unref(s)},null,8,["onRefresh"])]),_:1})}}}),Q=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),X={class:"rule-check"},Z={style:{width:"80px","line-height":"36px"}},M=e.defineComponent({__name:"rulesCheck",props:{modelValue:{type:Array,required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(R,{expose:y,emit:x}){const{requesting:B}=l.useLoading(u),r=R,a=x,p=e.ref(!1),s=e.reactive({checkAll:!1,indeterminate:!1,MenuAll:{},MenuList:{},MenuIndeterminate:{}}),{options:b,refresh:k}=l.useSelect(e.toRef(r,"modelValue"),a,{key:"RULE_CHECK",api:u,url:u.urls.rules,isArray:!0},!1);function T(){b.value.forEach(d=>{var t;(t=d.rules)!=null&&t.length&&(s.MenuAll[d.id]=!1,s.MenuIndeterminate[d.id]=!1,s.MenuList[d.id]=[])})}function m(d){b.value.forEach(t=>{var o;(o=t.rules)!=null&&o.length&&(s.MenuList[t.id]=d?t.rules.map(n=>n.key):[])}),g()}function h(d,t){const o=b.value.find(n=>n.id===t);s.MenuList[t]=d&&o?o.rules.map(n=>n.key):[],g()}function g(){b.value.forEach(d=>{var n,i;const t=((n=d.rules)==null?void 0:n.length)||0,o=((i=s.MenuList[d.id])==null?void 0:i.length)||0;s.MenuAll[d.id]=o===t&&t>0,s.MenuIndeterminate[d.id]=o>0&&o<t}),s.checkAll=Object.values(s.MenuAll).every(Boolean),s.indeterminate=!s.checkAll&&Object.values(s.MenuList).some(d=>d.length>0),a("update:modelValue",Object.values(s.MenuList).flat())}function N(){s.checkAll=!1,s.indeterminate=!1,s.MenuAll={},s.MenuList={},s.MenuIndeterminate={},T(),a("update:modelValue",[]),p.value=!1}function C(d){var t;if(Array.isArray(b.value)&&b.value.length>0){for(let o of b.value)if(Array.isArray(o.rules)&&o.rules.length>0)for(let n of o.rules)d.some(i=>i===n.key)&&(s.MenuList[o.id]=(((t=s.MenuList)==null?void 0:t[o.id])||[]).concat([n.key]));g(),p.value=!0}}return e.onMounted(async()=>{var d;(d=b.value)!=null&&d.length||await k(),!p.value&&r.modelValue&&C(r.modelValue)}),e.watch(()=>r.modelValue,d=>{e.nextTick(()=>{var t;p.value||!((t=b.value)!=null&&t.length)||d&&d.length>0&&C(d)})},{deep:!0,immediate:!0}),y({generateOption:C,cleanChecked:N}),(d,t)=>{const o=e.resolveComponent("el-checkbox"),n=e.resolveComponent("el-space"),i=e.resolveComponent("el-text"),V=e.resolveComponent("el-divider"),_=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",X,[e.createVNode(n,{style:{"margin-bottom":"6px"}},{default:e.withCtx(()=>[e.createVNode(o,{"model-value":s.checkAll,indeterminate:s.indeterminate,id:"all",disabled:R.disabled,onChange:m},{default:e.withCtx(()=>t[1]||(t[1]=[e.createElementVNode("span",null,"全选",-1)])),_:1,__:[1]},8,["model-value","indeterminate","disabled"]),e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(B),text:"",size:"small",onRefresh:t[0]||(t[0]=f=>e.unref(k)(!0))},null,8,["loading"])]),_:1}),e.createVNode(n,{direction:"vertical",alignment:"start"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(b),f=>(e.openBlock(),e.createElementBlock("div",{key:f.id},[e.createVNode(n,{direction:"horizontal",size:2},{default:e.withCtx(()=>[e.createVNode(o,{style:{"min-width":"150px"},"model-value":s.MenuAll[f.id],disabled:R.disabled||!f.rules||f.rules.length<=0,indeterminate:s.MenuIndeterminate[f.id],onChange:w=>h(w,f.id)},{default:e.withCtx(()=>[e.createVNode(i,{style:{"font-size":"15px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.translate),1)]),_:2},1024)]),_:2},1032,["model-value","disabled","indeterminate","onChange"]),e.createVNode(V,{direction:"vertical"}),f.rules?(e.openBlock(),e.createBlock(_,{key:0,modelValue:s.MenuList[f.id],"onUpdate:modelValue":w=>s.MenuList[f.id]=w,disabled:R.disabled,style:{margin:"auto"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.rules,w=>(e.openBlock(),e.createBlock(o,{key:w.key,value:w.key},{default:e.withCtx(()=>[e.createElementVNode("div",Z,e.toDisplayString(w.translate),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1})])}}}),v=e.defineComponent({__name:"info",emits:["refresh"],setup(R,{expose:y,emit:x}){const B=x,r=e.ref(),a=e.reactive({key:"",module:"",sort:0,name:"",en_name:"",translate:"",remark:"",rules:[]}),p={name:[{required:!0,message:l.Translate("base.placeholder.input base.name"),trigger:"blur"}],en_name:[{required:!0,message:l.Translate("base.placeholder.input base.en_name"),trigger:"blur"}]},{modal:s,title:b,form:k,requesting:T,executing:m,open:h,modify:g,submit:N,closed:C}=l.useForm(B,a,E),d=o=>{o?(a.key=o,g()):h()},t=()=>{var o;(o=r.value)==null||o.cleanChecked(),C()};return y({openOrModify:d}),(o,n)=>{const i=e.resolveComponent("el-input"),V=e.resolveComponent("el-form-item"),_=e.resolveComponent("el-col"),f=e.resolveComponent("el-input-number"),w=e.resolveComponent("el-row"),c=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(s),"onUpdate:modelValue":n[6]||(n[6]=S=>e.isRef(s)?s.value=S:null),title:e.unref(b)(),width:"900px",executing:e.unref(m),onClosed:t,onSubmit:e.unref(N)},{default:e.withCtx(()=>[e.createVNode(c,{ref_key:"form",ref:k,model:a,"label-width":"auto",rules:p,disabled:e.unref(T)||e.unref(m)},{default:e.withCtx(()=>[e.createVNode(w,{gutter:20},{default:e.withCtx(()=>[e.createVNode(_,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{label:e.unref(l.Translate)("base.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:a.module,"onUpdate:modelValue":n[0]||(n[0]=S=>a.module=S),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(_,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.sort,"onUpdate:modelValue":n[1]||(n[1]=S=>a.sort=S),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(V,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:a.name,"onUpdate:modelValue":n[2]||(n[2]=S=>a.name=S),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(V,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:a.en_name,"onUpdate:modelValue":n[3]||(n[3]=S=>a.en_name=S),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(V,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:a.remark,"onUpdate:modelValue":n[4]||(n[4]=S=>a.remark=S),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(V,{label:e.unref(l.Translate)("base.rules"),prop:"rules"},{default:e.withCtx(()=>[e.createVNode(M,{ref_key:"rulesCheck",ref:r,modelValue:a.rules,"onUpdate:modelValue":n[5]||(n[5]=S=>a.rules=S),disabled:e.unref(T)||e.unref(m)},null,8,["modelValue","disabled"])]),_:1},8,["label"])]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onSubmit"])}}}),F=e.defineComponent({__name:"index",setup(R){const y={keyword:""},x=[{label:l.Translate("base.sort"),prop:"sort",width:80},{label:l.Translate("base.module"),prop:"module",width:120},{label:l.Translate("base.name"),prop:"translate",width:120},{label:l.Translate("base.remark"),prop:"remark",width:0},{label:l.Translate("base.created_at"),prop:"created_at",width:180},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:m})=>e.createVNode(l.ModifyButton,{onModify:()=>T(m.key)},null)}],{tableRef:B,infoRef:r,keyword:a,search:p,refresh:s,reset:b,openInfo:k,modifyInfo:T}=l.useTablePage(y);return(m,h)=>{const g=e.resolveComponent("el-input"),N=e.resolveComponent("el-space"),C=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(C,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(N,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:e.unref(s)},null,8,["onRefresh"]),e.createVNode(e.unref(l.OpenButton),{onOpen:e.unref(k)},null,8,["onOpen"]),e.createVNode(g,{class:"basic-search-input",modelValue:e.unref(a).keyword,"onUpdate:modelValue":h[0]||(h[0]=d=>e.unref(a).keyword=d),placeholder:e.unref(l.Translate)("base.placeholder.keyword"),clearable:"",onKeyup:e.withKeys(e.unref(p),["enter"]),onClear:e.unref(p)},null,8,["modelValue","placeholder","onKeyup","onClear"]),e.createVNode(e.unref(l.SearchButton),{onSearch:e.unref(p)},null,8,["onSearch"]),e.createVNode(e.unref(l.ResetButton),{onReset:e.unref(b)},null,8,["onReset"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"tableRef",ref:B,size:"small",columns:x,url:e.unref(E).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":e.unref(a),autoSearch:""},null,8,["url","search-param"]),e.createVNode(v,{ref_key:"infoRef",ref:r,onRefresh:e.unref(b)},null,8,["onRefresh"])]),_:1})}}}),ee=Object.freeze(Object.defineProperty({__proto__:null,default:F},Symbol.toStringTag,{value:"Module"})),le={install:(R,y)=>{Reflect.ownKeys(R._context.provides).some(x=>String(x)==="Symbol(pinia)")||console.warn("Pinia is not provided. Please install and provide Pinia in your app."),console.log(Reflect.ownKeys(R._context.provides))},version:"__VERSION__"},re=Object.assign({"./views/admin/index.vue":$,"./views/language/index.vue":P,"./views/menu/index.vue":Q,"./views/role/index.vue":ee});A.MenusPage=D,A.RolesPage=F,A.basicModules=re,A.default=le,Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,3 @@
1
+ import { AutoApi } from 'auto-vue-manual';
2
+ declare const $api: AutoApi<{}, {}>;
3
+ export default $api;
@@ -29,8 +29,9 @@ export interface MenuRule {
29
29
  key: string;
30
30
  menu_id: number;
31
31
  sort: number;
32
- translate: string;
33
32
  name: string;
34
33
  en_name: string;
35
34
  urls: string;
35
+ remark: string;
36
+ translate?: string;
36
37
  }
@@ -1,7 +1,7 @@
1
- import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  declare const _default: DefineComponent<ExtractPropTypes<{
3
3
  modelValue: {
4
- type: NumberConstructor;
4
+ type: PropType<number | number[]>;
5
5
  required: true;
6
6
  };
7
7
  multiple: {
@@ -13,7 +13,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
13
13
  change: (...args: any[]) => void;
14
14
  }, string, PublicProps, Readonly< ExtractPropTypes<{
15
15
  modelValue: {
16
- type: NumberConstructor;
16
+ type: PropType<number | number[]>;
17
17
  required: true;
18
18
  };
19
19
  multiple: {
@@ -0,0 +1,11 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {
3
+ openOrModify: (key?: string) => void;
4
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
5
+ refresh: (...args: any[]) => void;
6
+ }, string, PublicProps, Readonly<{}> & Readonly<{
7
+ onRefresh?: ((...args: any[]) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
9
+ form: unknown;
10
+ }, any>;
11
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<{
3
+ modelValue: {
4
+ type: PropType<number | number[]>;
5
+ required: true;
6
+ };
7
+ multiple: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
+ "update:modelValue": (...args: any[]) => void;
13
+ change: (...args: any[]) => void;
14
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
15
+ modelValue: {
16
+ type: PropType<number | number[]>;
17
+ required: true;
18
+ };
19
+ multiple: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ }>> & Readonly<{
24
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
25
+ onChange?: ((...args: any[]) => any) | undefined;
26
+ }>, {
27
+ multiple: boolean;
28
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
29
+ export default _default;
@@ -21,5 +21,25 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
21
21
  }>, {
22
22
  openOrModify: (id?: number) => void;
23
23
  }, {}, {}, {}, {}> | null;
24
+ ruleRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
25
+ onRefresh?: ((...args: any[]) => any) | undefined;
26
+ }>, {
27
+ openOrModify: (key?: string) => void;
28
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
29
+ refresh: (...args: any[]) => void;
30
+ }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
31
+ form: unknown;
32
+ }, any, ComponentProvideOptions, {
33
+ P: {};
34
+ B: {};
35
+ D: {};
36
+ C: {};
37
+ M: {};
38
+ Defaults: {};
39
+ }, Readonly<{}> & Readonly<{
40
+ onRefresh?: ((...args: any[]) => any) | undefined;
41
+ }>, {
42
+ openOrModify: (key?: string) => void;
43
+ }, {}, {}, {}, {}> | null;
24
44
  }, any>;
25
45
  export default _default;
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const __VERSION__ = "0.0.12'
1
+ export const __VERSION__ = "0.0.13'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auto-vue-basic",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "type": "module",
5
5
  "main": "./dist/auto-vue-basic.umd.js",
6
6
  "module": "./dist/auto-vue-basic.es.js",