@yuuuu_ovo/ci-web-plugins-commom 2.0.22 → 2.0.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.
@@ -1 +1 @@
1
- import{ref as e,computed as t,onMounted as a,resolveComponent as l,createElementBlock as o,openBlock as n,normalizeClass as s,createElementVNode as r,toDisplayString as i,createVNode as d,withCtx as m,createCommentVNode as c,createBlock as u,createTextVNode as f,withModifiers as p}from"vue";const y={class:"header-dropdown-title"},v={style:{display:"flex"}},g={style:{display:"flex"}},b={style:{display:"flex"}},x={style:{display:"flex"}},h={style:{display:"flex"}},C={style:{display:"flex"}},k={style:{display:"flex"}},R={style:{display:"flex"}},_={class:"menu-trigger-wrapper"},w={style:{display:"flex"}},B={class:"menu-trigger-wrapper"},S={style:{display:"flex"}},z={class:"menu-trigger-wrapper"},D={style:{display:"flex"}},F={style:{display:"flex"}},E={style:{display:"flex"}},I={style:{display:"flex"}},P={style:{display:"flex"}},T={style:{display:"flex"}};var V={__name:"index",props:{onImport:Function,onExport:Function,onAsc:Function,onDesc:Function,onFullscreen:Function,onPrint:Function,onCustom:Function,onAll:Function,onIndividual:Function,refreshCustom:Function,searchCustom:Function,tableRef:{type:Object,default:null},title:{type:String,default:null},compact:{type:Boolean,default:!1},column:{type:Object,default:null},headerConfig:{type:Object,import:{type:Boolean,default:!1},export:{type:Boolean,default:!1},lineHeight:{type:Boolean,default:!1},custom:{type:Boolean,default:!1},resetCustom:{type:Boolean,default:!1},save:{type:Boolean,default:!1},feedback:{type:Boolean,default:!1},chart:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},print:{type:Boolean,default:!1},lock:{type:Boolean,default:!1},unlock:{type:Boolean,default:!1}}},setup(V){const N=V,O=e(!1),H=e(36),L=e(!1),A=e(!0),j=e("mini");e(null),t((()=>!!N.onExport||!!N.tableRef));const J=()=>N.tableRef?.vxeTableProRef||null,M=e=>{const t=J();t?N.tableRef.resetCustomColumns?N.tableRef.resetCustomColumns(e):t.resetCustom(e):console.warn("无法重置列:缺少 tableRef 或 vxeTableProRef")},U=()=>{const e=document.getElementsByClassName(N.column.field);console.log(e);const t=document.getElementsByClassName(""+("dropdownRight"+N.column.field));e[0].style.opacity=1,t[0].style.borderLeft=N.compact?"0px solid #ddd":"1px solid #ddd"},K=()=>{if(0==O.value){const e=document.getElementsByClassName(N.column.field),t=document.getElementsByClassName(""+("dropdownRight"+N.column.field));e[0].style.opacity=0,t[0].style.borderLeft="0px solid #ddd"}},$=e=>{O.value=e;const t=document.getElementsByClassName("dropdown-trigger-icon"),a=document.getElementsByClassName(""+("dropdownRight"+N.column.field));1==e?(t[0].style.opacity=1,a[0].style.borderLeft=N.compact?"0px solid #ddd":"1px solid #ddd"):(t[0].style.opacity=0,a[0].style.borderLeft="0px solid #ddd")},q=e(null),G=(e,t)=>{switch(e){case"import":N.onImport?N.onImport():N.tableRef?.openImport?N.tableRef.openImport():console.warn("无法导入:缺少 tableRef 或 openImport 方法");break;case"export":N.onExport?N.onExport():N.tableRef?.exportData?N.tableRef.exportData({filename:"表格数据",sheetName:"Sheet1",type:"csv"}):(console.warn("无法导出:缺少 tableRef 或 exportData 方法"),ElMessage?.warning?.("导出失败:表格实例不可用"));break;case"asc":N.onAsc?.();break;case"desc":N.onDesc?.();break;case"fullscreen":N.tableRef?N.tableRef.toggleFullscreen():console.warn("无法导出:缺少 tableRef 或 exportData 方法");break;case"print":N.onPrint?N.onPrint():(()=>{const e=J();e?.openPrint?e.openPrint():console.warn("无法打印:缺少 vxeTableProRef 或 openPrint 方法")})();break;case"custom":N.onCustom?N.onCustom():(e=>{const t=J();t?.openCustom?t.openCustom(e):t?.customOpenEvent?t.customOpenEvent(e):console.warn("无法打开列设置:缺少 vxeTableProRef 或 openCustom 方法")})(t);break;case"resetCustom":M(!0);break;case"save":Y();break;case"lineHeight":q.value?.handleOpen();break;case"refreshCustom":N.refreshCustom?N.refreshCustom(ne()):M(!0);break;case"searchCustom":N.searchCustom&&N.searchCustom();break;case"lock":J()?.setColumnFixed?.(N.column.field,"left");break;case"unlock":J()?.clearColumnFixed?.(N.column.field)}},Q=(e,t)=>{switch(e){case"cellStyle":oe();break;case"stripeStyle":re();break;case"smallStyle":Z();break;case"mediumStyle":ee();break;case"miniStyle":te();break;case"largeStyle":ae();break;case"local":defaultlocal();break;case"individual":let e=W();var a=X();e.basicConfig=a,N.onIndividual?.(ne(),e);break;case"all":let t=W();var l=X();t.basicConfig=l,N.onAll?.(ne(),t)}},W=()=>N.tableRef?.getCurrentCustomStoreData?N.tableRef.getCurrentCustomStoreData():J()?.getCustomStoreData?.()||{},X=()=>{try{return JSON.parse(localStorage.getItem(ne())||"{}")}catch{return{}}},Y=()=>{if(!N.tableRef?.saveToLocalStorage)return void console.warn("无法保存布局:缺少 tableRef 或 saveToLocalStorage 方法");const e=W();e.basicConfig=X(),N.tableRef.saveToLocalStorage(ne(),e)},Z=e=>{N.tableRef?(j.value="small",se(),N.tableRef.sizeBool("small")):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},ee=e=>{N.tableRef?(j.value="medium",se(),N.tableRef.sizeBool("medium")):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},te=e=>{N.tableRef?(j.value="mini",se(),N.tableRef.sizeBool("mini")):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},ae=e=>{N.tableRef?(N.tableRef.sizeBool("default"),j.value="default",se()):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},le=e=>{N.tableRef?(N.tableRef.changelineHeight(e),se()):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},oe=e=>{if(N.tableRef){const t="boolean"==typeof e?e:A.value;N.tableRef.borderBool(t),se()}else console.warn("无法导出:缺少 tableRef 或 exportData 方法")},ne=()=>N.tableRef?.tableStorageKey||N.tableRef?.vxeTableProRef?.id||"VxeTablePro",se=()=>{localStorage.setItem(ne(),JSON.stringify({border:A.value,lineHeight:H.value,stripe:L.value,cellStyle:j.value}))},re=e=>{if(N.tableRef){const t="boolean"==typeof e?e:L.value;N.tableRef.scriptBool(t),se()}else console.warn("无法导出:缺少 tableRef 或 exportData 方法")},ie=()=>{try{const t=ne(),a=N.tableRef?.vxeTableProRef?.id||"",l=localStorage.getItem(t)||(a?localStorage.getItem(a):"");if(l){var e=JSON.parse(l);setTimeout((()=>{A.value=!!e?.border,L.value=!!e.stripe,j.value=e.cellStyle||"default",H.value=e.lineHeight||36,N.tableRef.scriptBool(L.value),N.tableRef.borderBool(A.value),N.tableRef.changelineHeight(H.value),N.tableRef.sizeBool(j.value)}),100)}}catch(e){}};return a((()=>{ie()})),(e,t)=>{const a=l("vxe-icon"),O=l("el-dropdown-item"),j=l("el-input-number"),J=l("el-dropdown-menu"),M=l("el-dropdown"),W=l("el-checkbox");return n(),o("div",{class:s(["header-dropdown",{"header-dropdown--compact":N.compact}])},[r("span",y,i(V.title),1),r("div",{class:s("dropdownRight "+("dropdownRight"+N.column.field)),onMouseleave:K,onMouseenter:U},[d(M,{ref_key:"dropdown",ref:q,size:"default",trigger:"click",onCommand:G,onVisibleChange:$},{dropdown:m((()=>[d(J,null,{default:m((()=>[c(" 导入 "),N.headerConfig.import?(n(),u(O,{key:0,command:"import"},{default:m((()=>[r("div",v,[d(a,{name:"upload",size:"16"}),t[6]||(t[6]=r("div",{style:{"margin-top":"-3px"}},"导入",-1))])])),_:1})):c("v-if",!0),c(" 导出 "),N.headerConfig.export?(n(),u(O,{key:1,command:"export"},{default:m((()=>[r("div",g,[d(a,{name:"download",size:"16"}),t[7]||(t[7]=r("div",{style:{"margin-top":"-3px"}},"导出",-1))])])),_:1})):c("v-if",!0),c(" 正序 "),N.onAsc?(n(),u(O,{key:2,command:"asc"},{default:m((()=>[r("div",b,[d(a,{name:"sort-alpha-asc",size:"16"}),t[8]||(t[8]=r("div",{style:{"margin-top":"-3px"}},"正序(接口)",-1))])])),_:1})):c("v-if",!0),c(" 倒序 "),N.onDesc?(n(),u(O,{key:3,command:"desc"},{default:m((()=>[r("div",x,[d(a,{name:"sort-alpha-desc",size:"16"}),t[9]||(t[9]=r("div",{style:{"margin-top":"-3px"}},"倒序(接口)",-1))])])),_:1})):c("v-if",!0),N.headerConfig.lineHeight?(n(),u(O,{key:4,command:"lineHeight"},{default:m((()=>[r("div",h,[d(a,{name:"number",size:"16",style:{"margin-top":"7px"}}),r("div",null,[t[10]||(t[10]=f("行高: ")),d(j,{modelValue:H.value,"onUpdate:modelValue":t[0]||(t[0]=e=>H.value=e),min:1,max:200,style:{width:"100px"},"controls-position":"right",onChange:le},null,8,["modelValue"])])])])),_:1})):c("v-if",!0),N.headerConfig.custom?(n(),u(O,{key:5,command:"custom"},{default:m((()=>[r("div",C,[d(a,{name:"setting",size:"16"}),t[11]||(t[11]=r("div",{style:{"margin-top":"-3px"}},"列设置",-1))])])),_:1})):c("v-if",!0),N.headerConfig.resetCustom?(n(),u(O,{key:6,command:"resetCustom"},{default:m((()=>[r("div",k,[d(a,{name:"repeat",size:"16"}),t[12]||(t[12]=r("div",{style:{"margin-top":"-3px"}},"重置列",-1))])])),_:1})):c("v-if",!0),N.headerConfig.save?(n(),u(O,{key:7,command:"save"},{default:m((()=>[r("div",R,[d(a,{name:"save",size:"16"}),t[13]||(t[13]=r("div",{style:{"margin-top":"-3px",width:"100px","margin-right":"35px"}},"保存布局",-1))]),d(M,{size:"default",placement:"right-start","fallback-placements":["bottom-start"],onCommand:Q,trigger:"hover",onClick:t[1]||(t[1]=p((()=>{}),["stop"]))},{dropdown:m((()=>[d(J,{class:"style-sub-menu"},{default:m((()=>[N.onIndividual?(n(),u(O,{key:0,command:"individual"},{default:m((()=>t[14]||(t[14]=[f("保存个人")]))),_:1,__:[14]})):c("v-if",!0),N.onAll?(n(),u(O,{key:1,command:"all"},{default:m((()=>t[15]||(t[15]=[f("保存所有")]))),_:1,__:[15]})):c("v-if",!0)])),_:1})])),default:m((()=>[r("div",_,[d(a,{name:"caret-right"})])])),_:1})])),_:1})):c("v-if",!0),N.headerConfig.feedback?(n(),u(O,{key:8,command:"feedback"},{default:m((()=>[r("div",w,[d(a,{name:"feedback",size:"16"}),t[16]||(t[16]=r("div",{style:{"margin-top":"-3px",width:"100px","margin-right":"35px"}},"样式",-1))]),d(M,{size:"default",placement:"right-start","fallback-placements":["bottom-start"],onCommand:Q,trigger:"hover",onClick:t[4]||(t[4]=p((()=>{}),["stop"]))},{dropdown:m((()=>[d(J,{class:"style-sub-menu"},{default:m((()=>[d(O,null,{default:m((()=>[d(W,{modelValue:L.value,"onUpdate:modelValue":t[2]||(t[2]=e=>L.value=e),onChange:re},{default:m((()=>t[17]||(t[17]=[f("启用斑马纹")]))),_:1,__:[17]},8,["modelValue"])])),_:1}),d(O,null,{default:m((()=>[d(W,{modelValue:A.value,"onUpdate:modelValue":t[3]||(t[3]=e=>A.value=e),onChange:oe},{default:m((()=>t[18]||(t[18]=[f("启用边框")]))),_:1,__:[18]},8,["modelValue"])])),_:1})])),_:1})])),default:m((()=>[r("div",B,[d(a,{name:"caret-right"})])])),_:1})])),_:1})):c("v-if",!0),N.headerConfig.chart?(n(),u(O,{key:9,command:"chart"},{default:m((()=>[r("div",S,[d(a,{name:"chart-bar-x",size:"16"}),t[19]||(t[19]=r("div",{style:{"margin-top":"-3px",width:"100px","margin-right":"35px"}},"排版",-1))]),d(M,{size:"default",placement:"right-start","fallback-placements":["bottom-start"],onCommand:Q,trigger:"hover",onClick:t[5]||(t[5]=p((()=>{}),["stop"]))},{dropdown:m((()=>[d(J,{class:"style-sub-menu"},{default:m((()=>[d(O,{command:"largeStyle"},{default:m((()=>t[20]||(t[20]=[f("默认")]))),_:1,__:[20]}),d(O,{command:"mediumStyle"},{default:m((()=>t[21]||(t[21]=[f("中")]))),_:1,__:[21]}),d(O,{command:"smallStyle"},{default:m((()=>t[22]||(t[22]=[f("小")]))),_:1,__:[22]}),d(O,{command:"miniStyle"},{default:m((()=>t[23]||(t[23]=[f("迷你")]))),_:1,__:[23]})])),_:1})])),default:m((()=>[r("div",z,[d(a,{name:"caret-right"})])])),_:1})])),_:1})):c("v-if",!0),N.refreshCustom?(n(),u(O,{key:10,command:"refreshCustom"},{default:m((()=>[r("div",D,[d(a,{name:"refresh",size:"16"}),t[24]||(t[24]=r("div",{style:{"margin-top":"-3px"}},"更新布局",-1))])])),_:1})):c("v-if",!0),N.searchCustom?(n(),u(O,{key:11,command:"searchCustom"},{default:m((()=>[r("div",F,[d(a,{name:"repeat",size:"16"}),t[25]||(t[25]=r("div",{style:{"margin-top":"-3px"}},"刷新",-1))])])),_:1})):c("v-if",!0),c(" 全屏 "),N.headerConfig.fullscreen?(n(),u(O,{key:12,command:"fullscreen"},{default:m((()=>[r("div",E,[d(a,{name:"zoom-out",size:"16"}),t[26]||(t[26]=r("div",{style:{"margin-top":"-3px"}},"全屏",-1))])])),_:1})):c("v-if",!0),c(" 打印 "),N.headerConfig.print?(n(),u(O,{key:13,command:"print"},{default:m((()=>[r("div",I,[d(a,{name:"print",size:"16"}),t[27]||(t[27]=r("div",{style:{"margin-top":"-3px"}},"打印",-1))])])),_:1})):c("v-if",!0),N.headerConfig.lock?(n(),u(O,{key:14,command:"lock"},{default:m((()=>[r("div",P,[d(a,{name:"lock",size:"16"}),t[28]||(t[28]=r("div",{style:{"margin-top":"-3px"}},"锁定",-1))])])),_:1})):c("v-if",!0),N.headerConfig.unlock?(n(),u(O,{key:15,command:"unlock"},{default:m((()=>[r("div",T,[d(a,{name:"unlock",size:"16"}),t[29]||(t[29]=r("div",{style:{"margin-top":"-3px"}},"解锁",-1))])])),_:1})):c("v-if",!0)])),_:1})])),default:m((()=>[d(a,{class:s(`dropdown-trigger-icon ${N.column.field}`),tabindex:"-1",style:{"margin-top":"4px"},name:"caret-down"},null,8,["class"])])),_:1},512)],34)],2)}}};export{V as default};
1
+ import{ref as e,computed as t,onMounted as a,resolveComponent as l,createElementBlock as o,openBlock as n,normalizeClass as s,createElementVNode as i,toDisplayString as r,createVNode as d,withCtx as m,createCommentVNode as c,createBlock as u,createTextVNode as f,withModifiers as p}from"vue";const y={class:"header-dropdown-title"},g={style:{display:"flex"}},v={style:{display:"flex"}},b={style:{display:"flex"}},h={style:{display:"flex"}},x={style:{display:"flex"}},C={style:{display:"flex"}},k={style:{display:"flex"}},_={style:{display:"flex"}},R={class:"menu-trigger-wrapper"},w={style:{display:"flex"}},S={class:"menu-trigger-wrapper"},B={style:{display:"flex"}},z={class:"menu-trigger-wrapper"},F={style:{display:"flex"}},D={style:{display:"flex"}},E={style:{display:"flex"}},I={style:{display:"flex"}},P={style:{display:"flex"}},T={style:{display:"flex"}};var V={__name:"index",props:{onImport:Function,onExport:Function,onAsc:Function,onDesc:Function,onFullscreen:Function,onPrint:Function,onCustom:Function,onAll:Function,onIndividual:Function,refreshCustom:Function,searchCustom:Function,tableRef:{type:Object,default:null},title:{type:String,default:null},compact:{type:Boolean,default:!1},column:{type:Object,default:null},headerConfig:{type:Object,import:{type:Boolean,default:!1},export:{type:Boolean,default:!1},lineHeight:{type:Boolean,default:!1},custom:{type:Boolean,default:!1},resetCustom:{type:Boolean,default:!1},save:{type:Boolean,default:!1},feedback:{type:Boolean,default:!1},chart:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},print:{type:Boolean,default:!1},lock:{type:Boolean,default:!1},unlock:{type:Boolean,default:!1}}},setup(V){const N=V,H=e(!1),O=e(36),L=e(!1),A=e(!0),j=e("mini");e(null),t((()=>!!N.onExport||!!N.tableRef));const J=()=>N.tableRef?.vxeTableProRef||null,M=e=>{const t=J();t?N.tableRef.resetCustomColumns?N.tableRef.resetCustomColumns(e):t.resetCustom(e):console.warn("无法重置列:缺少 tableRef 或 vxeTableProRef")},U=()=>{const e=document.getElementsByClassName(N.column.field);console.log(e);const t=document.getElementsByClassName(""+("dropdownRight"+N.column.field));e[0].style.opacity=1,t[0].style.borderLeft=N.compact?"0px solid #ddd":"1px solid #ddd"},K=()=>{if(0==H.value){const e=document.getElementsByClassName(N.column.field),t=document.getElementsByClassName(""+("dropdownRight"+N.column.field));e[0].style.opacity=0,t[0].style.borderLeft="0px solid #ddd"}},$=e=>{H.value=e;const t=document.getElementsByClassName("dropdown-trigger-icon"),a=document.getElementsByClassName(""+("dropdownRight"+N.column.field));1==e?(t[0].style.opacity=1,a[0].style.borderLeft=N.compact?"0px solid #ddd":"1px solid #ddd"):(t[0].style.opacity=0,a[0].style.borderLeft="0px solid #ddd")},q=e(null),G=(e,t)=>{switch(e){case"import":N.onImport?N.onImport():N.tableRef?.openImport?N.tableRef.openImport():console.warn("无法导入:缺少 tableRef 或 openImport 方法");break;case"export":N.onExport?N.onExport():N.tableRef?.exportData?N.tableRef.exportData({filename:"表格数据",sheetName:"Sheet1",type:"csv"}):(console.warn("无法导出:缺少 tableRef 或 exportData 方法"),ElMessage?.warning?.("导出失败:表格实例不可用"));break;case"asc":N.onAsc?.();break;case"desc":N.onDesc?.();break;case"fullscreen":N.tableRef?N.tableRef.toggleFullscreen():console.warn("无法导出:缺少 tableRef 或 exportData 方法");break;case"print":N.onPrint?N.onPrint():(()=>{const e=J();e?.openPrint?e.openPrint():console.warn("无法打印:缺少 vxeTableProRef 或 openPrint 方法")})();break;case"custom":N.onCustom?N.onCustom():(e=>{const t=J();t?.openCustom?t.openCustom(e):t?.customOpenEvent?t.customOpenEvent(e):console.warn("无法打开列设置:缺少 vxeTableProRef 或 openCustom 方法")})(t);break;case"resetCustom":M(!0);break;case"save":Y();break;case"lineHeight":q.value?.handleOpen();break;case"refreshCustom":N.refreshCustom?N.refreshCustom(ie()):M(!0);break;case"searchCustom":N.searchCustom&&N.searchCustom();break;case"lock":J()?.setColumnFixed?.(N.column.field,"left");break;case"unlock":J()?.clearColumnFixed?.(N.column.field)}},Q=(e,t)=>{switch(e){case"cellStyle":se();break;case"stripeStyle":de();break;case"smallStyle":te();break;case"mediumStyle":ae();break;case"miniStyle":le();break;case"largeStyle":oe();break;case"local":defaultlocal();break;case"individual":let e=W();var a=X();e.basicConfig=a,N.onIndividual?.(ie(),e);break;case"all":let t=W();var l=X();t.basicConfig=l,N.onAll?.(ie(),t)}},W=()=>N.tableRef?.getCurrentCustomStoreData?N.tableRef.getCurrentCustomStoreData():J()?.getCustomStoreData?.()||{},X=()=>{try{return JSON.parse(localStorage.getItem(ie())||"{}")}catch{return{}}},Y=()=>{if(!N.tableRef?.saveToLocalStorage)return void console.warn("无法保存布局:缺少 tableRef 或 saveToLocalStorage 方法");const e=W();e.basicConfig=X(),N.tableRef.saveToLocalStorage(ie(),e)},Z={default:48,medium:44,small:40,mini:36},ee=e=>{N.tableRef?(j.value=e,O.value=Z[e]||Z.mini,re(),N.tableRef.sizeBool(e),N.tableRef.changelineHeight(O.value)):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},te=e=>{ee("small")},ae=e=>{ee("medium")},le=e=>{ee("mini")},oe=e=>{ee("default")},ne=e=>{N.tableRef?(N.tableRef.changelineHeight(e),re()):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},se=e=>{if(N.tableRef){const t="boolean"==typeof e?e:A.value;N.tableRef.borderBool(t),re()}else console.warn("无法导出:缺少 tableRef 或 exportData 方法")},ie=()=>N.tableRef?.tableStorageKey||N.tableRef?.vxeTableProRef?.id||"VxeTablePro",re=()=>{localStorage.setItem(ie(),JSON.stringify({border:A.value,lineHeight:O.value,stripe:L.value,cellStyle:j.value}))},de=e=>{if(N.tableRef){const t="boolean"==typeof e?e:L.value;N.tableRef.scriptBool(t),re()}else console.warn("无法导出:缺少 tableRef 或 exportData 方法")},me=()=>{try{const t=ie(),a=N.tableRef?.vxeTableProRef?.id||"",l=localStorage.getItem(t)||(a?localStorage.getItem(a):"");if(l){var e=JSON.parse(l);setTimeout((()=>{A.value=!!e?.border,L.value=!!e.stripe,j.value=e.cellStyle||"default",O.value=e.lineHeight||36,N.tableRef.scriptBool(L.value),N.tableRef.borderBool(A.value),N.tableRef.changelineHeight(O.value),N.tableRef.sizeBool(j.value)}),100)}}catch(e){}};return a((()=>{me()})),(e,t)=>{const a=l("vxe-icon"),H=l("el-dropdown-item"),j=l("el-input-number"),J=l("el-dropdown-menu"),M=l("el-dropdown"),W=l("el-checkbox");return n(),o("div",{class:s(["header-dropdown",{"header-dropdown--compact":N.compact}])},[i("span",y,r(V.title),1),i("div",{class:s("dropdownRight "+("dropdownRight"+N.column.field)),onMouseleave:K,onMouseenter:U},[d(M,{ref_key:"dropdown",ref:q,size:"default",trigger:"click",onCommand:G,onVisibleChange:$},{dropdown:m((()=>[d(J,null,{default:m((()=>[c(" 导入 "),N.headerConfig.import?(n(),u(H,{key:0,command:"import"},{default:m((()=>[i("div",g,[d(a,{name:"upload",size:"16"}),t[6]||(t[6]=i("div",{style:{"margin-top":"-3px"}},"导入",-1))])])),_:1})):c("v-if",!0),c(" 导出 "),N.headerConfig.export?(n(),u(H,{key:1,command:"export"},{default:m((()=>[i("div",v,[d(a,{name:"download",size:"16"}),t[7]||(t[7]=i("div",{style:{"margin-top":"-3px"}},"导出",-1))])])),_:1})):c("v-if",!0),c(" 正序 "),N.onAsc?(n(),u(H,{key:2,command:"asc"},{default:m((()=>[i("div",b,[d(a,{name:"sort-alpha-asc",size:"16"}),t[8]||(t[8]=i("div",{style:{"margin-top":"-3px"}},"正序(接口)",-1))])])),_:1})):c("v-if",!0),c(" 倒序 "),N.onDesc?(n(),u(H,{key:3,command:"desc"},{default:m((()=>[i("div",h,[d(a,{name:"sort-alpha-desc",size:"16"}),t[9]||(t[9]=i("div",{style:{"margin-top":"-3px"}},"倒序(接口)",-1))])])),_:1})):c("v-if",!0),N.headerConfig.lineHeight?(n(),u(H,{key:4,command:"lineHeight"},{default:m((()=>[i("div",x,[d(a,{name:"number",size:"16",style:{"margin-top":"7px"}}),i("div",null,[t[10]||(t[10]=f("行高: ")),d(j,{modelValue:O.value,"onUpdate:modelValue":t[0]||(t[0]=e=>O.value=e),min:1,max:200,style:{width:"100px"},"controls-position":"right",onChange:ne},null,8,["modelValue"])])])])),_:1})):c("v-if",!0),N.headerConfig.custom?(n(),u(H,{key:5,command:"custom"},{default:m((()=>[i("div",C,[d(a,{name:"setting",size:"16"}),t[11]||(t[11]=i("div",{style:{"margin-top":"-3px"}},"列设置",-1))])])),_:1})):c("v-if",!0),N.headerConfig.resetCustom?(n(),u(H,{key:6,command:"resetCustom"},{default:m((()=>[i("div",k,[d(a,{name:"repeat",size:"16"}),t[12]||(t[12]=i("div",{style:{"margin-top":"-3px"}},"重置列",-1))])])),_:1})):c("v-if",!0),N.headerConfig.save?(n(),u(H,{key:7,command:"save"},{default:m((()=>[i("div",_,[d(a,{name:"save",size:"16"}),t[13]||(t[13]=i("div",{style:{"margin-top":"-3px",width:"100px","margin-right":"35px"}},"保存布局",-1))]),d(M,{size:"default",placement:"right-start","fallback-placements":["bottom-start"],onCommand:Q,trigger:"hover",onClick:t[1]||(t[1]=p((()=>{}),["stop"]))},{dropdown:m((()=>[d(J,{class:"style-sub-menu"},{default:m((()=>[N.onIndividual?(n(),u(H,{key:0,command:"individual"},{default:m((()=>t[14]||(t[14]=[f("保存个人")]))),_:1,__:[14]})):c("v-if",!0),N.onAll?(n(),u(H,{key:1,command:"all"},{default:m((()=>t[15]||(t[15]=[f("保存所有")]))),_:1,__:[15]})):c("v-if",!0)])),_:1})])),default:m((()=>[i("div",R,[d(a,{name:"caret-right"})])])),_:1})])),_:1})):c("v-if",!0),N.headerConfig.feedback?(n(),u(H,{key:8,command:"feedback"},{default:m((()=>[i("div",w,[d(a,{name:"feedback",size:"16"}),t[16]||(t[16]=i("div",{style:{"margin-top":"-3px",width:"100px","margin-right":"35px"}},"样式",-1))]),d(M,{size:"default",placement:"right-start","fallback-placements":["bottom-start"],onCommand:Q,trigger:"hover",onClick:t[4]||(t[4]=p((()=>{}),["stop"]))},{dropdown:m((()=>[d(J,{class:"style-sub-menu"},{default:m((()=>[d(H,null,{default:m((()=>[d(W,{modelValue:L.value,"onUpdate:modelValue":t[2]||(t[2]=e=>L.value=e),onChange:de},{default:m((()=>t[17]||(t[17]=[f("启用斑马纹")]))),_:1,__:[17]},8,["modelValue"])])),_:1}),d(H,null,{default:m((()=>[d(W,{modelValue:A.value,"onUpdate:modelValue":t[3]||(t[3]=e=>A.value=e),onChange:se},{default:m((()=>t[18]||(t[18]=[f("启用边框")]))),_:1,__:[18]},8,["modelValue"])])),_:1})])),_:1})])),default:m((()=>[i("div",S,[d(a,{name:"caret-right"})])])),_:1})])),_:1})):c("v-if",!0),N.headerConfig.chart?(n(),u(H,{key:9,command:"chart"},{default:m((()=>[i("div",B,[d(a,{name:"chart-bar-x",size:"16"}),t[19]||(t[19]=i("div",{style:{"margin-top":"-3px",width:"100px","margin-right":"35px"}},"排版",-1))]),d(M,{size:"default",placement:"right-start","fallback-placements":["bottom-start"],onCommand:Q,trigger:"hover",onClick:t[5]||(t[5]=p((()=>{}),["stop"]))},{dropdown:m((()=>[d(J,{class:"style-sub-menu"},{default:m((()=>[d(H,{command:"largeStyle"},{default:m((()=>t[20]||(t[20]=[f("默认")]))),_:1,__:[20]}),d(H,{command:"mediumStyle"},{default:m((()=>t[21]||(t[21]=[f("中")]))),_:1,__:[21]}),d(H,{command:"smallStyle"},{default:m((()=>t[22]||(t[22]=[f("小")]))),_:1,__:[22]}),d(H,{command:"miniStyle"},{default:m((()=>t[23]||(t[23]=[f("迷你")]))),_:1,__:[23]})])),_:1})])),default:m((()=>[i("div",z,[d(a,{name:"caret-right"})])])),_:1})])),_:1})):c("v-if",!0),N.refreshCustom?(n(),u(H,{key:10,command:"refreshCustom"},{default:m((()=>[i("div",F,[d(a,{name:"refresh",size:"16"}),t[24]||(t[24]=i("div",{style:{"margin-top":"-3px"}},"更新布局",-1))])])),_:1})):c("v-if",!0),N.searchCustom?(n(),u(H,{key:11,command:"searchCustom"},{default:m((()=>[i("div",D,[d(a,{name:"repeat",size:"16"}),t[25]||(t[25]=i("div",{style:{"margin-top":"-3px"}},"刷新",-1))])])),_:1})):c("v-if",!0),c(" 全屏 "),N.headerConfig.fullscreen?(n(),u(H,{key:12,command:"fullscreen"},{default:m((()=>[i("div",E,[d(a,{name:"zoom-out",size:"16"}),t[26]||(t[26]=i("div",{style:{"margin-top":"-3px"}},"全屏",-1))])])),_:1})):c("v-if",!0),c(" 打印 "),N.headerConfig.print?(n(),u(H,{key:13,command:"print"},{default:m((()=>[i("div",I,[d(a,{name:"print",size:"16"}),t[27]||(t[27]=i("div",{style:{"margin-top":"-3px"}},"打印",-1))])])),_:1})):c("v-if",!0),N.headerConfig.lock?(n(),u(H,{key:14,command:"lock"},{default:m((()=>[i("div",P,[d(a,{name:"lock",size:"16"}),t[28]||(t[28]=i("div",{style:{"margin-top":"-3px"}},"锁定",-1))])])),_:1})):c("v-if",!0),N.headerConfig.unlock?(n(),u(H,{key:15,command:"unlock"},{default:m((()=>[i("div",T,[d(a,{name:"unlock",size:"16"}),t[29]||(t[29]=i("div",{style:{"margin-top":"-3px"}},"解锁",-1))])])),_:1})):c("v-if",!0)])),_:1})])),default:m((()=>[d(a,{class:s(`dropdown-trigger-icon ${N.column.field}`),tabindex:"-1",style:{"margin-top":"4px"},name:"caret-down"},null,8,["class"])])),_:1},512)],34)],2)}}};export{V as default};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yuuuu_ovo/ci-web-plugins-commom",
3
3
  "private": false,
4
- "version": "2.0.22",
4
+ "version": "2.0.23",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "moushangjie",