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