iking-web-ui-pro 0.2.22 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKExpandCollapse/ik.index.es.js +77 -82
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +727 -745
- package/dist/IKPreviewFile/ik.index.umd.js +46 -46
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +41 -33
- package/dist/IKSearch/ik.index.umd.js +1 -1
- package/dist/IKSearch/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +125 -130
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +167 -159
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcess/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +659 -677
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +47 -47
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +112 -130
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +237 -242
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +73 -65
- package/dist/IkCalendar/ik.index.umd.js +1 -1
- package/dist/IkCalendar/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +78 -83
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +902 -920
- package/dist/IkDescription/ik.index.umd.js +45 -45
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +613 -631
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +45 -45
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +135 -140
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +378 -383
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1305 -1302
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +41 -33
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +687 -705
- package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2955 -2960
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +106 -111
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +69 -74
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +761 -779
- package/dist/IkUploadFile/ik.index.umd.js +45 -45
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +218 -223
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +7089 -7099
- package/dist/index.umd.js +89 -89
- package/dist/src/components/IkSvgIcon/index.d.ts +2 -6
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +2 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(b,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","vuedraggable"],e):(b=typeof globalThis<"u"?globalThis:b||self,e(b.index={},b.vue,b["iking-utils-pro"],b.vuedraggable))})(this,function(b,e,g,T){"use strict";const v=(a,h)=>{if(a.install=o=>{for(const t of[a,...Object.values(h??{})])o.component(t.name,t)},h)for(const[o,t]of Object.entries(h))a[o]=t;return a};/*! Element Plus Icons Vue v2.3.1 */var M=e.defineComponent({name:"DCaret",__name:"d-caret",setup(a){return(h,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),j=M;const x=(a,h)=>{const o=a.__vccOpts||a;for(const[t,u]of h)o[t]=u;return o},L={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},O={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},F=["xlink:href"],A=["src"],q={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},W=["xlink:href"],H=["src"],X=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},emits:["click"],setup(a,{emit:h}){const o=a,t=e.computed(()=>o),u=e.computed(()=>{const{name:l}=t.value;return/^http?:\/\//.test(l)?"img":/i-[^:]+:[^:]+/.test(l)?"unocss":l!=null&&l.startsWith("iksig")?"iksig":l!=null&&l.includes(":")?"iconify":l!=null&&l.startsWith("iksvg")?"svg":"i"}),i=e.computed(()=>{const l=[];if(t.value.flip)switch(t.value.flip){case"horizontal":l.push("rotateY(180deg)");break;case"vertical":l.push("rotateX(180deg)");break;case"both":l.push("rotateX(180deg)"),l.push("rotateY(180deg)");break}t.value.rotate&&l.push(`rotate(${t.value.rotate%360}deg)`);const p={...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...l.length&&{transform:l.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&u.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||g.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(p.width=p.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),p}),B=h,C=l=>{t.value.disabled||B("click",l)};return(l,p)=>{const _=e.resolveComponent("el-tooltip"),m=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",L,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,onClick:e.withModifiers(C,["stop"]),class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:u.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(i.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),u.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):u.value==="svg"?(e.openBlock(),e.createElementBlock("svg",O,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,F)])):u.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,A)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)):(e.openBlock(),e.createBlock(_,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:u.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:l.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),onClick:e.withModifiers(C,["stop"]),style:e.normalizeStyle(i.value)},[u.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):u.value==="svg"?(e.openBlock(),e.createElementBlock("svg",q,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,W)])):u.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,H)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(m,{key:1,type:["warning","error"].includes(t.value.type)?"danger":"",onClick:e.withModifiers(C,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),oe="",Y=v(x(X,[["__scopeId","data-v-4a1004b9"]])),E={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},R={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},G=e.defineComponent({__name:"IkDragList",props:R,emits:["change"],setup(a,{emit:h}){const o=a,t=h,u=e.ref([]);e.watch(()=>o.list,p=>{u.value=g._.cloneDeep(p)},{immediate:!0,deep:!0});const i=e.computed(()=>({...E,...o,itemStyle:{...E.itemStyle,...o.itemStyle}})),B=e.ref(!1),C=()=>{B.value=!0},l=p=>{B.value=!1;const _=o.list[p.oldIndex];t("change",u.value,{..._,oldIndex:p.oldIndex,newIndex:p.newIndex})};return(p,_)=>{const m=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(e.unref(T),{modelValue:u.value,"onUpdate:modelValue":_[0]||(_[0]=r=>u.value=r),class:e.normalizeClass(["list-group",[i.value.groupClass]]),tag:"ul",attrs:i.value,animation:i.value.animation,group:i.value.group,disabled:i.value.disabled,"ghost-class":i.value.ghostClass,"force-fallback":i.value.ghostClass,"item-key":"order",onStart:C,onEnd:l},{item:e.withCtx(({element:r})=>[e.createVNode(e.Transition,{type:"transition",name:"flip-list"},{default:e.withCtx(()=>[p.$slots.item?e.renderSlot(p.$slots,"item",{key:0,item:r},void 0,!0):(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(["list-group-item",[i.value.itemClass]]),style:e.normalizeStyle({borderRadius:`${i.value.itemStyle.radius}px`,marginBottom:`${i.value.itemStyle.bottom}px`,backgroundColor:`${i.value.itemStyle.background}`})},[i.value.showIcon&&!p.$slots.icon?(e.openBlock(),e.createBlock(m,{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(j))]),_:1})):e.renderSlot(p.$slots,"icon",{key:1},void 0,!0),e.createTextVNode(" "+e.toDisplayString(r.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),se="",J=v(x(G,[["__scopeId","data-v-3716c05e"]])),K=(a=>(e.pushScopeId("data-v-b5ed17ed"),a=a(),e.popScopeId(),a))(()=>e.createElementVNode("i",{class:"ik ik-shezhi"},null,-1)),Q={class:"check-right"},Z={class:"dialog-footer"},U=e.defineComponent({__name:"IkBtnSetting",props:e.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:a=>a,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["sort"],["update:modelValue"]),setup(a,{emit:h}){const o=a,t=h,u=e.useModel(a,"modelValue"),{t:i,dialog:B,path:C,user:l}=o.config,p=e.computed(()=>`${l==null?void 0:l.id}_${C}${o.tab!==""?`_${o.tab}`:""}`),_=e.ref([]),m=e.ref([]),r=e.ref([]),V=new Map,I=e.ref(!1),P=e.computed(()=>{const c=m.value.length&&m.value.length!==o.list.length;return!c&&m.value.length&&(I.value=!0),!!c}),N=c=>{var d;const n=g._.cloneDeep(r.value);n==null||n.forEach(s=>{var w;if(!m.value.length)r.value=[];else if(!m.value.includes(s==null?void 0:s.key)){const k=(w=r.value)==null?void 0:w.findIndex(f=>f.key===s.key);k!==-1&&r.value.splice(k,1),s.show=!1,V.set(s.key,s)}}),m.value.forEach(s=>{var k;if(((k=r.value)==null?void 0:k.findIndex(f=>(f==null?void 0:f.key)===s))===-1){const f=V.get(s);f&&(f.show=!0,r.value.push(f))}}),(d=r.value)!=null&&d.length||(r.value=g._.cloneDeep(o.list)),c===!0&&(t("sort",g._.cloneDeep(r.value)),u.value=g._.cloneDeep(r.value))},ee=c=>{if(c)m.value=o.list.map(n=>n.key);else{const n=o.list.find(d=>!d.key||d.label==="操作");m.value=n?[n.key]:[]}N()},z=()=>{const c=g.ikStore.local.getItem(p.value);try{const n=g._.cloneDeep(o==null?void 0:o.list);if((!c||!(c!=null&&c.length))&&g.ikStore.local.setItem(p.value,n.map(({show:d,type:s,key:w,label:k,width:f,minWidth:y,align:ae})=>({show:d,key:w,type:s,label:k,width:f,minWidth:y,align:ae}))),_.value=[...(n==null?void 0:n.map(d=>(V.set(d.key,d),{...d,show:d.show||!1})))||[]],c){const d=c.filter(s=>s.show).map(s=>s.key);m.value=[...d]}else{const d=_.value.filter(s=>s.show);m.value=d.map(s=>s.key)}N(!0)}catch(n){console.info("error: ",n)}};z(),e.watch(()=>o.list,()=>{z()},{deep:!0});const S=e.ref(!1),D=()=>{S.value=!0},te=c=>{r.value=c},le=()=>{S.value=!1,g.ikStore.local.setItem(p.value,r.value.map(({show:c,key:n,label:d,value:s,width:w,minWidth:k,align:f})=>({show:c,key:n,label:d,value:s,width:w,minWidth:k,align:f}))),t("sort",g._.cloneDeep(r.value)),u.value=g._.cloneDeep(r.value)};return(c,n)=>{const d=e.resolveComponent("el-button"),s=e.resolveComponent("el-checkbox"),w=e.resolveComponent("el-checkbox-group"),k=e.resolveComponent("el-dialog"),f=e.resolveDirective("role");return e.openBlock(),e.createElementBlock(e.Fragment,null,[a.btnType==="button"?e.withDirectives((e.openBlock(),e.createBlock(d,e.mergeProps({key:0},c.$attrs,{circle:a.circle,type:a.type,style:{minWidth:a.circle?"40px":"",minHeight:a.circle?"40px":""},onClick:D}),e.createSlots({icon:e.withCtx(()=>[K]),_:2},[a.circle?void 0:{name:"default",fn:e.withCtx(()=>[e.createCommentVNode(' {{ t("action.setting") }} '),e.createTextVNode(" "+e.toDisplayString(e.unref(i)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[f,c.$props.role]]):e.createCommentVNode("v-if",!0),a.btnType==="icon"?e.withDirectives((e.openBlock(),e.createBlock(e.unref(Y),e.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},c.$attrs,{onClick:D}),null,16)),[[f,c.$props.role]]):e.createCommentVNode("v-if",!0),e.createVNode(k,{modelValue:S.value,"onUpdate:modelValue":n[3]||(n[3]=y=>S.value=y),draggable:"",width:a.inline?e.unref(B).l:e.unref(B).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:z},{footer:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(d,{onClick:n[2]||(n[2]=y=>S.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("关闭"))+" ",1),e.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),e.createVNode(d,{type:"primary",disabled:r.value.length<2,onClick:le},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.length<2?"至少选择一个字段":e.unref(i)("确定")),1)]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["view-fields",[a.inline?null:"un-inline"]])},[e.createElementVNode("div",{style:e.normalizeStyle({flex:a.inline?2:1})},[e.createVNode(s,{modelValue:I.value,"onUpdate:modelValue":n[0]||(n[0]=y=>I.value=y),class:"single-line",indeterminate:P.value,onChange:ee},{default:e.withCtx(()=>[e.createTextVNode(" 全选 ")]),_:1},8,["modelValue","indeterminate"]),e.createVNode(w,{modelValue:m.value,"onUpdate:modelValue":n[1]||(n[1]=y=>m.value=y),onChange:N},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,y=>(e.openBlock(),e.createBlock(s,{key:y.key,disabled:!y.key,label:y.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),e.createElementVNode("div",Q,[e.createVNode(e.unref(J),{list:r.value,"item-style":{bottom:4},onChange:te},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),ce="",$=v(x(U,[["__scopeId","data-v-b5ed17ed"]]));b.IkBtnSetting=$,b.default=$,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","vuedraggable"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.index={},k.vue,k["iking-utils-pro"],k.vuedraggable))})(this,function(k,e,y,T){"use strict";const v=(a,g)=>{if(a.install=t=>{for(const c of[a,...Object.values(g??{})])t.component(c.name,c)},g)for(const[t,c]of Object.entries(g))a[t]=c;return a};/*! Element Plus Icons Vue v2.3.1 */var j=e.defineComponent({name:"DCaret",__name:"d-caret",setup(a){return(g,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),L=j;const x=(a,g)=>{const t=a.__vccOpts||a;for(const[c,d]of g)t[c]=d;return t},O={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},M={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},F=["xlink:href"],A=["src"],q={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},W=["xlink:href"],H=["src"],X=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(a){const g=a,t=e.computed(()=>g),c=e.computed(()=>{const{name:l}=t.value;return/^http?:\/\//.test(l)?"img":/i-[^:]+:[^:]+/.test(l)?"unocss":l!=null&&l.startsWith("iksig")?"iksig":l!=null&&l.includes(":")?"iconify":l!=null&&l.startsWith("iksvg")?"svg":"i"}),d=e.computed(()=>{const l=[];if(t.value.flip)switch(t.value.flip){case"horizontal":l.push("rotateY(180deg)");break;case"vertical":l.push("rotateX(180deg)");break;case"both":l.push("rotateX(180deg)"),l.push("rotateY(180deg)");break}t.value.rotate&&l.push(`rotate(${t.value.rotate%360}deg)`);const _={pointerEvents:t.value.disabled?"none":"auto",...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...l.length&&{transform:l.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&c.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||y.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(_.width=_.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),_});return(l,_)=>{const S=e.resolveComponent("el-tooltip"),w=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",O,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:c.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(d.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),c.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(d.value)},null,6)):c.value==="svg"?(e.openBlock(),e.createElementBlock("svg",M,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,F)])):c.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,A)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(d.value)},null,6))],6)):(e.openBlock(),e.createBlock(S,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:c.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:l.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(d.value)},[c.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(d.value)},null,6)):c.value==="svg"?(e.openBlock(),e.createElementBlock("svg",q,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,W)])):c.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,H)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(d.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(w,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),oe="",Y=v(x(X,[["__scopeId","data-v-52806adf"]])),E={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},R={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},G=e.defineComponent({__name:"IkDragList",props:R,emits:["change"],setup(a,{emit:g}){const t=a,c=g,d=e.ref([]);e.watch(()=>t.list,p=>{d.value=y._.cloneDeep(p)},{immediate:!0,deep:!0});const l=e.computed(()=>({...E,...t,itemStyle:{...E.itemStyle,...t.itemStyle}})),_=e.ref(!1),S=()=>{_.value=!0},w=p=>{_.value=!1;const B=t.list[p.oldIndex];c("change",d.value,{...B,oldIndex:p.oldIndex,newIndex:p.newIndex})};return(p,B)=>{const m=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(e.unref(T),{modelValue:d.value,"onUpdate:modelValue":B[0]||(B[0]=s=>d.value=s),class:e.normalizeClass(["list-group",[l.value.groupClass]]),tag:"ul",attrs:l.value,animation:l.value.animation,group:l.value.group,disabled:l.value.disabled,"ghost-class":l.value.ghostClass,"force-fallback":l.value.ghostClass,"item-key":"order",onStart:S,onEnd:w},{item:e.withCtx(({element:s})=>[e.createVNode(e.Transition,{type:"transition",name:"flip-list"},{default:e.withCtx(()=>[p.$slots.item?e.renderSlot(p.$slots,"item",{key:0,item:s},void 0,!0):(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(["list-group-item",[l.value.itemClass]]),style:e.normalizeStyle({borderRadius:`${l.value.itemStyle.radius}px`,marginBottom:`${l.value.itemStyle.bottom}px`,backgroundColor:`${l.value.itemStyle.background}`})},[l.value.showIcon&&!p.$slots.icon?(e.openBlock(),e.createBlock(m,{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(L))]),_:1})):e.renderSlot(p.$slots,"icon",{key:1},void 0,!0),e.createTextVNode(" "+e.toDisplayString(s.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),se="",J=v(x(G,[["__scopeId","data-v-3716c05e"]])),K=(a=>(e.pushScopeId("data-v-b5ed17ed"),a=a(),e.popScopeId(),a))(()=>e.createElementVNode("i",{class:"ik ik-shezhi"},null,-1)),Q={class:"check-right"},Z={class:"dialog-footer"},U=e.defineComponent({__name:"IkBtnSetting",props:e.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:a=>a,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["sort"],["update:modelValue"]),setup(a,{emit:g}){const t=a,c=g,d=e.useModel(a,"modelValue"),{t:l,dialog:_,path:S,user:w}=t.config,p=e.computed(()=>`${w==null?void 0:w.id}_${S}${t.tab!==""?`_${t.tab}`:""}`),B=e.ref([]),m=e.ref([]),s=e.ref([]),V=new Map,I=e.ref(!1),P=e.computed(()=>{const i=m.value.length&&m.value.length!==t.list.length;return!i&&m.value.length&&(I.value=!0),!!i}),N=i=>{var r;const o=y._.cloneDeep(s.value);o==null||o.forEach(n=>{var b;if(!m.value.length)s.value=[];else if(!m.value.includes(n==null?void 0:n.key)){const h=(b=s.value)==null?void 0:b.findIndex(u=>u.key===n.key);h!==-1&&s.value.splice(h,1),n.show=!1,V.set(n.key,n)}}),m.value.forEach(n=>{var h;if(((h=s.value)==null?void 0:h.findIndex(u=>(u==null?void 0:u.key)===n))===-1){const u=V.get(n);u&&(u.show=!0,s.value.push(u))}}),(r=s.value)!=null&&r.length||(s.value=y._.cloneDeep(t.list)),i===!0&&(c("sort",y._.cloneDeep(s.value)),d.value=y._.cloneDeep(s.value))},ee=i=>{if(i)m.value=t.list.map(o=>o.key);else{const o=t.list.find(r=>!r.key||r.label==="操作");m.value=o?[o.key]:[]}N()},z=()=>{const i=y.ikStore.local.getItem(p.value);try{const o=y._.cloneDeep(t==null?void 0:t.list);if((!i||!(i!=null&&i.length))&&y.ikStore.local.setItem(p.value,o.map(({show:r,type:n,key:b,label:h,width:u,minWidth:f,align:ae})=>({show:r,key:b,type:n,label:h,width:u,minWidth:f,align:ae}))),B.value=[...(o==null?void 0:o.map(r=>(V.set(r.key,r),{...r,show:r.show||!1})))||[]],i){const r=i.filter(n=>n.show).map(n=>n.key);m.value=[...r]}else{const r=B.value.filter(n=>n.show);m.value=r.map(n=>n.key)}N(!0)}catch(o){console.info("error: ",o)}};z(),e.watch(()=>t.list,()=>{z()},{deep:!0});const C=e.ref(!1),D=()=>{C.value=!0},te=i=>{s.value=i},le=()=>{C.value=!1,y.ikStore.local.setItem(p.value,s.value.map(({show:i,key:o,label:r,value:n,width:b,minWidth:h,align:u})=>({show:i,key:o,label:r,value:n,width:b,minWidth:h,align:u}))),c("sort",y._.cloneDeep(s.value)),d.value=y._.cloneDeep(s.value)};return(i,o)=>{const r=e.resolveComponent("el-button"),n=e.resolveComponent("el-checkbox"),b=e.resolveComponent("el-checkbox-group"),h=e.resolveComponent("el-dialog"),u=e.resolveDirective("role");return e.openBlock(),e.createElementBlock(e.Fragment,null,[a.btnType==="button"?e.withDirectives((e.openBlock(),e.createBlock(r,e.mergeProps({key:0},i.$attrs,{circle:a.circle,type:a.type,style:{minWidth:a.circle?"40px":"",minHeight:a.circle?"40px":""},onClick:D}),e.createSlots({icon:e.withCtx(()=>[K]),_:2},[a.circle?void 0:{name:"default",fn:e.withCtx(()=>[e.createCommentVNode(' {{ t("action.setting") }} '),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[u,i.$props.role]]):e.createCommentVNode("v-if",!0),a.btnType==="icon"?e.withDirectives((e.openBlock(),e.createBlock(e.unref(Y),e.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},i.$attrs,{onClick:D}),null,16)),[[u,i.$props.role]]):e.createCommentVNode("v-if",!0),e.createVNode(h,{modelValue:C.value,"onUpdate:modelValue":o[3]||(o[3]=f=>C.value=f),draggable:"",width:a.inline?e.unref(_).l:e.unref(_).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:z},{footer:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(r,{onClick:o[2]||(o[2]=f=>C.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("关闭"))+" ",1),e.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),e.createVNode(r,{type:"primary",disabled:s.value.length<2,onClick:le},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.length<2?"至少选择一个字段":e.unref(l)("确定")),1)]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["view-fields",[a.inline?null:"un-inline"]])},[e.createElementVNode("div",{style:e.normalizeStyle({flex:a.inline?2:1})},[e.createVNode(n,{modelValue:I.value,"onUpdate:modelValue":o[0]||(o[0]=f=>I.value=f),class:"single-line",indeterminate:P.value,onChange:ee},{default:e.withCtx(()=>[e.createTextVNode(" 全选 ")]),_:1},8,["modelValue","indeterminate"]),e.createVNode(b,{modelValue:m.value,"onUpdate:modelValue":o[1]||(o[1]=f=>m.value=f),onChange:N},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,f=>(e.openBlock(),e.createBlock(n,{key:f.key,disabled:!f.key,label:f.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),e.createElementVNode("div",Q,[e.createVNode(e.unref(J),{list:s.value,"item-style":{bottom:4},onChange:te},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),ce="",$=v(x(U,[["__scopeId","data-v-b5ed17ed"]]));k.IkBtnSetting=$,k.default=$,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-52806adf]{display:flex}.ik-svg-icon.ik-icon-span[data-v-52806adf]:not(:first-child){margin-left:var(--ik-margin-s-12)}.ghost[data-v-3716c05e]{opacity:.9;background:var(--el-color-primary)!important;color:var(--el-color-white)}.list-group[data-v-3716c05e]{height:100%;width:100%;color:var(--el-text-color-regular);transition:all .25s}.list-group-item[data-v-3716c05e]{cursor:move;border-radius:4px;background:var(--el-color-primary-light-9);margin-bottom:var(--base-m);padding:var(--base-p);-webkit-user-select:none;user-select:none;display:flex;align-items:center}.list-group-item[data-v-3716c05e]:hover{background:var(--el-color-primary-light-7)!important}.list-group-item i[data-v-3716c05e]{margin-right:calc(var(--base-m) / 2);cursor:pointer}.view-fields.un-inline .el-checkbox[data-v-b5ed17ed]{width:100%;background:var(--ik-sub-sidebar-menu-bg);margin:2px 0;padding:8px;border-radius:4px;height:37px}.view-fields[data-v-b5ed17ed]{display:flex;justify-content:space-between;max-height:55vh;overflow-y:auto;overflow-x:hidden}.view-fields .check-right[data-v-b5ed17ed]{margin-top:37px}.view-fields .single-line[data-v-b5ed17ed]{background-color:transparent!important}.view-fields>div[data-v-b5ed17ed]:nth-child(1){padding-right:8px;flex:2;border-right:1px solid var(--el-border-color)}.view-fields>div[data-v-b5ed17ed]:nth-child(2){flex:1;margin-left:8px}.view-fields>div:nth-child(2) .field-sort[data-v-b5ed17ed]{cursor:move;padding:calc(var(--base-p) / 2);color:var(--el-text-color-regular)}.view-fields .el-checkbox[data-v-b5ed17ed]{width:195px;margin-right:0}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as re, openBlock as w, createElementBlock as T, createElementVNode as _, h as Bt, Fragment as
|
|
1
|
+
import { defineComponent as re, openBlock as w, createElementBlock as T, createElementVNode as _, h as Bt, Fragment as X, Teleport as mo, resolveComponent as zt, createBlock as Q, toDisplayString as G, createCommentVNode as j, computed as Z, ref as $, unref as R, withCtx as N, createTextVNode as Ae, renderList as fe, createVNode as x, normalizeClass as Vn, pushScopeId as ln, popScopeId as on, useCssVars as vo, watch as Re, toRef as yo, reactive as jn, nextTick as zn, watchEffect as Jr, withModifiers as ye, normalizeStyle as ss, withDirectives as Ct, vShow as bo } from "vue";
|
|
2
2
|
import { _ as be, ikStore as ls, ikEvent as Ao, ikDate as Te } from "iking-utils-pro";
|
|
3
3
|
import { ElCheckbox as st, ElCheckboxGroup as lr, ElRadioGroup as or, ElRadio as ar, ElDialog as os, ElButton as ft, ElInput as Wn, ElBreadcrumb as Eo, ElBreadcrumbItem as So, vLoading as _n, ElIcon as Je, ElForm as _o, ElFormItem as Rt, ElSelect as wo, ElOption as Kr, ElDatePicker as Ke, ElTimePicker as ei, ElMessageBox as Do, ElMessage as Co } from "element-plus";
|
|
4
4
|
import Ro from "axios";
|
|
@@ -307,8 +307,8 @@ function cr(n, e, t, r, i, s, l, o, a) {
|
|
|
307
307
|
O.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
308
308
|
else {
|
|
309
309
|
if (O.getDerivedStateFromProps == null && m !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, b), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, b) === !1 || e.__v === t.__v) {
|
|
310
|
-
for (e.__v !== t.__v && (c.props = m, c.state = c.__s, c.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(
|
|
311
|
-
|
|
310
|
+
for (e.__v !== t.__v && (c.props = m, c.state = c.__s, c.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(J) {
|
|
311
|
+
J && (J.__ = e);
|
|
312
312
|
}), D = 0; D < c._sb.length; D++)
|
|
313
313
|
c.__h.push(c._sb[D]);
|
|
314
314
|
c._sb = [], c.__h.length && l.push(c);
|
|
@@ -330,8 +330,8 @@ function cr(n, e, t, r, i, s, l, o, a) {
|
|
|
330
330
|
} else
|
|
331
331
|
s == null && e.__v === t.__v ? (e.__k = t.__k, e.__e = t.__e) : e.__e = Wo(t.__e, e, t, r, i, s, l, a);
|
|
332
332
|
(d = k.diffed) && d(e);
|
|
333
|
-
} catch (
|
|
334
|
-
e.__v = null, (a || s != null) && (e.__e = o, e.__h = !!a, s[s.indexOf(o)] = null), k.__e(
|
|
333
|
+
} catch (J) {
|
|
334
|
+
e.__v = null, (a || s != null) && (e.__e = o, e.__h = !!a, s[s.indexOf(o)] = null), k.__e(J, e, t);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
function As(n, e) {
|
|
@@ -4673,8 +4673,8 @@ function Jd(n, e, t, r) {
|
|
|
4673
4673
|
}
|
|
4674
4674
|
let L = i.eventStore;
|
|
4675
4675
|
for (let B of A.allows) {
|
|
4676
|
-
let U = Object.assign(Object.assign({}, t), { range: h.range, allDay: b.allDay }), O = L.defs[b.defId],
|
|
4677
|
-
if (O ? ie = new q(e, O,
|
|
4676
|
+
let U = Object.assign(Object.assign({}, t), { range: h.range, allDay: b.allDay }), O = L.defs[b.defId], J = L.instances[v], ie;
|
|
4677
|
+
if (O ? ie = new q(e, O, J) : ie = new q(e, b), !B(Rr(U, e), ie))
|
|
4678
4678
|
return !1;
|
|
4679
4679
|
}
|
|
4680
4680
|
}
|
|
@@ -6697,7 +6697,7 @@ const jf = {
|
|
|
6697
6697
|
return Bt("div", {
|
|
6698
6698
|
// when renderId is changed, Vue will trigger a real-DOM async rerender, calling beforeUpdate/updated
|
|
6699
6699
|
attrs: { "data-fc-render-id": this.renderId }
|
|
6700
|
-
}, Bt(
|
|
6700
|
+
}, Bt(X, n));
|
|
6701
6701
|
},
|
|
6702
6702
|
mounted() {
|
|
6703
6703
|
const n = new Du();
|
|
@@ -8163,10 +8163,10 @@ class Fh extends z {
|
|
|
8163
8163
|
null,
|
|
8164
8164
|
this.renderHiddenGroups(D, e),
|
|
8165
8165
|
b.map((E) => {
|
|
8166
|
-
let { seg: L, rect: B } = E, U = L.eventRange.instance.instanceId, O = m || !!(!t[U] && B),
|
|
8166
|
+
let { seg: L, rect: B } = E, U = L.eventRange.instance.instanceId, O = m || !!(!t[U] && B), J = Un(B && B.span), ie = !m && B ? this.computeSegHStyle(B) : { left: 0, right: 0 }, mn = !!B && B.stackForward > 0, Xe = !!B && B.span.end - B.span.start < a;
|
|
8167
8167
|
return g(
|
|
8168
8168
|
"div",
|
|
8169
|
-
{ className: "fc-timegrid-event-harness" + (mn ? " fc-timegrid-event-harness-inset" : ""), key: l || U, style: Object.assign(Object.assign({ visibility: O ? "" : "hidden" },
|
|
8169
|
+
{ className: "fc-timegrid-event-harness" + (mn ? " fc-timegrid-event-harness-inset" : ""), key: l || U, style: Object.assign(Object.assign({ visibility: O ? "" : "hidden" }, J), ie) },
|
|
8170
8170
|
g(Zl, Object.assign({ seg: L, isDragging: r, isResizing: i, isDateSelecting: s, isSelected: U === u, isShort: Xe }, Oe(L, v, h)))
|
|
8171
8171
|
);
|
|
8172
8172
|
})
|
|
@@ -9663,7 +9663,7 @@ const le = /* @__PURE__ */ pe(fg, [["__scopeId", "data-v-4069f4f8"]]), zr = "dat
|
|
|
9663
9663
|
h || o("handChild", v);
|
|
9664
9664
|
};
|
|
9665
9665
|
return (v, h) => (w(), T(
|
|
9666
|
-
|
|
9666
|
+
X,
|
|
9667
9667
|
null,
|
|
9668
9668
|
[
|
|
9669
9669
|
j(" 遍历list多选 "),
|
|
@@ -9690,7 +9690,7 @@ const le = /* @__PURE__ */ pe(fg, [["__scopeId", "data-v-4069f4f8"]]), zr = "dat
|
|
|
9690
9690
|
}, {
|
|
9691
9691
|
default: N(() => [
|
|
9692
9692
|
(w(!0), T(
|
|
9693
|
-
|
|
9693
|
+
X,
|
|
9694
9694
|
null,
|
|
9695
9695
|
fe(v.list, (m) => {
|
|
9696
9696
|
var A;
|
|
@@ -9793,7 +9793,7 @@ const le = /* @__PURE__ */ pe(fg, [["__scopeId", "data-v-4069f4f8"]]), zr = "dat
|
|
|
9793
9793
|
}, {
|
|
9794
9794
|
default: N(() => [
|
|
9795
9795
|
(w(!0), T(
|
|
9796
|
-
|
|
9796
|
+
X,
|
|
9797
9797
|
null,
|
|
9798
9798
|
fe(v.list, (m) => {
|
|
9799
9799
|
var A;
|
|
@@ -9960,7 +9960,7 @@ const zg = /* @__PURE__ */ pe(jg, [["__scopeId", "data-v-f7a5199f"]]), Gr = (n)
|
|
|
9960
9960
|
o("change", u, t.list);
|
|
9961
9961
|
};
|
|
9962
9962
|
return (u, v) => (w(), T(
|
|
9963
|
-
|
|
9963
|
+
X,
|
|
9964
9964
|
null,
|
|
9965
9965
|
[
|
|
9966
9966
|
j(" 遍历list多选 "),
|
|
@@ -9987,7 +9987,7 @@ const zg = /* @__PURE__ */ pe(jg, [["__scopeId", "data-v-f7a5199f"]]), Gr = (n)
|
|
|
9987
9987
|
}, {
|
|
9988
9988
|
default: N(() => [
|
|
9989
9989
|
(w(!0), T(
|
|
9990
|
-
|
|
9990
|
+
X,
|
|
9991
9991
|
null,
|
|
9992
9992
|
fe(u.list, (h) => (w(), T("li", {
|
|
9993
9993
|
key: h[t.fixPropOpt.id]
|
|
@@ -10049,7 +10049,7 @@ const zg = /* @__PURE__ */ pe(jg, [["__scopeId", "data-v-f7a5199f"]]), Gr = (n)
|
|
|
10049
10049
|
}, {
|
|
10050
10050
|
default: N(() => [
|
|
10051
10051
|
(w(!0), T(
|
|
10052
|
-
|
|
10052
|
+
X,
|
|
10053
10053
|
null,
|
|
10054
10054
|
fe(u.list, (h) => (w(), T("li", {
|
|
10055
10055
|
class: "w-full",
|
|
@@ -10180,7 +10180,7 @@ const sm = /* @__PURE__ */ pe(im, [["__scopeId", "data-v-e03f0d36"]]), Qr = (n)
|
|
|
10180
10180
|
o("change", u, t.list);
|
|
10181
10181
|
};
|
|
10182
10182
|
return (u, v) => (w(), T(
|
|
10183
|
-
|
|
10183
|
+
X,
|
|
10184
10184
|
null,
|
|
10185
10185
|
[
|
|
10186
10186
|
j(" 遍历list多选 "),
|
|
@@ -10207,7 +10207,7 @@ const sm = /* @__PURE__ */ pe(im, [["__scopeId", "data-v-e03f0d36"]]), Qr = (n)
|
|
|
10207
10207
|
}, {
|
|
10208
10208
|
default: N(() => [
|
|
10209
10209
|
(w(!0), T(
|
|
10210
|
-
|
|
10210
|
+
X,
|
|
10211
10211
|
null,
|
|
10212
10212
|
fe(u.list, (h) => (w(), T("li", {
|
|
10213
10213
|
key: h[u.fixPropOpt.id]
|
|
@@ -10264,7 +10264,7 @@ const sm = /* @__PURE__ */ pe(im, [["__scopeId", "data-v-e03f0d36"]]), Qr = (n)
|
|
|
10264
10264
|
}, {
|
|
10265
10265
|
default: N(() => [
|
|
10266
10266
|
(w(!0), T(
|
|
10267
|
-
|
|
10267
|
+
X,
|
|
10268
10268
|
null,
|
|
10269
10269
|
fe(u.list, (h) => (w(), T("li", {
|
|
10270
10270
|
class: "w-full",
|
|
@@ -10602,9 +10602,9 @@ const Dm = {
|
|
|
10602
10602
|
emits: ["handChild", "update:show", "update:modelValue", "ok", "search"],
|
|
10603
10603
|
setup(n, { expose: e, emit: t }) {
|
|
10604
10604
|
vo((S) => ({
|
|
10605
|
-
|
|
10605
|
+
"204e6f3a": Zr.value
|
|
10606
10606
|
}));
|
|
10607
|
-
const r = n, i = $(""), s = $(""), l = $([]), o = $([]), a = $([]), d = $([]), c = $(!1), p = Z(() =>
|
|
10607
|
+
const r = n, i = $(""), s = $(""), l = $([]), o = $([]), a = $([]), d = $([]), c = $(!1), p = Z(() => J.value.includes("user") ? o.value.concat(l.value) : o.value);
|
|
10608
10608
|
Re(
|
|
10609
10609
|
() => r.api,
|
|
10610
10610
|
() => {
|
|
@@ -10693,7 +10693,7 @@ const Dm = {
|
|
|
10693
10693
|
len: S.length
|
|
10694
10694
|
}
|
|
10695
10695
|
};
|
|
10696
|
-
}),
|
|
10696
|
+
}), J = Z(() => {
|
|
10697
10697
|
const S = r.chooseType.map((I) => I.toLocaleLowerCase());
|
|
10698
10698
|
let C = [...S];
|
|
10699
10699
|
return S.includes("dep") && (C = [...C, "dept"]), S.includes("dep_user") && (C = [...C, "user"]), C;
|
|
@@ -10849,7 +10849,7 @@ const Dm = {
|
|
|
10849
10849
|
};
|
|
10850
10850
|
e({ handClear: Ue, handRomeve: qr, handDelete: Be });
|
|
10851
10851
|
const co = Z(() => {
|
|
10852
|
-
const S =
|
|
10852
|
+
const S = J.value;
|
|
10853
10853
|
return !!((S.includes("post") || S.includes("role")) && S.length > 1);
|
|
10854
10854
|
}), uo = Z(() => [
|
|
10855
10855
|
{ name: "group", label: "组织架构" },
|
|
@@ -10972,7 +10972,7 @@ const Dm = {
|
|
|
10972
10972
|
}, {
|
|
10973
10973
|
default: N(() => [
|
|
10974
10974
|
(w(!0), T(
|
|
10975
|
-
|
|
10975
|
+
X,
|
|
10976
10976
|
null,
|
|
10977
10977
|
fe(uo.value, (V) => (w(), Q(I, {
|
|
10978
10978
|
label: V.label,
|
|
@@ -10988,38 +10988,46 @@ const Dm = {
|
|
|
10988
10988
|
}, 8, ["modelValue"])) : j("v-if", !0)
|
|
10989
10989
|
]),
|
|
10990
10990
|
j(" 过滤 "),
|
|
10991
|
-
Le.value === R(ut).group ? (w(), T(
|
|
10992
|
-
|
|
10993
|
-
|
|
10994
|
-
|
|
10995
|
-
|
|
10996
|
-
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
10991
|
+
Le.value === R(ut).group ? (w(), T(
|
|
10992
|
+
X,
|
|
10993
|
+
{ key: 0 },
|
|
10994
|
+
[
|
|
10995
|
+
Yr.value ? (w(), T("div", km, [
|
|
10996
|
+
j(" 面包屑 全选 "),
|
|
10997
|
+
x(R(Eo), {
|
|
10998
|
+
separator: ">",
|
|
10999
|
+
class: Vn(["banner", { "top-unlink": !S.topLink }])
|
|
11000
|
+
}, {
|
|
11001
|
+
default: N(() => [
|
|
11002
|
+
(w(!0), T(
|
|
11003
|
+
X,
|
|
11004
|
+
null,
|
|
11005
|
+
fe(R(A), (V, me) => (w(), Q(R(So), {
|
|
11006
|
+
key: V[f.value.id],
|
|
11007
|
+
onClick: ye((Sn) => so(V, me), ["stop"])
|
|
11008
|
+
}, {
|
|
11009
|
+
default: N(() => [
|
|
11010
|
+
Ae(
|
|
11011
|
+
G(V[f.value.name]),
|
|
11012
|
+
1
|
|
11013
|
+
/* TEXT */
|
|
11014
|
+
)
|
|
11015
|
+
]),
|
|
11016
|
+
_: 2
|
|
11017
|
+
/* DYNAMIC */
|
|
11018
|
+
}, 1032, ["onClick"]))),
|
|
11019
|
+
128
|
|
11020
|
+
/* KEYED_FRAGMENT */
|
|
11021
|
+
))
|
|
11022
|
+
]),
|
|
11023
|
+
_: 1
|
|
11024
|
+
/* STABLE */
|
|
11025
|
+
}, 8, ["class"])
|
|
11026
|
+
])) : j("v-if", !0)
|
|
11027
|
+
],
|
|
11028
|
+
64
|
|
11029
|
+
/* STABLE_FRAGMENT */
|
|
11030
|
+
)) : j("v-if", !0),
|
|
11023
11031
|
j(" 左侧列表 "),
|
|
11024
11032
|
j(" 组织架构 "),
|
|
11025
11033
|
Le.value === R(ut).group ? Ct((w(), Q(zg, {
|
|
@@ -11033,13 +11041,13 @@ const Dm = {
|
|
|
11033
11041
|
imageBaseUrl: r.imageBaseUrl,
|
|
11034
11042
|
emptyText: r.emptyText,
|
|
11035
11043
|
children: r.children,
|
|
11036
|
-
"choose-type":
|
|
11044
|
+
"choose-type": J.value,
|
|
11037
11045
|
onHandChild: io,
|
|
11038
11046
|
onChange: ho
|
|
11039
11047
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
|
|
11040
11048
|
[R(_n), c.value]
|
|
11041
11049
|
]) : Le.value === R(ut).role ? (w(), T(
|
|
11042
|
-
|
|
11050
|
+
X,
|
|
11043
11051
|
{ key: 2 },
|
|
11044
11052
|
[
|
|
11045
11053
|
j(" 角色 "),
|
|
@@ -11052,7 +11060,7 @@ const Dm = {
|
|
|
11052
11060
|
"hand-list": An.value,
|
|
11053
11061
|
imageBaseUrl: r.imageBaseUrl,
|
|
11054
11062
|
emptyText: r.emptyText,
|
|
11055
|
-
"choose-type":
|
|
11063
|
+
"choose-type": J.value,
|
|
11056
11064
|
onChange: po
|
|
11057
11065
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
11058
11066
|
[R(_n), c.value]
|
|
@@ -11061,7 +11069,7 @@ const Dm = {
|
|
|
11061
11069
|
64
|
|
11062
11070
|
/* STABLE_FRAGMENT */
|
|
11063
11071
|
)) : Le.value === R(ut).post ? (w(), T(
|
|
11064
|
-
|
|
11072
|
+
X,
|
|
11065
11073
|
{ key: 3 },
|
|
11066
11074
|
[
|
|
11067
11075
|
j(" 岗位 "),
|
|
@@ -11074,7 +11082,7 @@ const Dm = {
|
|
|
11074
11082
|
"hand-list": En.value,
|
|
11075
11083
|
imageBaseUrl: r.imageBaseUrl,
|
|
11076
11084
|
emptyText: r.emptyText,
|
|
11077
|
-
"choose-type":
|
|
11085
|
+
"choose-type": J.value,
|
|
11078
11086
|
onChange: go
|
|
11079
11087
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
11080
11088
|
[R(_n), c.value]
|
|
@@ -11103,7 +11111,7 @@ const Dm = {
|
|
|
11103
11111
|
]),
|
|
11104
11112
|
_("ul", Nm, [
|
|
11105
11113
|
(w(!0), T(
|
|
11106
|
-
|
|
11114
|
+
X,
|
|
11107
11115
|
null,
|
|
11108
11116
|
fe(v.value, (V) => (w(), T("li", Bm, [
|
|
11109
11117
|
_("div", Hm, [
|
|
@@ -11273,8 +11281,8 @@ const wt = (n) => (ln("data-v-1fa0e0e1"), n = n(), on(), n), Qm = { class: "demo
|
|
|
11273
11281
|
const { success: E, data: L } = D;
|
|
11274
11282
|
if (!E)
|
|
11275
11283
|
return;
|
|
11276
|
-
const { departments: B, users: U, roles: O, posts:
|
|
11277
|
-
o.depList = B, o.userList = U, o.roleList = O, o.postList =
|
|
11284
|
+
const { departments: B, users: U, roles: O, posts: J } = L;
|
|
11285
|
+
o.depList = B, o.userList = U, o.roleList = O, o.postList = J;
|
|
11278
11286
|
});
|
|
11279
11287
|
}).catch((b) => {
|
|
11280
11288
|
console.info("error: ", b);
|
|
@@ -11586,7 +11594,7 @@ const wt = (n) => (ln("data-v-1fa0e0e1"), n = n(), on(), n), Qm = { class: "demo
|
|
|
11586
11594
|
onClick: ye(f, ["stop"])
|
|
11587
11595
|
}, [
|
|
11588
11596
|
o.form.personList.length ? (w(!0), T(
|
|
11589
|
-
|
|
11597
|
+
X,
|
|
11590
11598
|
{ key: 1 },
|
|
11591
11599
|
fe(o.form.personList, (b, D) => (w(), T("div", {
|
|
11592
11600
|
key: D,
|