auto-vue-basic 0.0.12 → 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.
- package/dist/auto-vue-basic.es.js +1509 -283
- package/dist/auto-vue-basic.umd.js +1 -1
- package/dist/index.css +1 -0
- package/dist/types/api/admin.d.ts +3 -0
- package/dist/types/api/language.d.ts +3 -0
- package/dist/types/api/menu.d.ts +6 -0
- package/dist/types/api/role.d.ts +3 -0
- package/dist/types/api/rule.d.ts +3 -0
- package/dist/types/types/admin.d.ts +17 -0
- package/dist/types/types/index.d.ts +4 -0
- package/dist/types/types/language.d.ts +10 -0
- package/dist/types/types/menu.d.ts +2 -1
- package/dist/types/types/role.d.ts +12 -0
- package/dist/types/views/index.d.ts +2 -1
- package/dist/types/views/{menus → menu}/components/menuSelect.vue.d.ts +3 -3
- package/dist/types/views/menu/components/rule.vue.d.ts +11 -0
- package/dist/types/views/menu/components/topMenuSelect.vue.d.ts +29 -0
- package/dist/types/views/{menus → menu}/index.vue.d.ts +21 -1
- package/dist/types/views/role/components/info.vue.d.ts +53 -0
- package/dist/types/views/role/components/rulesCheck.vue.d.ts +32 -0
- package/dist/types/views/role/index.vue.d.ts +67 -0
- package/dist/version.js +1 -1
- package/package.json +2 -2
- /package/dist/types/views/{menus → menu}/components/info.vue.d.ts +0 -0
@@ -1 +1 @@
|
|
1
|
-
(function(i,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):(i=typeof globalThis<"u"?globalThis:i||self,e(i.AutoVueBasic={},i.Vue,i["auto-vue-manual"]))})(this,function(i,e,l){"use strict";const R=e.defineComponent({__name:"menuSelect",props:{modelValue:{type:Number,required:!0},multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(s,{emit:h}){const p=h,V=s,b=l.createAutoApi("menu",{tops:"tops"}),{requesting:t}=l.useLoading(b),{value:N,options:w,change:_,refresh:C,filterOptions:x}=l.useSelect(e.toRef(V,"modelValue"),p,{key:"MENU_LIST",api:b,url:b.urls.tops,isArray:!0});return(T,n)=>{const d=e.resolveComponent("el-select-v2");return e.openBlock(),e.createBlock(d,{modelValue:e.unref(N),"onUpdate:modelValue":n[0]||(n[0]=m=>e.isRef(N)?N.value=m:null),options:e.unref(w),multiple:s.multiple,disabled:e.unref(t),placeholder:e.unref(l.Translate)("base.placeholder.select"),filterable:"",filterOptions:e.unref(x),onChange:e.unref(_)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{loading:e.unref(t),text:"",size:"small",onRefresh:e.unref(C)},null,8,["loading","onRefresh"])]),_:1},8,["modelValue","options","multiple","disabled","placeholder","filterOptions","onChange"])}}}),B=e.defineComponent({__name:"info",emits:["refresh"],setup(s,{expose:h,emit:p}){const V=p,b=l.createAutoApi("menu"),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}}),N={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:w,title:_,form:C,requesting:x,executing:T,open:n,modify:d,submit:m,closed:k}=l.useForm(V,t,b);return h({openOrModify:g=>{g?(t.id=g,d()):n()}}),(g,o)=>{const a=e.resolveComponent("el-form-item"),c=e.resolveComponent("el-col"),L=e.resolveComponent("el-input-number"),u=e.resolveComponent("el-row"),f=e.resolveComponent("el-input"),y=e.resolveComponent("el-switch"),P=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(e.unref(l.FormDialog),{modelValue:e.unref(w),"onUpdate:modelValue":o[17]||(o[17]=r=>e.isRef(w)?w.value=r:null),title:e.unref(_)(),width:"900px",executing:e.unref(T),onClosed:e.unref(k),onSubmit:e.unref(m)},{default:e.withCtx(()=>[e.createVNode(P,{ref_key:"form",ref:C,model:t,"label-width":"auto",rules:N,disabled:e.unref(x)||e.unref(T)},{default:e.withCtx(()=>[e.createVNode(u,{gutter:20},{default:e.withCtx(()=>[e.createVNode(c,{span:12},{default:e.withCtx(()=>[e.createVNode(u,{gutter:10},{default:e.withCtx(()=>[e.createVNode(c,{span:12},{default:e.withCtx(()=>[e.createVNode(a,{label:e.unref(l.Translate)("base.parent"),prop:"menu_id"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:t.menu_id,"onUpdate:modelValue":o[0]||(o[0]=r=>t.menu_id=r)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(c,{span:12},{default:e.withCtx(()=>[e.createVNode(a,{label:e.unref(l.Translate)("base.sort"),prop:"sort"},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:t.sort,"onUpdate:modelValue":o[1]||(o[1]=r=>t.sort=r),min:0,placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),e.createVNode(a,{label:e.unref(l.Translate)("menu.module"),prop:"module"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.module,"onUpdate:modelValue":o[2]||(o[2]=r=>t.module=r),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(a,{label:e.unref(l.Translate)("base.name"),prop:"name"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.name,"onUpdate:modelValue":o[3]||(o[3]=r=>t.name=r),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(a,{label:e.unref(l.Translate)("base.en_name"),prop:"en_name"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.en_name,"onUpdate:modelValue":o[4]||(o[4]=r=>t.en_name=r),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(a,{label:e.unref(l.Translate)("menu.component"),prop:"component"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.component,"onUpdate:modelValue":o[5]||(o[5]=r=>t.component=r),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(a,{label:e.unref(l.Translate)("base.url"),prop:"url"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.url,"onUpdate:modelValue":o[6]||(o[6]=r=>t.url=r),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(a,{label:e.unref(l.Translate)("base.remark"),prop:"remark"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.remark,"onUpdate:modelValue":o[7]||(o[7]=r=>t.remark=r),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),e.createVNode(c,{span:12},{default:e.withCtx(()=>[e.createVNode(a,{label:e.unref(l.Translate)("base.icon"),prop:"icon"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.icon,"onUpdate:modelValue":o[8]||(o[8]=r=>t.icon=r),placeholder:e.unref(l.Translate)("base.placeholder.input"),onInput:o[9]||(o[9]=r=>{t.meta.icon=r})},{prepend:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass("iconfont "+t.icon)},null,2)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(a,{label:e.unref(l.Translate)("base.title"),prop:"meta.title"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.meta.title,"onUpdate:modelValue":o[10]||(o[10]=r=>t.meta.title=r),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(a,{label:e.unref(l.Translate)("menu.active"),prop:"meta.active"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.meta.active,"onUpdate:modelValue":o[11]||(o[11]=r=>t.meta.active=r),placeholder:e.unref(l.Translate)("base.placeholder.input")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(c,{span:12},{default:e.withCtx(()=>[e.createVNode(a,{label:e.unref(l.Translate)("menu.link"),prop:"meta.link"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:t.meta.link,"onUpdate:modelValue":o[12]||(o[12]=r=>t.meta.link=r)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(c,{span:12},{default:e.withCtx(()=>[e.createVNode(a,{label:e.unref(l.Translate)("menu.keep_alive"),prop:"meta.keep_alive"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:t.meta.keep_alive,"onUpdate:modelValue":o[13]||(o[13]=r=>t.meta.keep_alive=r)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(c,{span:12},{default:e.withCtx(()=>[e.createVNode(a,{label:e.unref(l.Translate)("menu.hide"),prop:"meta.hide"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:t.meta.hide,"onUpdate:modelValue":o[14]||(o[14]=r=>t.meta.hide=r)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(c,{span:12},{default:e.withCtx(()=>[e.createVNode(a,{label:e.unref(l.Translate)("menu.full"),prop:"meta.full"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:t.meta.full,"onUpdate:modelValue":o[15]||(o[15]=r=>t.meta.full=r)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),e.createVNode(c,{span:12},{default:e.withCtx(()=>[e.createVNode(a,{label:e.unref(l.Translate)("menu.affix"),prop:"meta.affix"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:t.meta.affix,"onUpdate:modelValue":o[16]||(o[16]=r=>t.meta.affix=r)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue","title","executing","onClosed","onSubmit"])}}});function O(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!e.isVNode(s)}const U=e.defineComponent({__name:"index",setup(s){const h={keyword:"",status:0},p=e.ref(),V=e.ref(),b=l.createAutoApi("menu"),t=e.ref({...h}),N=[{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("menu.module"),prop:"module",width:120},{label:l.Translate("base.parent"),prop:"parent",width:120,render:({row:n})=>{var d;return e.createVNode(e.Fragment,null,[(d=n.menu)==null?void 0:d.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 d;return[(d=n.rules)==null?void 0:d.map(m=>e.createVNode(e.resolveComponent("el-tag"),{key:m.key},{default:()=>[m.translate]}))]}})},{label:l.Translate("base.status"),prop:"status",width:80,type:"switch",props:{activeValue:1,inactiveValue:2,api:b.urls[l.DEFAULT_STATUS_KEY],refresh:!0}},{prop:"action",label:l.Translate("base.action"),width:60,align:"center",render:({row:n})=>{let d;return e.createVNode(e.resolveComponent("el-button"),{type:"primary",size:"small",link:!0,onClick:m=>{m.stopPropagation(),T(n.id)}},O(d=l.Translate("base.modify"))?d:{default:()=>[d]})}}],w=()=>{var n;(n=p.value)==null||n.getTableList()},_=()=>{var n;(n=p.value)==null||n.search()},C=()=>{var n;t.value={...h},(n=p.value)==null||n.reset()},x=()=>{var n;(n=V.value)==null||n.openOrModify()},T=n=>{var d;(d=V.value)==null||d.openOrModify(n)};return(n,d)=>{const m=e.resolveComponent("el-input"),k=e.resolveComponent("el-radio-button"),S=e.resolveComponent("el-radio-group"),g=e.resolveComponent("el-space"),o=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(o,{class:"basic-card flex-full","body-class":"flex-1"},{header:e.withCtx(()=>[e.createVNode(g,{class:"search-bar"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshButton),{onRefresh:w}),e.createVNode(e.unref(l.OpenButton),{onOpen:x}),e.createVNode(m,{class:"basic-search-input",modelValue:t.value.keyword,"onUpdate:modelValue":d[0]||(d[0]=a=>t.value.keyword=a),placeholder:e.unref(l.Translate)("menu.keyword"),clearable:"",onKeyup:e.withKeys(_,["enter"]),onClear:_},null,8,["modelValue","placeholder"]),e.createVNode(S,{modelValue:t.value.status,"onUpdate:modelValue":d[1]||(d[1]=a=>t.value.status=a),onChange:_},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList([0,1,2],a=>e.createVNode(k,{key:a,label:e.unref(l.Translate)(`base.DISABLE_ENABLE.${a}`),value:a},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),e.createVNode(e.unref(l.SearchButton),{onSearch:_}),e.createVNode(e.unref(l.ResetButton),{onReset:C})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(l.ProTable),{ref_key:"proTableRef",ref:p,size:"small",columns:N,url:e.unref(b).urls[e.unref(l.DEFAULT_PAGE_KEY)],"search-param":t.value,autoSearch:""},null,8,["url","search-param"]),e.createVNode(B,{ref_key:"infoRef",ref:V,onRefresh:C},null,512)]),_:1})}}}),A=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"})),E={install:(s,h)=>{Reflect.ownKeys(s._context.provides).some(p=>String(p)==="Symbol(pinia)")||console.warn("Pinia is not provided. Please install and provide Pinia in your app."),console.log(Reflect.ownKeys(s._context.provides))},version:"__VERSION__"},q=Object.assign({"./views/menus/index.vue":A});i.MenusPage=U,i.basicModules=q,i.default=E,Object.defineProperties(i,{__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"}})});
|
package/dist/index.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
.rule-check{width:100%;overflow-y:auto;height:360px;border-radius:4px}.rule-check::-webkit-scrollbar{display:none}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare type AdminResponse = {
|
2
|
+
key: string;
|
3
|
+
avatar: string;
|
4
|
+
username: string;
|
5
|
+
password: string;
|
6
|
+
salt: string;
|
7
|
+
phone: string;
|
8
|
+
email: string;
|
9
|
+
language: string;
|
10
|
+
status?: number;
|
11
|
+
checked?: boolean;
|
12
|
+
remark: string;
|
13
|
+
login_at?: string;
|
14
|
+
created_at?: string;
|
15
|
+
updated_at?: string;
|
16
|
+
roles: string[];
|
17
|
+
};
|
@@ -1 +1,2 @@
|
|
1
|
-
export { default as MenusPage } from './
|
1
|
+
export { default as MenusPage } from './menu/index.vue';
|
2
|
+
export { default as RolesPage } from './role/index.vue';
|
@@ -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:
|
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:
|
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;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
|
2
2
|
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
3
|
-
|
3
|
+
tableRef: any;
|
4
4
|
infoRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
5
5
|
onRefresh?: ((...args: any[]) => any) | undefined;
|
6
6
|
}>, {
|
@@ -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;
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } 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
|
+
rulesCheck: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
11
|
+
modelValue: {
|
12
|
+
type: PropType<string[]>;
|
13
|
+
required: true;
|
14
|
+
};
|
15
|
+
disabled: {
|
16
|
+
type: BooleanConstructor;
|
17
|
+
default: boolean;
|
18
|
+
};
|
19
|
+
}>> & Readonly<{
|
20
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
21
|
+
}>, {
|
22
|
+
generateOption: (val: string[]) => void;
|
23
|
+
cleanChecked: () => void;
|
24
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
25
|
+
"update:modelValue": (...args: any[]) => void;
|
26
|
+
}, PublicProps, {
|
27
|
+
disabled: boolean;
|
28
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
29
|
+
P: {};
|
30
|
+
B: {};
|
31
|
+
D: {};
|
32
|
+
C: {};
|
33
|
+
M: {};
|
34
|
+
Defaults: {};
|
35
|
+
}, Readonly< ExtractPropTypes<{
|
36
|
+
modelValue: {
|
37
|
+
type: PropType<string[]>;
|
38
|
+
required: true;
|
39
|
+
};
|
40
|
+
disabled: {
|
41
|
+
type: BooleanConstructor;
|
42
|
+
default: boolean;
|
43
|
+
};
|
44
|
+
}>> & Readonly<{
|
45
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
46
|
+
}>, {
|
47
|
+
generateOption: (val: string[]) => void;
|
48
|
+
cleanChecked: () => void;
|
49
|
+
}, {}, {}, {}, {
|
50
|
+
disabled: boolean;
|
51
|
+
}> | null;
|
52
|
+
}, any>;
|
53
|
+
export default _default;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
declare function cleanChecked(): void;
|
3
|
+
declare function generateOption(val: string[]): void;
|
4
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
5
|
+
modelValue: {
|
6
|
+
type: PropType<string[]>;
|
7
|
+
required: true;
|
8
|
+
};
|
9
|
+
disabled: {
|
10
|
+
type: BooleanConstructor;
|
11
|
+
default: boolean;
|
12
|
+
};
|
13
|
+
}>, {
|
14
|
+
generateOption: typeof generateOption;
|
15
|
+
cleanChecked: typeof cleanChecked;
|
16
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
17
|
+
"update:modelValue": (...args: any[]) => void;
|
18
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
19
|
+
modelValue: {
|
20
|
+
type: PropType<string[]>;
|
21
|
+
required: true;
|
22
|
+
};
|
23
|
+
disabled: {
|
24
|
+
type: BooleanConstructor;
|
25
|
+
default: boolean;
|
26
|
+
};
|
27
|
+
}>> & Readonly<{
|
28
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
29
|
+
}>, {
|
30
|
+
disabled: boolean;
|
31
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
32
|
+
export default _default;
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ExtractPropTypes, PropType } from 'vue';
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
3
|
+
tableRef: any;
|
4
|
+
infoRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
5
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
6
|
+
}>, {
|
7
|
+
openOrModify: (key?: string) => void;
|
8
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
9
|
+
refresh: (...args: any[]) => void;
|
10
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
11
|
+
form: unknown;
|
12
|
+
rulesCheck: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
13
|
+
modelValue: {
|
14
|
+
type: PropType<string[]>;
|
15
|
+
required: true;
|
16
|
+
};
|
17
|
+
disabled: {
|
18
|
+
type: BooleanConstructor;
|
19
|
+
default: boolean;
|
20
|
+
};
|
21
|
+
}>> & Readonly<{
|
22
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
23
|
+
}>, {
|
24
|
+
generateOption: (val: string[]) => void;
|
25
|
+
cleanChecked: () => void;
|
26
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
27
|
+
"update:modelValue": (...args: any[]) => void;
|
28
|
+
}, PublicProps, {
|
29
|
+
disabled: boolean;
|
30
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
31
|
+
P: {};
|
32
|
+
B: {};
|
33
|
+
D: {};
|
34
|
+
C: {};
|
35
|
+
M: {};
|
36
|
+
Defaults: {};
|
37
|
+
}, Readonly< ExtractPropTypes<{
|
38
|
+
modelValue: {
|
39
|
+
type: PropType<string[]>;
|
40
|
+
required: true;
|
41
|
+
};
|
42
|
+
disabled: {
|
43
|
+
type: BooleanConstructor;
|
44
|
+
default: boolean;
|
45
|
+
};
|
46
|
+
}>> & Readonly<{
|
47
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
48
|
+
}>, {
|
49
|
+
generateOption: (val: string[]) => void;
|
50
|
+
cleanChecked: () => void;
|
51
|
+
}, {}, {}, {}, {
|
52
|
+
disabled: boolean;
|
53
|
+
}> | null;
|
54
|
+
}, any, ComponentProvideOptions, {
|
55
|
+
P: {};
|
56
|
+
B: {};
|
57
|
+
D: {};
|
58
|
+
C: {};
|
59
|
+
M: {};
|
60
|
+
Defaults: {};
|
61
|
+
}, Readonly<{}> & Readonly<{
|
62
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
63
|
+
}>, {
|
64
|
+
openOrModify: (key?: string) => void;
|
65
|
+
}, {}, {}, {}, {}> | null;
|
66
|
+
}, any>;
|
67
|
+
export default _default;
|
package/dist/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const __VERSION__ = "0.0.
|
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.
|
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",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
20
|
"@element-plus/icons-vue": "^2.3.1",
|
21
|
-
"auto-vue-manual": "^0.1.
|
21
|
+
"auto-vue-manual": "^0.1.17",
|
22
22
|
"axios": "^1.7.9",
|
23
23
|
"element-plus": "^2.9.3",
|
24
24
|
"mitt": "^3.0.1",
|
File without changes
|