@vtj/ui 0.6.22 → 0.6.23
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/cdn/index.js +1 -1
- package/cdn/style.css +1 -1
- package/lib/index.js +1567 -1284
- package/lib/style.css +1 -1
- package/package.json +8 -7
- package/types/components/action/Action.d.ts +1 -1
- package/types/components/action/Trigger.d.ts +1 -1
- package/types/components/action-bar/ActionBar.d.ts +1 -1
- package/types/components/chart/Chart.d.ts +35 -0
- package/types/components/chart/index.d.ts +3 -0
- package/types/components/chart/types.d.ts +17 -0
- package/types/components/chart/useChart.d.ts +7 -0
- package/types/components/container/Container.d.ts +8 -1
- package/types/components/container/types.d.ts +3 -0
- package/types/components/data-item/DataItem.d.ts +451 -0
- package/types/components/data-item/index.d.ts +3 -0
- package/types/components/data-item/types.d.ts +49 -0
- package/types/components/dialog-form/DialogForm.d.ts +2 -1
- package/types/components/field/editors/CheckboxEditor.d.ts +22 -20
- package/types/components/field/editors/RadioEditor.d.ts +22 -20
- package/types/components/field/editors/SelectEditor.d.ts +20 -12
- package/types/components/icon/Icon.d.ts +18 -0
- package/types/components/icon/types.d.ts +9 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/mask/components/Avatar.d.ts +11 -10
- package/types/components/mask/components/Brand.d.ts +20 -30
- package/types/components/mask/components/Content.d.ts +11 -20
- package/types/components/mask/components/Menu.d.ts +21 -49
- package/types/components/mask/components/Sidebar.d.ts +11 -10
- package/types/components/mask/components/SwitchBar.d.ts +23 -27
- package/types/components/mask/components/Tabs.d.ts +12 -41
- package/types/components/mask/components/Toolbar.d.ts +21 -27
- package/types/components/menu/Menu.d.ts +24 -27
- package/types/components/menu/MenuItem.d.ts +10 -24
- package/types/components/panel/Panel.d.ts +13 -1
- package/types/components/panel/types.d.ts +6 -0
- package/types/components/simple-mask/SimpleMask.d.ts +26 -30
- package/types/components/startup/Startup.d.ts +22 -26
- package/types/components/tabs/Tabs.d.ts +52 -0
- package/types/components/tabs/index.d.ts +3 -0
- package/types/components/tabs/types.d.ts +24 -0
- package/types/version.d.ts +1 -1
package/cdn/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(d,S){typeof exports=="object"&&typeof module!="undefined"?S(exports):typeof define=="function"&&define.amd?define(["exports"],S):(d=typeof globalThis!="undefined"?globalThis:d||self,S(d.VtjUI={}))})(this,function(d){"use strict";var to=Object.defineProperty,oo=Object.defineProperties;var no=Object.getOwnPropertyDescriptors;var Ye=Object.getOwnPropertySymbols;var uo=Object.prototype.hasOwnProperty,lo=Object.prototype.propertyIsEnumerable;var Ee=(d,S,P)=>S in d?to(d,S,{enumerable:!0,configurable:!0,writable:!0,value:P}):d[S]=P,T=(d,S)=>{for(var P in S||(S={}))uo.call(S,P)&&Ee(d,P,S[P]);if(Ye)for(var P of Ye(S))lo.call(S,P)&&Ee(d,P,S[P]);return d},D=(d,S)=>oo(d,no(S));var O=(d,S,P)=>(Ee(d,typeof S!="symbol"?S+"":S,P),P);var N=(d,S,P)=>new Promise((L,q)=>{var re=R=>{try{X(P.next(R))}catch(Q){q(Q)}},se=R=>{try{X(P.throw(R))}catch(Q){q(Q)}},X=R=>R.done?L(R.value):Promise.resolve(R.value).then(re,se);X((P=P.apply(d,S)).next())});const S="";function P(n){return typeof n=="string"?n:`${n}px`}function L(n=0,t){if(typeof n=="number")return n;if(/(%|vh|vw)$/i.test(n)){const o=Number.parseInt(n);return Math.floor(t*o/100)}return Number.parseInt(n)}function q(n,t){const e={};return Object.keys(n).forEach(o=>{t.includes(o)||(e[o]=n[o])}),e}function re(n,t){const e={};return Object.keys(n).forEach(o=>{t.includes(o)&&(e[o]=n[o])}),e}const se=()=>{},X=Symbol("INSTALLED_KEY"),R=(n=[])=>({install:e=>{e[X]||(e[X]=!0,n.forEach(o=>{o.name&&e.component(o.name,o)}))}}),Q="data:image/png;base64,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",Ge={class:"x-startup"},qe={class:"brand"},et=["src"],tt=Vue.createElementVNode("h3",null,[Vue.createTextVNode("基于 "),Vue.createElementVNode("span",null,"Vue3 + TypeScript"),Vue.createTextVNode(" 的低代码设计器引擎")],-1),ot={class:"btn"},nt=Vue.createElementVNode("div",{class:"ba"},[Vue.createElementVNode("a",{href:"http://beian.miit.gov.cn/"},"粤ICP备2023104074号")],-1),xe=Vue.defineComponent({name:"XStartup",__name:"Startup",props:{text:{default:"VTJ.PRO"},link:{default:"/"},example:{}},setup(n){const t=n,e=()=>{location.href=t.link+"#/?startup"},o=()=>{t.example&&t.example(t.link)};return(u,r)=>(Vue.openBlock(),Vue.createElementBlock("div",Ge,[Vue.renderSlot(u.$slots,"default",{},()=>[Vue.createElementVNode("div",null,[Vue.createElementVNode("div",qe,[Vue.createElementVNode("img",{src:Vue.unref(Q)},null,8,et),Vue.createElementVNode("h1",null,Vue.toDisplayString(t.text),1)]),Vue.createVNode(Vue.unref(ElementPlus.ElDivider)),tt,Vue.createElementVNode("div",ot,[Vue.createVNode(Vue.unref(ElementPlus.ElButton),{onClick:e,type:"primary",round:"",size:"large",icon:Vue.unref(ElementPlusIconsVue.VideoPlay)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 立即开始体验 ")]),_:1},8,["icon"]),t.example?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:0,onClick:o,type:"default",round:"",size:"large",icon:Vue.unref(ElementPlusIconsVue.Document)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 加载示例项目 ")]),_:1},8,["icon"])):Vue.createCommentVNode("",!0)])])]),nt]))}}),ao="",Se={default:14,small:12,large:18},Pe={icon:{type:[String,Object]},color:{type:String},size:{type:[Number,String],default:"inherit"},src:{type:String}},ut=["src"],A=Vue.defineComponent({name:"XIcon",__name:"Icon",props:Pe,setup(n){const t=n,e=Vue.useAttrs(),o=Vue.getCurrentInstance(),u=Vue.computed(()=>{if(!t.icon)return null;const s=o==null?void 0:o.appContext.app;return typeof t.icon=="object"?Vue.markRaw(t.icon):(s==null?void 0:s.component(t.icon))||t.icon}),r=Vue.computed(()=>{const s={"is-pointer":!!e.onClick};return!u.value&&t.icon&&(s[t.icon]=!0),s}),l=Vue.computed(()=>{var s;return typeof t.size=="number"?t.size:(s=Se[t.size])!=null?s:void 0});return(s,a)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElIcon),{class:Vue.normalizeClass(["x-icon",r.value]),color:t.color,size:l.value},{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"default",{},()=>[u.value?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(u.value),{key:0})):Vue.createCommentVNode("",!0),t.src?(Vue.openBlock(),Vue.createElementBlock("img",{key:1,src:t.src},null,8,ut)):Vue.createCommentVNode("",!0)])]),_:3},8,["class","color","size"]))}}),lt={class:"x-menu__wrapper"},at={key:1,class:"x-menu__title"},rt=Vue.createElementVNode("i",null,null,-1),st={key:0,class:"x-menu__title"},it=Vue.createElementVNode("i",null,null,-1),ze=Vue.defineComponent({inheritAttrs:!1,name:"XMenuItem",__name:"MenuItem",props:{item:{},subMenu:{},defaultIcon:{type:[Object,Function]}},setup(n){const t=n,e=Vue.getCurrentInstance(),o=l=>{if(l){if(typeof l=="string"){const s=e==null?void 0:e.appContext.app;return(s==null?void 0:s.component(l))||t.defaultIcon||l}return l}},u=l=>typeof l=="object"?l:{value:l},r=(l=[])=>l.filter(s=>!s.hidden);return(l,s)=>t.item.children?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSubMenu),Vue.mergeProps({key:0,disabled:t.item.disabled},t.subMenu,{index:String(t.item.id)}),{title:Vue.withCtx(()=>[Vue.createElementVNode("div",lt,[t.item.icon?(Vue.openBlock(),Vue.createBlock(Vue.unref(A),{key:0,icon:o(t.item.icon)},null,8,["icon"])):Vue.createCommentVNode("",!0),t.item.title?(Vue.openBlock(),Vue.createElementBlock("span",at,Vue.toDisplayString(t.item.title),1)):Vue.createCommentVNode("",!0),t.item.badge?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElBadge),Vue.mergeProps({key:2,class:"x-menu__badge"},u(t.item.badge)),{default:Vue.withCtx(()=>[rt]),_:1},16)):Vue.createCommentVNode("",!0)])]),default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(r(t.item.children),a=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ze),{key:a.id,item:a,subMenu:t.subMenu,defaultIcon:t.defaultIcon},null,8,["item","subMenu","defaultIcon"]))),128))]),_:1},16,["disabled","index"])):(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElMenuItem),{key:1,index:String(t.item.id),disabled:t.item.disabled},{title:Vue.withCtx(()=>[t.item.title?(Vue.openBlock(),Vue.createElementBlock("span",st,Vue.toDisplayString(t.item.title),1)):Vue.createCommentVNode("",!0),t.item.badge?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElBadge),Vue.mergeProps({key:1,class:"x-menu__badge"},u(t.item.badge)),{default:Vue.withCtx(()=>[it]),_:1},16)):Vue.createCommentVNode("",!0)]),default:Vue.withCtx(()=>[t.item.icon?(Vue.openBlock(),Vue.createBlock(Vue.unref(A),{key:0,icon:o(t.item.icon)},null,8,["icon"])):Vue.createCommentVNode("",!0)]),_:1},8,["index","disabled"]))}}),F=Vue.defineComponent({inheritAttrs:!1,name:"XMenu",__name:"Menu",props:{data:{default:()=>[]},subMenu:{},defaultIcon:{}},emits:["select"],setup(n,{emit:t}){const e=n,o=Vue.computed(()=>e.data.filter(l=>!l.hidden)),u=(l,s)=>{const a=(i,c=[])=>{var V;for(const h of c){if(h.id.toString()===i.toString())return h;if((V=h.children)!=null&&V.length){const k=a(i,h.children);if(k)return k}}};return a(s,l)},r=l=>{const s=u(o.value,l);s&&t("select",s)};return(l,s)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElMenu),Vue.mergeProps({class:"x-menu"},l.$attrs,{onSelect:r}),{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(o.value,a=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ze),{item:D(T({},a),{icon:a.icon||Vue.unref(ElementPlusIconsVue.Menu)}),defaultIcon:e.defaultIcon,subMenu:e.subMenu},null,8,["item","defaultIcon","subMenu"]))),256))]),_:1},16))}}),ct={class:"x-simple-mask__brand"},dt={class:"x-simple-mask__aciton"},Ne=Vue.defineComponent({name:"XSimpleMask",__name:"SimpleMask",props:{preview:{type:Boolean},project:{default:()=>({name:"Logo",home:"/"})},menu:{}},setup(n,{expose:t}){const e=n,o=VueRouter.useRouter(),u=VueRouter.useRoute(),r=Vue.computed(()=>u.params.id),l=()=>{const a=e.project.home;a&&o.push(a)},s=a=>{const i=a==null?void 0:a.id;if(i){const V=`${e.preview?"/preview":e.project.page}/${i}`;o.push(V)}};return t({goHome:l}),(a,i)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElContainer),{class:"x-simple-mask"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElHeader),{class:"x-simple-mask__header"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",ct,[Vue.createElementVNode("span",{class:"x-simple-mask__logo",onClick:l},[Vue.renderSlot(a.$slots,"logo",{},()=>[Vue.createTextVNode(Vue.toDisplayString(e.project.name),1)])])]),Vue.createElementVNode("div",dt,[Vue.renderSlot(a.$slots,"action")])]),_:3}),Vue.createVNode(Vue.unref(ElementPlus.ElContainer),null,{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElAside),{class:"x-simple-mask__aside"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(F),Vue.mergeProps(e.menu,{"default-active":r.value,onSelect:s}),null,16,["default-active"])]),_:1}),Vue.createVNode(Vue.unref(ElementPlus.ElMain),{class:"x-simple-mask__main"},{default:Vue.withCtx(()=>[Vue.renderSlot(a.$slots,"default",{},()=>[Vue.createVNode(Vue.unref(VueRouter.RouterView))])]),_:3})]),_:3}),a.$slots.footer?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElFooter),{key:0,class:"x-simple-mask__footer",height:"40px"},{default:Vue.withCtx(()=>[Vue.renderSlot(a.$slots,"footer")]),_:3})):Vue.createCommentVNode("",!0)]),_:3}))}}),ie={name:{type:String},label:{type:String},value:{type:[String,Number,Object,Array,Boolean]},icon:{type:[String,Object]},mode:{type:String,default:"button"},menus:{type:Array},tooltip:{type:[String,Object]},badge:{type:[String,Number,Object]},dropdown:{type:Object},button:{type:Object},disabled:{type:[Boolean,Function]},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean}};function Vt(n){return Vue.computed(()=>{const t=n.tooltip;if(t)return typeof t=="string"?{content:t}:t})}function mt(n){return Vue.computed(()=>{const t=n.badge;if(t)return typeof t=="object"?t:{value:t}})}function pt(n){return Vue.computed(()=>{const{dropdown:t,menus:e}=n;if(e&&e.length>0)return Object.assign({popperClass:"x-action__menus",size:n.size},t||{})})}function Te(n){const t=Vue.getCurrentInstance();return Vue.computed(()=>{const e=Vue.unref(n);if(e)if(typeof e=="string"||e.setup||e.render||Vue.isVNode(e)){const o=t==null?void 0:t.appContext.app;return{icon:typeof e=="string"&&(o==null?void 0:o.component(e))||e}}else return e;return null})}function Y(n){const t=Te(n);return t.value?Vue.markRaw(Vue.defineComponent({render:()=>Vue.h(A,t.value)})):null}function ee(n,t){return Vue.computed(()=>{const e=Vue.unref(n);return typeof e=="function"?e(t):!!e})}const ft={key:0},ht=Vue.defineComponent({__name:"Trigger",props:ie,emits:["click"],setup(n,{emit:t}){const e=n,o=Y(Vue.toRef(e,"icon")),u=ee(Vue.toRef(e,"disabled")),r=Vue.computed(()=>({[`is-${e.mode}`]:!!e.mode,[`is-${e.type}`]:!!e.type,[`is-${e.size}`]:!!e.size&&e.size!=="default",[`is-background-${e.background}`]:e.mode==="icon"&&!!e.background,"is-disabled":!!e.disabled,"is-circle":!!e.circle})),l=()=>{t("click")};return(s,a)=>e.mode==="button"?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),Vue.mergeProps({key:0,icon:Vue.unref(o),type:e.type,size:e.size,disabled:Vue.unref(u)},e.button,{onClick:l}),{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(s.label),1)]),_:1},16,["icon","type","size","disabled"])):(Vue.openBlock(),Vue.createElementBlock("div",{key:1,class:Vue.normalizeClass(["x-action__inner",r.value]),onClick:l},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(o)))),s.label?(Vue.openBlock(),Vue.createElementBlock("span",ft,Vue.toDisplayString(s.label),1)):Vue.createCommentVNode("",!0)],2))}}),M=Vue.defineComponent({name:"XAction",__name:"Action",props:ie,emits:["click","command"],setup(n,{emit:t}){const e=n,o=Vue.useSlots(),u=Vt(e),r=mt(e),l=pt(e),s=ee(Vue.toRef(e,"disabled")),a=Vue.computed(()=>({[`x-action--${e.mode}`]:!!e.mode})),i=()=>{t("click",e)},c=f=>{var _;const C=(_=e.menus)==null?void 0:_.find(m=>m.command===f);C&&t("command",C)},V=f=>Vue.h(ElementPlus.ElBadge,r.value,()=>[].concat(f)),h=f=>Vue.h(ElementPlus.ElDropdown,D(T({},l.value),{disabled:s.value,onCommand:c}),{default:()=>[f],dropdown:()=>[Vue.h(ElementPlus.ElDropdownMenu,()=>(e.menus||[]).map(C=>Vue.h(ElementPlus.ElDropdownItem,C,()=>o.item?o.item({item:C}):C.label)))]}),k=f=>Vue.h(ElementPlus.ElTooltip,D(T({},u.value),{disabled:s.value}),()=>[f]),g=Vue.computed(()=>{let f=o.default?o.default()[0]:Vue.h(Vue.markRaw(ht),D(T({},e),{onClick:i}));return r.value&&(f=V(f)),l.value&&(f=h(f)),u.value&&(f=k(f)),f});return(f,C)=>(Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass(["x-action",a.value])},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(g.value)))],2))}}),Ie={items:{type:Array},mode:{type:String,default:"button"},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean},disabled:{type:[Boolean,Function]},tooltip:{type:Object},badge:{type:Object},dropdown:{type:Object},button:{type:Object}},te=Vue.defineComponent({name:"XActionBar",__name:"ActionBar",props:Ie,emits:["click","command"],setup(n,{emit:t}){const e=n,o=Vue.computed(()=>(e.items||[]).map(l=>l==="|"?l:D(T({},l),{badge:l.badge?T(T({},e.badge),typeof l.badge=="object"?l.badge||{}:{value:l.badge}):void 0,tooltip:l.tooltip?T(T({},e.tooltip),typeof l.tooltip=="object"?l.tooltip||{}:{content:l.tooltip}):void 0}))),u=l=>{t("click",l)},r=(l,s)=>{t("command",l,s)};return(l,s)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(w),{class:"x-action-bar",align:"center"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(o.value,a=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[a==="|"?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElDivider),{key:0,direction:"vertical",class:"x-action-bar__divider"})):(Vue.openBlock(),Vue.createBlock(Vue.unref(M),Vue.mergeProps({key:1,mode:e.mode,size:e.size,type:e.type,circle:e.circle,background:e.background,button:e.button,dropdown:e.dropdown,disabled:Vue.unref(ee)(e.disabled,a).value},a,{onClick:u,onCommand:i=>r(a,i)}),null,16,["mode","size","type","circle","background","button","dropdown","disabled","onCommand"]))],64))),256))]),_:1}))}}),De={tag:{type:String,default:"div"},fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},flex:{type:Boolean,default:!0},inline:{type:Boolean},direction:{type:String,default:"row"},wrap:{type:String,default:"nowrap"},justify:{type:String,default:"flex-start"},align:{type:String,default:"flex-start"},alignContent:{type:String,default:"stretch"},grow:{type:Boolean,default:!1},shrink:{type:Boolean,default:!1},alignSelf:{type:String,default:"auto"},overflow:{type:String},padding:{type:Boolean,default:!1}},w=Vue.defineComponent({name:"XContainer",__name:"Container",props:De,setup(n){const t=n,e=Vue.getCurrentInstance(),o=Vue.computed(()=>{const l=e==null?void 0:e.parent;if(!l)return!1;const s=l.proxy;return s.$options.name==="XContainer"||!!s.flex}),u=Vue.computed(()=>{var l;return{"is-fit":t.fit,"is-flex":t.flex&&!t.inline,"is-inline-flex":t.flex&&t.inline,[`is-direction-${t.direction}`]:t.flex&&t.direction!=="row",[`is-wrap-${t.wrap}`]:t.flex&&t.wrap!=="nowrap",[`is-justify-${t.justify}`]:t.flex&&t.justify!=="flex-start",[`is-align-${t.align}`]:t.flex&&t.align!=="flex-start",[`is-align-content-${t.alignContent}`]:t.flex&&t.alignContent!=="stretch","is-grow":(l=t.grow)!=null?l:o.value,"is-shrink":o.value&&t.shrink,[`is-align-self-${t.alignSelf}`]:o.value&&t.alignSelf!=="auto",[`is-overflow-${t.overflow}`]:!!t.overflow,"is-padding":!!t.padding}}),r=Vue.computed(()=>{const{width:l,height:s,fit:a}=t;return a?null:{width:l?P(l):void 0,height:s?P(s):void 0}});return(l,s)=>(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(t.tag),{class:Vue.normalizeClass(["x-container",u.value]),style:Vue.normalizeStyle(r.value)},{default:Vue.withCtx(()=>[Vue.renderSlot(l.$slots,"default")]),_:3},8,["class","style"]))}}),Me={size:{type:String,default:"default"},content:{type:String,default:""},subtitle:{type:String},icon:{type:[String,Object]},border:{type:Boolean},more:{type:Boolean}},gt={key:2,class:"x-header__subtitle"},yt={key:0,class:"x-header__actions"},ce=Vue.defineComponent({name:"XHeader",inheritAttrs:!1,__name:"Header",props:Me,setup(n){const t=n,e=Vue.useAttrs(),o=Y(Vue.toRef(t,"icon")),u=Vue.computed(()=>({[`is-size-${t.size}`]:!!t.size&&t.size!=="default","is-border":t.border,"is-pointer":!!e.onClick}));return(r,l)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(w),{class:Vue.normalizeClass(["x-header",u.value]),justify:"space-between",align:"center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(w),{align:"center",class:Vue.normalizeClass(["x-header__wrapper",u.value]),grow:""},{default:Vue.withCtx(()=>[Vue.unref(o)?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(o)),{key:0,class:"x-header__icon"})):Vue.createCommentVNode("",!0),Vue.createElementVNode("span",Vue.mergeProps({class:"x-header__content"},r.$attrs),[Vue.renderSlot(r.$slots,"default",{},()=>[Vue.createTextVNode(Vue.toDisplayString(t.content),1)])],16),t.more?(Vue.openBlock(),Vue.createBlock(Vue.unref(A),{key:1,class:"x-header__more",icon:Vue.unref(ElementPlusIconsVue.ArrowRight)},null,8,["icon"])):Vue.createCommentVNode("",!0),t.subtitle||r.$slots.subtitle?(Vue.openBlock(),Vue.createElementBlock("span",gt,[Vue.renderSlot(r.$slots,"subtitle",{},()=>[Vue.createTextVNode(Vue.toDisplayString(t.subtitle),1)])])):Vue.createCommentVNode("",!0)]),_:3},8,["class"]),r.$slots.actions?(Vue.openBlock(),Vue.createElementBlock("div",yt,[Vue.renderSlot(r.$slots,"actions")])):Vue.createCommentVNode("",!0)]),_:3},8,["class"]))}}),Re={fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},border:{type:Boolean,default:!0},radius:{type:Boolean,default:!0},card:{type:Boolean},size:{type:String},shadow:{type:String},header:{type:[String,Object]},bodyPadding:{type:Boolean,default:!0},footerPadding:{type:Boolean,default:!0},body:{type:Object},footer:{type:Object}},de=Vue.defineComponent({name:"XPanel",__name:"Panel",props:Re,setup(n,{expose:t}){const e=n,o=Vue.ref(),u=Vue.computed(()=>({"x-panel--card":!!e.card,"x-panel--default":!e.card,[`is-${e.size}`]:!!e.size&&e.size!=="default","is-border":!!e.border,"is-radius":!!e.radius,[`is-shadow-${e.shadow}`]:!!e.shadow&&e.shadow!=="none"})),r=Vue.computed(()=>e.header===null?null:typeof e.header=="string"?{content:e.header,size:e.size}:D(T({},e.header),{size:e.size})),l=Vue.computed(()=>e.fit||e.height?"auto":void 0);return t({bodyRef:o}),(s,a)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(w),{class:Vue.normalizeClass(["x-panel",u.value]),direction:"column",fit:e.fit,width:e.width,height:e.height},{default:Vue.withCtx(()=>[r.value?(Vue.openBlock(),Vue.createBlock(Vue.unref(w),{key:0,flex:!1,class:"x-panel__header"},{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"header",{},()=>[Vue.createVNode(Vue.unref(ce),Vue.normalizeProps(Vue.guardReactiveProps(r.value)),{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"title")]),actions:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"actions")]),_:3},16)])]),_:3})):Vue.createCommentVNode("",!0),Vue.createVNode(Vue.unref(w),Vue.mergeProps({ref_key:"bodyRef",ref:o,flex:!1,overflow:l.value,grow:"",padding:"",class:"x-panel__body"},e.body),{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"default")]),_:3},16,["overflow"]),s.$slots.footer?(Vue.openBlock(),Vue.createBlock(Vue.unref(w),Vue.mergeProps({key:1,flex:!1,padding:"",class:"x-panel__footer"},e.footer),{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"footer")]),_:3},16)):Vue.createCommentVNode("",!0)]),_:3},8,["class","fit","width","height"]))}}),$e="user-select-none";class Ve{constructor(t,e={}){O(this,"scope");O(this,"dragging",!1);this.el=t,this.options=e,this.scope=Vue.effectScope(),this.scope.run(()=>{this.init()})}getHandle(){const{selector:t,handle:e}=this.options;return t?this.el.querySelector(t):e}getTarget(){const{target:t="body"}=this.options;return typeof t=="string"?document.querySelector(t):Vue.unref(t)||document.body}init(){const{el:t,options:e}=this,{disabled:o,delay:u=150,onStart:r,onEnd:l}=e;if(o)return;let s=null;const a=this.getHandle(),i=this.getTarget();let c=t.getBoundingClientRect(),V=null;const{x:h,y:k}=VueUse.useDraggable(t,D(T({initialValue:{x:c.x,y:c.y}},e),{handle:a,onStart:(g,f)=>{document.body.classList.add($e),clearTimeout(s),s=setTimeout(()=>{this.dragging=!0,c=t.getBoundingClientRect(),V=i==null?void 0:i.getBoundingClientRect(),r&&r(g,f)},u)},onEnd:(g,f)=>{if(clearTimeout(s),document.body.classList.remove($e),this.dragging&&V){this.dragging=!1;const{x:C,y:_}=g,m=this.getPosition(V,c,C,_);l&&l(m,f),V=null}}}));Vue.watch([h,k],()=>{if(this.dragging&&V){const g=this.getPosition(V,c,h.value,k.value);t.style.left=`${g.x}px`,t.style.top=`${g.y}px`}})}getPosition(t,e,o,u){const{edge:r=50}=this.options,l=-e.width+r,s=t.width-r,a=0,i=t.height-r,c=Math.min(s,Math.max(o,l)),V=Math.min(i,Math.max(u,a));return{x:c,y:V}}destory(){this.scope.stop()}}const Ae={mounted(n,t){const e=t.value||{},o=new Ve(n,e);n.__draggable__=o},updated(n,t){const e=t.value||{};let o=n.__draggable__;o&&!VtjUtils.isEqual(o.options,e)&&(o.destory(),n.__draggable__=new Ve(n,e))},unmounted(n){const t=n.__draggable__;t&&(t.destory(),n.__draggable__=null)}},me="user-select-none";class pe{constructor(t,e={}){O(this,"scope");O(this,"resizing",Vue.ref(!1));O(this,"direction",Vue.ref(""));O(this,"MIE",null);O(this,"cleanMousedown");O(this,"cleanMouseup");this.el=t,this.options=e,this.scope=Vue.effectScope(),this.scope.run(()=>{this.init()})}init(){const{el:t,options:e}=this,{disabled:o,onStart:u,onEnd:r}=e;if(o)return;this.MIE=VueUse.useMouseInElement(t),this.cleanMousedown=VueUse.useEventListener(document,"mousedown",()=>{var a;(a=this.direction)!=null&&a.value&&this.MIE&&(this.resizing.value=!0,t.classList.add("is-resizing",`is-${this.direction.value}-resizing`),u&&u(this.direction.value,this.MIE))}),this.cleanMouseup=VueUse.useEventListener(document,"mouseup",()=>{var a;this.resizing.value&&((a=this.direction)!=null&&a.value)&&this.MIE&&(t.classList.remove("is-resizing",`is-${this.direction.value}-resizing`),r&&r(this.direction.value,this.MIE)),this.resizing.value=!1}),Vue.watch(this.direction,a=>{const i=document.body;i.style.cursor=a?`${a}-resize`:"",a?i.classList.add(me):i.classList.remove(me)});const{x:l,y:s}=this.MIE;Vue.watch([l,s],()=>{this.resizing.value?this.resize():this.direction.value=this.getDirection()})}resize(){const{MIE:t,direction:e,resizing:o,options:u,el:r}=this,l=(e==null?void 0:e.value)||"";if(!t||!o.value||!l)return;const{x:s,y:a,elementX:i,elementY:c,elementHeight:V,elementWidth:h}=t,{onResizing:k}=u,{minWidth:g=0,minHeight:f=0,maxWidth:C=99999,maxHeight:_=99999}=u;if(l.includes("e")){const m=Math.min(Math.max(i.value,g),C);r.style.width=`${m}px`}if(l.includes("s")){const m=Math.min(Math.max(c.value,f),_);r.style.height=`${m}px`}if(l.includes("w")){const m=Math.min(Math.max(h.value-i.value,g),C);r.style.width=`${m}px`,r.style.left=`${s.value}px`}if(l.includes("n")){const m=Math.min(Math.max(V.value-c.value,f),_);this.el.style.height=`${m}px`,this.el.style.top=`${a.value}px`}k&&k(l,t)}getDirection(){if(!this.MIE)return"";const{elementX:t,elementY:e,elementHeight:o,elementWidth:u,isOutside:r}=this.MIE;if(r.value)return"";const{dirs:l=["n","s","w","e"],edge:s=5}=this.options;let a="";return l.includes("n")&&e.value<=s?a+="n":l.includes("s")&&e.value>o.value-s&&(a+="s"),l.includes("w")&&t.value<=s?a+="w":l.includes("e")&&t.value>u.value-s&&(a+="e"),a}destory(){var e;const t=document.body;t.style.cursor="",t.classList.remove(me),this.cleanMousedown&&this.cleanMousedown(),this.cleanMouseup&&this.cleanMouseup(),(e=this.MIE)==null||e.stop(),this.scope.stop()}}const fe={mounted(n,t){const e=t.value||{},o=new pe(n,e);n.__resizable__=o},updated(n,t){const e=t.value||{};let o=n.__resizable__;o&&!VtjUtils.isEqual(o.options,e)&&(o.destory(),n.__resizable__=new pe(n,e))},unmounted(n){const t=n.__resizable__;t&&(t.destory(),n.__resizable__=null)}},Fe={modelValue:{type:Boolean,default:!0},title:{type:String},subtitle:{type:String},icon:{type:[String,Object]},size:{type:String,default:"default"},width:{type:[Number,String],default:"70%"},height:{type:[Number,String],default:"70%"},left:{type:[Number,String]},top:{type:[Number,String]},modal:{type:Boolean,default:!0},draggable:{type:[Boolean,Object],default:!0},resizable:{type:[Boolean,Object]},closable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!0},mode:{type:String,default:"normal"},content:{type:Object},src:{type:String},componentInstance:{type:Object},beforeClose:{type:Function},submit:{type:[Boolean,String]},cancel:{type:[Boolean,String]},bodyPadding:{type:Boolean,default:!0},primary:{type:Boolean}};let Z=1e3;function vt(n,t){const{width:e,height:o}=VueUse.useElementSize(t),u=Vue.reactive({mode:n.mode||"normal",wrapperWidth:0,wrapperHeight:0,width:0,height:0,top:0,left:0,zIndex:++Z,dragging:!1,resizing:!1});return Vue.watch([e,o],([r,l])=>{u.wrapperWidth=r,u.wrapperHeight=l,u.width=L(n.width,r),u.height=L(n.height,l),u.left=n.left?L(n.left,r)-u.width/2:Math.max(Math.floor((r-u.width)/2),0),u.top=n.top?L(n.top,l):Math.max(Math.floor((l-u.height)/2),0)}),Vue.watch(u,r=>{Z=Math.max(r.zIndex,Z)}),{state:u,normal:Vue.computed(()=>u.mode==="normal"),maximized:Vue.computed(()=>u.mode==="maximized"),minimized:Vue.computed(()=>u.mode==="minimized")}}function kt(n,t){const e=Vue.computed(()=>{const{width:l,height:s,top:a,left:i,zIndex:c}=t;return{width:`${l}px`,height:`${s}px`,top:`${a}px`,left:`${i}px`,zIndex:c}}),o=Vue.computed(()=>({[`is-${t.mode}`]:!!t.mode,"is-draggable":!!n.draggable,"is-resizable":!!n.resizable,"is-primary":!!n.primary})),u=Vue.computed(()=>({[`is-${t.mode}`]:!!t.mode,"is-dragging":t.dragging,"is-resizing":t.resizing})),r=Vue.computed(()=>({zIndex:t.zIndex}));return{styles:e,classes:o,wrapperClass:u,modalStyle:r}}function bt(n,t,e){const o=c=>{t.mode=c,["maximized","minimized","normal"].includes(c)&&e(c),e("modeChange",c)},u=()=>N(this,null,function*(){(!n.beforeClose||(yield n.beforeClose()))&&(e("update:modelValue",!1),e("close"),e("destroy"))});return{close:u,changeMode:o,show:()=>o("normal"),hide:()=>o("minimized"),active:()=>{t.zIndex=Math.max(t.zIndex,++Z)},submit:()=>e("submit"),cancel:()=>{e("cancel"),u()}}}function wt(n,t,e,o){return Vue.computed(()=>{var r;const u=typeof n.draggable=="boolean"?!n.draggable:!!((r=n.draggable)!=null&&r.disabled);return D(T({},VtjUtils.isObject(n.draggable)?n.draggable:{}),{disabled:u,target:o,selector:".x-panel__header",onStart(l){t.dragging=!0,t.zIndex=Math.max(t.zIndex,++Z),e("dragStart",l)},onMove(l){e("dragging",l)},onEnd(l){if(t.mode==="maximized")return;const{x:s,y:a}=l;t.left=s,t.top=a,t.dragging=!1,e("dragEnd",l)}})})}function Ct(n,t,e){return Vue.computed(()=>{var u;const o=typeof n.resizable=="boolean"?!n.resizable:!!((u=n.resizable)!=null&&u.disabled);return D(T({minWidth:200,minHeight:150},VtjUtils.isObject(n.resizable)?n.resizable:{}),{disabled:o,dirs:["e","s","w"],onStart(r,l){t.resizing=!0,t.zIndex=Math.max(t.zIndex,++Z),e("resizeStart",r,l)},onResizing(r,l){e("resizing",r,l)},onEnd(r,l){t.left=l.elementPositionX.value,t.top=l.elementPositionY.value,t.width=l.elementWidth.value,t.height=l.elementHeight.value,t.resizing=!1,e("resizeEnd",r,l)}})})}function _t(n,t){const e=n.componentInstance;if(!e)return;let o=null;return Vue.onMounted(()=>{const u=Vue.unref(t),r=Vue.unref(u==null?void 0:u.bodyRef);o=e.$el,r&&r.$el&&r.$el.appendChild(o)}),Vue.onUnmounted(()=>{o&&o.parentNode&&o.parentNode.removeChild(o)}),{componentInstance:e}}const Bt=["src"],oe=Vue.defineComponent({name:"XDialog",__name:"Dialog",props:Fe,emits:["update:modelValue","open","close","destroy","maximized","minimized","normal","modeChange","dragStart","dragging","dragEnd","resizeStart","resizeEnd","resizing","submit","cancel"],setup(n,{expose:t,emit:e}){const o=n,u=Vue.getCurrentInstance(),r=Vue.ref(),l=Vue.ref(),{state:s,maximized:a,minimized:i,normal:c}=vt(o,r),{styles:V,classes:h,wrapperClass:k,modalStyle:g}=kt(o,s),{changeMode:f,active:C,close:_,show:m,hide:B,submit:p,cancel:v}=bt(o,s,e),x=wt(o,s,e,r),K=Ct(o,s,e),H=_t(o,l);Vue.watchEffect(()=>N(this,null,function*(){o.modelValue&&(yield Vue.nextTick(),u&&e("open",u))}));const W=Vue.computed(()=>{var I;return(I=l.value)==null?void 0:I.$el});return t({$vtjEl:W,panelRef:l,state:s,maximized:a,minimized:i,changeMode:f,show:m,hide:B,submit:p,cancel:v,componentInstance:H}),(I,$)=>o.modelValue?(Vue.openBlock(),Vue.createBlock(Vue.Teleport,{key:0,to:"body"},[Vue.createElementVNode("div",{ref_key:"wrapper",ref:r,class:Vue.normalizeClass(["x-dialog__wrapper",Vue.unref(k)])},[o.modal?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,class:"x-dialog__modal",style:Vue.normalizeStyle(Vue.unref(g))},null,4)):Vue.createCommentVNode("",!0),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(Vue.unref(de),{ref_key:"panelRef",ref:l,class:Vue.normalizeClass(["x-dialog",Vue.unref(h)]),card:"",shadow:"always",header:{icon:o.icon,subtitle:o.subtitle},width:"800px",height:"600px",footer:{justify:"space-between",flex:!0,align:"center"},style:Vue.normalizeStyle(Vue.unref(V)),size:o.size,body:{padding:o.bodyPadding},onClick:Vue.unref(C)},Vue.createSlots({title:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(o.title),1)]),actions:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"actions"),o.minimizable?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:0,icon:Vue.unref(VtjIcons.Minimize),size:o.size,mode:"icon",type:"primary",background:"hover",onClick:$[0]||($[0]=J=>Vue.unref(f)("minimized"))},null,8,["icon","size"])):Vue.createCommentVNode("",!0),o.maximizable?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:1},[Vue.unref(c)?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:1,icon:Vue.unref(VtjIcons.Maximize),size:o.size,mode:"icon",type:"primary",background:"hover",onClick:$[2]||($[2]=J=>Vue.unref(f)("maximized"))},null,8,["icon","size"])):(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:0,icon:Vue.unref(VtjIcons.Popup),size:o.size,mode:"icon",type:"primary",background:"hover",onClick:$[1]||($[1]=J=>Vue.unref(f)("normal"))},null,8,["icon","size"]))],64)):Vue.createCommentVNode("",!0),o.closable?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:2,icon:Vue.unref(VtjIcons.RawClose),size:o.size,mode:"icon",type:"danger",background:"hover",onClick:Vue.unref(_)},null,8,["icon","size","onClick"])):Vue.createCommentVNode("",!0)]),default:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"default",{},()=>[o.content?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(o.content),{key:0})):Vue.createCommentVNode("",!0),o.src?(Vue.openBlock(),Vue.createElementBlock("iframe",{key:1,src:o.src,class:"x-dialog__frame"},null,8,Bt)):Vue.createCommentVNode("",!0)])]),_:2},[o.cancel||o.submit||I.$slots.footer||I.$slots.extra||I.$slots.handle?{name:"footer",fn:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"footer",{},()=>[Vue.createVNode(Vue.unref(w),{align:"center"},{default:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"extra")]),_:3}),Vue.createVNode(Vue.unref(w),{align:"center"},{default:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"handle"),o.cancel?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:0,type:"default",size:o.size,onClick:Vue.unref(v)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(typeof o.cancel=="string"?o.cancel:"取消"),1)]),_:1},8,["size","onClick"])):Vue.createCommentVNode("",!0),o.submit?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:1,type:"primary",size:o.size,onClick:Vue.unref(p)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(typeof o.submit=="string"?o.submit:"确定"),1)]),_:1},8,["size","onClick"])):Vue.createCommentVNode("",!0)]),_:3})])]),key:"0"}:void 0]),1032,["header","class","style","size","body","onClick"])),[[Vue.unref(Ae),Vue.unref(x)],[Vue.unref(fe),Vue.unref(K)]])],2)])):Vue.createCommentVNode("",!0)}});function ne(n,t){const e=document.createElement("div"),o=Vue.createVNode(oe,n);o.appContext=t!=null?t:ne._context,Vue.render(o,e);const u=()=>{var r;Vue.render(null,e),(r=e.parentNode)==null||r.removeChild(e)};return o.props.onDestroy=()=>{u()},document.body.appendChild(e),{vnode:o,destroy:u}}const Et=Vue.createElementVNode("div",{class:"x-mask-sidebar__helper"},null,-1),xt=Vue.defineComponent({__name:"Sidebar",props:{collapsed:{type:Boolean}},setup(n){const t=n;return(e,o)=>Vue.withDirectives((Vue.openBlock(),Vue.createBlock(Vue.unref(w),{class:Vue.normalizeClass(["x-mask-sidebar",{"is-collapsed":t.collapsed}]),grow:!1,flex:"",direction:"column"},{default:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"brand"),Vue.createVNode(Vue.unref(w),{class:"x-mask-sidebar__wrapper",flex:"",grow:"",direction:"column",justify:"space-between",align:"center"},{default:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"default"),Et]),_:3})]),_:3},8,["class"])),[[Vue.unref(fe),{dirs:["e"],disabled:t.collapsed,maxWidth:500,minWidth:200}]])}}),St=Vue.defineComponent({__name:"SwitchBar",props:{collasped:{type:Boolean,default:!1},favorite:{type:Boolean,default:!1},keyword:{}},emits:["update:collasped","update:keyword","update:favorite"],setup(n,{emit:t}){const e=n,o=Vue.ref(!1),u=Vue.ref(""),r=Vue.ref(!1),l=()=>{o.value=!0},s=()=>{u.value="",o.value=!1,t("update:keyword",u.value)},a=()=>{t("update:collasped",!e.collasped)},i=()=>{t("update:keyword",u.value)},c=()=>{t("update:favorite",r.value)};return(V,h)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(w),{class:"x-mask-switch-bar",justify:"space-between",align:"center"},{default:Vue.withCtx(()=>[e.collasped?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(w),{key:0,class:"x-mask-switch-bar__left",grow:""},{default:Vue.withCtx(()=>[o.value?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSwitch),{key:0,modelValue:r.value,"onUpdate:modelValue":h[0]||(h[0]=k=>r.value=k),class:"x-mask-switch-bar__switch","active-icon":Vue.unref(ElementPlusIconsVue.StarFilled),"inactive-icon":Vue.unref(ElementPlusIconsVue.Menu),onChange:c},null,8,["modelValue","active-icon","inactive-icon"])),o.value?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElInput),{key:1,modelValue:u.value,"onUpdate:modelValue":h[1]||(h[1]=k=>u.value=k),class:"x-mask-switch-bar__input",size:"small",placeholder:"请输入查询关键字",onInput:i,"prefix-icon":Vue.unref(ElementPlusIconsVue.Search)},{suffix:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(A),{icon:Vue.unref(ElementPlusIconsVue.Close),onClick:s},null,8,["icon"])]),_:1},8,["modelValue","prefix-icon"])):Vue.createCommentVNode("",!0)]),_:1})),Vue.createVNode(Vue.unref(w),{class:Vue.normalizeClass(["x-mask-switch-bar__right",{"is-collasped":e.collasped}]),flex:"",align:"center",justify:"center"},{default:Vue.withCtx(()=>[!o.value&&!e.collasped?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:0,icon:Vue.unref(ElementPlusIconsVue.Search),mode:"icon",background:"hover",size:"default",circle:"",onClick:l},null,8,["icon"])):Vue.createCommentVNode("",!0),e.collasped?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:1,icon:Vue.unref(ElementPlusIconsVue.Expand),mode:"icon",size:"default",background:"hover",onClick:a,circle:""},null,8,["icon"])):Vue.createCommentVNode("",!0),e.collasped?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:2,icon:Vue.unref(ElementPlusIconsVue.Fold),mode:"icon",size:"default",background:"hover",circle:"",onClick:a},null,8,["icon"]))]),_:1},8,["class"])]),_:1}))}}),Pt=["src"],zt={key:0},Nt=Vue.defineComponent({__name:"Brand",props:{collapsed:{type:Boolean,default:!1},logo:{},title:{},url:{}},setup(n){const t=n,e=VueRouter.useRouter(),o=()=>{t.url&&e.push(t.url)};return(u,r)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(w),{class:Vue.normalizeClass(["x-mask-brand",{"is-collapsed":t.collapsed}]),align:"center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(w),{class:"x-mask-brand__logo",flex:"",justify:"center",align:"center",onClick:o},{default:Vue.withCtx(()=>[Vue.renderSlot(u.$slots,"logo",{},()=>[t.logo?(Vue.openBlock(),Vue.createElementBlock("img",{key:0,src:t.logo},null,8,Pt)):Vue.createCommentVNode("",!0)])]),_:3}),Vue.createVNode(Vue.unref(w),{class:"x-mask-brand__title",flex:"",align:"center"},{default:Vue.withCtx(()=>[t.title?(Vue.openBlock(),Vue.createElementBlock("span",zt,[Vue.renderSlot(u.$slots,"title",{},()=>[Vue.createTextVNode(Vue.toDisplayString(t.title),1)])])):Vue.createCommentVNode("",!0)]),_:3})]),_:3},8,["class"]))}}),ue="__favorites__",le="__search__",Tt=Vue.defineComponent({__name:"Menu",props:{collapse:{type:Boolean,default:!1},keyword:{},favorite:{type:Boolean},favorites:{},flatMenus:{},menus:{},active:{}},emits:["select"],setup(n,{emit:t}){const e=n,o=Vue.computed(()=>e.menus||[]),u=Vue.computed(()=>{var a;return String((a=e.active)==null?void 0:a.id)}),r=Vue.computed(()=>{var a;return[{id:ue,title:"收藏",icon:ElementPlusIconsVue.Star,children:(a=e.favorites)!=null&&a.length?e.favorites:[{id:ue+"empty",disabled:!0,title:"暂无收藏菜单"}]}]}),l=Vue.computed(()=>{const a=(e.keyword||"").trim(),i=a?(e.flatMenus||[]).filter(c=>{var V;return(V=c.title)==null?void 0:V.includes(a)}):[];return[{id:le,title:"搜索",icon:ElementPlusIconsVue.Search,children:i!=null&&i.length?i:[{id:le+"empty",disabled:!0,title:"查询匹配不到菜单项"}]}]}),s=a=>{t("select",a)};return(a,i)=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[Vue.withDirectives(Vue.createVNode(Vue.unref(w),{class:"x-mask-menu",grow:"",flex:!1,overflow:"auto"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(Vue.unref(F),{subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:o.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!0,"collapse-transition":!1,"default-active":u.value,onSelect:s},null,8,["data","default-icon","default-active"]),[[Vue.vShow,e.collapse]]),Vue.withDirectives(Vue.createVNode(Vue.unref(F),{subMenu:{popperClass:"x-mask-menu-popper",teleported:!0},data:o.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!1,"collapse-transition":!1,"default-active":u.value,onSelect:s},null,8,["data","default-icon","default-active"]),[[Vue.vShow,!e.collapse]]),o.value.length?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElEmpty),{key:0,description:"暂无菜单数据"}))]),_:1},512),[[Vue.vShow,!e.favorite&&!e.keyword]]),Vue.withDirectives(Vue.createVNode(Vue.unref(w),{class:"x-mask-menu",grow:"",flex:!1,overflow:"auto"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(Vue.unref(F),{class:"x-mask-menu__favorites",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:r.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!0,"collapse-transition":!1,"default-active":u.value,"default-openeds":[ue],onSelect:s},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,e.collapse]]),Vue.withDirectives(Vue.createVNode(Vue.unref(F),{class:"x-mask-menu__favorites",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:r.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!1,"collapse-transition":!1,"default-active":u.value,"default-openeds":[ue],onSelect:s},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,!e.collapse]])]),_:1},512),[[Vue.vShow,e.favorite&&!e.keyword]]),e.keyword?Vue.withDirectives((Vue.openBlock(),Vue.createBlock(Vue.unref(w),{key:0,class:"x-mask-menu",grow:"",flex:!1,overflow:"auto"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(Vue.unref(F),{class:"x-mask-menu__search",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:l.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!0,"collapse-transition":!1,"default-active":u.value,"default-openeds":[le],onSelect:s},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,e.collapse]]),Vue.withDirectives(Vue.createVNode(Vue.unref(F),{class:"x-mask-menu__search",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:l.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!1,"collapse-transition":!1,"default-active":u.value,"default-openeds":[le],onSelect:s},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,!e.collapse]])]),_:1},512)),[[Vue.vShow,!!e.keyword]]):Vue.createCommentVNode("",!0)],64))}}),It={class:"x-mask-tabs__trigger"},Dt={key:1},Mt=["onDragstart","onDragend"],Rt={key:1},$t=Vue.defineComponent({__name:"Tabs",props:{tabs:{},home:{},isActiveTab:{type:Function},value:{},favorites:{}},emits:["click","remove","refresh","toggleFavorite","dialog"],setup(n,{emit:t}){const e=n,o=i=>{const c=!!e.favorites.find(V=>{var h;return V===i.menu||V.id===((h=i.menu)==null?void 0:h.id)});return[{icon:ElementPlusIconsVue.Refresh,label:"刷新",name:"refresh",value:i},"|",{icon:c?ElementPlusIconsVue.StarFilled:ElementPlusIconsVue.Star,label:"收藏",name:"favorite",value:i.menu,disabled:!i.menu},"|",{icon:ElementPlusIconsVue.CopyDocument,label:"弹窗",name:"dialog",value:i}]},u=i=>{const c=i.paneName;if(c===e.home.id){t("click",e.home);return}const V=e.tabs.find(h=>h.id===c);V&&t("click",V)},r=i=>{const c=e.tabs.find(V=>V.id===i);c&&t("remove",c)},l=i=>{switch(i.name){case"refresh":t("refresh",i.value);break;case"favorite":t("toggleFavorite",i.value);break;case"dialog":t("dialog",i.value);break}},s=(i,c)=>{c.dataTransfer&&(c.dataTransfer.setData("tab",i.id),c.target&&c.target.classList.add("is-dagging"))},a=(i,c)=>{c.target&&c.target.classList.remove("is-dagging")};return(i,c)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(w),{ref:"tabsRef",class:"x-mask-tabs",height:"100%",grow:"",flex:"",justify:"flex-end",direction:"column"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElTabs),{type:"card","model-value":e.value,onTabRemove:r,onTabClick:u},{default:Vue.withCtx(()=>[e.home?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElTabPane),{key:0,name:e.home.id},{label:Vue.withCtx(()=>[Vue.createElementVNode("div",It,[e.home.icon?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(Y)(e.home.icon)),{key:0})):Vue.createCommentVNode("",!0),e.home.title?(Vue.openBlock(),Vue.createElementBlock("span",Dt,Vue.toDisplayString(e.home.title),1)):Vue.createCommentVNode("",!0)])]),_:1},8,["name"])):Vue.createCommentVNode("",!0),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.tabs,V=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElTabPane),{key:V.id,name:V.id,lazy:"",closable:""},{label:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElPopover),{"open-delay":500,placement:"bottom",trigger:"hover",width:"200px",disabled:V.id!==e.value},{reference:Vue.withCtx(()=>[Vue.createElementVNode("div",{class:"x-mask-tabs__trigger",draggable:"true",onDragstart:h=>s(V,h),onDragend:h=>a(V,h)},[V.icon?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(Y)(V.icon)),{key:0})):Vue.createCommentVNode("",!0),V.title?(Vue.openBlock(),Vue.createElementBlock("span",Rt,Vue.toDisplayString(V.title),1)):Vue.createCommentVNode("",!0)],40,Mt)]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(te),{items:o(V),mode:"text",size:"small",type:"info",onClick:l},null,8,["items"])]),_:2},1032,["disabled"])]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])]),_:1},512))}}),At=Vue.defineComponent({__name:"ThemeSwitch",setup(n){const t=VueUse.useDark();return(e,o)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSwitch),{class:"x-mask-theme-switch",modelValue:Vue.unref(t),"onUpdate:modelValue":o[0]||(o[0]=u=>Vue.isRef(t)?t.value=u:null),size:"default","active-action-icon":Vue.unref(ElementPlusIconsVue.Moon),"inactive-action-icon":Vue.unref(ElementPlusIconsVue.Sunny)},null,8,["modelValue","active-action-icon","inactive-action-icon"]))}}),Ft={class:"x-mask-toolbar__menu-item"},jt=Vue.defineComponent({__name:"Toolbar",props:{tabs:{default:()=>[]},actions:{},theme:{type:Boolean}},emits:["closeOtherTabs","closeAllTabs","closeTab","clickTab","actionClick","actionCommand"],setup(n,{emit:t}){const e=n,o=Vue.computed(()=>{const a=e.tabs.map((i,c)=>({divided:c===0,label:i.title,command:i}));return[{label:"关闭其他",command:"other"},{label:"关闭全部",command:"all"},...a]}),u=a=>{t("closeTab",a.command)},r=a=>{switch(a.command){case"all":t("closeAllTabs");break;case"other":t("closeOtherTabs");break;default:t("clickTab",a.command);break}},l=a=>{t("actionClick",a)},s=(a,i)=>{t("actionCommand",a,i)};return(a,i)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(w),{class:"x-mask-toolbar",align:"center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(M),{icon:Vue.unref(ElementPlusIconsVue.MoreFilled),menus:o.value,dropdown:{size:"small"},mode:"icon",circle:"",background:"hover",onCommand:r},{item:Vue.withCtx(({item:c})=>[Vue.createElementVNode("span",Ft,[Vue.createTextVNode(Vue.toDisplayString(c.label)+" ",1),["other","all"].includes(c.command)?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(A),{key:0,onClick:Vue.withModifiers(V=>u(c),["stop"]),icon:Vue.unref(ElementPlusIconsVue.Close)},null,8,["onClick","icon"]))])]),_:1},8,["icon","menus"]),Vue.createVNode(Vue.unref(ElementPlus.ElDivider),{direction:"vertical"}),e.actions?(Vue.openBlock(),Vue.createBlock(Vue.unref(te),{key:0,circle:"",mode:"icon",size:"default",background:"hover",items:a.actions,onClick:l,onCommand:s},null,8,["items"])):Vue.createCommentVNode("",!0),e.actions?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElDivider),{key:1,direction:"vertical"})):Vue.createCommentVNode("",!0),e.theme?(Vue.openBlock(),Vue.createBlock(At,{key:2})):Vue.createCommentVNode("",!0),e.theme?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElDivider),{key:3,direction:"vertical"})):Vue.createCommentVNode("",!0),Vue.renderSlot(a.$slots,"default")]),_:3}))}}),Ot=Vue.defineComponent({__name:"Avatar",props:{avatar:{}},setup(n){const t=n;return(e,o)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElPopover),{width:200,"popper-class":"x-mask-avatar__popper",disabled:!e.$slots.default},{reference:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElAvatar),{class:"x-mask-avatar",shape:"circle",icon:Vue.unref(ElementPlusIconsVue.UserFilled),src:t.avatar,size:26},null,8,["icon","src"])]),default:Vue.withCtx(()=>[e.$slots.default?Vue.renderSlot(e.$slots,"default",{key:0}):Vue.createCommentVNode("",!0)]),_:3},8,["disabled"]))}}),je=Vue.defineComponent({__name:"Content",props:{createView:{type:Function},exclude:{}},setup(n){const t=n;return(e,o)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(w),{class:"x-mask__content",flex:!1,grow:"",padding:!1},{default:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"default"),Vue.createVNode(Vue.unref(VueRouter.RouterView),null,{default:Vue.withCtx(({Component:u,route:r})=>[(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{exclude:t.exclude},[u?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(t.createView(u,r)),{key:r.fullPath})):Vue.createCommentVNode("",!0)],1032,["exclude"]))]),_:1})]),_:3}))}}),Oe=140,Ue={logo:{type:String,default:Q},title:{type:String,default:"VTJ.PRO"},menus:{type:[Array,Function],default(){return[]}},favorites:{type:[Array,Function],default(){return[]}},menuAdapter:{type:Function},home:{type:[String,Object],default:"/"},tabs:{type:Number,default:20},actions:{type:Array},avatar:{type:String},theme:{type:Boolean},disabled:{type:Boolean},addFavorite:{type:Function},removeFavorite:{type:Function}},he=Symbol(),ge=Symbol();function Ut(n){const t=Vue.ref(!1),e=Vue.ref(""),o=Vue.ref(!1);return{collapsed:t,keyword:e,favorite:o}}function Lt(n){const t=VtjUtils.uid();return Vue.computed(()=>{const e=n.home;return Object.assign({id:t,url:"/",name:"MaskHome",icon:ElementPlusIconsVue.HomeFilled,closable:!1},typeof e=="string"?{url:e}:e||{})})}function Le(n,t){let e=[];return n.forEach(o=>{o=t?t(o):o,o.children?e=e.concat(Le(o.children,t)):e.push(o)}),e}function Xt(n,t){const e=VueRouter.useRouter(),o=Vue.shallowRef([]),u=Vue.shallowRef([]),r=Vue.computed(()=>Le(o.value,n.menuAdapter)),l=Vue.computed(()=>VtjUtils.arrayToMap(r.value,"id")),s=Vue.ref(null),a=g=>{const f=typeof g=="object"?g.id:g,C=l.value.get(f);if(!C){console.warn("找不到菜单",g);return}const{type:_="route",url:m,title:B,icon:p}=C;if(!m){s.value=C,t("select",C);return}if(_==="route"){VtjUtils.isUrl(m)||m.startsWith("//")?window.open(m):(s.value=C,e.push(m).catch(v=>v));return}if(_==="window"){window.open(m);return}_==="dialog"&&ne({resizable:!0,bodyPadding:!1,width:"80%",height:"80%",title:B,icon:p,src:m})},i=()=>N(this,null,function*(){var g,f;o.value=typeof n.menus=="function"?(yield n.menus())||[]:(g=n.menus)!=null?g:[],u.value=typeof n.favorites=="function"?(yield n.favorites())||[]:(f=n.favorites)!=null?f:[]}),c=g=>{u.value=[g,...u.value],n.addFavorite&&n.addFavorite(g)},V=g=>{u.value=u.value.filter(f=>f.id!==g.id),n.removeFavorite&&n.removeFavorite(g)},h=g=>!!u.value.find(f=>f===g||f.id===g.id),k=g=>{h(g)?V(g):c(g)};return Vue.watchEffect(i),{menus:o,favorites:u,flatMenus:r,active:s,select:a,toggleFavorite:k}}function Kt(n,t,e,o,u){const r=VueRouter.useRoute(),l=VueRouter.useRouter(),s={},a=Vue.ref([]),i=Vue.ref(),{width:c}=VueUse.useElementSize(i),V=Vue.computed(()=>Math.floor(c.value/Oe)),h=Vue.computed(()=>a.value.slice(0,V.value).filter(y=>!y.dialog)),k=Vue.computed(()=>a.value.slice(V.value)),g=y=>e.value.find(b=>b.url===y),f=y=>r.fullPath===y.url,C=y=>u.value.id===y?u.value:a.value.find(b=>b.id===y),_=Vue.ref(""),m=Vue.computed(()=>C(_.value)),B=y=>{l.push(y.url).catch(b=>b)},p=y=>{_.value=y.id,r.fullPath!==y.url&&B(y)},v=()=>{B(u.value)},x=y=>{const b=a.value.find(E=>E.url===y.url||E.id===y.id);b?p(b):(a.value.unshift(y),p(y))},K=y=>N(this,null,function*(){const{url:b=r.fullPath,icon:E,title:Ce="新建标签页"}=y||{},ae=s[b],_e=VtjUtils.uid(),Be=VtjUtils.upperFirstCamelCase(b);return T({id:_e,name:Be,url:b,icon:E,title:Ce,closable:!0,menu:y},ae?yield ae():{})}),H=y=>N(this,null,function*(){if(yield ElementPlus.ElMessageBox.confirm("是否关闭页签","提示",{type:"warning"}).catch(E=>!1)){if(a.value=a.value.filter(E=>E.id!==y.id),_.value===y.id){const E=a.value[0];B(E||u.value)}return y}}),W=y=>{const b=a.value.findIndex(E=>E.id===y.id);if(b>=0){const E=a.value[b];a.value.splice(b,1,Object.assign(E,y))}},I=()=>N(this,null,function*(){if(!(yield ElementPlus.ElMessageBox.confirm("是否关闭全部页签","提示",{type:"warning"}).catch(E=>!1)))return;const b=a.value;return a.value=[],p(u.value),b}),$=()=>N(this,null,function*(){if(!(yield ElementPlus.ElMessageBox.confirm("是否关闭其他页签","提示",{type:"warning"}).catch(E=>!1)))return;const b=a.value.filter(E=>E.id!==_.value);return a.value=a.value.filter(E=>E.id===_.value),b}),J=y=>{const b=a.value.filter(E=>E.id!==y.id);a.value=[y,...b],p(y)},G=()=>N(this,null,function*(){yield Vue.nextTick();const y=u.value.url===r.fullPath,b=g(r.fullPath);if(y)_.value=u.value.id;else{const E=yield K(b);x(E)}yield Vue.nextTick(),o.value=b||null});return Vue.watch(e,G),Vue.watch(r,G,{immediate:!0}),Vue.provide(he,s),{tabRef:i,tabs:a,showTabs:h,currentTab:m,changeTab:B,removeTab:H,updateTab:W,addTab:x,home:u,tabValue:_,isCurrentTab:f,activeHome:v,activeTab:p,dropdownTabs:k,removeAllTabs:I,removeOtherTabs:$,moveToShow:J}}function Ht(n){const t=new Map,e=Vue.ref([]),o=Vue.reactive({}),u={},{updateTab:r,isCurrentTab:l,activeHome:s,tabs:a}=n,i=(m,B)=>{const p=B.fullPath;if(t.has(p))return t.get(p);{const v=VtjUtils.upperFirstCamelCase(p),x={name:v,setup(){const K=Vue.computed(()=>o[p]||document.body),H=Vue.computed(()=>!o[p]),W=Vue.computed(()=>!e.value.includes(v));return Vue.provide(VueRouter.routeLocationKey,Vue.toRaw(T({},B))),()=>W.value?Vue.h(Vue.Teleport,{to:K.value,disabled:H.value},[Vue.h(m)]):null}};return t.set(p,x),x}},c=m=>{m.dialog=void 0,delete o[m.url];const B=u[m.id];B&&(B.destroy(),delete u[m.id],r(m))},V=(m=[])=>{m.forEach(B=>{c(B)})},h=m=>N(this,null,function*(){m.dialog=D(T({},m.dialog),{onMinimized:()=>{c(m)},onClose:()=>N(this,null,function*(){c(m),a.value=a.value.filter(p=>p.id!==m.id)})}),r(m);const B=ne(D(T({title:m.title,icon:m.icon,modal:!1,resizable:!0,draggable:!0},m.dialog),{onOpen(p){var v,x;o[m.url]=(x=(v=p.refs.panelRef)==null?void 0:v.bodyRef)==null?void 0:x.$el}}));return yield Vue.nextTick(),l(m)&&s(),u[m.id]=B,B}),k=m=>N(this,null,function*(){e.value=[m.name],yield Vue.nextTick(),e.value=[]}),g=m=>N(this,null,function*(){e.value=m.map(B=>B.name),yield Vue.nextTick(),e.value=[]}),f=m=>(m.preventDefault(),!1),C=m=>{if(m.dataTransfer){const B=m.dataTransfer.getData("tab"),p=a.value.find(v=>v.id===B);if(p){const{clientX:v,clientY:x}=m;p.dialog={left:v,top:x},h(p)}}},_=m=>!!o[m];return VueUse.useEventListener(document,"dragover",f),VueUse.useEventListener(document,"drop",C),{createView:i,openDialog:h,refresh:k,exclude:e,cleanCache:g,hasDialog:_,closeDialog:c,closeDialogs:V}}const Xe=Vue.defineComponent({name:"XMask",__name:"Mask",props:Ue,emits:["select","actionClick","actionCommand"],setup(n,{emit:t}){const e=n,o=Lt(e),{collapsed:u,keyword:r,favorite:l}=Ut(),{menus:s,favorites:a,flatMenus:i,active:c,select:V,toggleFavorite:h}=Xt(e,t),{tabRef:k,showTabs:g,currentTab:f,changeTab:C,removeTab:_,tabs:m,updateTab:B,isCurrentTab:p,activeHome:v,removeAllTabs:x,removeOtherTabs:K,dropdownTabs:H,moveToShow:W}=Kt(e,t,i,c,o),{createView:I,openDialog:$,refresh:J,exclude:G,cleanCache:y,closeDialogs:b}=Ht({tabs:m,updateTab:B,isCurrentTab:p,activeHome:v}),E=z=>N(this,null,function*(){(yield _(z))&&(yield y([z]))}),Ce=()=>N(this,null,function*(){const z=yield x();z&&(b(z),yield y(z))}),ae=()=>N(this,null,function*(){const z=yield K();z&&(b(z),yield y(z))}),_e=z=>{t("actionClick",z)},Be=(z,j)=>{t("actionCommand",z,j)};return Vue.provide(ge,{tabs:m,flatMenus:i,favorites:a,updateTab:B,active:c,currentTab:f}),(z,j)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(w),{class:"x-mask"},{default:Vue.withCtx(()=>[e.disabled?(Vue.openBlock(),Vue.createBlock(je,{key:1,createView:Vue.unref(I),exclude:Vue.unref(G)},{default:Vue.withCtx(()=>[z.$slots.default?Vue.renderSlot(z.$slots,"default",{key:0}):Vue.createCommentVNode("",!0)]),_:3},8,["createView","exclude"])):(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[Vue.createVNode(xt,{collapsed:Vue.unref(u)},{brand:Vue.withCtx(()=>[Vue.createVNode(Nt,{logo:e.logo,title:e.title,url:Vue.unref(o).url,collapsed:Vue.unref(u)},null,8,["logo","title","url","collapsed"])]),default:Vue.withCtx(()=>[Vue.createVNode(St,{collasped:Vue.unref(u),"onUpdate:collasped":j[0]||(j[0]=U=>Vue.isRef(u)?u.value=U:null),favorite:Vue.unref(l),"onUpdate:favorite":j[1]||(j[1]=U=>Vue.isRef(l)?l.value=U:null),keyword:Vue.unref(r),"onUpdate:keyword":j[2]||(j[2]=U=>Vue.isRef(r)?r.value=U:null)},null,8,["collasped","favorite","keyword"]),Vue.createVNode(Tt,{collapse:Vue.unref(u),keyword:Vue.unref(r),favorite:Vue.unref(l),favorites:Vue.unref(a),flatMenus:Vue.unref(i),menus:Vue.unref(s),active:Vue.unref(c),onSelect:Vue.unref(V)},null,8,["collapse","keyword","favorite","favorites","flatMenus","menus","active","onSelect"])]),_:1},8,["collapsed"]),Vue.createVNode(Vue.unref(w),{class:"x-mask__main",grow:"",shrink:"",flex:"",direction:"column"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(w),{class:"x-mask-topbar",justify:"space-between",align:"center"},{default:Vue.withCtx(()=>{var U;return[Vue.createVNode($t,{ref_key:"tabRef",ref:k,favorites:Vue.unref(a),tabs:Vue.unref(g),home:Vue.unref(o),value:(U=Vue.unref(f))==null?void 0:U.id,onClick:Vue.unref(C),onToggleFavorite:Vue.unref(h),onRemove:E,onDialog:Vue.unref($),onRefresh:Vue.unref(J)},null,8,["favorites","tabs","home","value","onClick","onToggleFavorite","onDialog","onRefresh"]),Vue.createVNode(jt,{tabs:Vue.unref(H),actions:e.actions,theme:e.theme,onCloseOtherTabs:ae,onCloseAllTabs:Ce,onCloseTab:E,onClickTab:Vue.unref(W),onActionClick:_e,onActionCommand:Be},{default:Vue.withCtx(()=>[Vue.createVNode(Ot,{avatar:e.avatar},Vue.createSlots({_:2},[z.$slots.user?{name:"default",fn:Vue.withCtx(()=>[Vue.renderSlot(z.$slots,"user")]),key:"0"}:void 0]),1032,["avatar"])]),_:3},8,["tabs","actions","theme","onClickTab"])]}),_:3}),Vue.createVNode(je,{createView:Vue.unref(I),exclude:Vue.unref(G)},{default:Vue.withCtx(()=>[z.$slots.default?Vue.renderSlot(z.$slots,"default",{key:0}):Vue.createCommentVNode("",!0)]),_:3},8,["createView","exclude"])]),_:3})],64))]),_:3}))}});function Wt(n={}){const t=VueRouter.useRoute(),e=Vue.inject(he,null),o=Vue.inject(ge,null);if(e){const r=typeof n=="function"?n:()=>N(this,null,function*(){return n});e[t.fullPath]=r}return{tab:Vue.computed(()=>o?o.tabs.value.find(r=>r.url===t.fullPath):null),mask:o}}const Qt=Vue.defineComponent({__name:"SelectEditor",props:{options:{default:()=>[]}},setup(n){const t=n;return(e,o)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSelect),Vue.normalizeProps(Vue.guardReactiveProps(e.$attrs)),{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(t.options,(u,r)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElOption),Vue.mergeProps({key:`item_${r}_${u.value}`},u),Vue.createSlots({_:2},[e.$slots.option?{name:"default",fn:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"option",{option:u})]),key:"0"}:void 0]),1040))),128))]),_:3},16))}}),Zt=Vue.defineComponent({__name:"CheckboxEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const t=n,e=Vue.computed(()=>Vue.markRaw(t.button?ElementPlus.ElCheckboxButton:ElementPlus.ElCheckbox));return(o,u)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElCheckboxGroup),Vue.normalizeProps(Vue.guardReactiveProps(o.$attrs)),{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(t.options,(r,l)=>(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.value),{key:`item_${l}_${r.value}`,label:r.value},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(r.label),1)]),_:2},1032,["label"]))),128))]),_:1},16))}}),Jt=Vue.defineComponent({__name:"RadioEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const t=n,e=Vue.computed(()=>Vue.markRaw(t.button?ElementPlus.ElRadioButton:ElementPlus.ElRadio));return(o,u)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElRadioGroup),Vue.normalizeProps(Vue.guardReactiveProps(o.$attrs)),{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(t.options,(r,l)=>(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.value),{key:`item_${l}_${r.value}`,label:r.value},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(r.label),1)]),_:2},1032,["label"]))),128))]),_:1},16))}}),ye={none:{component:"div",props:{class:"x-field-none"}},text:{component:ElementPlus.ElInput,props:{clearable:!0},defaultValue:""},textarea:{component:ElementPlus.ElInput,props:{type:"textarea",rows:2},defaultValue:""},select:{component:Qt,props:{clearable:!0}},checkbox:{component:Zt,props:{},defaultValue:[]},radio:{component:Jt,props:{}},number:{component:ElementPlus.ElInputNumber,props:{}},date:{component:ElementPlus.ElDatePicker,props:{}},time:{component:ElementPlus.ElTimePicker,props:{}},datetime:{component:ElementPlus.ElDatePicker,props:{type:"datetime"}},switch:{component:ElementPlus.ElSwitch,props:{}},rate:{component:ElementPlus.ElRate,props:{}},slider:{component:ElementPlus.ElSlider,props:{}},cascader:{component:ElementPlus.ElCascader,props:{}}},Ke={name:{type:String},label:{type:String},editor:{type:[String,Object],default:"text"},props:{type:Object},modelValue:{type:[String,Number,Boolean,Object,Array],default(n){const t=ye[n.editor];return t==null?void 0:t.defaultValue}},size:{type:String},width:{type:[String,Number]},tooltipMessage:{type:[Boolean,Object],default:!0},tooltipPosition:{type:[String,Number],default:"outer"},placeholder:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},options:{type:[Array,Function]},visible:{type:[Boolean,Object,Function],default:!0},cascader:{type:[String,Array]}};function Yt(n,t){return N(this,null,function*(){const e=n.options;return e?typeof e=="function"?(yield e(t))||[]:e:[]})}function Gt(n,t,e,o,u){const r=Vue.ref([]),l=Vue.computed(()=>!o||!u?{}:VtjUtils.toArray(n.cascader).reduce((i,c)=>(i[c]=u[c],i),{}));return Vue.watch(l,a=>N(this,null,function*(){var i;if(e.value){r.value=yield Yt(n,a);const c=(i=o==null?void 0:o.exposed)==null?void 0:i.reset;c&&n.name&&c(n.name)}}),{immediate:!0}),{editor:Vue.computed(()=>{const{editor:a="text",placeholder:i,label:c="...",disabled:V,readonly:h}=n,k=D(T({},n.props),{placeholder:i||(i===null?void 0:`请输入${c}`),disabled:V,readonly:h,options:r.value,onFocus:()=>t("focus"),onBlur:()=>t("blur"),onChange:f=>t("change",f)}),g=typeof a=="string"?ye[a]:{component:a,props:{}};return VtjUtils.merge({},g,{props:k})})}}const qt={class:"x-field__editor_wrap"},ve=Vue.defineComponent({name:"XField",__name:"Field",props:Ke,emits:["update:modelValue","change","focus","blur"],setup(n,{expose:t,emit:e}){const o=n,u=Vue.inject(ke,null),r=Vue.inject(ElementPlus.formContextKey,null),l=Vue.inject(be,null),s=Vue.computed(()=>!(u==null?void 0:u.proxy)||!l?o.visible:typeof o.visible=="function"?o.visible(l):VtjUtils.isObject(o.visible)?Object.entries(o.visible).every(([v,x])=>l[v]===x):o.visible),a=()=>{var v;return(u==null?void 0:u.proxy)&&l&&o.name&&(v=l[o.name])!=null?v:o.modelValue},i=Vue.ref(a()),{editor:c}=Gt(o,e,s,u,l),V=Vue.ref(),h=Vue.ref(),k=Vue.computed(()=>o.size||(r==null?void 0:r.size)||"default"),g=Vue.computed(()=>({[`is-tooltip-${o.tooltipPosition}`]:!!o.tooltipPosition})),f=Vue.computed(()=>{const p=u==null?void 0:u.proxy;return{width:o.width?P(o.width):p&&p.inline&&p.inlineColumns?`${100/p.inlineColumns}%`:null}}),C=Vue.computed(()=>({right:typeof o.tooltipPosition=="number"?`${o.tooltipPosition}px`:void 0})),_=Vue.computed(()=>D(T({},c.value.props),{modelValue:i.value,"onUpdate:modelValue":p=>{i.value=p}}));return Vue.watch(i,(p,v)=>{s.value&&!VtjUtils.isEqual(p,v)&&(e("update:modelValue",p),u!=null&&u.proxy&&l&&o.name&&VtjUtils.set(l,o.name,p))}),Vue.watch(()=>{var v;return!(u==null?void 0:u.proxy)||!o.name||!l?o.modelValue:(v=l[o.name])!=null?v:o.modelValue},p=>{s.value&&(i.value=p)},{immediate:!0}),Vue.watch(s,p=>{(u==null?void 0:u.proxy)&&l&&o.name&&(p?(i.value=a(),VtjUtils.set(l,o.name,i.value)):(i.value=void 0,delete l[o.name]))},{immediate:!0}),t({fieldValue:i,itemRef:V,editorRef:h,focus:()=>{var p;(p=h.value)!=null&&p.focus&&h.value.focus()},blur:()=>{var p;(p=h.value)!=null&&p.foucs&&h.value.blur()}}),(p,v)=>s.value?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElFormItem),Vue.mergeProps({key:0,class:["x-field",g.value],ref_key:"itemRef",ref:V,prop:o.name,label:p.label,size:k.value,style:f.value},p.$attrs),Vue.createSlots({error:Vue.withCtx(({error:x})=>[Vue.renderSlot(p.$slots,"error",{error:x},()=>[o.tooltipMessage?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,class:"x-field__info",style:Vue.normalizeStyle(C.value)},[Vue.createVNode(Vue.unref(ElementPlus.ElTooltip),Vue.mergeProps({content:x},o.tooltipMessage),{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(A),{class:"x-field__trigger",icon:Vue.unref(ElementPlusIconsVue.WarningFilled),size:k.value},null,8,["icon","size"])]),_:2},1040,["content"])],4)):Vue.createCommentVNode("",!0)])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",qt,[Vue.renderSlot(p.$slots,"editor",{editor:_.value},()=>[Vue.unref(c).component?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(c).component),Vue.mergeProps({key:0,class:"x-field__editor",ref_key:"editorRef",ref:h,modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=x=>i.value=x)},Vue.unref(c).props),Vue.createSlots({_:2},[p.$slots.option?{name:"option",fn:Vue.withCtx(({option:x})=>[Vue.renderSlot(p.$slots,"option",{option:x})]),key:"0"}:void 0]),1040,["modelValue"])):Vue.createCommentVNode("",!0)])]),Vue.renderSlot(p.$slots,"default")]),_:2},[p.$slots.label?{name:"label",fn:Vue.withCtx(()=>[Vue.renderSlot(p.$slots,"label")]),key:"0"}:void 0]),1040,["prop","label","size","class","style"])):Vue.createCommentVNode("",!0)}}),He={model:{type:Object,default(){return Object.create(null)}},inline:{type:Boolean},inlineColumns:{type:Number},footer:{type:Boolean,default:!0},submitText:{type:String,default:"提交"},resetText:{type:String,default:"重置"},submitMethod:{type:Function}},ke=Symbol("formInstanceKey"),be=Symbol("formModelKey"),we=Vue.defineComponent({name:"XForm",__name:"Form",props:He,emits:["change","submit","reset"],setup(n,{expose:t,emit:e}){const o=n,u=Vue.getCurrentInstance(),r=Vue.ref(),l=Vue.reactive(o.model||{}),s=Vue.ref(!1);Vue.provide(ke,u),Vue.provide(be,l),Vue.watch(l,()=>{e("change",Vue.toRaw(l))}),Vue.watch(()=>o.model,c=>{Object.assign(l,c)},{deep:!0});const a=()=>N(this,null,function*(){(yield r.value.validate().catch(V=>V))&&o.model&&(e("submit",Vue.toRaw(l)),o.submitMethod&&(s.value=!0,yield o.submitMethod(Vue.toRaw(l)),s.value=!1))}),i=c=>{r.value.resetFields(c),e("reset")};return t({formRef:r,model:l,submit:a,reset:i}),(c,V)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElForm),Vue.mergeProps({ref_key:"formRef",ref:r,class:"x-form",inline:o.inline,model:l},c.$attrs),{default:Vue.withCtx(()=>[Vue.renderSlot(c.$slots,"default"),o.footer?(Vue.openBlock(),Vue.createBlock(Vue.unref(ve),{key:0,editor:"none",class:"x-form__footer",label:" "},{editor:Vue.withCtx(()=>[Vue.renderSlot(c.$slots,"footer",{},()=>[o.submitText?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:0,loading:s.value,type:"primary",onClick:a},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(o.submitText),1)]),_:1},8,["loading"])):Vue.createCommentVNode("",!0),o.resetText?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:1,type:"default",onClick:V[0]||(V[0]=()=>i())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(o.resetText),1)]),_:1})):Vue.createCommentVNode("",!0),Vue.renderSlot(c.$slots,"action")])]),_:3})):Vue.createCommentVNode("",!0)]),_:3},16,["inline","model"]))}}),We={modelValue:{type:Boolean,default:!0},size:{type:String},formProps:{type:Object},submit:{type:[Boolean,String],default:"确定"},cancel:{type:[Boolean,String],default:"取消"},model:{type:Object,default(){return Object.create(null)}},rules:{type:Object},submitMethod:{type:Function}},Qe=Vue.defineComponent({name:"XDialogForm",__name:"DialogForm",props:We,emits:["update:modelValue","submit","close"],setup(n,{expose:t,emit:e}){const o=n,u=Vue.ref(),r=Vue.ref(),l=()=>{var i;(i=u.value)==null||i.submit()},s=()=>{e("update:modelValue",!1),e("close")},a=i=>N(this,null,function*(){e("submit",i),o.submitMethod?(yield o.submitMethod(i))&&s():s()});return t({formRef:u,dialogRef:r}),(i,c)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(oe),Vue.mergeProps({ref_key:"dialogRef",ref:r,"model-value":o.modelValue,submit:o.submit,cancel:o.cancel,size:o.size,onSubmit:l,onClose:s,minimizable:!1,maximizable:!1},i.$attrs),Vue.createSlots({default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(we),Vue.mergeProps({ref_key:"formRef",ref:u,footer:!1,"label-width":"80px",size:o.size,model:o.model,rules:o.rules,"submit-method":a},o.formProps),{default:Vue.withCtx(()=>[Vue.renderSlot(i.$slots,"default")]),_:3},16,["size","model","rules"])]),_:2},[i.$slots.extra?{name:"extra",fn:Vue.withCtx(()=>[Vue.renderSlot(i.$slots,"extra")]),key:"0"}:void 0,i.$slots.handle?{name:"handle",fn:Vue.withCtx(()=>[Vue.renderSlot(i.$slots,"handle")]),key:"1"}:void 0,i.$slots.footer?{name:"footer",fn:Vue.withCtx(()=>[Vue.renderSlot(i.$slots,"footer")]),key:"2"}:void 0]),1040,["model-value","submit","cancel","size"]))}}),Ze=[xe,A,F,Ne,M,te,w,ce,de,oe,Xe,ve,we,Qe],eo="0.6.22",Je=R(Ze).install;d.Draggable=Ve,d.INSTALLED_KEY=X,d.MASK_KEY=ge,d.NOOP=se,d.Resizable=pe,d.TAB_CREATORS_KEY=he,d.TAB_ITEM_WIDTH=Oe,d.XAction=M,d.XActionBar=te,d.XContainer=w,d.XDialog=oe,d.XDialogForm=Qe,d.XField=ve,d.XForm=we,d.XHeader=ce,d.XIcon=A,d.XMask=Xe,d.XMenu=F,d.XPanel=de,d.XSimpleMask=Ne,d.XStartup=xe,d.actionBarProps=Ie,d.actionProps=ie,d.builtinFieldEditors=ye,d.components=Ze,d.containerProps=De,d.createDialog=ne,d.default=Je,d.defineTab=Wt,d.dialogFormProps=We,d.dialogProps=Fe,d.fieldProps=Ke,d.formInstanceKey=ke,d.formModelKey=be,d.formProps=He,d.getSizeValue=P,d.headerProps=Me,d.iconProps=Pe,d.iconSizeMap=Se,d.install=Je,d.makeInstaller=R,d.maskProps=Ue,d.omit=q,d.panelProps=Re,d.parseSize=L,d.pick=re,d.useDisabled=ee,d.useIcon=Y,d.useIconProps=Te,d.vDraggable=Ae,d.vResizable=fe,d.version=eo,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(V,x){typeof exports=="object"&&typeof module!="undefined"?x(exports):typeof define=="function"&&define.amd?define(["exports"],x):(V=typeof globalThis!="undefined"?globalThis:V||self,x(V.VtjUI={}))})(this,function(V){"use strict";var po=Object.defineProperty,fo=Object.defineProperties;var ho=Object.getOwnPropertyDescriptors;var nt=Object.getOwnPropertySymbols;var go=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable;var Ee=(V,x,B)=>x in V?po(V,x,{enumerable:!0,configurable:!0,writable:!0,value:B}):V[x]=B,N=(V,x)=>{for(var B in x||(x={}))go.call(x,B)&&Ee(V,B,x[B]);if(nt)for(var B of nt(x))yo.call(x,B)&&Ee(V,B,x[B]);return V},$=(V,x)=>fo(V,ho(x));var X=(V,x,B)=>(Ee(V,typeof x!="symbol"?x+"":x,B),B);var T=(V,x,B)=>new Promise((H,ee)=>{var se=A=>{try{K(B.next(A))}catch(J){ee(J)}},ie=A=>{try{K(B.throw(A))}catch(J){ee(J)}},K=A=>A.done?H(A.value):Promise.resolve(A.value).then(se,ie);K((B=B.apply(V,x)).next())});const x="";function B(n){return typeof n=="string"?n:`${n}px`}function H(n=0,t){if(typeof n=="number")return n;if(/(%|vh|vw)$/i.test(n)){const o=Number.parseInt(n);return Math.floor(t*o/100)}return Number.parseInt(n)}function ee(n,t){const e={};return Object.keys(n).forEach(o=>{t.includes(o)||(e[o]=n[o])}),e}function se(n,t){const e={};return Object.keys(n).forEach(o=>{t.includes(o)&&(e[o]=n[o])}),e}const ie=()=>{},K=Symbol("INSTALLED_KEY"),A=(n=[])=>({install:e=>{e[K]||(e[K]=!0,n.forEach(o=>{o.name&&e.component(o.name,o)}))}}),J="data:image/png;base64,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",ut={class:"x-startup"},lt={class:"brand"},at=["src"],rt=Vue.createElementVNode("h3",null,[Vue.createTextVNode("基于 "),Vue.createElementVNode("span",null,"Vue3 + TypeScript"),Vue.createTextVNode(" 的低代码设计器引擎")],-1),st={class:"btn"},it=Vue.createElementVNode("div",{class:"ba"},[Vue.createElementVNode("a",{href:"http://beian.miit.gov.cn/"},"粤ICP备2023104074号")],-1),Se=Vue.defineComponent({name:"XStartup",__name:"Startup",props:{text:{default:"VTJ.PRO"},link:{default:"/"},example:{}},setup(n){const t=n,e=()=>{location.href=t.link+"#/?startup"},o=()=>{t.example&&t.example(t.link)};return(l,u)=>(Vue.openBlock(),Vue.createElementBlock("div",ut,[Vue.renderSlot(l.$slots,"default",{},()=>[Vue.createElementVNode("div",null,[Vue.createElementVNode("div",lt,[Vue.createElementVNode("img",{src:Vue.unref(J)},null,8,at),Vue.createElementVNode("h1",null,Vue.toDisplayString(t.text),1)]),Vue.createVNode(Vue.unref(ElementPlus.ElDivider)),rt,Vue.createElementVNode("div",st,[Vue.createVNode(Vue.unref(ElementPlus.ElButton),{onClick:e,type:"primary",round:"",size:"large",icon:Vue.unref(ElementPlusIconsVue.VideoPlay)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 立即开始体验 ")]),_:1},8,["icon"]),t.example?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:0,onClick:o,type:"default",round:"",size:"large",icon:Vue.unref(ElementPlusIconsVue.Document)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 加载示例项目 ")]),_:1},8,["icon"])):Vue.createCommentVNode("",!0)])])]),it]))}}),ko="",xe={default:14,small:12,large:18},Pe={icon:{type:[String,Object]},color:{type:String},size:{type:[Number,String],default:"inherit"},src:{type:String},background:{type:String},padding:{type:Number},radius:{type:Number}},ct=["src"],F=Vue.defineComponent({name:"XIcon",__name:"Icon",props:Pe,setup(n){const t=n,e=Vue.useAttrs(),o=Vue.getCurrentInstance(),l=Vue.computed(()=>{if(!t.icon)return null;const a=o==null?void 0:o.appContext.app;return typeof t.icon=="object"?Vue.markRaw(t.icon):(a==null?void 0:a.component(t.icon))||t.icon}),u=Vue.computed(()=>{const a={"is-pointer":!!e.onClick};return!l.value&&t.icon&&(a[t.icon]=!0),a}),s=Vue.computed(()=>({"background-color":t.background,"border-radius":t.radius?B(t.radius):void 0,padding:t.padding?B(t.padding):void 0})),r=Vue.computed(()=>{var a;return typeof t.size=="number"?t.size:(a=xe[t.size])!=null?a:void 0});return(a,c)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElIcon),{class:Vue.normalizeClass(["x-icon",u.value]),color:t.color,size:r.value,style:Vue.normalizeStyle(s.value)},{default:Vue.withCtx(()=>[Vue.renderSlot(a.$slots,"default",{},()=>[l.value?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.value),{key:0})):Vue.createCommentVNode("",!0),t.src?(Vue.openBlock(),Vue.createElementBlock("img",{key:1,src:t.src},null,8,ct)):Vue.createCommentVNode("",!0)])]),_:3},8,["class","color","size","style"]))}}),dt={class:"x-menu__wrapper"},Vt={key:1,class:"x-menu__title"},mt=Vue.createElementVNode("i",null,null,-1),pt={key:0,class:"x-menu__title"},ft=Vue.createElementVNode("i",null,null,-1),ze=Vue.defineComponent({inheritAttrs:!1,name:"XMenuItem",__name:"MenuItem",props:{item:{},subMenu:{},defaultIcon:{type:[Object,Function]}},setup(n){const t=n,e=Vue.getCurrentInstance(),o=s=>{if(s){if(typeof s=="string"){const r=e==null?void 0:e.appContext.app;return(r==null?void 0:r.component(s))||t.defaultIcon||s}return s}},l=s=>typeof s=="object"?s:{value:s},u=(s=[])=>s.filter(r=>!r.hidden);return(s,r)=>t.item.children?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSubMenu),Vue.mergeProps({key:0,disabled:t.item.disabled},t.subMenu,{index:String(t.item.id)}),{title:Vue.withCtx(()=>[Vue.createElementVNode("div",dt,[t.item.icon?(Vue.openBlock(),Vue.createBlock(Vue.unref(F),{key:0,icon:o(t.item.icon)},null,8,["icon"])):Vue.createCommentVNode("",!0),t.item.title?(Vue.openBlock(),Vue.createElementBlock("span",Vt,Vue.toDisplayString(t.item.title),1)):Vue.createCommentVNode("",!0),t.item.badge?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElBadge),Vue.mergeProps({key:2,class:"x-menu__badge"},l(t.item.badge)),{default:Vue.withCtx(()=>[mt]),_:1},16)):Vue.createCommentVNode("",!0)])]),default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(u(t.item.children),a=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ze),{key:a.id,item:a,subMenu:t.subMenu,defaultIcon:t.defaultIcon},null,8,["item","subMenu","defaultIcon"]))),128))]),_:1},16,["disabled","index"])):(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElMenuItem),{key:1,index:String(t.item.id),disabled:t.item.disabled},{title:Vue.withCtx(()=>[t.item.title?(Vue.openBlock(),Vue.createElementBlock("span",pt,Vue.toDisplayString(t.item.title),1)):Vue.createCommentVNode("",!0),t.item.badge?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElBadge),Vue.mergeProps({key:1,class:"x-menu__badge"},l(t.item.badge)),{default:Vue.withCtx(()=>[ft]),_:1},16)):Vue.createCommentVNode("",!0)]),default:Vue.withCtx(()=>[t.item.icon?(Vue.openBlock(),Vue.createBlock(Vue.unref(F),{key:0,icon:o(t.item.icon)},null,8,["icon"])):Vue.createCommentVNode("",!0)]),_:1},8,["index","disabled"]))}}),O=Vue.defineComponent({inheritAttrs:!1,name:"XMenu",__name:"Menu",props:{data:{default:()=>[]},subMenu:{},defaultIcon:{}},emits:["select"],setup(n,{emit:t}){const e=n,o=t,l=Vue.computed(()=>e.data.filter(r=>!r.hidden)),u=(r,a)=>{const c=(d,i=[])=>{var p;for(const g of i){if(g.id.toString()===d.toString())return g;if((p=g.children)!=null&&p.length){const f=c(d,g.children);if(f)return f}}};return c(a,r)},s=r=>{const a=u(l.value,r);a&&o("select",a)};return(r,a)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElMenu),Vue.mergeProps({class:"x-menu"},r.$attrs,{onSelect:s}),{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(l.value,c=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ze),{item:$(N({},c),{icon:c.icon||Vue.unref(ElementPlusIconsVue.Menu)}),defaultIcon:e.defaultIcon,subMenu:e.subMenu},null,8,["item","defaultIcon","subMenu"]))),256))]),_:1},16))}}),ht={class:"x-simple-mask__brand"},gt={class:"x-simple-mask__aciton"},Ne=Vue.defineComponent({name:"XSimpleMask",__name:"SimpleMask",props:{preview:{type:Boolean},project:{default:()=>({name:"Logo",home:"/"})},menu:{}},setup(n,{expose:t}){const e=n,o=VueRouter.useRouter(),l=VueRouter.useRoute(),u=Vue.computed(()=>l.params.id),s=()=>{const a=e.project.home;a&&o.push(a)},r=a=>{const c=a==null?void 0:a.id;if(c){const i=`${e.preview?"/preview":e.project.page}/${c}`;o.push(i)}};return t({goHome:s}),(a,c)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElContainer),{class:"x-simple-mask"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElHeader),{class:"x-simple-mask__header"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",ht,[Vue.createElementVNode("span",{class:"x-simple-mask__logo",onClick:s},[Vue.renderSlot(a.$slots,"logo",{},()=>[Vue.createTextVNode(Vue.toDisplayString(e.project.name),1)])])]),Vue.createElementVNode("div",gt,[Vue.renderSlot(a.$slots,"action")])]),_:3}),Vue.createVNode(Vue.unref(ElementPlus.ElContainer),null,{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElAside),{class:"x-simple-mask__aside"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(O),Vue.mergeProps(e.menu,{"default-active":u.value,onSelect:r}),null,16,["default-active"])]),_:1}),Vue.createVNode(Vue.unref(ElementPlus.ElMain),{class:"x-simple-mask__main"},{default:Vue.withCtx(()=>[Vue.renderSlot(a.$slots,"default",{},()=>[Vue.createVNode(Vue.unref(VueRouter.RouterView))])]),_:3})]),_:3}),a.$slots.footer?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElFooter),{key:0,class:"x-simple-mask__footer",height:"40px"},{default:Vue.withCtx(()=>[Vue.renderSlot(a.$slots,"footer")]),_:3})):Vue.createCommentVNode("",!0)]),_:3}))}}),ce={name:{type:String},label:{type:String},value:{type:[String,Number,Object,Array,Boolean]},icon:{type:[String,Object]},mode:{type:String,default:"button"},menus:{type:Array},tooltip:{type:[String,Object]},badge:{type:[String,Number,Object]},dropdown:{type:Object},button:{type:Object},disabled:{type:[Boolean,Function]},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean}};function yt(n){return Vue.computed(()=>{const t=n.tooltip;if(t)return typeof t=="string"?{content:t}:t})}function kt(n){return Vue.computed(()=>{const t=n.badge;if(t)return typeof t=="object"?t:{value:t}})}function vt(n){return Vue.computed(()=>{const{dropdown:t,menus:e}=n;if(e&&e.length>0)return Object.assign({popperClass:"x-action__menus",size:n.size},t||{})})}function Te(n){const t=Vue.getCurrentInstance();return Vue.computed(()=>{const e=Vue.unref(n);if(e)if(typeof e=="string"||e.setup||e.render||Vue.isVNode(e)){const o=t==null?void 0:t.appContext.app;return{icon:typeof e=="string"&&(o==null?void 0:o.component(e))||e}}else return e;return null})}function W(n){const t=Te(n);return t.value?Vue.markRaw(Vue.defineComponent({render:()=>Vue.h(F,t.value)})):null}function te(n,t){return Vue.computed(()=>{const e=Vue.unref(n);return typeof e=="function"?e(t):!!e})}const bt={key:0},wt=Vue.defineComponent({__name:"Trigger",props:ce,emits:["click"],setup(n,{emit:t}){const e=n,o=t,l=W(Vue.toRef(e,"icon")),u=te(Vue.toRef(e,"disabled")),s=Vue.computed(()=>({[`is-${e.mode}`]:!!e.mode,[`is-${e.type}`]:!!e.type,[`is-${e.size}`]:!!e.size&&e.size!=="default",[`is-background-${e.background}`]:e.mode==="icon"&&!!e.background,"is-disabled":!!e.disabled,"is-circle":!!e.circle})),r=()=>{o("click")};return(a,c)=>e.mode==="button"?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),Vue.mergeProps({key:0,icon:Vue.unref(l),type:e.type,size:e.size,disabled:Vue.unref(u)},e.button,{onClick:r}),{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(a.label),1)]),_:1},16,["icon","type","size","disabled"])):(Vue.openBlock(),Vue.createElementBlock("div",{key:1,class:Vue.normalizeClass(["x-action__inner",s.value]),onClick:r},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(l)))),a.label?(Vue.openBlock(),Vue.createElementBlock("span",bt,Vue.toDisplayString(a.label),1)):Vue.createCommentVNode("",!0)],2))}}),R=Vue.defineComponent({name:"XAction",__name:"Action",props:ce,emits:["click","command"],setup(n,{emit:t}){const e=n,o=Vue.useSlots(),l=t,u=yt(e),s=kt(e),r=vt(e),a=te(Vue.toRef(e,"disabled")),c=Vue.computed(()=>({[`x-action--${e.mode}`]:!!e.mode})),d=()=>{l("click",Vue.toRaw(e))},i=y=>{var m;const b=(m=e.menus)==null?void 0:m.find(C=>C.command===y);b&&l("command",Vue.toRaw(b))},p=y=>Vue.h(ElementPlus.ElBadge,s.value,()=>[].concat(y)),g=y=>Vue.h(ElementPlus.ElDropdown,$(N({},r.value),{disabled:a.value,onCommand:i}),{default:()=>[y],dropdown:()=>[Vue.h(ElementPlus.ElDropdownMenu,()=>(e.menus||[]).map(b=>Vue.h(ElementPlus.ElDropdownItem,b,()=>o.item?o.item({item:b}):b.label)))]}),f=y=>Vue.h(ElementPlus.ElTooltip,$(N({},u.value),{disabled:a.value}),()=>[y]),w=Vue.computed(()=>{let y=o.default?o.default()[0]:Vue.h(Vue.markRaw(wt),$(N({},e),{onClick:d}));return s.value&&(y=p(y)),r.value&&(y=g(y)),u.value&&(y=f(y)),y});return(y,b)=>(Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass(["x-action",c.value])},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(w.value)))],2))}}),Ie={items:{type:Array},mode:{type:String,default:"button"},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean},disabled:{type:[Boolean,Function]},tooltip:{type:Object},badge:{type:Object},dropdown:{type:Object},button:{type:Object}},G=Vue.defineComponent({name:"XActionBar",__name:"ActionBar",props:Ie,emits:["click","command"],setup(n,{emit:t}){const e=n,o=t,l=Vue.computed(()=>(e.items||[]).map(r=>r==="|"?r:$(N({},r),{badge:r.badge?N(N({},e.badge),typeof r.badge=="object"?r.badge||{}:{value:r.badge}):void 0,tooltip:r.tooltip?N(N({},e.tooltip),typeof r.tooltip=="object"?r.tooltip||{}:{content:r.tooltip}):void 0}))),u=r=>{o("click",r)},s=(r,a)=>{o("command",r,a)};return(r,a)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{class:"x-action-bar",align:"center"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(l.value,c=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[c==="|"?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElDivider),{key:0,direction:"vertical",class:"x-action-bar__divider"})):(Vue.openBlock(),Vue.createBlock(Vue.unref(R),Vue.mergeProps({key:1,mode:e.mode,size:e.size,type:e.type,circle:e.circle,background:e.background,button:e.button,dropdown:e.dropdown,disabled:Vue.unref(te)(e.disabled,c).value},c,{onClick:u,onCommand:d=>s(c,d)}),null,16,["mode","size","type","circle","background","button","dropdown","disabled","onCommand"]))],64))),256))]),_:1}))}}),De={tag:{type:String,default:"div"},fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},flex:{type:Boolean,default:!0},inline:{type:Boolean},direction:{type:String,default:"row"},wrap:{type:String,default:"nowrap"},justify:{type:String,default:"flex-start"},align:{type:String,default:"flex-start"},alignContent:{type:String,default:"stretch"},grow:{type:Boolean,default:!1},shrink:{type:Boolean,default:!1},alignSelf:{type:String,default:"auto"},overflow:{type:String},padding:{type:Boolean,default:!1},gap:{type:Boolean}},v=Vue.defineComponent({name:"XContainer",__name:"Container",props:De,setup(n){const t=n,e=Vue.useAttrs(),o=Vue.getCurrentInstance(),l=Vue.computed(()=>{const r=o==null?void 0:o.parent;if(!r)return!1;const a=r.proxy;return a.$options.name==="XContainer"||!!a.flex}),u=Vue.computed(()=>{var r;return{"is-fit":t.fit,"is-flex":t.flex&&!t.inline,"is-inline-flex":t.flex&&t.inline,[`is-direction-${t.direction}`]:t.flex&&t.direction!=="row",[`is-wrap-${t.wrap}`]:t.flex&&t.wrap!=="nowrap",[`is-justify-${t.justify}`]:t.flex&&t.justify!=="flex-start",[`is-align-${t.align}`]:t.flex&&t.align!=="flex-start",[`is-align-content-${t.alignContent}`]:t.flex&&t.alignContent!=="stretch","is-grow":(r=t.grow)!=null?r:l.value,"is-shrink":l.value&&t.shrink,[`is-align-self-${t.alignSelf}`]:l.value&&t.alignSelf!=="auto",[`is-overflow-${t.overflow}`]:!!t.overflow,"is-padding":!!t.padding,"is-pointer":!!e.onClick,"is-gap":!!t.gap}}),s=Vue.computed(()=>{const{width:r,height:a,fit:c}=t;return c?null:{width:r?B(r):void 0,height:a?B(a):void 0}});return(r,a)=>(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(t.tag),{class:Vue.normalizeClass(["x-container",u.value]),style:Vue.normalizeStyle(s.value)},{default:Vue.withCtx(()=>[Vue.renderSlot(r.$slots,"default")]),_:3},8,["class","style"]))}}),Me={size:{type:String,default:"default"},content:{type:String,default:""},subtitle:{type:String},icon:{type:[String,Object]},border:{type:Boolean},more:{type:Boolean}},Ct={key:2,class:"x-header__subtitle"},_t={key:0,class:"x-header__actions"},de=Vue.defineComponent({name:"XHeader",inheritAttrs:!1,__name:"Header",props:Me,setup(n){const t=n,e=Vue.useAttrs(),o=W(Vue.toRef(t,"icon")),l=Vue.computed(()=>({[`is-size-${t.size}`]:!!t.size&&t.size!=="default","is-border":t.border,"is-pointer":!!e.onClick}));return(u,s)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{class:Vue.normalizeClass(["x-header",l.value]),justify:"space-between",align:"center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(v),{align:"center",class:Vue.normalizeClass(["x-header__wrapper",l.value]),grow:""},{default:Vue.withCtx(()=>[Vue.unref(o)?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(o)),{key:0,class:"x-header__icon"})):Vue.createCommentVNode("",!0),Vue.createElementVNode("span",Vue.mergeProps({class:"x-header__content"},u.$attrs),[Vue.renderSlot(u.$slots,"default",{},()=>[Vue.createTextVNode(Vue.toDisplayString(t.content),1)])],16),t.more?(Vue.openBlock(),Vue.createBlock(Vue.unref(F),{key:1,class:"x-header__more",icon:Vue.unref(ElementPlusIconsVue.ArrowRight)},null,8,["icon"])):Vue.createCommentVNode("",!0),t.subtitle||u.$slots.subtitle?(Vue.openBlock(),Vue.createElementBlock("span",Ct,[Vue.renderSlot(u.$slots,"subtitle",{},()=>[Vue.createTextVNode(Vue.toDisplayString(t.subtitle),1)])])):Vue.createCommentVNode("",!0)]),_:3},8,["class"]),u.$slots.actions?(Vue.openBlock(),Vue.createElementBlock("div",_t,[Vue.renderSlot(u.$slots,"actions")])):Vue.createCommentVNode("",!0)]),_:3},8,["class"]))}}),$e={fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},border:{type:Boolean,default:!0},radius:{type:Boolean,default:!0},card:{type:Boolean},size:{type:String},shadow:{type:String},header:{type:[String,Object]},bodyPadding:{type:Boolean,default:!0},footerPadding:{type:Boolean,default:!0},body:{type:Object},footer:{type:Object}},Ve=Vue.defineComponent({name:"XPanel",__name:"Panel",props:$e,setup(n,{expose:t}){const e=n,o=Vue.ref(),l=Vue.computed(()=>({"x-panel--card":!!e.card,"x-panel--default":!e.card,[`is-${e.size}`]:!!e.size&&e.size!=="default","is-border":!!e.border,"is-radius":!!e.radius,[`is-shadow-${e.shadow}`]:!!e.shadow&&e.shadow!=="none"})),u=Vue.computed(()=>e.header===null?null:typeof e.header=="string"?{content:e.header,size:e.size}:$(N({},e.header),{size:e.size})),s=Vue.computed(()=>e.fit||e.height?"auto":void 0);return t({bodyRef:o}),(r,a)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{class:Vue.normalizeClass(["x-panel",l.value]),direction:"column",fit:e.fit,width:e.width,height:e.height},{default:Vue.withCtx(()=>[u.value?(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{key:0,flex:!1,class:"x-panel__header"},{default:Vue.withCtx(()=>[Vue.renderSlot(r.$slots,"header",{},()=>[Vue.createVNode(Vue.unref(de),Vue.normalizeProps(Vue.guardReactiveProps(u.value)),{default:Vue.withCtx(()=>[Vue.renderSlot(r.$slots,"title")]),actions:Vue.withCtx(()=>[Vue.renderSlot(r.$slots,"actions")]),_:3},16)])]),_:3})):Vue.createCommentVNode("",!0),Vue.createVNode(Vue.unref(v),Vue.mergeProps({ref_key:"bodyRef",ref:o,flex:!1,overflow:s.value,grow:"",padding:"",class:"x-panel__body"},e.body),{default:Vue.withCtx(()=>[Vue.renderSlot(r.$slots,"default")]),_:3},16,["overflow"]),r.$slots.footer?(Vue.openBlock(),Vue.createBlock(Vue.unref(v),Vue.mergeProps({key:1,flex:!1,padding:"",class:"x-panel__footer"},e.footer),{default:Vue.withCtx(()=>[Vue.renderSlot(r.$slots,"footer")]),_:3},16)):Vue.createCommentVNode("",!0)]),_:3},8,["class","fit","width","height"]))}}),Re="user-select-none";class me{constructor(t,e={}){X(this,"scope");X(this,"dragging",!1);this.el=t,this.options=e,this.scope=Vue.effectScope(),this.scope.run(()=>{this.init()})}getHandle(){const{selector:t,handle:e}=this.options;return t?this.el.querySelector(t):e}getTarget(){const{target:t="body"}=this.options;return typeof t=="string"?document.querySelector(t):Vue.unref(t)||document.body}init(){const{el:t,options:e}=this,{disabled:o,delay:l=150,onStart:u,onEnd:s}=e;if(o)return;let r=null;const a=this.getHandle(),c=this.getTarget();let d=t.getBoundingClientRect(),i=null;const{x:p,y:g}=VueUse.useDraggable(t,$(N({initialValue:{x:d.x,y:d.y}},e),{handle:a,onStart:(f,w)=>{document.body.classList.add(Re),clearTimeout(r),r=setTimeout(()=>{this.dragging=!0,d=t.getBoundingClientRect(),i=c==null?void 0:c.getBoundingClientRect(),u&&u(f,w)},l)},onEnd:(f,w)=>{if(clearTimeout(r),document.body.classList.remove(Re),this.dragging&&i){this.dragging=!1;const{x:y,y:b}=f,m=this.getPosition(i,d,y,b);s&&s(m,w),i=null}}}));Vue.watch([p,g],()=>{if(this.dragging&&i){const f=this.getPosition(i,d,p.value,g.value);t.style.left=`${f.x}px`,t.style.top=`${f.y}px`}})}getPosition(t,e,o,l){const{edge:u=50}=this.options,s=-e.width+u,r=t.width-u,a=0,c=t.height-u,d=Math.min(r,Math.max(o,s)),i=Math.min(c,Math.max(l,a));return{x:d,y:i}}destory(){this.scope.stop()}}const Ae={mounted(n,t){const e=t.value||{},o=new me(n,e);n.__draggable__=o},updated(n,t){const e=t.value||{};let o=n.__draggable__;o&&!VtjUtils.isEqual(o.options,e)&&(o.destory(),n.__draggable__=new me(n,e))},unmounted(n){const t=n.__draggable__;t&&(t.destory(),n.__draggable__=null)}},pe="user-select-none";class fe{constructor(t,e={}){X(this,"scope");X(this,"resizing",Vue.ref(!1));X(this,"direction",Vue.ref(""));X(this,"MIE",null);X(this,"cleanMousedown");X(this,"cleanMouseup");this.el=t,this.options=e,this.scope=Vue.effectScope(),this.scope.run(()=>{this.init()})}init(){const{el:t,options:e}=this,{disabled:o,onStart:l,onEnd:u}=e;if(o)return;this.MIE=VueUse.useMouseInElement(t),this.cleanMousedown=VueUse.useEventListener(document,"mousedown",()=>{var a;(a=this.direction)!=null&&a.value&&this.MIE&&(this.resizing.value=!0,t.classList.add("is-resizing",`is-${this.direction.value}-resizing`),l&&l(this.direction.value,this.MIE))}),this.cleanMouseup=VueUse.useEventListener(document,"mouseup",()=>{var a;this.resizing.value&&((a=this.direction)!=null&&a.value)&&this.MIE&&(t.classList.remove("is-resizing",`is-${this.direction.value}-resizing`),u&&u(this.direction.value,this.MIE)),this.resizing.value=!1}),Vue.watch(this.direction,a=>{const c=document.body;c.style.cursor=a?`${a}-resize`:"",a?c.classList.add(pe):c.classList.remove(pe)});const{x:s,y:r}=this.MIE;Vue.watch([s,r],()=>{this.resizing.value?this.resize():this.direction.value=this.getDirection()})}resize(){const{MIE:t,direction:e,resizing:o,options:l,el:u}=this,s=(e==null?void 0:e.value)||"";if(!t||!o.value||!s)return;const{x:r,y:a,elementX:c,elementY:d,elementHeight:i,elementWidth:p}=t,{onResizing:g}=l,{minWidth:f=0,minHeight:w=0,maxWidth:y=99999,maxHeight:b=99999}=l;if(s.includes("e")){const m=Math.min(Math.max(c.value,f),y);u.style.width=`${m}px`}if(s.includes("s")){const m=Math.min(Math.max(d.value,w),b);u.style.height=`${m}px`}if(s.includes("w")){const m=Math.min(Math.max(p.value-c.value,f),y);u.style.width=`${m}px`,u.style.left=`${r.value}px`}if(s.includes("n")){const m=Math.min(Math.max(i.value-d.value,w),b);this.el.style.height=`${m}px`,this.el.style.top=`${a.value}px`}g&&g(s,t)}getDirection(){if(!this.MIE)return"";const{elementX:t,elementY:e,elementHeight:o,elementWidth:l,isOutside:u}=this.MIE;if(u.value)return"";const{dirs:s=["n","s","w","e"],edge:r=5}=this.options;let a="";return s.includes("n")&&e.value<=r?a+="n":s.includes("s")&&e.value>o.value-r&&(a+="s"),s.includes("w")&&t.value<=r?a+="w":s.includes("e")&&t.value>l.value-r&&(a+="e"),a}destory(){var e;const t=document.body;t.style.cursor="",t.classList.remove(pe),this.cleanMousedown&&this.cleanMousedown(),this.cleanMouseup&&this.cleanMouseup(),(e=this.MIE)==null||e.stop(),this.scope.stop()}}const he={mounted(n,t){const e=t.value||{},o=new fe(n,e);n.__resizable__=o},updated(n,t){const e=t.value||{};let o=n.__resizable__;o&&!VtjUtils.isEqual(o.options,e)&&(o.destory(),n.__resizable__=new fe(n,e))},unmounted(n){const t=n.__resizable__;t&&(t.destory(),n.__resizable__=null)}},je={modelValue:{type:Boolean,default:!0},title:{type:String},subtitle:{type:String},icon:{type:[String,Object]},size:{type:String,default:"default"},width:{type:[Number,String],default:"70%"},height:{type:[Number,String],default:"70%"},left:{type:[Number,String]},top:{type:[Number,String]},modal:{type:Boolean,default:!0},draggable:{type:[Boolean,Object],default:!0},resizable:{type:[Boolean,Object]},closable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!0},mode:{type:String,default:"normal"},content:{type:Object},src:{type:String},componentInstance:{type:Object},beforeClose:{type:Function},submit:{type:[Boolean,String]},cancel:{type:[Boolean,String]},bodyPadding:{type:Boolean,default:!0},primary:{type:Boolean}};let Y=1e3;function Bt(n,t){const{width:e,height:o}=VueUse.useElementSize(t),l=Vue.reactive({mode:n.mode||"normal",wrapperWidth:0,wrapperHeight:0,width:0,height:0,top:0,left:0,zIndex:++Y,dragging:!1,resizing:!1});return Vue.watch([e,o],([u,s])=>{l.wrapperWidth=u,l.wrapperHeight=s,l.width=H(n.width,u),l.height=H(n.height,s),l.left=n.left?H(n.left,u)-l.width/2:Math.max(Math.floor((u-l.width)/2),0),l.top=n.top?H(n.top,s):Math.max(Math.floor((s-l.height)/2),0)}),Vue.watch(l,u=>{Y=Math.max(u.zIndex,Y)}),{state:l,normal:Vue.computed(()=>l.mode==="normal"),maximized:Vue.computed(()=>l.mode==="maximized"),minimized:Vue.computed(()=>l.mode==="minimized")}}function Et(n,t){const e=Vue.computed(()=>{const{width:s,height:r,top:a,left:c,zIndex:d}=t;return{width:`${s}px`,height:`${r}px`,top:`${a}px`,left:`${c}px`,zIndex:d}}),o=Vue.computed(()=>({[`is-${t.mode}`]:!!t.mode,"is-draggable":!!n.draggable,"is-resizable":!!n.resizable,"is-primary":!!n.primary})),l=Vue.computed(()=>({[`is-${t.mode}`]:!!t.mode,"is-dragging":t.dragging,"is-resizing":t.resizing})),u=Vue.computed(()=>({zIndex:t.zIndex}));return{styles:e,classes:o,wrapperClass:l,modalStyle:u}}function St(n,t,e){const o=d=>{t.mode=d,["maximized","minimized","normal"].includes(d)&&e(d),e("modeChange",d)},l=()=>T(this,null,function*(){(!n.beforeClose||(yield n.beforeClose()))&&(e("update:modelValue",!1),e("close"),e("destroy"))});return{close:l,changeMode:o,show:()=>o("normal"),hide:()=>o("minimized"),active:()=>{t.zIndex=Math.max(t.zIndex,++Y)},submit:()=>e("submit"),cancel:()=>{e("cancel"),l()}}}function xt(n,t,e,o){return Vue.computed(()=>{var u;const l=typeof n.draggable=="boolean"?!n.draggable:!!((u=n.draggable)!=null&&u.disabled);return $(N({},VtjUtils.isObject(n.draggable)?n.draggable:{}),{disabled:l,target:o,selector:".x-panel__header",onStart(s){t.dragging=!0,t.zIndex=Math.max(t.zIndex,++Y),e("dragStart",s)},onMove(s){e("dragging",s)},onEnd(s){if(t.mode==="maximized")return;const{x:r,y:a}=s;t.left=r,t.top=a,t.dragging=!1,e("dragEnd",s)}})})}function Pt(n,t,e){return Vue.computed(()=>{var l;const o=typeof n.resizable=="boolean"?!n.resizable:!!((l=n.resizable)!=null&&l.disabled);return $(N({minWidth:200,minHeight:150},VtjUtils.isObject(n.resizable)?n.resizable:{}),{disabled:o,dirs:["e","s","w"],onStart(u,s){t.resizing=!0,t.zIndex=Math.max(t.zIndex,++Y),e("resizeStart",u,s)},onResizing(u,s){e("resizing",u,s)},onEnd(u,s){t.left=s.elementPositionX.value,t.top=s.elementPositionY.value,t.width=s.elementWidth.value,t.height=s.elementHeight.value,t.resizing=!1,e("resizeEnd",u,s)}})})}function zt(n,t){const e=n.componentInstance;if(!e)return;let o=null;return Vue.onMounted(()=>{const l=Vue.unref(t),u=Vue.unref(l==null?void 0:l.bodyRef);o=e.$el,u&&u.$el&&u.$el.appendChild(o)}),Vue.onUnmounted(()=>{o&&o.parentNode&&o.parentNode.removeChild(o)}),{componentInstance:e}}const Nt=["src"],oe=Vue.defineComponent({name:"XDialog",__name:"Dialog",props:je,emits:["update:modelValue","open","close","destroy","maximized","minimized","normal","modeChange","dragStart","dragging","dragEnd","resizeStart","resizeEnd","resizing","submit","cancel"],setup(n,{expose:t,emit:e}){const o=n,l=e,u=Vue.getCurrentInstance(),s=Vue.ref(),r=Vue.ref(),{state:a,maximized:c,minimized:d,normal:i}=Bt(o,s),{styles:p,classes:g,wrapperClass:f,modalStyle:w}=Et(o,a),{changeMode:y,active:b,close:m,show:C,hide:E,submit:I,cancel:h}=St(o,a,l),P=xt(o,a,l,s),D=Pt(o,a,l),Q=zt(o,r);Vue.watchEffect(()=>T(this,null,function*(){o.modelValue&&(yield Vue.nextTick(),u&&l("open",u))}));const q=Vue.computed(()=>{var M;return(M=r.value)==null?void 0:M.$el});return t({$vtjEl:q,panelRef:r,state:a,maximized:c,minimized:d,changeMode:y,show:C,hide:E,submit:I,cancel:h,componentInstance:Q}),(M,j)=>o.modelValue?(Vue.openBlock(),Vue.createBlock(Vue.Teleport,{key:0,to:"body"},[Vue.createElementVNode("div",{ref_key:"wrapper",ref:s,class:Vue.normalizeClass(["x-dialog__wrapper",Vue.unref(f)])},[o.modal?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,class:"x-dialog__modal",style:Vue.normalizeStyle(Vue.unref(w))},null,4)):Vue.createCommentVNode("",!0),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(Vue.unref(Ve),{ref_key:"panelRef",ref:r,class:Vue.normalizeClass(["x-dialog",Vue.unref(g)]),card:"",shadow:"always",header:{icon:o.icon,subtitle:o.subtitle},width:"800px",height:"600px",footer:{justify:"space-between",flex:!0,align:"center"},style:Vue.normalizeStyle(Vue.unref(p)),size:o.size,body:{padding:o.bodyPadding},onClick:Vue.unref(b)},Vue.createSlots({title:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(o.title),1)]),actions:Vue.withCtx(()=>[Vue.renderSlot(M.$slots,"actions"),o.minimizable?(Vue.openBlock(),Vue.createBlock(Vue.unref(R),{key:0,icon:Vue.unref(VtjIcons.Minimize),size:o.size,mode:"icon",type:"primary",background:"hover",onClick:j[0]||(j[0]=Z=>Vue.unref(y)("minimized"))},null,8,["icon","size"])):Vue.createCommentVNode("",!0),o.maximizable?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:1},[Vue.unref(i)?(Vue.openBlock(),Vue.createBlock(Vue.unref(R),{key:1,icon:Vue.unref(VtjIcons.Maximize),size:o.size,mode:"icon",type:"primary",background:"hover",onClick:j[2]||(j[2]=Z=>Vue.unref(y)("maximized"))},null,8,["icon","size"])):(Vue.openBlock(),Vue.createBlock(Vue.unref(R),{key:0,icon:Vue.unref(VtjIcons.Popup),size:o.size,mode:"icon",type:"primary",background:"hover",onClick:j[1]||(j[1]=Z=>Vue.unref(y)("normal"))},null,8,["icon","size"]))],64)):Vue.createCommentVNode("",!0),o.closable?(Vue.openBlock(),Vue.createBlock(Vue.unref(R),{key:2,icon:Vue.unref(VtjIcons.RawClose),size:o.size,mode:"icon",type:"danger",background:"hover",onClick:Vue.unref(m)},null,8,["icon","size","onClick"])):Vue.createCommentVNode("",!0)]),default:Vue.withCtx(()=>[Vue.renderSlot(M.$slots,"default",{},()=>[o.content?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(o.content),{key:0})):Vue.createCommentVNode("",!0),o.src?(Vue.openBlock(),Vue.createElementBlock("iframe",{key:1,src:o.src,class:"x-dialog__frame"},null,8,Nt)):Vue.createCommentVNode("",!0)])]),_:2},[o.cancel||o.submit||M.$slots.footer||M.$slots.extra||M.$slots.handle?{name:"footer",fn:Vue.withCtx(()=>[Vue.renderSlot(M.$slots,"footer",{},()=>[Vue.createVNode(Vue.unref(v),{align:"center"},{default:Vue.withCtx(()=>[Vue.renderSlot(M.$slots,"extra")]),_:3}),Vue.createVNode(Vue.unref(v),{align:"center"},{default:Vue.withCtx(()=>[Vue.renderSlot(M.$slots,"handle"),o.cancel?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:0,type:"default",size:o.size,onClick:Vue.unref(h)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(typeof o.cancel=="string"?o.cancel:"取消"),1)]),_:1},8,["size","onClick"])):Vue.createCommentVNode("",!0),o.submit?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:1,type:"primary",size:o.size,onClick:Vue.unref(I)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(typeof o.submit=="string"?o.submit:"确定"),1)]),_:1},8,["size","onClick"])):Vue.createCommentVNode("",!0)]),_:3})])]),key:"0"}:void 0]),1032,["header","class","style","size","body","onClick"])),[[Vue.unref(Ae),Vue.unref(P)],[Vue.unref(he),Vue.unref(D)]])],2)])):Vue.createCommentVNode("",!0)}});function ne(n,t){const e=document.createElement("div"),o=Vue.createVNode(oe,n);o.appContext=t!=null?t:ne._context,Vue.render(o,e);const l=()=>{var u;Vue.render(null,e),(u=e.parentNode)==null||u.removeChild(e)};return o.props.onDestroy=()=>{l()},document.body.appendChild(e),{vnode:o,destroy:l}}const Tt=Vue.createElementVNode("div",{class:"x-mask-sidebar__helper"},null,-1),It=Vue.defineComponent({__name:"Sidebar",props:{collapsed:{type:Boolean}},setup(n){const t=n;return(e,o)=>Vue.withDirectives((Vue.openBlock(),Vue.createBlock(Vue.unref(v),{class:Vue.normalizeClass(["x-mask-sidebar",{"is-collapsed":t.collapsed}]),grow:!1,flex:"",direction:"column"},{default:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"brand"),Vue.createVNode(Vue.unref(v),{class:"x-mask-sidebar__wrapper",flex:"",grow:"",direction:"column",justify:"space-between",align:"center"},{default:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"default"),Tt]),_:3})]),_:3},8,["class"])),[[Vue.unref(he),{dirs:["e"],disabled:t.collapsed,maxWidth:500,minWidth:200}]])}}),Dt=Vue.defineComponent({__name:"SwitchBar",props:{collasped:{type:Boolean,default:!1},favorite:{type:Boolean,default:!1},keyword:{}},emits:["update:collasped","update:keyword","update:favorite"],setup(n,{emit:t}){const e=n,o=t,l=Vue.ref(!1),u=Vue.ref(""),s=Vue.ref(!1),r=()=>{l.value=!0},a=()=>{u.value="",l.value=!1,o("update:keyword",u.value)},c=()=>{o("update:collasped",!e.collasped)},d=()=>{o("update:keyword",u.value)},i=()=>{o("update:favorite",s.value)};return(p,g)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{class:"x-mask-switch-bar",justify:"space-between",align:"center"},{default:Vue.withCtx(()=>[e.collasped?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{key:0,class:"x-mask-switch-bar__left",grow:""},{default:Vue.withCtx(()=>[l.value?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSwitch),{key:0,modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=f=>s.value=f),class:"x-mask-switch-bar__switch","active-icon":Vue.unref(ElementPlusIconsVue.StarFilled),"inactive-icon":Vue.unref(ElementPlusIconsVue.Menu),onChange:i},null,8,["modelValue","active-icon","inactive-icon"])),l.value?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElInput),{key:1,modelValue:u.value,"onUpdate:modelValue":g[1]||(g[1]=f=>u.value=f),class:"x-mask-switch-bar__input",size:"small",placeholder:"请输入查询关键字",onInput:d,"prefix-icon":Vue.unref(ElementPlusIconsVue.Search)},{suffix:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(F),{icon:Vue.unref(ElementPlusIconsVue.Close),onClick:a},null,8,["icon"])]),_:1},8,["modelValue","prefix-icon"])):Vue.createCommentVNode("",!0)]),_:1})),Vue.createVNode(Vue.unref(v),{class:Vue.normalizeClass(["x-mask-switch-bar__right",{"is-collasped":e.collasped}]),flex:"",align:"center",justify:"center"},{default:Vue.withCtx(()=>[!l.value&&!e.collasped?(Vue.openBlock(),Vue.createBlock(Vue.unref(R),{key:0,icon:Vue.unref(ElementPlusIconsVue.Search),mode:"icon",background:"hover",size:"default",circle:"",onClick:r},null,8,["icon"])):Vue.createCommentVNode("",!0),e.collasped?(Vue.openBlock(),Vue.createBlock(Vue.unref(R),{key:1,icon:Vue.unref(ElementPlusIconsVue.Expand),mode:"icon",size:"default",background:"hover",onClick:c,circle:""},null,8,["icon"])):Vue.createCommentVNode("",!0),e.collasped?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(R),{key:2,icon:Vue.unref(ElementPlusIconsVue.Fold),mode:"icon",size:"default",background:"hover",circle:"",onClick:c},null,8,["icon"]))]),_:1},8,["class"])]),_:1}))}}),Mt=["src"],$t={key:0},Rt=Vue.defineComponent({__name:"Brand",props:{collapsed:{type:Boolean,default:!1},logo:{},title:{},url:{}},setup(n){const t=n,e=VueRouter.useRouter(),o=()=>{t.url&&e.push(t.url)};return(l,u)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{class:Vue.normalizeClass(["x-mask-brand",{"is-collapsed":t.collapsed}]),align:"center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(v),{class:"x-mask-brand__logo",flex:"",justify:"center",align:"center",onClick:o},{default:Vue.withCtx(()=>[Vue.renderSlot(l.$slots,"logo",{},()=>[t.logo?(Vue.openBlock(),Vue.createElementBlock("img",{key:0,src:t.logo},null,8,Mt)):Vue.createCommentVNode("",!0)])]),_:3}),Vue.createVNode(Vue.unref(v),{class:"x-mask-brand__title",flex:"",align:"center"},{default:Vue.withCtx(()=>[t.title?(Vue.openBlock(),Vue.createElementBlock("span",$t,[Vue.renderSlot(l.$slots,"title",{},()=>[Vue.createTextVNode(Vue.toDisplayString(t.title),1)])])):Vue.createCommentVNode("",!0)]),_:3})]),_:3},8,["class"]))}}),ue="__favorites__",le="__search__",At=Vue.defineComponent({__name:"Menu",props:{collapse:{type:Boolean,default:!1},keyword:{},favorite:{type:Boolean},favorites:{},flatMenus:{},menus:{},active:{}},emits:["select"],setup(n,{emit:t}){const e=n,o=Vue.computed(()=>e.menus||[]),l=t,u=Vue.computed(()=>{var c;return String((c=e.active)==null?void 0:c.id)}),s=Vue.computed(()=>{var c;return[{id:ue,title:"收藏",icon:ElementPlusIconsVue.Star,children:(c=e.favorites)!=null&&c.length?e.favorites:[{id:ue+"empty",disabled:!0,title:"暂无收藏菜单"}]}]}),r=Vue.computed(()=>{const c=(e.keyword||"").trim(),d=c?(e.flatMenus||[]).filter(i=>{var p;return(p=i.title)==null?void 0:p.includes(c)}):[];return[{id:le,title:"搜索",icon:ElementPlusIconsVue.Search,children:d!=null&&d.length?d:[{id:le+"empty",disabled:!0,title:"查询匹配不到菜单项"}]}]}),a=c=>{l("select",c)};return(c,d)=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[Vue.withDirectives(Vue.createVNode(Vue.unref(v),{class:"x-mask-menu",grow:"",flex:!1,overflow:"auto"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(Vue.unref(O),{subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:o.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!0,"collapse-transition":!1,"default-active":u.value,onSelect:a},null,8,["data","default-icon","default-active"]),[[Vue.vShow,e.collapse]]),Vue.withDirectives(Vue.createVNode(Vue.unref(O),{subMenu:{popperClass:"x-mask-menu-popper",teleported:!0},data:o.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!1,"collapse-transition":!1,"default-active":u.value,onSelect:a},null,8,["data","default-icon","default-active"]),[[Vue.vShow,!e.collapse]]),o.value.length?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElEmpty),{key:0,description:"暂无菜单数据"}))]),_:1},512),[[Vue.vShow,!e.favorite&&!e.keyword]]),Vue.withDirectives(Vue.createVNode(Vue.unref(v),{class:"x-mask-menu",grow:"",flex:!1,overflow:"auto"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(Vue.unref(O),{class:"x-mask-menu__favorites",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:s.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!0,"collapse-transition":!1,"default-active":u.value,"default-openeds":[ue],onSelect:a},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,e.collapse]]),Vue.withDirectives(Vue.createVNode(Vue.unref(O),{class:"x-mask-menu__favorites",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:s.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!1,"collapse-transition":!1,"default-active":u.value,"default-openeds":[ue],onSelect:a},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,!e.collapse]])]),_:1},512),[[Vue.vShow,e.favorite&&!e.keyword]]),e.keyword?Vue.withDirectives((Vue.openBlock(),Vue.createBlock(Vue.unref(v),{key:0,class:"x-mask-menu",grow:"",flex:!1,overflow:"auto"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(Vue.unref(O),{class:"x-mask-menu__search",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:r.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!0,"collapse-transition":!1,"default-active":u.value,"default-openeds":[le],onSelect:a},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,e.collapse]]),Vue.withDirectives(Vue.createVNode(Vue.unref(O),{class:"x-mask-menu__search",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:r.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!1,"collapse-transition":!1,"default-active":u.value,"default-openeds":[le],onSelect:a},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,!e.collapse]])]),_:1},512)),[[Vue.vShow,!!e.keyword]]):Vue.createCommentVNode("",!0)],64))}}),jt={class:"x-mask-tabs__trigger"},Ft={key:1},Ot=["onDragstart","onDragend"],Ut={key:1},Xt=Vue.defineComponent({__name:"Tabs",props:{tabs:{},home:{},isActiveTab:{type:Function},value:{},favorites:{}},emits:["click","remove","refresh","toggleFavorite","dialog"],setup(n,{emit:t}){const e=n,o=t,l=d=>{const i=!!e.favorites.find(p=>{var g;return p===d.menu||p.id===((g=d.menu)==null?void 0:g.id)});return[{icon:ElementPlusIconsVue.Refresh,label:"刷新",name:"refresh",value:d},"|",{icon:i?ElementPlusIconsVue.StarFilled:ElementPlusIconsVue.Star,label:"收藏",name:"favorite",value:d.menu,disabled:!d.menu},"|",{icon:ElementPlusIconsVue.CopyDocument,label:"弹窗",name:"dialog",value:d}]},u=d=>{const i=d.paneName;if(i===e.home.id){o("click",e.home);return}const p=e.tabs.find(g=>g.id===i);p&&o("click",p)},s=d=>{const i=e.tabs.find(p=>p.id===d);i&&o("remove",i)},r=d=>{switch(d.name){case"refresh":o("refresh",d.value);break;case"favorite":o("toggleFavorite",d.value);break;case"dialog":o("dialog",d.value);break}},a=(d,i)=>{i.dataTransfer&&(i.dataTransfer.setData("tab",d.id),i.target&&i.target.classList.add("is-dagging"))},c=(d,i)=>{i.target&&i.target.classList.remove("is-dagging")};return(d,i)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{ref:"tabsRef",class:"x-mask-tabs",height:"100%",grow:"",flex:"",justify:"flex-end",direction:"column"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElTabs),{type:"card","model-value":e.value,onTabRemove:s,onTabClick:u},{default:Vue.withCtx(()=>[e.home?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElTabPane),{key:0,name:e.home.id},{label:Vue.withCtx(()=>[Vue.createElementVNode("div",jt,[e.home.icon?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(W)(e.home.icon)),{key:0})):Vue.createCommentVNode("",!0),e.home.title?(Vue.openBlock(),Vue.createElementBlock("span",Ft,Vue.toDisplayString(e.home.title),1)):Vue.createCommentVNode("",!0)])]),_:1},8,["name"])):Vue.createCommentVNode("",!0),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.tabs,p=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElTabPane),{key:p.id,name:p.id,lazy:"",closable:""},{label:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElPopover),{"open-delay":500,placement:"bottom",trigger:"hover",width:"200px",disabled:p.id!==e.value},{reference:Vue.withCtx(()=>[Vue.createElementVNode("div",{class:"x-mask-tabs__trigger",draggable:"true",onDragstart:g=>a(p,g),onDragend:g=>c(p,g)},[p.icon?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(W)(p.icon)),{key:0})):Vue.createCommentVNode("",!0),p.title?(Vue.openBlock(),Vue.createElementBlock("span",Ut,Vue.toDisplayString(p.title),1)):Vue.createCommentVNode("",!0)],40,Ot)]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(G),{items:l(p),mode:"text",size:"small",type:"info",onClick:r},null,8,["items"])]),_:2},1032,["disabled"])]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])]),_:1},512))}}),Lt=Vue.defineComponent({__name:"ThemeSwitch",setup(n){const t=VueUse.useDark();return(e,o)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSwitch),{class:"x-mask-theme-switch",modelValue:Vue.unref(t),"onUpdate:modelValue":o[0]||(o[0]=l=>Vue.isRef(t)?t.value=l:null),size:"default","active-action-icon":Vue.unref(ElementPlusIconsVue.Moon),"inactive-action-icon":Vue.unref(ElementPlusIconsVue.Sunny)},null,8,["modelValue","active-action-icon","inactive-action-icon"]))}}),Ht={class:"x-mask-toolbar__menu-item"},Kt=Vue.defineComponent({__name:"Toolbar",props:{tabs:{default:()=>[]},actions:{},theme:{type:Boolean}},emits:["closeOtherTabs","closeAllTabs","closeTab","clickTab","actionClick","actionCommand"],setup(n,{emit:t}){const e=n,o=t,l=Vue.computed(()=>{const c=e.tabs.map((d,i)=>({divided:i===0,label:d.title,command:d}));return[{label:"关闭其他",command:"other"},{label:"关闭全部",command:"all"},...c]}),u=c=>{o("closeTab",c.command)},s=c=>{switch(c.command){case"all":o("closeAllTabs");break;case"other":o("closeOtherTabs");break;default:o("clickTab",c.command);break}},r=c=>{o("actionClick",c)},a=(c,d)=>{o("actionCommand",c,d)};return(c,d)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{class:"x-mask-toolbar",align:"center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(R),{icon:Vue.unref(ElementPlusIconsVue.MoreFilled),menus:l.value,dropdown:{size:"small"},mode:"icon",circle:"",background:"hover",onCommand:s},{item:Vue.withCtx(({item:i})=>[Vue.createElementVNode("span",Ht,[Vue.createTextVNode(Vue.toDisplayString(i.label)+" ",1),["other","all"].includes(i.command)?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(F),{key:0,onClick:Vue.withModifiers(p=>u(i),["stop"]),icon:Vue.unref(ElementPlusIconsVue.Close)},null,8,["onClick","icon"]))])]),_:1},8,["icon","menus"]),Vue.createVNode(Vue.unref(ElementPlus.ElDivider),{direction:"vertical"}),e.actions?(Vue.openBlock(),Vue.createBlock(Vue.unref(G),{key:0,circle:"",mode:"icon",size:"default",background:"hover",items:c.actions,onClick:r,onCommand:a},null,8,["items"])):Vue.createCommentVNode("",!0),e.actions?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElDivider),{key:1,direction:"vertical"})):Vue.createCommentVNode("",!0),e.theme?(Vue.openBlock(),Vue.createBlock(Lt,{key:2})):Vue.createCommentVNode("",!0),e.theme?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElDivider),{key:3,direction:"vertical"})):Vue.createCommentVNode("",!0),Vue.renderSlot(c.$slots,"default")]),_:3}))}}),Wt=Vue.defineComponent({__name:"Avatar",props:{avatar:{}},setup(n){const t=n;return(e,o)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElPopover),{width:200,"popper-class":"x-mask-avatar__popper",disabled:!e.$slots.default},{reference:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElAvatar),{class:"x-mask-avatar",shape:"circle",icon:Vue.unref(ElementPlusIconsVue.UserFilled),src:t.avatar,size:26},null,8,["icon","src"])]),default:Vue.withCtx(()=>[e.$slots.default?Vue.renderSlot(e.$slots,"default",{key:0}):Vue.createCommentVNode("",!0)]),_:3},8,["disabled"]))}}),Fe=Vue.defineComponent({__name:"Content",props:{createView:{type:Function},exclude:{}},setup(n){const t=n;return(e,o)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{class:"x-mask__content",flex:!1,grow:"",padding:!1},{default:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"default"),Vue.createVNode(Vue.unref(VueRouter.RouterView),null,{default:Vue.withCtx(({Component:l,route:u})=>[(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{exclude:t.exclude},[l?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(t.createView(l,u)),{key:u.fullPath})):Vue.createCommentVNode("",!0)],1032,["exclude"]))]),_:1})]),_:3}))}}),Oe=140,Ue={logo:{type:String,default:J},title:{type:String,default:"VTJ.PRO"},menus:{type:[Array,Function],default(){return[]}},favorites:{type:[Array,Function],default(){return[]}},menuAdapter:{type:Function},home:{type:[String,Object],default:"/"},tabs:{type:Number,default:20},actions:{type:Array},avatar:{type:String},theme:{type:Boolean},disabled:{type:Boolean},addFavorite:{type:Function},removeFavorite:{type:Function}},ge=Symbol(),ye=Symbol();function Qt(n){const t=Vue.ref(!1),e=Vue.ref(""),o=Vue.ref(!1);return{collapsed:t,keyword:e,favorite:o}}function Zt(n){const t=VtjUtils.uid();return Vue.computed(()=>{const e=n.home;return Object.assign({id:t,url:"/",name:"MaskHome",icon:ElementPlusIconsVue.HomeFilled,closable:!1},typeof e=="string"?{url:e}:e||{})})}function Xe(n,t){let e=[];return n.forEach(o=>{o=t?t(o):o,o.children?e=e.concat(Xe(o.children,t)):e.push(o)}),e}function Jt(n,t){const e=VueRouter.useRouter(),o=Vue.shallowRef([]),l=Vue.shallowRef([]),u=Vue.computed(()=>Xe(o.value,n.menuAdapter)),s=Vue.computed(()=>VtjUtils.arrayToMap(u.value,"id")),r=Vue.ref(null),a=f=>{const w=typeof f=="object"?f.id:f,y=s.value.get(w);if(!y){console.warn("找不到菜单",f);return}const{type:b="route",url:m,title:C,icon:E}=y;if(!m){r.value=y,t("select",y);return}if(b==="route"){VtjUtils.isUrl(m)||m.startsWith("//")?window.open(m):(r.value=y,e.push(m).catch(I=>I));return}if(b==="window"){window.open(m);return}b==="dialog"&&ne({resizable:!0,bodyPadding:!1,width:"80%",height:"80%",title:C,icon:E,src:m})},c=()=>T(this,null,function*(){var f,w;o.value=typeof n.menus=="function"?(yield n.menus())||[]:(f=n.menus)!=null?f:[],l.value=typeof n.favorites=="function"?(yield n.favorites())||[]:(w=n.favorites)!=null?w:[]}),d=f=>{l.value=[f,...l.value],n.addFavorite&&n.addFavorite(f)},i=f=>{l.value=l.value.filter(w=>w.id!==f.id),n.removeFavorite&&n.removeFavorite(f)},p=f=>!!l.value.find(w=>w===f||w.id===f.id),g=f=>{p(f)?i(f):d(f)};return Vue.watchEffect(c),{menus:o,favorites:l,flatMenus:u,active:r,select:a,toggleFavorite:g}}function Yt(n,t,e,o,l){const u=VueRouter.useRoute(),s=VueRouter.useRouter(),r={},a=Vue.ref([]),c=Vue.ref(),{width:d}=VueUse.useElementSize(c),i=Vue.computed(()=>Math.floor(d.value/Oe)),p=Vue.computed(()=>a.value.slice(0,i.value).filter(k=>!k.dialog)),g=Vue.computed(()=>a.value.slice(i.value)),f=k=>e.value.find(_=>_.url===k),w=k=>u.fullPath===k.url,y=k=>l.value.id===k?l.value:a.value.find(_=>_.id===k),b=Vue.ref(""),m=Vue.computed(()=>y(b.value)),C=k=>{s.push(k.url).catch(_=>_)},E=k=>{b.value=k.id,u.fullPath!==k.url&&C(k)},I=()=>{C(l.value)},h=k=>{const _=a.value.find(S=>S.url===k.url||S.id===k.id);_?E(_):(a.value.unshift(k),E(k))},P=k=>T(this,null,function*(){const{url:_=u.fullPath,icon:S,title:ae="新建标签页"}=k||{},re=r[_],_e=VtjUtils.uid(),Be=VtjUtils.upperFirstCamelCase(_);return N({id:_e,name:Be,url:_,icon:S,title:ae,closable:!0,menu:k},re?yield re():{})}),D=k=>T(this,null,function*(){if(yield ElementPlus.ElMessageBox.confirm("是否关闭页签","提示",{type:"warning"}).catch(S=>!1)){if(a.value=a.value.filter(S=>S.id!==k.id),b.value===k.id){const S=a.value[0];C(S||l.value)}return k}}),Q=k=>{const _=a.value.findIndex(S=>S.id===k.id);if(_>=0){const S=a.value[_];a.value.splice(_,1,Object.assign(S,k))}},q=()=>T(this,null,function*(){if(!(yield ElementPlus.ElMessageBox.confirm("是否关闭全部页签","提示",{type:"warning"}).catch(S=>!1)))return;const _=a.value;return a.value=[],E(l.value),_}),M=()=>T(this,null,function*(){if(!(yield ElementPlus.ElMessageBox.confirm("是否关闭其他页签","提示",{type:"warning"}).catch(S=>!1)))return;const _=a.value.filter(S=>S.id!==b.value);return a.value=a.value.filter(S=>S.id===b.value),_}),j=k=>{const _=a.value.filter(S=>S.id!==k.id);a.value=[k,..._],E(k)},Z=()=>T(this,null,function*(){yield Vue.nextTick();const k=l.value.url===u.fullPath,_=f(u.fullPath);if(k)b.value=l.value.id;else{const S=yield P(_);h(S)}yield Vue.nextTick(),o.value=_||null});return Vue.watch(e,Z),Vue.watch(u,Z,{immediate:!0}),Vue.provide(ge,r),{tabRef:c,tabs:a,showTabs:p,currentTab:m,changeTab:C,removeTab:D,updateTab:Q,addTab:h,home:l,tabValue:b,isCurrentTab:w,activeHome:I,activeTab:E,dropdownTabs:g,removeAllTabs:q,removeOtherTabs:M,moveToShow:j}}function Gt(n){const t=new Map,e=Vue.ref([]),o=Vue.reactive({}),l={},{updateTab:u,isCurrentTab:s,activeHome:r,tabs:a}=n,c=(m,C)=>{const E=C.fullPath;if(t.has(E))return t.get(E);{const I=VtjUtils.upperFirstCamelCase(E),h={name:I,setup(){const P=Vue.computed(()=>o[E]||document.body),D=Vue.computed(()=>!o[E]),Q=Vue.computed(()=>!e.value.includes(I));return Vue.provide(VueRouter.routeLocationKey,Vue.toRaw(N({},C))),()=>Q.value?Vue.h(Vue.Teleport,{to:P.value,disabled:D.value},[Vue.h(m)]):null}};return t.set(E,h),h}},d=m=>{m.dialog=void 0,delete o[m.url];const C=l[m.id];C&&(C.destroy(),delete l[m.id],u(m))},i=(m=[])=>{m.forEach(C=>{d(C)})},p=m=>T(this,null,function*(){m.dialog=$(N({},m.dialog),{onMinimized:()=>{d(m)},onClose:()=>T(this,null,function*(){d(m),a.value=a.value.filter(E=>E.id!==m.id)})}),u(m);const C=ne($(N({title:m.title,icon:m.icon,modal:!1,resizable:!0,draggable:!0},m.dialog),{onOpen(E){var I,h;o[m.url]=(h=(I=E.refs.panelRef)==null?void 0:I.bodyRef)==null?void 0:h.$el}}));return yield Vue.nextTick(),s(m)&&r(),l[m.id]=C,C}),g=m=>T(this,null,function*(){e.value=[m.name],yield Vue.nextTick(),e.value=[]}),f=m=>T(this,null,function*(){e.value=m.map(C=>C.name),yield Vue.nextTick(),e.value=[]}),w=m=>(m.preventDefault(),!1),y=m=>{if(m.dataTransfer){const C=m.dataTransfer.getData("tab"),E=a.value.find(I=>I.id===C);if(E){const{clientX:I,clientY:h}=m;E.dialog={left:I,top:h},p(E)}}},b=m=>!!o[m];return VueUse.useEventListener(document,"dragover",w),VueUse.useEventListener(document,"drop",y),{createView:c,openDialog:p,refresh:g,exclude:e,cleanCache:f,hasDialog:b,closeDialog:d,closeDialogs:i}}const Le=Vue.defineComponent({name:"XMask",__name:"Mask",props:Ue,emits:["select","actionClick","actionCommand"],setup(n,{emit:t}){const e=n,o=t,l=Zt(e),{collapsed:u,keyword:s,favorite:r}=Qt(),{menus:a,favorites:c,flatMenus:d,active:i,select:p,toggleFavorite:g}=Jt(e,o),{tabRef:f,showTabs:w,currentTab:y,changeTab:b,removeTab:m,tabs:C,updateTab:E,isCurrentTab:I,activeHome:h,removeAllTabs:P,removeOtherTabs:D,dropdownTabs:Q,moveToShow:q}=Yt(e,o,d,i,l),{createView:M,openDialog:j,refresh:Z,exclude:k,cleanCache:_,closeDialogs:S}=Gt({tabs:C,updateTab:E,isCurrentTab:I,activeHome:h}),ae=z=>T(this,null,function*(){(yield m(z))&&(yield _([z]))}),re=()=>T(this,null,function*(){const z=yield P();z&&(S(z),yield _(z))}),_e=()=>T(this,null,function*(){const z=yield D();z&&(S(z),yield _(z))}),Be=z=>{o("actionClick",z)},mo=(z,U)=>{o("actionCommand",z,U)};return Vue.provide(ye,{tabs:C,flatMenus:d,favorites:c,updateTab:E,active:i,currentTab:y}),(z,U)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{class:"x-mask"},{default:Vue.withCtx(()=>[e.disabled?(Vue.openBlock(),Vue.createBlock(Fe,{key:1,createView:Vue.unref(M),exclude:Vue.unref(k)},{default:Vue.withCtx(()=>[z.$slots.default?Vue.renderSlot(z.$slots,"default",{key:0}):Vue.createCommentVNode("",!0)]),_:3},8,["createView","exclude"])):(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[Vue.createVNode(It,{collapsed:Vue.unref(u)},{brand:Vue.withCtx(()=>[Vue.createVNode(Rt,{logo:e.logo,title:e.title,url:Vue.unref(l).url,collapsed:Vue.unref(u)},null,8,["logo","title","url","collapsed"])]),default:Vue.withCtx(()=>[Vue.createVNode(Dt,{collasped:Vue.unref(u),"onUpdate:collasped":U[0]||(U[0]=L=>Vue.isRef(u)?u.value=L:null),favorite:Vue.unref(r),"onUpdate:favorite":U[1]||(U[1]=L=>Vue.isRef(r)?r.value=L:null),keyword:Vue.unref(s),"onUpdate:keyword":U[2]||(U[2]=L=>Vue.isRef(s)?s.value=L:null)},null,8,["collasped","favorite","keyword"]),Vue.createVNode(At,{collapse:Vue.unref(u),keyword:Vue.unref(s),favorite:Vue.unref(r),favorites:Vue.unref(c),flatMenus:Vue.unref(d),menus:Vue.unref(a),active:Vue.unref(i),onSelect:Vue.unref(p)},null,8,["collapse","keyword","favorite","favorites","flatMenus","menus","active","onSelect"])]),_:1},8,["collapsed"]),Vue.createVNode(Vue.unref(v),{class:"x-mask__main",grow:"",shrink:"",flex:"",direction:"column"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(v),{class:"x-mask-topbar",justify:"space-between",align:"center"},{default:Vue.withCtx(()=>{var L;return[Vue.createVNode(Xt,{ref_key:"tabRef",ref:f,favorites:Vue.unref(c),tabs:Vue.unref(w),home:Vue.unref(l),value:(L=Vue.unref(y))==null?void 0:L.id,onClick:Vue.unref(b),onToggleFavorite:Vue.unref(g),onRemove:ae,onDialog:Vue.unref(j),onRefresh:Vue.unref(Z)},null,8,["favorites","tabs","home","value","onClick","onToggleFavorite","onDialog","onRefresh"]),Vue.createVNode(Kt,{tabs:Vue.unref(Q),actions:e.actions,theme:e.theme,onCloseOtherTabs:_e,onCloseAllTabs:re,onCloseTab:ae,onClickTab:Vue.unref(q),onActionClick:Be,onActionCommand:mo},{default:Vue.withCtx(()=>[Vue.createVNode(Wt,{avatar:e.avatar},Vue.createSlots({_:2},[z.$slots.user?{name:"default",fn:Vue.withCtx(()=>[Vue.renderSlot(z.$slots,"user")]),key:"0"}:void 0]),1032,["avatar"])]),_:3},8,["tabs","actions","theme","onClickTab"])]}),_:3}),Vue.createVNode(Fe,{createView:Vue.unref(M),exclude:Vue.unref(k)},{default:Vue.withCtx(()=>[z.$slots.default?Vue.renderSlot(z.$slots,"default",{key:0}):Vue.createCommentVNode("",!0)]),_:3},8,["createView","exclude"])]),_:3})],64))]),_:3}))}});function qt(n={}){const t=VueRouter.useRoute(),e=Vue.inject(ge,null),o=Vue.inject(ye,null);if(e){const u=typeof n=="function"?n:()=>T(this,null,function*(){return n});e[t.fullPath]=u}return{tab:Vue.computed(()=>o?o.tabs.value.find(u=>u.url===t.fullPath):null),mask:o}}const eo=Vue.defineComponent({__name:"SelectEditor",props:{options:{default:()=>[]}},setup(n){const t=n;return(e,o)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSelect),Vue.normalizeProps(Vue.guardReactiveProps(e.$attrs)),{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(t.options,(l,u)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElOption),Vue.mergeProps({key:`item_${u}_${l.value}`},l),Vue.createSlots({_:2},[e.$slots.option?{name:"default",fn:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"option",{option:l})]),key:"0"}:void 0]),1040))),128))]),_:3},16))}}),to=Vue.defineComponent({__name:"CheckboxEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const t=n,e=Vue.computed(()=>Vue.markRaw(t.button?ElementPlus.ElCheckboxButton:ElementPlus.ElCheckbox));return(o,l)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElCheckboxGroup),Vue.normalizeProps(Vue.guardReactiveProps(o.$attrs)),{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(t.options,(u,s)=>(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.value),{key:`item_${s}_${u.value}`,label:u.value},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(u.label),1)]),_:2},1032,["label"]))),128))]),_:1},16))}}),oo=Vue.defineComponent({__name:"RadioEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const t=n,e=Vue.computed(()=>Vue.markRaw(t.button?ElementPlus.ElRadioButton:ElementPlus.ElRadio));return(o,l)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElRadioGroup),Vue.normalizeProps(Vue.guardReactiveProps(o.$attrs)),{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(t.options,(u,s)=>(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.value),{key:`item_${s}_${u.value}`,label:u.value},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(u.label),1)]),_:2},1032,["label"]))),128))]),_:1},16))}}),ke={none:{component:"div",props:{class:"x-field-none"}},text:{component:ElementPlus.ElInput,props:{clearable:!0},defaultValue:""},textarea:{component:ElementPlus.ElInput,props:{type:"textarea",rows:2},defaultValue:""},select:{component:eo,props:{clearable:!0}},checkbox:{component:to,props:{},defaultValue:[]},radio:{component:oo,props:{}},number:{component:ElementPlus.ElInputNumber,props:{}},date:{component:ElementPlus.ElDatePicker,props:{}},time:{component:ElementPlus.ElTimePicker,props:{}},datetime:{component:ElementPlus.ElDatePicker,props:{type:"datetime"}},switch:{component:ElementPlus.ElSwitch,props:{}},rate:{component:ElementPlus.ElRate,props:{}},slider:{component:ElementPlus.ElSlider,props:{}},cascader:{component:ElementPlus.ElCascader,props:{}}},He={name:{type:String},label:{type:String},editor:{type:[String,Object],default:"text"},props:{type:Object},modelValue:{type:[String,Number,Boolean,Object,Array],default(n){const t=ke[n.editor];return t==null?void 0:t.defaultValue}},size:{type:String},width:{type:[String,Number]},tooltipMessage:{type:[Boolean,Object],default:!0},tooltipPosition:{type:[String,Number],default:"outer"},placeholder:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},options:{type:[Array,Function]},visible:{type:[Boolean,Object,Function],default:!0},cascader:{type:[String,Array]}};function no(n,t){return T(this,null,function*(){const e=n.options;return e?typeof e=="function"?(yield e(t))||[]:e:[]})}function uo(n,t,e,o,l){const u=Vue.ref([]),s=Vue.computed(()=>!o||!l?{}:VtjUtils.toArray(n.cascader).reduce((c,d)=>(c[d]=l[d],c),{}));return Vue.watch(s,a=>T(this,null,function*(){var c;if(e.value){u.value=yield no(n,a);const d=(c=o==null?void 0:o.exposed)==null?void 0:c.reset;d&&n.name&&d(n.name)}}),{immediate:!0}),{editor:Vue.computed(()=>{const{editor:a="text",placeholder:c,label:d="...",disabled:i,readonly:p}=n,g=$(N({},n.props),{placeholder:c||(c===null?void 0:`请输入${d}`),disabled:i,readonly:p,options:u.value,onFocus:()=>t("focus"),onBlur:()=>t("blur"),onChange:w=>t("change",w)}),f=typeof a=="string"?ke[a]:{component:a,props:{}};return VtjUtils.merge({},f,{props:g})})}}const lo={class:"x-field__editor_wrap"},ve=Vue.defineComponent({name:"XField",__name:"Field",props:He,emits:["update:modelValue","change","focus","blur"],setup(n,{expose:t,emit:e}){const o=n,l=e,u=Vue.inject(be,null),s=Vue.inject(ElementPlus.formContextKey,null),r=Vue.inject(we,null),a=Vue.computed(()=>!(u==null?void 0:u.proxy)||!r?o.visible:typeof o.visible=="function"?o.visible(r):VtjUtils.isObject(o.visible)?Object.entries(o.visible).every(([P,D])=>r[P]===D):o.visible),c=()=>{var P;return(u==null?void 0:u.proxy)&&r&&o.name&&(P=r[o.name])!=null?P:o.modelValue},d=Vue.ref(c()),{editor:i}=uo(o,l,a,u,r),p=Vue.ref(),g=Vue.ref(),f=Vue.computed(()=>o.size||(s==null?void 0:s.size)||"default"),w=Vue.computed(()=>Object.assign({},typeof o.tooltipMessage=="boolean"?{}:o.tooltipMessage)),y=Vue.computed(()=>({[`is-tooltip-${o.tooltipPosition}`]:!!o.tooltipPosition})),b=Vue.computed(()=>{const h=u==null?void 0:u.proxy;return{width:o.width?B(o.width):h&&h.inline&&h.inlineColumns?`${100/h.inlineColumns}%`:null}}),m=Vue.computed(()=>({right:typeof o.tooltipPosition=="number"?`${o.tooltipPosition}px`:void 0})),C=Vue.computed(()=>$(N({},i.value.props),{modelValue:d.value,"onUpdate:modelValue":h=>{d.value=h}}));return Vue.watch(d,(h,P)=>{a.value&&!VtjUtils.isEqual(h,P)&&(l("update:modelValue",h),u!=null&&u.proxy&&r&&o.name&&VtjUtils.set(r,o.name,h))}),Vue.watch(()=>{var P;return!(u==null?void 0:u.proxy)||!o.name||!r?o.modelValue:(P=r[o.name])!=null?P:o.modelValue},h=>{a.value&&(d.value=h)},{immediate:!0}),Vue.watch(a,h=>{(u==null?void 0:u.proxy)&&r&&o.name&&(h?(d.value=c(),VtjUtils.set(r,o.name,d.value)):(d.value=void 0,delete r[o.name]))},{immediate:!0}),t({fieldValue:d,itemRef:p,editorRef:g,focus:()=>{var h;(h=g.value)!=null&&h.focus&&g.value.focus()},blur:()=>{var h;(h=g.value)!=null&&h.foucs&&g.value.blur()}}),(h,P)=>a.value?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElFormItem),Vue.mergeProps({key:0,class:["x-field",y.value],ref_key:"itemRef",ref:p,prop:o.name,label:h.label,size:f.value,style:b.value},h.$attrs),Vue.createSlots({error:Vue.withCtx(({error:D})=>[Vue.renderSlot(h.$slots,"error",{error:D},()=>[o.tooltipMessage?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,class:"x-field__info",style:Vue.normalizeStyle(m.value)},[Vue.createVNode(Vue.unref(ElementPlus.ElTooltip),Vue.mergeProps({content:D},w.value),{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(F),{class:"x-field__trigger",icon:Vue.unref(ElementPlusIconsVue.WarningFilled),size:f.value},null,8,["icon","size"])]),_:2},1040,["content"])],4)):Vue.createCommentVNode("",!0)])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",lo,[Vue.renderSlot(h.$slots,"editor",{editor:C.value},()=>[Vue.unref(i).component?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(i).component),Vue.mergeProps({key:0,class:"x-field__editor",ref_key:"editorRef",ref:g,modelValue:d.value,"onUpdate:modelValue":P[0]||(P[0]=D=>d.value=D)},Vue.unref(i).props),Vue.createSlots({_:2},[h.$slots.option?{name:"option",fn:Vue.withCtx(({option:D})=>[Vue.renderSlot(h.$slots,"option",{option:D})]),key:"0"}:void 0]),1040,["modelValue"])):Vue.createCommentVNode("",!0)])]),Vue.renderSlot(h.$slots,"default")]),_:2},[h.$slots.label?{name:"label",fn:Vue.withCtx(()=>[Vue.renderSlot(h.$slots,"label")]),key:"0"}:void 0]),1040,["prop","label","size","class","style"])):Vue.createCommentVNode("",!0)}}),Ke={model:{type:Object,default(){return Object.create(null)}},inline:{type:Boolean},inlineColumns:{type:Number},footer:{type:Boolean,default:!0},submitText:{type:String,default:"提交"},resetText:{type:String,default:"重置"},submitMethod:{type:Function}},be=Symbol("formInstanceKey"),we=Symbol("formModelKey"),Ce=Vue.defineComponent({name:"XForm",__name:"Form",props:Ke,emits:["change","submit","reset"],setup(n,{expose:t,emit:e}){const o=n,l=e,u=Vue.getCurrentInstance(),s=Vue.ref(),r=Vue.reactive(o.model||{}),a=Vue.ref(!1);Vue.provide(be,u),Vue.provide(we,r),Vue.watch(r,()=>{l("change",Vue.toRaw(r))}),Vue.watch(()=>o.model,i=>{Object.assign(r,i)},{deep:!0});const c=()=>T(this,null,function*(){(yield s.value.validate().catch(p=>p))&&o.model&&(l("submit",Vue.toRaw(r)),o.submitMethod&&(a.value=!0,yield o.submitMethod(Vue.toRaw(r)),a.value=!1))}),d=i=>{s.value.resetFields(i),l("reset")};return t({formRef:s,model:r,submit:c,reset:d}),(i,p)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElForm),Vue.mergeProps({ref_key:"formRef",ref:s,class:"x-form",inline:o.inline,model:r},i.$attrs),{default:Vue.withCtx(()=>[Vue.renderSlot(i.$slots,"default"),o.footer?(Vue.openBlock(),Vue.createBlock(Vue.unref(ve),{key:0,editor:"none",class:"x-form__footer",label:" "},{editor:Vue.withCtx(()=>[Vue.renderSlot(i.$slots,"footer",{},()=>[o.submitText?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:0,loading:a.value,type:"primary",onClick:c},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(o.submitText),1)]),_:1},8,["loading"])):Vue.createCommentVNode("",!0),o.resetText?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:1,type:"default",onClick:p[0]||(p[0]=()=>d())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(o.resetText),1)]),_:1})):Vue.createCommentVNode("",!0),Vue.renderSlot(i.$slots,"action")])]),_:3})):Vue.createCommentVNode("",!0)]),_:3},16,["inline","model"]))}}),We={modelValue:{type:Boolean,default:!0},size:{type:String},formProps:{type:Object},submit:{type:[Boolean,String],default:"确定"},cancel:{type:[Boolean,String],default:"取消"},model:{type:Object,default(){return Object.create(null)}},rules:{type:Object},submitMethod:{type:Function}},Qe=Vue.defineComponent({name:"XDialogForm",__name:"DialogForm",props:We,emits:["update:modelValue","submit","close"],setup(n,{expose:t,emit:e}){const o=n,l=e,u=Vue.ref(),s=Vue.ref(),r=Vue.computed(()=>{var i;return(i=s.value)==null?void 0:i.$vtjEl}),a=()=>{var i;(i=u.value)==null||i.submit()},c=()=>{l("update:modelValue",!1),l("close")},d=i=>T(this,null,function*(){l("submit",i),o.submitMethod?(yield o.submitMethod(i))&&c():c()});return t({$vtjEl:r,formRef:u,dialogRef:s}),(i,p)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(oe),Vue.mergeProps({ref_key:"dialogRef",ref:s,"model-value":o.modelValue,submit:o.submit,cancel:o.cancel,size:o.size,onSubmit:a,onClose:c,minimizable:!1,maximizable:!1},i.$attrs),Vue.createSlots({default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(Ce),Vue.mergeProps({ref_key:"formRef",ref:u,footer:!1,"label-width":"80px",size:o.size,model:o.model,rules:o.rules,"submit-method":d},o.formProps),{default:Vue.withCtx(()=>[Vue.renderSlot(i.$slots,"default")]),_:3},16,["size","model","rules"])]),_:2},[i.$slots.extra?{name:"extra",fn:Vue.withCtx(()=>[Vue.renderSlot(i.$slots,"extra")]),key:"0"}:void 0,i.$slots.handle?{name:"handle",fn:Vue.withCtx(()=>[Vue.renderSlot(i.$slots,"handle")]),key:"1"}:void 0,i.$slots.footer?{name:"footer",fn:Vue.withCtx(()=>[Vue.renderSlot(i.$slots,"footer")]),key:"2"}:void 0]),1040,["model-value","submit","cancel","size"]))}}),Ze={items:{type:Array,default(){return[]}},border:{type:Boolean}},Je=Vue.defineComponent({name:"XTabs",__name:"Tabs",props:Ze,setup(n){const t=n,e=l=>{const{label:u,name:s,value:r,disabled:a,closable:c,lazy:d}=l;return{label:u,name:r!=null?r:s,disabled:a,closable:c,lazy:d}},o=Vue.computed(()=>({"is-no-border":!t.border}));return(l,u)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElTabs),Vue.mergeProps({class:["x-tabs",o.value]},l.$attrs),{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(t.items,s=>{var r;return Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElTabPane),Vue.mergeProps({key:(r=s.value)!=null?r:s.name},e(s)),{label:Vue.withCtx(()=>[Vue.renderSlot(l.$slots,"label",Vue.normalizeProps(Vue.guardReactiveProps(s)),()=>[s.icon?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(W)(s.icon)),{key:0,class:"x-tabs__icon"})):Vue.createCommentVNode("",!0),Vue.createTextVNode(" "+Vue.toDisplayString(s.label),1)])]),default:Vue.withCtx(()=>[Vue.renderSlot(l.$slots,"default",Vue.normalizeProps(Vue.guardReactiveProps(s)),()=>[s.component?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(s.component),Vue.normalizeProps(Vue.mergeProps({key:0},s.props)),null,16)):Vue.createCommentVNode("",!0)])]),_:2},1040)}),128))]),_:3},16,["class"]))}}),Ye={direction:{type:String,default:"column"},imageSrc:{type:String},imageWidth:{type:[Number,String]},imageHeight:{type:[Number,String]},icon:{type:[String,Object]},title:{type:String},description:{type:String},actions:{type:Array},actionBarProps:{type:Object},split:{type:Boolean},onImageClick:{type:Function},onTitleClick:{type:Function}},ao={class:"x-data-item__title"},ro={key:1,class:"x-data-item__section x-data-item__desc"},so={key:2,class:"x-data-item__section x-data-item__extra"},io={key:3,class:"x-data-item__section x-data-item__actions"},Ge=Vue.defineComponent({name:"XDataItem",__name:"DataItem",props:Ye,emits:["imageClick","titleClick","actionClick","actionCommand"],setup(n,{emit:t}){const e=n,o=t,l=Vue.computed(()=>{const{imageWidth:i,imageHeight:p}=e;return{width:i?B(i):void 0,height:p?B(p):void 0}}),u=Vue.computed(()=>({[`is-image-${e.direction}`]:!!e.direction,"is-split":!!e.split})),s=Vue.computed(()=>N({size:"small",mode:"text",justify:"flex-end",type:"info",items:e.actions},e.actionBarProps)),r=()=>o("imageClick"),a=()=>o("titleClick"),c=i=>o("actionClick",i),d=(i,p)=>o("actionCommand",i,p);return(i,p)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{class:Vue.normalizeClass(["x-data-item",u.value]),direction:e.direction},{default:Vue.withCtx(()=>[e.imageSrc||i.$slots.image?(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{key:0,class:"x-data-item__img",onClick:e.onImageClick?r:void 0},{default:Vue.withCtx(()=>[Vue.renderSlot(i.$slots,"image",{},()=>[e.imageSrc?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElImage),{key:0,style:Vue.normalizeStyle(l.value),src:e.imageSrc},null,8,["style","src"])):Vue.createCommentVNode("",!0)])]),_:3},8,["onClick"])):Vue.createCommentVNode("",!0),Vue.createVNode(Vue.unref(v),{class:"x-data-item__content",direction:"column",grow:"",shrink:""},{default:Vue.withCtx(()=>[e.title||i.$slots.title?(Vue.openBlock(),Vue.createBlock(Vue.unref(v),{key:0,class:"x-data-item__section x-data-item__wrapper",align:"center",onClick:e.onTitleClick?a:void 0},{default:Vue.withCtx(()=>[e.icon?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(W)(e.icon)),{key:0,class:"x-data-item__icon"})):Vue.createCommentVNode("",!0),Vue.createElementVNode("span",ao,[Vue.renderSlot(i.$slots,"title",{},()=>[Vue.createTextVNode(Vue.toDisplayString(e.title),1)])])]),_:3},8,["onClick"])):Vue.createCommentVNode("",!0),e.description||i.$slots.description?(Vue.openBlock(),Vue.createElementBlock("div",ro,[Vue.renderSlot(i.$slots,"description",{},()=>[Vue.createTextVNode(Vue.toDisplayString(e.description),1)])])):Vue.createCommentVNode("",!0),i.$slots.default?(Vue.openBlock(),Vue.createElementBlock("div",so,[Vue.renderSlot(i.$slots,"default")])):Vue.createCommentVNode("",!0),e.actions||e.actionBarProps||i.$slots.actions?(Vue.openBlock(),Vue.createElementBlock("div",io,[Vue.renderSlot(i.$slots,"actions",{},()=>[Vue.createVNode(Vue.unref(G),Vue.mergeProps(s.value,{onClick:c,onCommand:d}),null,16)])])):Vue.createCommentVNode("",!0)]),_:3})]),_:3},8,["direction","class"]))}}),qe={option:{type:Object},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"400px"}};function co(n,t){const e=Vue.ref();return Vue.onMounted(()=>{const o=Vue.unref(n);o&&(e.value||(e.value=Vue.markRaw(echarts.init(o))),e.value.setOption(t.option||{}))}),Vue.onUnmounted(()=>{e.value&&e.value.dispose()}),Vue.watch(()=>t.option,o=>{e.value&&e.value.setOption(o||{})},{deep:!0}),VueUse.useResizeObserver(n,VtjUtils.debounce(()=>{e.value&&e.value.resize()},150)),{echartsInstance:e,echarts}}const et=Vue.defineComponent({name:"XChart",__name:"Chart",props:qe,setup(n,{expose:t}){const e=n,o=Vue.ref(),{echartsInstance:l,echarts:u}=co(o,e),s=Vue.computed(()=>({width:B(e.width),height:B(e.height)}));return t({chartRef:o,echartsInstance:l,echarts:u}),(r,a)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_key:"chartRef",ref:o,style:Vue.normalizeStyle(s.value)},null,4))}}),tt=[Se,F,O,Ne,R,G,v,de,Ve,oe,Le,ve,Ce,Qe,Je,Ge,et],Vo="0.6.23",ot=A(tt).install;V.Draggable=me,V.INSTALLED_KEY=K,V.MASK_KEY=ye,V.NOOP=ie,V.Resizable=fe,V.TAB_CREATORS_KEY=ge,V.TAB_ITEM_WIDTH=Oe,V.XAction=R,V.XActionBar=G,V.XChart=et,V.XContainer=v,V.XDataItem=Ge,V.XDialog=oe,V.XDialogForm=Qe,V.XField=ve,V.XForm=Ce,V.XHeader=de,V.XIcon=F,V.XMask=Le,V.XMenu=O,V.XPanel=Ve,V.XSimpleMask=Ne,V.XStartup=Se,V.XTabs=Je,V.actionBarProps=Ie,V.actionProps=ce,V.builtinFieldEditors=ke,V.chartProps=qe,V.components=tt,V.containerProps=De,V.createDialog=ne,V.dataItemProps=Ye,V.default=ot,V.defineTab=qt,V.dialogFormProps=We,V.dialogProps=je,V.fieldProps=He,V.formInstanceKey=be,V.formModelKey=we,V.formProps=Ke,V.getSizeValue=B,V.headerProps=Me,V.iconProps=Pe,V.iconSizeMap=xe,V.install=ot,V.makeInstaller=A,V.maskProps=Ue,V.omit=ee,V.panelProps=$e,V.parseSize=H,V.pick=se,V.tabsProps=Ze,V.useDisabled=te,V.useIcon=W,V.useIconProps=Te,V.vDraggable=Ae,V.vResizable=he,V.version=Vo,Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/cdn/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";body{padding:0;margin:0;font-family:var(--el-font-family);background-color:var(--el-bg-color)}body.user-select-none{user-select:none;overflow:hidden!important}body.user-select-none iframe{pointer-events:none}body::-webkit-scrollbar,div::-webkit-scrollbar{z-index:11;width:6px}body::-webkit-scrollbar:horizontal,div::-webkit-scrollbar:horizontal{height:6px}body::-webkit-scrollbar-thumb,div::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:rgba(0,0,0,.1)}body::-webkit-scrollbar-corner,div::-webkit-scrollbar-corner{background:transparent}body::-webkit-scrollbar-track,div::-webkit-scrollbar-track{background:transparent}body::-webkit-scrollbar-track-piece,div::-webkit-scrollbar-track-piece{background:transparent;width:6px}body.is-dragging,body.is-resizing{user-select:none}body.is-dragging iframe,body.is-resizing iframe{user-select:none;pointer-events:none}.x-icon{line-height:1;display:inline-block;vertical-align:middle;font-size:inherit;width:1em;height:1em;overflow:hidden}.x-icon>svg{width:1em;height:1em}.x-icon.is-pointer{cursor:pointer}.x-icon.is-pointer:hover{opacity:.7}.x-icon img{width:100%;height:100%;transform:translateY(1px)}.x-icon+.x-icon{margin-left:10px}.x-menu{border-right:none!important}.x-menu .x-icon{font-size:inherit;width:14px}.x-menu__wrapper{display:inline-flex;justify-content:flex-start;align-items:center}.x-menu__badge{font-size:12px;zoom:.9;margin-left:14px}.x-menu.el-menu--collapse .x-menu__wrapper{position:relative}.x-menu.el-menu--collapse .x-menu__badge{position:absolute;right:20px;top:5px}.x-simple-mask{height:100%;background-color:#fff}.x-simple-mask__header{border-bottom:1px solid #dcdfe6;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.x-simple-mask__aside{border-right:1px solid #dcdfe6}.x-simple-mask__footer{border-top:1px solid #dcdfe6;display:flex;flex-direction:row;justify-content:center;align-items:center}.x-simple-mask__logo{font-size:20px;color:#337ecc;font-weight:700;cursor:pointer}.x-simple-mask__logo:hover{opacity:.7}.x-action{display:inline-flex;vertical-align:middle}.x-action+.x-action{margin-left:10px}.x-action .el-dropdown,.x-action .el-tooltip__trigger,.x-action .el-badge{outline:none}.x-action .el-badge__content{zoom:.9}.x-action--icon+.x-action--icon{margin-left:5px}.x-action__inner{cursor:pointer;color:var(--el-text-color-regular);display:inline-flex;justify-content:center;align-items:center;line-height:1;white-space:nowrap;font-size:14px}.x-action__inner>.x-icon+span{margin-left:.2em}.x-action__inner>span{display:inline-flex;align-items:center}.x-action__inner:hover{opacity:.7}.x-action__inner.is-disabled{cursor:not-allowed;opacity:.6}.x-action__inner.is-primary{color:var(--el-color-primary)}.x-action__inner.is-warning{color:var(--el-color-warning)}.x-action__inner.is-success{color:var(--el-color-success)}.x-action__inner.is-danger{color:var(--el-color-danger)}.x-action__inner.is-info{color:var(--el-text-color-regular)}.x-action__inner.is-icon{padding:5px;border-radius:3px}.x-action__inner.is-icon.is-background-hover{color:var(--el-text-color-regular)}.x-action__inner.is-icon.is-background-hover:hover.is-primary{background-color:var(--el-color-primary-light-8);color:var(--el-color-primary)}.x-action__inner.is-icon.is-background-hover:hover.is-success{background-color:var(--el-color-success-light-8);color:var(--el-color-success)}.x-action__inner.is-icon.is-background-hover:hover.is-warning{background-color:var(--el-color-warning-light-8);color:var(--el-color-warning)}.x-action__inner.is-icon.is-background-hover:hover.is-danger{background-color:var(--el-color-danger-light-8);color:var(--el-color-danger)}.x-action__inner.is-icon.is-background-hover:hover.is-info{background-color:var(--el-color-info-light-8);color:var(--el-text-color-regular)}.x-action__inner.is-icon.is-background-always.is-primary{background-color:var(--el-color-primary-light-9)}.x-action__inner.is-icon.is-background-always.is-success{background-color:var(--el-color-success-light-9)}.x-action__inner.is-icon.is-background-always.is-warning{background-color:var(--el-color-warning-light-9)}.x-action__inner.is-icon.is-background-always.is-danger{background-color:var(--el-color-danger-light-9)}.x-action__inner.is-icon.is-background-always.is-info{background-color:var(--el-color-info-light-9)}.x-action__inner.is-icon.is-circle{border-radius:50%}.x-action__inner.is-icon.is-large{font-size:16px;padding:6px}.x-action__inner.is-icon.is-small{font-size:12px;padding:4px}.x-action__inner.is-text.is-large{font-size:16px}.x-action__inner.is-text.is-small{font-size:12px}.x-action-bar{white-space:nowrap}.x-action-bar__divider{margin:0 1em!important}.x-container{flex-shrink:0;box-sizing:border-box}.x-container.is-fit{width:100%;height:100%}.x-container.is-flex{display:flex}.x-container.is-inline-flex{display:inline-flex}.x-container.is-direction-column{flex-direction:column}.x-container.is-direction-row-reverse{flex-direction:row-reverse}.x-container.is-direction-column-reverse{flex-direction:column-reverse}.x-container.is-justify-flex-end{justify-content:flex-end}.x-container.is-justify-center{justify-content:center}.x-container.is-justify-space-between{justify-content:space-between}.x-container.is-justify-space-around{justify-content:space-around}.x-container.is-align-center{align-items:center}.x-container.is-flex-end{align-items:flex-end}.x-container.is-baseline{align-items:baseline}.x-container.is-stretch{align-items:stretch}.x-container.is-align-content-flex-start{align-content:flex-start}.x-container.is-align-content-flex-end{align-content:flex-end}.x-container.is-align-content-enter{align-content:center}.x-container.is-align-content-space-between{align-content:space-between}.x-container.is-align-content-space-around{align-content:space-around}.x-container.is-align-content-stretch{align-content:stretch}.x-container.is-wrap-wrap{flex-wrap:wrap}.x-container.is-wrap-wrap-reverse{flex-wrap:wrap-reverse}.x-container.is-grow{flex-grow:1}.x-container.is-shrink{flex-shrink:1}.x-container.is-align-self-flex-start{align-self:flex-start}.x-container.is-align-self-flex-end{align-self:flex-end}.x-container.is-align-self-center{align-self:center}.x-container.is-align-self-baseline{align-self:baseline}.x-container.is-align-self-stretch{align-self:stretch}.x-container.is-overflow-hidden{overflow:hidden}.x-container.is-overflow-visible{overflow:visible}.x-container.is-overflow-auto{overflow:auto}.x-container.is-padding{padding:10px}.x-header{height:32px}.x-header.is-size-large{height:40px}.x-header.is-size-small{height:28px}.x-header.is-border{border-bottom:1px solid var(--el-border-color-light)}.x-header__wrapper{line-height:1.5;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:1px}.x-header__wrapper.is-size-large{font-size:16px}.x-header__wrapper.is-size-large .x-header__subtitle,.x-header__wrapper.is-size-large .x-header__more{font-size:14px}.x-header__wrapper.is-size-small,.x-header__wrapper.is-size-small .x-header__subtitle,.x-header__wrapper.is-size-small .x-header__more{font-size:12px}.x-header__wrapper.is-pointer .x-header__content{cursor:pointer}.x-header__wrapper.is-pointer .x-header__content:hover{opacity:.7}.x-header__icon{margin-right:5px;flex-shrink:0}.x-header__content{color:var(--el-text-color-primary);font-weight:700}.x-header__more{color:var(--el-text-color-secondary)!important;margin-left:3px}.x-header__subtitle{margin-left:.5em;font-size:12px;color:var(--el-text-color-secondary)}.x-header__actions{white-space:nowrap}.x-panel--default.is-radius{border-radius:var(--el-border-radius-base)}.x-panel--default .x-panel__header{margin-bottom:4px}.x-panel--default.is-border .x-panel__body{border:1px solid var(--el-border-color-light)}.x-panel--default.is-radius .x-panel__body{border-radius:var(--el-border-radius-base)}.x-panel--default.is-shadow-always .x-panel__body,.x-panel--default.is-shadow-hover .x-panel__body:hover{box-shadow:var(--el-box-shadow-lighter)}.x-panel--card.is-border{border:1px solid var(--el-border-color-light)}.x-panel--card.is-radius{border-radius:var(--el-border-radius-base)}.x-panel--card .x-panel__header{padding:0 5px 0 10px;background-color:var(--el-fill-color-lighter)}.x-panel--card.is-shadow-always,.x-panel--card.is-shadow-hover:hover{box-shadow:var(--el-box-shadow-lighter)}.x-panel__body.is-grow.is-overflow-auto{height:1px}.x-dialog{background-color:var(--el-bg-color);position:absolute;pointer-events:initial}.x-dialog.is-draggable>.x-panel__header{cursor:move}.x-dialog.is-maximized{width:100%!important;height:100%!important;left:0!important;top:0!important}.x-dialog.is-minimized{display:none}.x-dialog__wrapper{position:absolute;inset:0;pointer-events:none;overflow:hidden}.x-dialog__wrapper.is-minimized{display:none}.x-dialog__wrapper.is-dragging{user-select:none}.x-dialog__wrapper.is-dragging iframe{user-select:none;pointer-events:none}.x-dialog__modal{position:absolute;inset:0;background-color:var(--el-mask-color-extra-light);pointer-events:initial}.x-dialog__frame{width:100%;height:100%;display:block;border:none}.x-dialog.is-primary{border:2px solid var(--el-color-primary);border-top:none}.x-dialog.is-primary>.x-panel__header{background-color:var(--el-color-primary);color:var(--el-color-white)}.x-dialog.is-primary>.x-panel__header .x-header__content{color:var(--el-color-white)}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover{color:var(--el-color-white)}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover:hover.is-primary{background-color:#ffffff4d;opacity:1}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover:hover.is-danger{background-color:var(--el-color-danger);opacity:1}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover:hover.is-warning{background-color:var(--el-color-warning);opacity:1}.x-mask{--el-mask-brand-color: #0157fe;--el-mask-content-bg-color: var(--el-bg-color);--el-mask-topbar-bg-color: var(--el-fill-color-lighter);--el-mask-sidebar-bg-color: var(--el-fill-color-lighter);--el-mask-sidebar-border-color: var(--el-border-color-lighter);width:100%;height:100%;background-color:var(--el-mask-content-bg-color);overflow:hidden}.x-mask__content{height:1px;overflow:auto;padding:10px}.x-mask-brand{height:40px;overflow:hidden}.x-mask-brand__logo{height:26px;width:60px;text-align:center;cursor:pointer}.x-mask-brand__logo:hover{opacity:.7}.x-mask-brand__logo>img{height:100%}.x-mask-brand__title{font-size:16px;font-weight:700;color:var(--el-mask-brand-color);font-family:Microsoft YaHei,微软雅黑,Arial,sans-serif}.x-mask-brand__title>span{position:relative;transform:translate(-10px)}.x-mask-brand.is-collapsed .x-mask-brand__title{display:none}.x-mask-topbar{height:40px;background-color:var(--el-mask-topbar-bg-color);border-bottom:1px solid var(--el-mask-sidebar-border-color)}.x-mask-menu{--el-menu-bg-color: transparent;--el-menu-item-height: 36px;--el-menu-sub-item-height: 34px;--el-font-size-base: 14px;--el-menu-item-font-size: 14px;--el-menu-icon-width: 20px;--el-menu-base-level-padding: 10px;--el-menu-level-padding: 20px;width:100%;height:1px;overflow-x:hidden!important}.x-mask-menu::-webkit-scrollbar{width:2px!important}.x-mask-menu::-webkit-scrollbar-thumb{background:transparent!important}.x-mask-menu:hover::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1)!important}.x-mask-menu .el-menu .el-menu-item [class^=el-icon],.x-mask-menu .el-menu .el-sub-menu .el-icon{font-size:16px}.x-mask-menu .el-menu .el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;color:var(--el-text-color-secondary)}.x-mask-menu .el-menu .el-menu-item.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse{--el-menu-item-height: 50px;width:100%}.x-mask-menu .el-menu--collapse>.el-menu-item{flex-wrap:wrap;justify-content:center;position:relative;margin:5px;border-radius:var(--el-border-radius-base);align-items:center;text-align:center}.x-mask-menu .el-menu--collapse>.el-menu-item .x-menu__title{height:auto;width:auto;visibility:visible;font-size:12px;line-height:1;zoom:.9;position:absolute;left:0;bottom:10px;width:100%;text-align:center;color:var(--el-text-color-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.x-mask-menu .el-menu--collapse>.el-menu-item .el-menu-tooltip__trigger{width:100%;height:100%;display:block}.x-mask-menu .el-menu--collapse>.el-menu-item.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu--collapse>.el-menu-item.is-active .x-menu__title{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse>.el-sub-menu{margin:5px;border-radius:var(--el-border-radius-base)}.x-mask-menu .el-menu--collapse>.el-sub-menu>.el-sub-menu__title{width:100%;display:flex;border-radius:var(--el-border-radius-base);line-height:1;padding-left:0;padding-right:0}.x-mask-menu .el-menu--collapse>.el-sub-menu>.el-sub-menu__title>.x-menu__wrapper{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;height:100%;width:100%}.x-mask-menu .el-menu--collapse>.el-sub-menu>.el-sub-menu__title>.x-menu__wrapper .x-menu__title{font-size:12px;zoom:.9;left:0;bottom:10px;width:100%;text-align:center;display:block;position:relative;top:-5px;color:var(--el-text-color-secondary);overflow:hidden}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-active .x-menu__wrapper{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-active .x-menu__wrapper .x-menu__title{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-opened{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu--collapse .el-menu-item [class^=el-icon],.x-mask-menu .el-menu--collapse .el-sub-menu .el-icon{font-size:20px;margin-right:0}.x-mask-menu__favorites .el-sub-menu__title .x-icon{color:var(--el-color-warning)}.x-mask-menu__search .el-sub-menu__title .x-icon{color:var(--el-color-success)}.x-mask-menu-popper{--el-menu-item-height: 36px;--el-menu-sub-item-height: 34px;--el-font-size-base: 12px;--el-menu-item-font-size: 12px;--el-menu-icon-width: 20px;--el-menu-base-level-padding: 14px;max-height:calc(100% - 10px);overflow:auto}.x-mask-menu-popper .el-menu-item [class^=el-icon],.x-mask-menu-popper .el-sub-menu .el-icon{font-size:14px;margin-right:0}.x-mask-menu-popper .el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;color:var(--el-text-color-secondary)}.x-mask-menu-popper .el-menu-item.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu-popper .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-color-primary)}.x-mask-menu-popper::-webkit-scrollbar{width:2px!important}.x-mask-menu-popper::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1)!important}.x-mask-sidebar{width:200px;background-color:var(--el-mask-sidebar-bg-color)}.x-mask-sidebar:not(.is-resizing){transition:width .2s}.x-mask-sidebar__wrapper{position:relative;border-right:1px solid var(--el-mask-sidebar-border-color)}.x-mask-sidebar__wrapper>.el-divider{margin:0}.x-mask-sidebar__expander{padding:5px 0;width:100%;background-color:var(--el-mask-sidebar-border-color);text-align:center;cursor:pointer}.x-mask-sidebar__expander:hover{opacity:.7}.x-mask-sidebar__helper{position:absolute;width:8px;font-size:0;right:0;top:0;bottom:0;border-right:2px solid transparent}.x-mask-sidebar.is-resizing .x-mask-sidebar__helper{border-right:2px solid var(--el-color-primary)}.x-mask-sidebar.is-collapsed{width:60px}.x-mask-sidebar.is-collapsed .x-mask-avatar__wrapper{overflow:hidden;height:0;width:0;visibility:hidden}.x-mask-topbar{height:40px}.x-mask-tabs{width:1px}.x-mask-tabs .el-tabs{--el-tabs-header-height: 30px;--el-font-size-base: 12px;position:relative;left:-1px}.x-mask-tabs .el-tabs__header{margin:0;border-bottom:none!important}.x-mask-tabs .el-tabs__header .el-tabs__item.is-active{background-color:var(--el-bg-color)}.x-mask-tabs .el-tabs__header .x-icon{pointer-events:none}.x-mask-tabs .el-tabs__content{display:none}.x-mask-tabs__trigger{height:100%;display:flex;align-items:center}.x-mask-tabs__trigger>.x-icon+span{margin-left:5px}.x-mask-toolbar{padding-right:10px}.x-mask-toolbar>.x-action{margin:0 5px}.x-mask-toolbar__menu-item{position:relative;display:inline-block;padding-right:20px;width:100%}.x-mask-toolbar__menu-item .x-icon{position:absolute;right:-10px;top:50%;transform:translateY(-50%)}.x-mask-switch-bar{width:100%;height:40px;padding:10px 5px;border-top:1px solid var(--el-mask-sidebar-border-color);position:relative;top:-1px;box-sizing:border-box}.x-mask-switch-bar__left{width:1px;padding-right:5px}.x-mask-switch-bar__right.is-collasped{width:100%;padding-right:5px}.x-mask-switch-bar__switch{height:28px!important;line-height:1!important;width:60px!important;position:relative;display:block!important}.x-mask-switch-bar__switch .el-switch__core{--el-switch-off-color: var(--el-mask-content-bg-color);--el-switch-on-color: var(--el-mask-content-bg-color);border:1px solid var(--el-mask-sidebar-border-color)!important;height:28px;width:60px;border-radius:14px}.x-mask-switch-bar__switch .el-switch__core .el-switch__action{width:28px;height:24px;border-radius:14px;background-color:var(--el-color-primary-light-8)}.x-mask-switch-bar__switch .el-switch__label--left{position:absolute;top:6px;left:9px;z-index:1;margin-right:0;height:14px;color:var(--el-text-color-regular)}.x-mask-switch-bar__switch .el-switch__label--right{position:absolute;top:6px;right:9px;z-index:1;margin-right:0;height:14px;color:var(--el-text-color-regular)}.x-mask-switch-bar__switch .el-switch__label.is-active{color:var(--el-color-primary)}.x-mask-switch-bar__switch.is-checked .el-switch__core .el-switch__action{left:calc(100% - 29px)!important}.x-mask-switch-bar__input .el-input__wrapper{padding:0!important;border-radius:12px}.x-mask-switch-bar__input .el-input__prefix-inner>:last-child{margin-right:0;width:20px}.x-mask-switch-bar__input .el-input__suffix{cursor:pointer;transition:color .1s}.x-mask-switch-bar__input .el-input__suffix:hover{color:var(--el-color-warning)}.x-mask-switch-bar__input .el-input__suffix .x-icon{width:20px;margin-left:0!important}.x-mask-switch-bar__input .el-input__inner{height:28px!important}.x-mask-avatar{margin-left:5px}.x-mask-theme-switch.el-switch{--el-switch-on-color: var(--el-fill-color-dark);--el-switch-off-color: var(--el-fill-color-dark)}.x-mask-theme-switch .el-switch__core .el-switch__action{color:var(--el-text-color-regular)!important;background-color:var(--el-bg-color)!important}.x-field__info{position:absolute!important;right:0;cursor:pointer}.x-field__trigger{--color: getCssVar("color-error") !important;color:var(--el-color-error)!important}.x-field__editor{width:100%!important}.x-field__editor_wrap{flex-grow:1}.x-field.is-tooltip-outer.el-form-item--small .el-form-item__content{padding-right:16px}.x-field.is-tooltip-outer.el-form-item--default .el-form-item__content{padding-right:20px}.x-field.is-tooltip-outer.el-form-item--large .el-form-item__content{padding-right:24px}.x-field.is-tooltip-inner.el-form-item--small .x-field__info{right:5px}.x-field.is-tooltip-inner.el-form-item--default .x-field__info{right:8px}.x-field.is-tooltip-inner.el-form-item--large .x-field__info{right:10px}.x-form.el-form--inline>.x-field{margin-right:0}.x-startup{height:100%;background-color:#ecf5ff;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative}.x-startup .brand{display:flex;justify-content:center;align-items:center}.x-startup .brand img{width:100px;height:100px;margin-right:20px}.x-startup h1{font-size:100px;font-weight:700;color:#0157fe;text-shadow:0 0 6px rgba(0,0,0,.3);margin:0;text-align:center;line-height:1}.x-startup h3{font-size:28px;color:#666;text-align:center}.x-startup .ba{position:absolute;height:30px;line-height:30px;text-align:center;bottom:0;width:100%;left:0}.x-startup .ba a{color:#b1b3b8}.x-startup .btn{text-align:center;padding-top:20px}.x-startup .btn button{width:200px}
|
|
1
|
+
@charset "UTF-8";body{padding:0;margin:0;font-family:var(--el-font-family);background-color:var(--el-bg-color)}body.user-select-none{user-select:none;overflow:hidden!important}body.user-select-none iframe{pointer-events:none}body::-webkit-scrollbar,div::-webkit-scrollbar{z-index:11;width:6px}body::-webkit-scrollbar:horizontal,div::-webkit-scrollbar:horizontal{height:6px}body::-webkit-scrollbar-thumb,div::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:rgba(0,0,0,.1)}body::-webkit-scrollbar-corner,div::-webkit-scrollbar-corner{background:transparent}body::-webkit-scrollbar-track,div::-webkit-scrollbar-track{background:transparent}body::-webkit-scrollbar-track-piece,div::-webkit-scrollbar-track-piece{background:transparent;width:6px}body.is-dragging,body.is-resizing{user-select:none}body.is-dragging iframe,body.is-resizing iframe{user-select:none;pointer-events:none}.el-tag+.el-tag{margin-left:5px}.x-icon{line-height:1;display:inline-block;vertical-align:middle;font-size:inherit;width:1em;height:1em;overflow:hidden}.x-icon>svg{width:1em;height:1em}.x-icon.is-pointer{cursor:pointer}.x-icon.is-pointer:hover{opacity:.7}.x-icon img{width:100%;height:100%;transform:translateY(1px)}.x-icon+.x-icon{margin-left:10px}.x-menu{border-right:none!important}.x-menu .x-icon{font-size:inherit;width:14px}.x-menu__wrapper{display:inline-flex;justify-content:flex-start;align-items:center}.x-menu__badge{font-size:12px;zoom:.9;margin-left:14px}.x-menu.el-menu--collapse .x-menu__wrapper{position:relative}.x-menu.el-menu--collapse .x-menu__badge{position:absolute;right:20px;top:5px}.x-simple-mask{height:100%;background-color:#fff}.x-simple-mask__header{border-bottom:1px solid #dcdfe6;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.x-simple-mask__aside{border-right:1px solid #dcdfe6}.x-simple-mask__footer{border-top:1px solid #dcdfe6;display:flex;flex-direction:row;justify-content:center;align-items:center}.x-simple-mask__logo{font-size:20px;color:#337ecc;font-weight:700;cursor:pointer}.x-simple-mask__logo:hover{opacity:.7}.x-action{display:inline-flex;vertical-align:middle}.x-action+.x-action{margin-left:10px}.x-action .el-dropdown,.x-action .el-tooltip__trigger,.x-action .el-badge{outline:none}.x-action .el-badge__content{zoom:.9}.x-action--icon+.x-action--icon{margin-left:5px}.x-action__inner{cursor:pointer;color:var(--el-text-color-regular);display:inline-flex;justify-content:center;align-items:center;line-height:1;white-space:nowrap;font-size:14px}.x-action__inner>.x-icon+span{margin-left:.2em}.x-action__inner>span{display:inline-flex;align-items:center}.x-action__inner:hover{opacity:.7}.x-action__inner.is-disabled{cursor:not-allowed;opacity:.6}.x-action__inner.is-primary{color:var(--el-color-primary)}.x-action__inner.is-warning{color:var(--el-color-warning)}.x-action__inner.is-success{color:var(--el-color-success)}.x-action__inner.is-danger{color:var(--el-color-danger)}.x-action__inner.is-info{color:var(--el-text-color-regular)}.x-action__inner.is-icon{padding:5px;border-radius:3px}.x-action__inner.is-icon.is-background-hover{color:var(--el-text-color-regular)}.x-action__inner.is-icon.is-background-hover:hover.is-primary{background-color:var(--el-color-primary-light-8);color:var(--el-color-primary)}.x-action__inner.is-icon.is-background-hover:hover.is-success{background-color:var(--el-color-success-light-8);color:var(--el-color-success)}.x-action__inner.is-icon.is-background-hover:hover.is-warning{background-color:var(--el-color-warning-light-8);color:var(--el-color-warning)}.x-action__inner.is-icon.is-background-hover:hover.is-danger{background-color:var(--el-color-danger-light-8);color:var(--el-color-danger)}.x-action__inner.is-icon.is-background-hover:hover.is-info{background-color:var(--el-color-info-light-8);color:var(--el-text-color-regular)}.x-action__inner.is-icon.is-background-always.is-primary{background-color:var(--el-color-primary-light-9)}.x-action__inner.is-icon.is-background-always.is-success{background-color:var(--el-color-success-light-9)}.x-action__inner.is-icon.is-background-always.is-warning{background-color:var(--el-color-warning-light-9)}.x-action__inner.is-icon.is-background-always.is-danger{background-color:var(--el-color-danger-light-9)}.x-action__inner.is-icon.is-background-always.is-info{background-color:var(--el-color-info-light-9)}.x-action__inner.is-icon.is-circle{border-radius:50%}.x-action__inner.is-icon.is-large{font-size:16px;padding:6px}.x-action__inner.is-icon.is-small{font-size:12px;padding:4px}.x-action__inner.is-text.is-large{font-size:16px}.x-action__inner.is-text.is-small{font-size:12px}.x-action-bar{white-space:nowrap}.x-action-bar__divider{margin:0 1em!important}.x-container{flex-shrink:0;box-sizing:border-box}.x-container.is-fit{width:100%;height:100%}.x-container.is-gap{margin-left:-10px;margin-top:-10px}.x-container.is-gap>.x-container{margin-left:10px;margin-top:10px}.x-container.is-pointer{cursor:pointer}.x-container.is-pointer:hover{opacity:.8}.x-container.is-flex{display:flex}.x-container.is-inline-flex{display:inline-flex}.x-container.is-direction-column{flex-direction:column}.x-container.is-direction-row-reverse{flex-direction:row-reverse}.x-container.is-direction-column-reverse{flex-direction:column-reverse}.x-container.is-justify-flex-end{justify-content:flex-end}.x-container.is-justify-center{justify-content:center}.x-container.is-justify-space-between{justify-content:space-between}.x-container.is-justify-space-around{justify-content:space-around}.x-container.is-align-center{align-items:center}.x-container.is-flex-end{align-items:flex-end}.x-container.is-baseline{align-items:baseline}.x-container.is-stretch{align-items:stretch}.x-container.is-align-content-flex-start{align-content:flex-start}.x-container.is-align-content-flex-end{align-content:flex-end}.x-container.is-align-content-enter{align-content:center}.x-container.is-align-content-space-between{align-content:space-between}.x-container.is-align-content-space-around{align-content:space-around}.x-container.is-align-content-stretch{align-content:stretch}.x-container.is-wrap-wrap{flex-wrap:wrap}.x-container.is-wrap-wrap-reverse{flex-wrap:wrap-reverse}.x-container.is-grow{flex-grow:1}.x-container.is-shrink{flex-shrink:1}.x-container.is-align-self-flex-start{align-self:flex-start}.x-container.is-align-self-flex-end{align-self:flex-end}.x-container.is-align-self-center{align-self:center}.x-container.is-align-self-baseline{align-self:baseline}.x-container.is-align-self-stretch{align-self:stretch}.x-container.is-overflow-hidden{overflow:hidden}.x-container.is-overflow-visible{overflow:visible}.x-container.is-overflow-auto{overflow:auto}.x-container.is-padding{padding:10px}.x-header{height:32px}.x-header.is-size-large{height:40px}.x-header.is-size-small{height:28px}.x-header.is-border{border-bottom:1px solid var(--el-border-color-light)}.x-header__wrapper{line-height:1.5;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:1px}.x-header__wrapper.is-size-large{font-size:16px}.x-header__wrapper.is-size-large .x-header__subtitle,.x-header__wrapper.is-size-large .x-header__more{font-size:14px}.x-header__wrapper.is-size-small,.x-header__wrapper.is-size-small .x-header__subtitle,.x-header__wrapper.is-size-small .x-header__more{font-size:12px}.x-header__wrapper.is-pointer .x-header__content{cursor:pointer}.x-header__wrapper.is-pointer .x-header__content:hover{opacity:.7}.x-header__icon{margin-right:5px;flex-shrink:0}.x-header__content{color:var(--el-text-color-primary);font-weight:700}.x-header__more{color:var(--el-text-color-secondary)!important;margin-left:3px}.x-header__subtitle{margin-left:.5em;font-size:12px;color:var(--el-text-color-secondary)}.x-header__actions{white-space:nowrap}.x-panel--default.is-radius{border-radius:var(--el-border-radius-base)}.x-panel--default .x-panel__header{margin-bottom:4px}.x-panel--default.is-border .x-panel__body{border:1px solid var(--el-border-color-light)}.x-panel--default.is-radius .x-panel__body{border-radius:var(--el-border-radius-base)}.x-panel--default.is-shadow-always .x-panel__body,.x-panel--default.is-shadow-hover .x-panel__body:hover{box-shadow:var(--el-box-shadow-lighter)}.x-panel--card.is-border{border:1px solid var(--el-border-color-light)}.x-panel--card.is-radius{border-radius:var(--el-border-radius-base)}.x-panel--card .x-panel__header{padding:0 5px 0 10px;background-color:var(--el-fill-color-lighter)}.x-panel--card.is-shadow-always,.x-panel--card.is-shadow-hover:hover{box-shadow:var(--el-box-shadow-lighter)}.x-panel__body.is-grow.is-overflow-auto{height:1px}.x-dialog{background-color:var(--el-bg-color);position:absolute;pointer-events:initial}.x-dialog.is-draggable>.x-panel__header{cursor:move}.x-dialog.is-maximized{width:100%!important;height:100%!important;left:0!important;top:0!important}.x-dialog.is-minimized{display:none}.x-dialog__wrapper{position:absolute;inset:0;pointer-events:none;overflow:hidden}.x-dialog__wrapper.is-minimized{display:none}.x-dialog__wrapper.is-dragging{user-select:none}.x-dialog__wrapper.is-dragging iframe{user-select:none;pointer-events:none}.x-dialog__modal{position:absolute;inset:0;background-color:var(--el-mask-color-extra-light);pointer-events:initial}.x-dialog__frame{width:100%;height:100%;display:block;border:none}.x-dialog.is-primary{border:2px solid var(--el-color-primary);border-top:none}.x-dialog.is-primary>.x-panel__header{background-color:var(--el-color-primary);color:var(--el-color-white)}.x-dialog.is-primary>.x-panel__header .x-header__content{color:var(--el-color-white)}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover{color:var(--el-color-white)}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover:hover.is-primary{background-color:#ffffff4d;opacity:1}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover:hover.is-danger{background-color:var(--el-color-danger);opacity:1}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover:hover.is-warning{background-color:var(--el-color-warning);opacity:1}.x-mask{--el-mask-brand-color: #0157fe;--el-mask-content-bg-color: var(--el-bg-color);--el-mask-topbar-bg-color: var(--el-fill-color-lighter);--el-mask-sidebar-bg-color: var(--el-fill-color-lighter);--el-mask-sidebar-border-color: var(--el-border-color-lighter);width:100%;height:100%;background-color:var(--el-mask-content-bg-color);overflow:hidden}.x-mask__content{height:1px;overflow:auto;padding:10px}.x-mask-brand{height:40px;overflow:hidden}.x-mask-brand__logo{height:26px;width:60px;text-align:center;cursor:pointer}.x-mask-brand__logo:hover{opacity:.7}.x-mask-brand__logo>img{height:100%}.x-mask-brand__title{font-size:16px;font-weight:700;color:var(--el-mask-brand-color);font-family:Microsoft YaHei,微软雅黑,Arial,sans-serif}.x-mask-brand__title>span{position:relative;transform:translate(-10px)}.x-mask-brand.is-collapsed .x-mask-brand__title{display:none}.x-mask-topbar{height:40px;background-color:var(--el-mask-topbar-bg-color);border-bottom:1px solid var(--el-mask-sidebar-border-color)}.x-mask-menu{--el-menu-bg-color: transparent;--el-menu-item-height: 36px;--el-menu-sub-item-height: 34px;--el-font-size-base: 14px;--el-menu-item-font-size: 14px;--el-menu-icon-width: 20px;--el-menu-base-level-padding: 10px;--el-menu-level-padding: 20px;width:100%;height:1px;overflow-x:hidden!important}.x-mask-menu::-webkit-scrollbar{width:2px!important}.x-mask-menu::-webkit-scrollbar-thumb{background:transparent!important}.x-mask-menu:hover::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1)!important}.x-mask-menu .el-menu .el-menu-item [class^=el-icon],.x-mask-menu .el-menu .el-sub-menu .el-icon{font-size:16px}.x-mask-menu .el-menu .el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;color:var(--el-text-color-secondary)}.x-mask-menu .el-menu .el-menu-item.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse{--el-menu-item-height: 50px;width:100%}.x-mask-menu .el-menu--collapse>.el-menu-item{flex-wrap:wrap;justify-content:center;position:relative;margin:5px;border-radius:var(--el-border-radius-base);align-items:center;text-align:center}.x-mask-menu .el-menu--collapse>.el-menu-item .x-menu__title{height:auto;width:auto;visibility:visible;font-size:12px;line-height:1;zoom:.9;position:absolute;left:0;bottom:10px;width:100%;text-align:center;color:var(--el-text-color-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.x-mask-menu .el-menu--collapse>.el-menu-item .el-menu-tooltip__trigger{width:100%;height:100%;display:block}.x-mask-menu .el-menu--collapse>.el-menu-item.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu--collapse>.el-menu-item.is-active .x-menu__title{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse>.el-sub-menu{margin:5px;border-radius:var(--el-border-radius-base)}.x-mask-menu .el-menu--collapse>.el-sub-menu>.el-sub-menu__title{width:100%;display:flex;border-radius:var(--el-border-radius-base);line-height:1;padding-left:0;padding-right:0}.x-mask-menu .el-menu--collapse>.el-sub-menu>.el-sub-menu__title>.x-menu__wrapper{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;height:100%;width:100%}.x-mask-menu .el-menu--collapse>.el-sub-menu>.el-sub-menu__title>.x-menu__wrapper .x-menu__title{font-size:12px;zoom:.9;left:0;bottom:10px;width:100%;text-align:center;display:block;position:relative;top:-5px;color:var(--el-text-color-secondary);overflow:hidden}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-active .x-menu__wrapper{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-active .x-menu__wrapper .x-menu__title{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-opened{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu--collapse .el-menu-item [class^=el-icon],.x-mask-menu .el-menu--collapse .el-sub-menu .el-icon{font-size:20px;margin-right:0}.x-mask-menu__favorites .el-sub-menu__title .x-icon{color:var(--el-color-warning)}.x-mask-menu__search .el-sub-menu__title .x-icon{color:var(--el-color-success)}.x-mask-menu-popper{--el-menu-item-height: 36px;--el-menu-sub-item-height: 34px;--el-font-size-base: 12px;--el-menu-item-font-size: 12px;--el-menu-icon-width: 20px;--el-menu-base-level-padding: 14px;max-height:calc(100% - 10px);overflow:auto}.x-mask-menu-popper .el-menu-item [class^=el-icon],.x-mask-menu-popper .el-sub-menu .el-icon{font-size:14px;margin-right:0}.x-mask-menu-popper .el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;color:var(--el-text-color-secondary)}.x-mask-menu-popper .el-menu-item.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu-popper .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-color-primary)}.x-mask-menu-popper::-webkit-scrollbar{width:2px!important}.x-mask-menu-popper::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1)!important}.x-mask-sidebar{width:200px;background-color:var(--el-mask-sidebar-bg-color)}.x-mask-sidebar:not(.is-resizing){transition:width .2s}.x-mask-sidebar__wrapper{position:relative;border-right:1px solid var(--el-mask-sidebar-border-color)}.x-mask-sidebar__wrapper>.el-divider{margin:0}.x-mask-sidebar__expander{padding:5px 0;width:100%;background-color:var(--el-mask-sidebar-border-color);text-align:center;cursor:pointer}.x-mask-sidebar__expander:hover{opacity:.7}.x-mask-sidebar__helper{position:absolute;width:8px;font-size:0;right:0;top:0;bottom:0;border-right:2px solid transparent}.x-mask-sidebar.is-resizing .x-mask-sidebar__helper{border-right:2px solid var(--el-color-primary)}.x-mask-sidebar.is-collapsed{width:60px}.x-mask-sidebar.is-collapsed .x-mask-avatar__wrapper{overflow:hidden;height:0;width:0;visibility:hidden}.x-mask-topbar{height:40px}.x-mask-tabs{width:1px}.x-mask-tabs .el-tabs{--el-tabs-header-height: 30px;--el-font-size-base: 12px;position:relative;left:-1px}.x-mask-tabs .el-tabs__header{margin:0;border-bottom:none!important}.x-mask-tabs .el-tabs__header .el-tabs__item.is-active{background-color:var(--el-bg-color)}.x-mask-tabs .el-tabs__header .x-icon{pointer-events:none}.x-mask-tabs .el-tabs__content{display:none}.x-mask-tabs__trigger{height:100%;display:flex;align-items:center}.x-mask-tabs__trigger>.x-icon+span{margin-left:5px}.x-mask-toolbar{padding-right:10px}.x-mask-toolbar>.x-action{margin:0 5px}.x-mask-toolbar__menu-item{position:relative;display:inline-block;padding-right:20px;width:100%}.x-mask-toolbar__menu-item .x-icon{position:absolute;right:-10px;top:50%;transform:translateY(-50%)}.x-mask-switch-bar{width:100%;height:40px;padding:10px 5px;border-top:1px solid var(--el-mask-sidebar-border-color);position:relative;top:-1px;box-sizing:border-box}.x-mask-switch-bar__left{width:1px;padding-right:5px}.x-mask-switch-bar__right.is-collasped{width:100%;padding-right:5px}.x-mask-switch-bar__switch{height:28px!important;line-height:1!important;width:60px!important;position:relative;display:block!important}.x-mask-switch-bar__switch .el-switch__core{--el-switch-off-color: var(--el-mask-content-bg-color);--el-switch-on-color: var(--el-mask-content-bg-color);border:1px solid var(--el-mask-sidebar-border-color)!important;height:28px;width:60px;border-radius:14px}.x-mask-switch-bar__switch .el-switch__core .el-switch__action{width:28px;height:24px;border-radius:14px;background-color:var(--el-color-primary-light-8)}.x-mask-switch-bar__switch .el-switch__label--left{position:absolute;top:6px;left:9px;z-index:1;margin-right:0;height:14px;color:var(--el-text-color-regular)}.x-mask-switch-bar__switch .el-switch__label--right{position:absolute;top:6px;right:9px;z-index:1;margin-right:0;height:14px;color:var(--el-text-color-regular)}.x-mask-switch-bar__switch .el-switch__label.is-active{color:var(--el-color-primary)}.x-mask-switch-bar__switch.is-checked .el-switch__core .el-switch__action{left:calc(100% - 29px)!important}.x-mask-switch-bar__input .el-input__wrapper{padding:0!important;border-radius:12px}.x-mask-switch-bar__input .el-input__prefix-inner>:last-child{margin-right:0;width:20px}.x-mask-switch-bar__input .el-input__suffix{cursor:pointer;transition:color .1s}.x-mask-switch-bar__input .el-input__suffix:hover{color:var(--el-color-warning)}.x-mask-switch-bar__input .el-input__suffix .x-icon{width:20px;margin-left:0!important}.x-mask-switch-bar__input .el-input__inner{height:28px!important}.x-mask-avatar{margin-left:5px}.x-mask-theme-switch.el-switch{--el-switch-on-color: var(--el-fill-color-dark);--el-switch-off-color: var(--el-fill-color-dark)}.x-mask-theme-switch .el-switch__core .el-switch__action{color:var(--el-text-color-regular)!important;background-color:var(--el-bg-color)!important}.x-field__info{position:absolute!important;right:0;cursor:pointer}.x-field__trigger{--color: getCssVar("color-error") !important;color:var(--el-color-error)!important}.x-field__editor{width:100%!important}.x-field__editor_wrap{flex-grow:1}.x-field.is-tooltip-outer.el-form-item--small .el-form-item__content{padding-right:16px}.x-field.is-tooltip-outer.el-form-item--default .el-form-item__content{padding-right:20px}.x-field.is-tooltip-outer.el-form-item--large .el-form-item__content{padding-right:24px}.x-field.is-tooltip-inner.el-form-item--small .x-field__info{right:5px}.x-field.is-tooltip-inner.el-form-item--default .x-field__info{right:8px}.x-field.is-tooltip-inner.el-form-item--large .x-field__info{right:10px}.x-form.el-form--inline>.x-field{margin-right:0}.x-tabs{--el-tabs-header-height: 30px !important;margin-bottom:10px}.x-tabs.is-no-border .el-tabs__nav-wrap:after{background-color:transparent}.x-tabs .el-tabs__header{margin-bottom:0}.x-tabs .el-tabs__item{padding:0 10px}.x-tabs.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{background:var(--el-bg-color)}.x-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:10px}.x-tabs__icon{margin-right:5px}.x-panel__body>.x-tabs{position:relative;top:-5px}.x-data-item__wrapper{font-size:14px;color:var(--el-text-color-primary);font-weight:700}.x-data-item__icon{margin-right:5px}.x-data-item__desc{font-size:12px;color:var(--el-text-color-regular)}.x-data-item__actions{padding:10px 0;text-align:right}.x-data-item__section+.x-data-item__section{margin-top:5px}.x-data-item.is-split+.x-data-item.is-split{padding-top:10px;border-top:1px solid var(--el-border-color-light)}.x-data-item.is-image-row .x-data-item__img{padding-right:10px}.x-data-item.is-image-column .x-data-item__img{padding-bottom:10px}.x-startup{height:100%;background-color:#ecf5ff;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative}.x-startup .brand{display:flex;justify-content:center;align-items:center}.x-startup .brand img{width:100px;height:100px;margin-right:20px}.x-startup h1{font-size:100px;font-weight:700;color:#0157fe;text-shadow:0 0 6px rgba(0,0,0,.3);margin:0;text-align:center;line-height:1}.x-startup h3{font-size:28px;color:#666;text-align:center}.x-startup .ba{position:absolute;height:30px;line-height:30px;text-align:center;bottom:0;width:100%;left:0}.x-startup .ba a{color:#b1b3b8}.x-startup .btn{text-align:center;padding-top:20px}.x-startup .btn button{width:200px}
|