dse-edit-table 0.0.2 → 1.1.1

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/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- (function(_,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("vue"),require("vxe-pc-ui"),require("vxe-table"),require("xe-utils"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["exports","vue","vxe-pc-ui","vxe-table","xe-utils","@vueuse/core"],f):(_=typeof globalThis<"u"?globalThis:_||self,f(_.DseTableLib={},_.Vue,_.VxeUI,_.VXETable,_.XEUtils,_.VueUse))})(this,function(_,f,I,le,p,pe){"use strict";var Z={};Object.defineProperty(Z,"__esModule",{value:!0});var ae=Z.default=void 0;ae=Z.default={vxe:{base:{pleaseInput:"请输入",pleaseSelect:"请选择",comma:",",fullStop:"。"},loading:{text:"加载中..."},error:{downErr:"下载失败",errLargeData:"当绑定的数据量过大时,应该请使用 {0},否则可能会出现卡顿",groupFixed:"如果使用分组表头,冻结列必须按组设置",groupMouseRange:'分组表头与 "{0}" 不能同时使用,这可能会出现错误',groupTag:'分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',scrollErrProp:'启用虚拟滚动后不支持该参数 "{0}"',errConflicts:'参数 "{0}" 与 "{1}" 有冲突',modelConflicts:'绑定的字段值 "{0}" 与 "{1}" 存在冲突,将会出现错误',notSupportProp:'当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',reqSupportProp:'当使用 "{0}" 时,应该设置 "{1}",否则可能会出现错误',notConflictProp:'当使用 "{0}" 时,应该设置 "{1}",否则可能会存在功能冲突',unableInsert:"无法插入到指定位置,请检查参数是否正确",useErr:'安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',barUnableLink:"工具栏无法关联表格",expandContent:'展开行的插槽应该是 "content",请检查是否正确',reqComp:'缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',reqModule:'缺少 "{0}" 模块',reqProp:'缺少必要的 "{0}" 参数,这可能会导致出现错误',emptyProp:'参数 "{0}" 不允许为空',errProp:'不支持的参数 "{0}",可能为 "{1}"',colRepet:'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',notFunc:'方法 "{0}" 不存在',errFunc:'参数 "{0}" 不是一个方法',notValidators:'全局校验 "{0}" 不存在',notFormats:'全局格式化 "{0}" 不存在',notCommands:'全局指令 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:'树结构不支持 "{0}"',noGroup:'数据分组后不支持 "{0}"',notProp:'不支持的参数 "{0}"',checkProp:'当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',coverProp:'"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',uniField:'字段名 "{0}" 重复定义,这可能会出现错误',repeatKey:'主键重复 {0}="{1}",这可能会出现错误',repeatProp:'参数重复 {0}="{1}",这可能会出现错误',delFunc:'方法 "{0}" 已废弃,请使用 "{1}"',delProp:'参数 "{0}" 已废弃,请使用 "{1}"',delEvent:'事件 "{0}" 已废弃,请使用 "{1}"',removeProp:'参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',errFormat:'全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',notType:'不支持的文件类型 "{0}"',notExp:"该浏览器不支持导入/导出功能",impFields:"导入失败,请检查字段名和数据格式是否正确",treeNotImp:"树表格不支持导入",treeCrossDrag:"只能拖拽第一层级",treeDragChild:"父级不能拖拽到自己的子级中",reqPlugin:'扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',errMaxRow:"超过支持的最大数据量 {0} 行,这可能会导致出现错误",useNew:"不建议使用 {0},请使用 {1}",errorVersion:"版本不匹配,当前版本 {0},最低支持版本为 {1}"},table:{emptyText:"暂无数据",allTitle:"全选/取消",seqTitle:"序号",actionTitle:"操作",confirmFilter:"筛选",resetFilter:"重置",allFilter:"全部",sortAsc:"升序:最低到最高",sortDesc:"降序:最高到最低",filter:"对所选的列启用筛选",impSuccess:"成功导入 {0} 条记录",expLoading:"正在导出中",expSuccess:"导出成功",expError:"导出失败",expFilename:"导出_{0}",expOriginFilename:"导出_源_{0}",customTitle:"列设置",customAll:"全部",customConfirm:"确认",customClose:"关闭",customCancel:"取消",customRestore:"恢复默认",maxFixedCol:"最大冻结列的数量不能超过 {0} 个",maxGroupCol:"最大分组字段的数量不能超过 {0} 个",dragTip:"移动:{0}",resizeColTip:"宽:{0} 像素",resizeRowTip:"高:{0} 像素",rowGroupContentTotal:"{0}({1})",menuLoading:"加载中..."},grid:{selectOneRecord:"请至少选择一条记录!",deleteSelectRecord:"您确定要删除所选记录吗?",removeSelectRecord:"您确定要移除所选记录吗?",dataUnchanged:"数据未改动!",delSuccess:"成功删除所选记录!",saveSuccess:"保存成功!",operError:"发生错误,操作失败!"},select:{clear:"清除",allChecked:"全选",total:"{0} / {1}",search:"搜索",loadingText:"加载中...",emptyText:"暂无数据",maxSize:"最大可选择的数量不能超过 {0} 个",overSizeErr:"已超出最大可选数量 {0} 个,超出部分将被忽略!",searchEmpty:"未匹配到数据!"},tree:{searchEmpty:"未匹配到数据!",dragTip:"移动:{0}"},treeSelect:{clearChecked:"清除",allChecked:"全选",allExpand:"全部展开",clearExpand:"全部收起",total:"已选 {0}",search:"搜索",emptyText:"暂无数据"},pager:{goto:"前往",gotoTitle:"页数",pagesize:"{0}条/页",total:"共 {0} 条记录",pageClassifier:"页",homePage:"首页",homePageTitle:"首页",prevPage:"上一页",prevPageTitle:"上一页",nextPage:"下一页",nextPageTitle:"下一页",prevJump:"向上跳页",prevJumpTitle:"向上跳页",nextJump:"向下跳页",nextJumpTitle:"向下跳页",endPage:"末页",endPageTitle:"末页"},alert:{title:"系统提示"},button:{confirm:"确认",cancel:"取消",clear:"清除"},filter:{search:"搜索"},custom:{cstmTitle:"列设置",cstmRestore:"恢复默认",cstmCancel:"取消",cstmConfirm:"确定",cstmConfirmRestore:"请确认是否恢复成默认列配置?",cstmDragTarget:"移动:{0}",setting:{colSort:"排序",sortHelpTip:"点击并拖动图标可以调整顺序",colTitle:"列标题",colResizable:"列宽(像素)",colVisible:"是否显示",colFixed:"冻结列",colFixedMax:"冻结列(最多 {0} 列)",fixedLeft:"左侧",fixedUnset:"不设置",fixedRight:"右侧"}},import:{modes:{covering:"覆盖方式(直接覆盖表格数据)",insert:"底部追加(在表格的底部追加新数据)",insertTop:"顶部追加(在表格的顶部追加新数据)",insertBottom:"底部追加(在表格的底部追加新数据)"},impTitle:"导入数据",impFile:"文件名",impSelect:"选择文件",impType:"文件类型",impOpts:"参数设置",impMode:"导入模式",impConfirm:"导入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"网页(*.html)",xml:"XML 数据(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{empty:"空数据",current:"当前数据(当前页的数据)",selected:"选中数据(当前页选中的数据)",all:"全量数据(包括所有分页的数据)"},printTitle:"打印数据",expTitle:"导出数据",expName:"文件名",expNamePlaceholder:"请输入文件名",expSheetName:"标题",expSheetNamePlaceholder:"请输入标题",expType:"保存类型",expMode:"选择数据",expCurrentColumn:"全部字段",expColumn:"选择字段",expOpts:"参数设置",expOptHeader:"表头",expHeaderTitle:"是否需要表头",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expOptTitle:"列标题",expTitleTitle:"是否为列标题,否则显示为列的字段名",expColgroupTitle:"如果存在,则支持带有分组结构的表头",expOptMerge:"合并",expMergeTitle:"如果存在,则支持带有合并结构的单元格",expOptAllExpand:"展开树",expAllExpandTitle:"如果存在,则支持将带有层级结构的数据全部展开",expOptUseStyle:"样式",expUseStyleTitle:"如果存在,则支持带样式的单元格",expOptOriginal:"源数据",expOriginalTitle:"如果为源数据,则支持导入到表格中",expPrint:"打印",expConfirm:"导出",expCancel:"取消"},modal:{errTitle:"错误提示",zoomMin:"最小化",zoomIn:"最大化",zoomOut:"还原",close:"关闭",miniMaxSize:"最小化窗口的数量不能超过 {0} 个",footPropErr:"show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用"},drawer:{close:"关闭"},form:{folding:"收起",unfolding:"展开"},toolbar:{import:"导入",export:"导出",print:"打印",refresh:"刷新",zoomIn:"全屏",zoomOut:"还原",custom:"列设置",customAll:"全部",customConfirm:"确认",customRestore:"重置",fixedLeft:"冻结在左侧",fixedRight:"冻结在右侧",cancelFixed:"取消冻结列"},datePicker:{yearTitle:"{0} 年"},dateRangePicker:{pleaseRange:"请选择开始日期与结束日期"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}},calendar:{yearLabel:"{0} 年",monthLabel:"{0} 月"},numberInput:{currencySymbol:"¥"},imagePreview:{popupTitle:"预览",operBtn:{zoomOut:"缩小",zoomIn:"放大",pctFull:"等比例缩放",pct11:"显示原始尺寸",rotateLeft:"向左旋转",rotateRight:"向右旋转",print:"点击打印图片",download:"点击下载图片"}},upload:{fileBtnText:"点击或拖拽上传",imgBtnText:"点击或拖拽上传",dragPlaceholder:"请把文件拖放到这个区域即可上传",imgSizeHint:"单张{0}",imgCountHint:"最多{0}张",fileTypeHint:"支持 {0} 文件类型",fileSizeHint:"单个文件大小不超过{0}",fileCountHint:"最多可上传{0}个文件",uploadTypeErr:"文件类型不匹配!",overCountErr:"最多只能选择{0}个文件!",overCountExtraErr:"已超出最大数量{0}个,超出的{1}个文件将被忽略!",overSizeErr:"文件大小最大不能超过{0}!",manualUpload:"点击上传",reUpload:"重新上传",uploadProgress:"上传中 {0}%",uploadErr:"上传失败",uploadSuccess:"上传成功",moreBtnText:"更多({0})",moreImgBtnText:"图片({0})",moreFileBtnText:"文件({0})",viewItemTitle:"点击查看",morePopup:{readTitle:"查看列表",imageTitle:"上传图片",fileTitle:"上传文件"}},empty:{defText:"暂无数据"},colorPicker:{clear:"清除",confirm:"确认",copySuccess:"已复制到剪贴板:{0}",hex:"十六进制"},formDesign:{formName:"表单名称",defFormTitle:"未命名的表单",widgetPropTab:"控件属性",widgetFormTab:"表单属性",error:{wdFormUni:"该类型的控件在表单中只允许添加一个",wdSubUni:"该类型的控件在子表中只允许添加一个"},styleSetting:{btn:"样式设置",title:"表单的样式设置",layoutTitle:"控件布局",verticalLayout:"上下布局",horizontalLayout:"横向布局",styleTitle:"标题样式",boldTitle:"标题加粗",fontBold:"加粗",fontNormal:"常规",colonTitle:"显示冒号",colonVisible:"显示",colonHidden:"隐藏",alignTitle:"对齐方式",widthTitle:"标题宽度",alignLeft:"居左",alignRight:"居右",unitPx:"像素",unitPct:"百分比"},widget:{group:{base:"基础控件",layout:"布局控件",system:"系统控件",module:"模块控件",chart:"图表控件",advanced:"高级控件"},copyTitle:"副本_{0}",component:{input:"输入框",textarea:"文本域",select:"下拉选择",row:"一行多列",title:"标题",text:"文本",subtable:"子表",VxeSwitch:"是/否",VxeInput:"输入框",VxeNumberInput:"数字",VxeDatePicker:"日期",VxeTextarea:"文本域",VxeSelect:"下拉选择",VxeTreeSelect:"树形选择",VxeRadioGroup:"单选框",VxeCheckboxGroup:"复选框",VxeUploadFile:"文件",VxeUploadImage:"图片",VxeRate:"评分",VxeSlider:"滑块"}},widgetProp:{name:"控件名称",placeholder:"提示语",required:"必填校验",multiple:"允许多选",displaySetting:{name:"显示设置",pc:"电脑端",mobile:"手机端",visible:"显示",hidden:"隐藏"},dataSource:{name:"数据源",defValue:"选项{0}",addOption:"添加选项",batchEditOption:"批量编辑",batchEditTip:"每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。",batchEditSubTip:"每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。",buildOption:"生成选项"},rowProp:{colSize:"列数",col2:"两列",col3:"三列",col4:"四列",col6:"六列",layout:"布局"},textProp:{name:"内容",alignTitle:"对齐方式",alignLeft:"居左",alignCenter:"居中",alignRight:"居右",colorTitle:"字体颜色",sizeTitle:"字体大小",boldTitle:"字体加粗",fontNormal:"常规",fontBold:"加粗"},subtableProp:{seqTitle:"序号",showSeq:"显示序号",showCheckbox:"允许多选",errSubDrag:"子表不支持该控件,请使用其他控件",colPlace:"将控件拖拽进来"},uploadProp:{limitFileCount:"文件数量限制",limitFileSize:"文件大小限制",multiFile:"允许上传多个文件",limitImgCount:"图片数量限制",limitImgSize:"图片大小限制",multiImg:"允许上传多张图片"}}},listDesign:{fieldSettingTab:"字段设置",listSettingTab:"参数设置",searchTitle:"查询条件",listTitle:"列表字段",searchField:"查询字段",listField:"列表字段",activeBtn:{ActionButtonUpdate:"编辑",ActionButtonDelete:"删除"},search:{addBtn:"编辑",emptyText:"未配置查询条件",editPopupTitle:"编辑查询字段"},searchPopup:{colTitle:"标题",saveBtn:"保存"}},text:{copySuccess:"已复制到剪贴板",copyError:"当前环境不支持该操作"},countdown:{formats:{yyyy:"年",MM:"月",dd:"天",HH:"时",mm:"分",ss:"秒"}},contextMenu:{loadingText:"加载中..."},gantt:{tFullFormat:{year:"{yyyy}年",quarter:"{yyyy}年第{q}季度",month:"{yyyy}年{MM}月",week:"{yyyy}年第{W}周",day:"{yyyy}年{MM}月 {E}",date:"{yyyy}年{MM}月{dd}日",hour:"{yyyy}年{MM}月{dd}日{HH}时",minute:"{yyyy}年{MM}月{dd}日{HH}时{mm}分",second:"{yyyy}年{MM}月{dd}日{HH}时{mm}分{ss}秒"},tSimpleFormat:{year:"{yyyy}年",quarter:"{q}季度",month:"{M}月",week:"{W}周",day:"{d}",date:"{d}",hour:"{HH}",minute:"{mm}",second:"{ss}"},dayss:{w0:"日",w1:"一",w2:"二",w3:"三",w4:"四",w5:"五",w6:"六"}},plugins:{extendCellArea:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",selectErr:"无法操作指定区域的单元格",extendErr:"如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作",cpInvalidErr:"该操作无法进行,您选择的区域中存在被禁止的列({0})"},fnr:{title:"查找和替换",titleFd:"查找",titleRe:"替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},body:{row:"行:{0}",col:"列:{0}"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},extendPivotTable:{aggregation:{grouping:"分组",values:"值",groupPlaceholder:"拖至此处进行分组",valuesPlaceholder:"拖至此处进行聚合",dragExistCol:"该列已存在",sortHelpTip:"点击并拖动图标可以调整顺序"},aggFuncs:{sum:"求和",count:"计数",avg:"平均值",min:"最小值",max:"最大值",first:"首个值",last:"末尾值"}},filterComplexInput:{menus:{fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结左侧",fixedRight:"冻结右侧"},cases:{equal:"等于",gt:"大于",lt:"小于",begin:"开头是",endin:"结尾是",include:"包含",isSensitive:"区分大小写"}},filterCombination:{menus:{sort:"排序",clearSort:"清除排序",sortAsc:"升序",sortDesc:"降序",fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结左侧",fixedRight:"冻结右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选",dateOption:"日期筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"显示行:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",isAfter:"在以下日期之后",eqAfter:"在以下日期之后或与之相同",isBefore:"在以下日期之前",eqBefore:"在以下日期之前或与之相同",top10:"前10项",aboveAverage:"高于平均值",belowAverage:"低于平均值",before:"之前",after:"之后",tomorrow:"明天",today:"今天",yesterday:"昨天",nextWeek:"下周",thisWeek:"本周",lastWeek:"上周",nextMonth:"下月",thisMonth:"本月",lastMonth:"上月",nextYear:"明年",thisYear:"今年",lastYear:"去年",yearToDate:"本年度截止到现在",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},empty:"(空白)",notData:"无匹配项"}},pro:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",extendErr:"如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替换",titleFd:"查找",titleRe:"替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},renderer:{search:"搜索",cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",top10:"前10项",aboveAverage:"高于平均值",belowAverage:"低于平均值",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},combination:{menus:{sort:"排序",clearSort:"清除排序",sortAsc:"升序",sortDesc:"降序",fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结到左侧",fixedRight:"冻结到右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选",dateOption:"日期筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"显示行:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},empty:"(空白)",notData:"无匹配项"}}}};let M,H;const U=(l,r)=>p.findIndexOf(l,o=>o.id===r.id),X=(l,r,o)=>l.findRowIndexOf(r,o);function ee(l){return{tableMenuMethod(r){const{$table:o,column:e}=r;p.eachTree([e],t=>{t.fixed=l}),o.refreshColumn()}}}function te(){const l=M.globalStore;if(l)return l.clipboard||"";const r=M.config;return r&&r.clipboard?r.clipboard:null}function fe(l){const r=M.globalStore;r?r.clipboard=l:M.config&&(M.config.clipboard=l)}let L;function me(l){if(!L){L=document.createElement("textarea"),L.id="$XECopy";const r=L.style;r.width="48px",r.height="24px",r.position="fixed",r.zIndex="0",r.left="-500px",r.top="-500px",document.body.appendChild(L)}L.value=l==null?"":""+l}function se(l){let r=!1;try{me(l),L.select(),L.setSelectionRange(0,L.value.length),r=document.execCommand("copy"),L.blur()}catch{}return r}function re(l,r){const{$event:o,$table:e,row:t,column:n}=l;if(t&&n){const a=e.props,{mouseConfig:s}=a,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;let u="";if(s&&i.area){r?e.triggerCutCellAreaEvent(o):e.triggerCopyCellAreaEvent(o);const d=te();u=d?d.text:""}else u=p.toValueString(p.get(t,n.field)),fe({text:u,html:""});p.isFunction(H)?H(u):se(u)}}function B(l){return function(r){const{$grid:o}=r;o&&o.commitProxy(l)}}function ge(l,r){const{$table:o}=l,{visibleData:e}=o.getTableData(),{visibleColumn:t}=o.getTableColumn(),n={};for(let a=0,s=r.length;a<s;a++){const c=r[a],{rows:i,cols:u}=c;for(let d=0,m=i.length;d<m;d++){const R=i[d],y=X(o,e,R);for(let O=0,F=u.length;O<F;O++){const k=u[O],g=U(t,k),C=y+":"+g;if(n[C])return!1;n[C]=!0}}}return!0}function oe(l){const{$table:r}=l,o=r.props,{mouseConfig:e}=o,{computeMouseOpts:t}=r.getComputeMaps(),n=t.value,{visibleData:a}=r.getTableData(),{visibleColumn:s}=r.getTableColumn(),c=e&&n.area?r.getCellAreas():[];return r.getMergeCells().filter(({row:u,col:d,rowspan:m,colspan:R})=>c.some(y=>{const{rows:O,cols:F}=y,k=X(r,a,O[0]),g=X(r,a,O[O.length-1]),C=U(s,F[0]),T=U(s,F[F.length-1]);return u>=k&&u+m-1<=g&&d>=C&&d+R-1<=T}))}function ie(l){const{$table:r}=l,o=oe(l);return o.length&&r.removeMergeCells(o),o}function ce(l,r){const{code:o}=l,{$table:e,$grid:t,row:n,column:a,type:s}=r,c=e.props,{editConfig:i,mouseConfig:u}=c;switch(o){case"CLEAR_ALL_SORT":{const d=e.getSortColumns();l.disabled=!d.length;break}case"CLEAR_ALL_FILTER":{const d=e.getCheckedFilters();l.disabled=!d.length;break}case"CLEAR_ALL_MERGE":{const d=e.getMergeCells(),m=e.getMergeFooterItems();l.disabled=!d.length&&!m.length;break}case"CLEAR_MERGE_CELL":{const d=oe(r);l.disabled=!d.length;break}case"COPY_TITLE":{l.disabled=!a||s!=="header";break}case"SELECT_ALL_AREA":{const{visibleData:d}=e.getTableData(),{visibleColumn:m}=e.getTableColumn();l.disabled=!d.length||!m.length;break}case"SELECT_AREA_TO_LEFT":case"SELECT_AREA_TO_RIGHT":case"SELECT_AREA_TO_TOP":case"SELECT_AREA_TO_BOTTON":{l.disabled=!a||!n;break}case"DELETE_CHECKBOX_ROW":{const d=e.getCheckboxRecords();l.disabled=!d.length;break}case"EDIT_CELL":case"CLEAR_CELL":case"CLEAR_ROW":case"COPY_CELL":case"CUT_CELL":case"PASTE_CELL":case"MERGE_OR_CLEAR":case"MERGE_CELL":case"REVERT_CELL":case"REVERT_ROW":case"DELETE_ROW":case"DELETE_AREA_ROW":case"CLEAR_SORT":case"SORT_ASC":case"SORT_DESC":case"CLEAR_FILTER":case"FILTER_CELL":case"EXPORT_ROW":case"OPEN_FIND":case"OPEN_REPLACE":case"HIDDEN_COLUMN":case"FIXED_LEFT_COLUMN":case"FIXED_RIGHT_COLUMN":case"CLEAR_FIXED_COLUMN":{if(l.disabled=!a,a){const{computeMouseOpts:d}=e.getComputeMaps(),m=d.value,R=!!a.parentId;switch(o){case"CLEAR_SORT":{l.disabled=!a.sortable||!a.order;break}case"SORT_ASC":case"SORT_DESC":l.disabled=!a.sortable;break;case"FILTER_CELL":case"CLEAR_FILTER":if(l.disabled=!a.filters||!a.filters.length,!l.disabled)switch(o){case"CLEAR_FILTER":l.disabled=!a.filters.some(y=>y.checked);break}break;case"REVERT_CELL":{l.disabled=!n||!a.field||!e.isUpdateByRow(n,a.field);break}case"REVERT_ROW":{l.disabled=!n||!a.field||!e.isUpdateByRow(n);break}case"OPEN_FIND":case"OPEN_REPLACE":{l.disabled=!(u&&m.area);break}case"EDIT_CELL":{l.disabled=!i||!a.editRender;break}case"COPY_CELL":case"CUT_CELL":case"PASTE_CELL":{const y=u&&m.area?e.getCellAreas():[];if(l.disabled=y.length>1,!l.disabled)switch(o){case"PASTE_CELL":{const O=te();l.disabled=!O||!O.text;break}}break}case"MERGE_OR_CLEAR":case"MERGE_CELL":{const y=u&&m.area?e.getCellAreas():[];l.disabled=!y.length||y.length===1&&y[0].rows.length===1&&y[0].cols.length===1||!ge(r,y);break}case"FIXED_LEFT_COLUMN":l.disabled=R||a.fixed==="left";break;case"FIXED_RIGHT_COLUMN":l.disabled=R||a.fixed==="right";break;case"CLEAR_FIXED_COLUMN":l.disabled=R||!a.fixed;break}}break}case"COMMIT_PROXY_INITIAL":case"COMMIT_PROXY_QUERY":case"COMMIT_PROXY_RELOAD":case"COMMIT_PROXY_DELETE":case"COMMIT_PROXY_SAVE":{l.disabled=!t;break}}}function Ce(l){return l.options.forEach(r=>{r.forEach(o=>{ce(o,l),o.children&&o.children.forEach(e=>{ce(e,l)})})}),!0}function K(){return new Promise(l=>{if(M.modal){const r=M.getComponent("VxeNumberInput");if(r){const o=f.ref(1);M.modal.alert({title:"请输入行数",width:220,maskClosable:!1,slots:{default(){return f.h(r,{modelValue:o.value,min:1,max:100,type:"integer",align:"center",controlConfig:{layout:"default"},style:{width:"100%"},"onUpdate:modelValue"(e){o.value=e}})}}}).then(e=>{l(e==="confirm"?{size:o.value||1}:{size:0})})}else console.error(M.getI18n("vxe.error.reqComp",["vxe-number-input"])),l({size:0})}else l({size:0})})}function W(){location.reload()}function z(){history.forward()}function q(){history.back()}function ue(l){l&&l.copy&&(H=l.copy)}const de={setConfig:ue,install(l,r){M=l,M.checkVersion?M.checkVersion(M.tableVersion,4,11)||console.error(`[@vxe-ui/plugin-menu 4.3.1] ${M.getI18n("vxe.error.errorVersion",[`vxe-table@${M.tableVersion||"?"}`,"vxe-table v4.11+"])} https://vxeui.com/other4/#/plugin-menu/install`):/^(4)\./.test(M.uiVersion||M.tableVersion)||console.error("[@vxe-ui/plugin-menu 4.3.1] Requires vxe-table 4.7.0+ version. https://vxeui.com/other4/#/plugin-menu/install"),ue(r),M.menus.mixin({SYSTEM_PAGE_REFRESH:{tableMenuMethod:W,treeMenuMethod:W,calendarMenuMethod:W,menuMenuMethod:W,formDesignMenuMethod:W},SYSTEM_PAGE_FORWARD:{tableMenuMethod:z,treeMenuMethod:z,calendarMenuMethod:z,menuMenuMethod:z,formDesignMenuMethod:z},SYSTEM_PAGE_BACK:{tableMenuMethod:q,treeMenuMethod:q,calendarMenuMethod:q,menuMenuMethod:q,formDesignMenuMethod:q},CLEAR_CELL:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o;if(t&&n){const a=e.props,{mouseConfig:s}=a,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;if(s&&i.area){const u=e.getCellAreas();u&&u.length&&u.forEach(d=>{const{rows:m,cols:R}=d;R.forEach(y=>{m.forEach(O=>{e.clearData(O,y.field)})})})}else e.clearData(t,n.field)}}},CLEAR_ROW:{tableMenuMethod(o){const{$table:e,row:t}=o;t&&e.clearData(t)}},CLEAR_CHECKBOX_ROW:{tableMenuMethod(o){const{$table:e}=o;e.clearData(e.getCheckboxRecords())}},CLEAR_AREA_ROW:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o,a=e.props,{mouseConfig:s}=a,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;s&&i.area?(s&&i.area?e.getCellAreas():[]).forEach(d=>{const{rows:m}=d;e.clearData(m)}):t&&n&&e.clearData(t)}},CLEAR_ALL:{tableMenuMethod(o){const{$table:e}=o;e.clearData()}},SELECT_ALL_AREA:{tableMenuMethod(o){const{$table:e}=o,t=e.props,{mouseConfig:n}=t,{computeMouseOpts:a}=e.getComputeMaps(),s=a.value;if(n&&s.area){const{visibleData:c}=e.getTableData(),{visibleColumn:i}=e.getTableColumn();e.setCellAreas([{startRow:p.first(c),endRow:p.last(c),startColumn:p.first(i),endColumn:p.last(i)}])}}},SELECT_AREA_TO_LEFT:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o,a=e.props,{mouseConfig:s}=a,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;if(t&&n&&s&&i.area){const{visibleColumn:u}=e.getTableColumn(),d=e.getCellAreas();if(d.length===1){const m=d[0];e.setCellAreas([{startRow:p.first(m.rows),endRow:p.last(m.rows),startColumn:p.first(u),endColumn:p.last(m.cols)}],{column:n,row:t})}else e.setCellAreas([{startRow:t,endRow:t,startColumn:p.first(u),endColumn:n}],{column:n,row:t})}}},SELECT_AREA_TO_RIGHT:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o,a=e.props,{mouseConfig:s}=a,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;if(t&&n&&s&&i.area){const{visibleColumn:u}=e.getTableColumn(),d=e.getCellAreas();if(d.length===1){const m=d[0];e.setCellAreas([{startRow:p.first(m.rows),endRow:p.last(m.rows),startColumn:p.first(m.cols),endColumn:p.last(u)}],{column:n,row:t})}else e.setCellAreas([{startRow:t,endRow:t,startColumn:n,endColumn:p.last(u)}],{column:n,row:t})}}},SELECT_AREA_TO_TOP:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o,a=e.props,{mouseConfig:s}=a,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;if(t&&n&&s&&i.area){const{visibleData:u}=e.getTableData(),d=e.getCellAreas();if(d.length===1){const m=d[0];e.setCellAreas([{startRow:p.first(u),endRow:p.last(m.rows),startColumn:p.first(m.cols),endColumn:p.last(m.cols)}],{column:n,row:t})}else e.setCellAreas([{startRow:p.first(u),endRow:t,startColumn:n,endColumn:n}],{column:n,row:t})}}},SELECT_AREA_TO_BOTTON:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o,a=e.props,{mouseConfig:s}=a,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;if(t&&n&&s&&i.area){const{visibleData:u}=e.getTableData(),d=e.getCellAreas();if(d.length===1){const m=d[0];e.setCellAreas([{startRow:p.first(m.rows),endRow:p.last(u),startColumn:p.first(m.cols),endColumn:p.last(m.cols)}],{column:n,row:t})}else e.setCellAreas([{startRow:t,endRow:p.last(u),startColumn:n,endColumn:n}],{column:n,row:t})}}},REVERT_CELL:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o;if(t&&n){const a=e.props,{mouseConfig:s}=a,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;if(s&&i.area){const u=e.getCellAreas();u&&u.length&&u.forEach(d=>{const{rows:m,cols:R}=d;R.forEach(y=>{m.forEach(O=>{e.revertData(O,y.field)})})})}else e.revertData(t,n.field)}}},REVERT_ROW:{tableMenuMethod(o){const{$table:e,row:t}=o;t&&e.revertData(t)}},REVERT_CHECKBOX_ROW:{tableMenuMethod(o){const{$table:e}=o;e.revertData(e.getCheckboxRecords())}},REVERT_ALL:{tableMenuMethod(o){const{$table:e}=o;e.revertData()}},COPY_TITLE:{tableMenuMethod(o){const{column:e}=o,t=e.getTitle();t&&(p.isFunction(H)?H(t):se(t))}},COPY_CELL:{tableMenuMethod(o){re(o)}},CUT_CELL:{tableMenuMethod(o){re(o,!0)}},PASTE_CELL:{tableMenuMethod(o){const{$event:e,$table:t,row:n,column:a}=o,s=t.props,{mouseConfig:c}=s,{computeMouseOpts:i}=t.getComputeMaps(),u=i.value;if(c&&u.area)t.triggerPasteCellAreaEvent(e);else{const d=te();d&&d.text&&p.set(n,a.field,d.text)}}},MERGE_OR_CLEAR:{tableMenuMethod(o){const{$event:e,$table:t}=o,n=t.getCellAreas(),a=oe(o);let s=!1;a.length?t.removeMergeCells(a):(s=!0,t.setMergeCells(n.map(({rows:i,cols:u})=>({row:i[0],col:u[0],rowspan:i.length,colspan:u.length}))));const c=n.map(({rows:i,cols:u})=>({rows:i,cols:u}));t.dispatchEvent("cell-area-merge",{status:s,targetAreas:c},e)}},MERGE_CELL:{tableMenuMethod(o){const{$event:e,$table:t}=o,{visibleData:n}=t.getTableData(),{visibleColumn:a}=t.getTableColumn(),s=t.getCellAreas();if(ie(o),s.some(({rows:i,cols:u})=>i.length===n.length||u.length===a.length)){M.modal&&M.modal.message({content:M.getI18n("vxe.pro.area.mergeErr"),status:"error",id:"operErr"});return}t.setMergeCells(s.map(({rows:i,cols:u})=>({row:i[0],col:u[0],rowspan:i.length,colspan:u.length})));const c=s.map(({rows:i,cols:u})=>({rows:i,cols:u}));t.dispatchEvent("cell-area-merge",{status:!0,targetAreas:c},e)}},CLEAR_MERGE_CELL:{tableMenuMethod(o){const{$event:e,$table:t}=o,n=ie(o);n.length&&t.dispatchEvent("clear-cell-area-merge",{mergeCells:n},e)}},CLEAR_ALL_MERGE:{tableMenuMethod(o){const{$event:e,$table:t}=o,n=t.getMergeCells(),a=t.getMergeFooterItems();t.clearMergeCells(),t.clearMergeFooterItems(),t.dispatchEvent("clear-merge",{mergeCells:n,mergeFooterItems:a},e)}},EDIT_CELL:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o;e.setEditCell?e.setEditCell(t,n):e.setActiveCell(t,n.field)}},EDIT_ROW:{tableMenuMethod(o){const{$table:e,row:t}=o;e.setEditRow?e.setEditRow(t):e.setActiveRow(t)}},INSERT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,column:n}=o,a=e.props,{mouseConfig:s}=a,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;e.insert(t.params||{}).then(({rows:u})=>{n&&s&&i.area&&e.setCellAreas([{startRow:p.first(u),endRow:p.last(u),startColumn:n,endColumn:n}])})}},INSERT_AT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:a}=o,s=e.props,{mouseConfig:c}=s,{computeMouseOpts:i}=e.getComputeMaps(),u=i.value;(n?e.insertAt(t.params||{},n):e.insert(t.params||{})).then(({rows:d})=>{a&&c&&u.area&&e.setCellAreas([{startRow:p.first(d),endRow:p.last(d),startColumn:a,endColumn:a}])})}},BATCH_INSERT_AT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:a}=o,s=e.props,{mouseConfig:c}=s,{computeMouseOpts:i}=e.getComputeMaps(),u=i.value;K().then(({size:d})=>{if(d){const m=p.range(0,d).map(()=>Object.assign({},t.params));(n?e.insertAt(m,n):e.insert(m)).then(({rows:R})=>{a&&c&&u.area&&e.setCellAreas([{startRow:p.first(R),endRow:p.last(R),startColumn:a,endColumn:a}])})}})}},INSERT_NEXT_AT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:a}=o,s=e.props,{mouseConfig:c}=s,{computeMouseOpts:i}=e.getComputeMaps(),u=i.value;(n?e.insertNextAt(t.params||{},n):e.insert(t.params||{})).then(({rows:d})=>{a&&c&&u.area&&e.setCellAreas([{startRow:p.first(d),endRow:p.last(d),startColumn:a,endColumn:a}])})}},BATCH_INSERT_NEXT_AT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:a}=o,s=e.props,{mouseConfig:c}=s,{computeMouseOpts:i}=e.getComputeMaps(),u=i.value;K().then(({size:d})=>{if(d){const m=p.range(0,d).map(()=>Object.assign({},t.params));(n?e.insertNextAt(m,n):e.insert(m)).then(({rows:R})=>{a&&c&&u.area&&e.setCellAreas([{startRow:p.first(R),endRow:p.last(R),startColumn:a,endColumn:a}])})}})}},INSERT_ACTIVED_ROW:{tableMenuMethod(o){const{$table:e,menu:t,column:n}=o,a=t.params||[],s=Object.assign({},a[0]||{});e.insert(s).then(({row:c})=>{e.setEditCell?e.setEditCell(c,a[1]||n):e.setActiveCell(c,a[1]||n.field)})}},INSERT_EDIT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,column:n}=o,a=t.params||[],s=Object.assign({},a[0]||{});e.insert(s).then(({row:c})=>{e.setEditCell?e.setEditCell(c,a[1]||n):e.setActiveCell(c,a[1]||n.field)})}},INSERT_AT_ACTIVED_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:a}=o,s=t.params||[],c=Object.assign({},s[0]||{});(n?e.insertAt(c,n):e.insert(c)).then(({row:i})=>{e.setEditCell?e.setEditCell(i,s[1]||a):e.setActiveCell(i,s[1]||a.field)})}},INSERT_AT_EDIT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:a}=o,s=t.params||[],c=Object.assign({},s[0]||{});(n?e.insertAt(c,n):e.insert(c)).then(({row:i})=>{e.setEditCell?e.setEditCell(i,s[1]||a):e.setActiveCell(i,s[1]||a.field)})}},BATCH_INSERT_AT_EDIT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:a}=o,s=t.params||[];K().then(({size:c})=>{if(c){const i=p.range(0,c).map(()=>Object.assign({},s[0]));(n?e.insertAt(i,n):e.insert(i)).then(({row:u})=>{e.setEditCell?e.setEditCell(u,s[1]||a):e.setActiveCell(u,s[1]||a.field)})}})}},INSERT_NEXT_AT_EDIT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:a}=o,s=t.params||[],c=Object.assign({},s[0]||{});(n?e.insertNextAt(c,n):e.insert(c)).then(({row:i})=>{e.setEditCell?e.setEditCell(i,s[1]||a):e.setActiveCell(i,s[1]||a.field)})}},BATCH_INSERT_NEXT_AT_EDIT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:a}=o,s=t.params||[];K().then(({size:c})=>{if(c){const i=p.range(0,c).map(()=>Object.assign({},s[0]));(n?e.insertNextAt(i,n):e.insert(i)).then(({row:u})=>{e.setEditCell?e.setEditCell(u,s[1]||a):e.setActiveCell(u,s[1]||a.field)})}})}},DELETE_ROW:{tableMenuMethod(o){const{$table:e,row:t}=o;t&&e.remove(t)}},DELETE_AREA_ROW:{tableMenuMethod(o){const{$table:e,row:t}=o,n=e.props,{mouseConfig:a}=n,{computeMouseOpts:s}=e.getComputeMaps(),c=s.value;a&&c.area?e.getCellAreas().forEach(u=>{const{rows:d}=u;e.remove(d)}):t&&e.remove(t)}},DELETE_CHECKBOX_ROW:{tableMenuMethod(o){const{$table:e}=o;e.removeCheckboxRow()}},DELETE_ALL:{tableMenuMethod(o){const{$table:e}=o;e.remove()}},CLEAR_SORT:{tableMenuMethod(o){const{$event:e,$table:t,column:n}=o;n&&t.triggerSortEvent(e,n,null)}},CLEAR_ALL_SORT:{tableMenuMethod(o){const{$event:e,$table:t}=o,n=t.getSortColumns();n.length&&(t.clearSort(),t.dispatchEvent("clear-sort",{sortList:n},e))}},SORT_ASC:{tableMenuMethod(o){const{$event:e,$table:t,column:n}=o;n&&t.triggerSortEvent(e,n,"asc")}},SORT_DESC:{tableMenuMethod(o){const{$event:e,$table:t,column:n}=o;n&&t.triggerSortEvent(e,n,"desc")}},CLEAR_FILTER:{tableMenuMethod(o){const{$event:e,$table:t,column:n}=o;n&&(t.handleClearFilter(n),t.confirmFilterEvent(e))}},CLEAR_ALL_FILTER:{tableMenuMethod(o){const{$event:e,$table:t}=o,n=t.getCheckedFilters();n.length&&(t.clearFilter(),t.dispatchEvent("clear-filter",{filterList:n},e))}},FILTER_CELL:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o;if(t&&n){const{field:a,filters:s}=n;if(s.length){const c=s[0];c.data=p.get(t,a),c.checked=!0,e.updateData()}}}},EXPORT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n}=o;if(n){const a={data:[n]};e.exportData(p.assign({},t.params?t.params[0]:{},a))}}},EXPORT_CHECKBOX_ROW:{tableMenuMethod(o){const{$table:e,menu:t}=o,n={data:e.getCheckboxRecords()};e.exportData(p.assign({},t.params?t.params[0]:{},n))}},EXPORT_ALL:{tableMenuMethod(o){const{$table:e,menu:t}=o;e.exportData(t.params)}},PRINT_ALL:{tableMenuMethod(o){const{$table:e,menu:t}=o;e.print(t.params)}},PRINT_CHECKBOX_ROW:{tableMenuMethod(o){const{$table:e,menu:t}=o,n={data:e.getCheckboxRecords()};e.print(p.assign(n,t.params))}},OPEN_FIND:{tableMenuMethod(o){const{$event:e,$table:t}=o;t.triggerFNROpenEvent(e,"find")}},OPEN_REPLACE:{tableMenuMethod(o){const{$event:e,$table:t}=o;t.triggerFNROpenEvent(e,"replace")}},HIDDEN_COLUMN:{tableMenuMethod(o){const{$table:e,column:t}=o;t&&e.hideColumn(t)}},FIXED_LEFT_COLUMN:ee("left"),FIXED_RIGHT_COLUMN:ee("right"),CLEAR_FIXED_COLUMN:ee(null),RESET_COLUMN:{tableMenuMethod(o){const{$table:e}=o;e.resetColumn({visible:!0,resizable:!1})}},RESET_RESIZABLE:{tableMenuMethod(o){const{$table:e}=o;e.resetColumn({visible:!1,resizable:!0})}},RESET_ALL:{tableMenuMethod(o){const{$table:e}=o;e.resetColumn(!0)}},COMMIT_PROXY_INITIAL:{tableMenuMethod:B("initial")},COMMIT_PROXY_QUERY:{tableMenuMethod:B("query")},COMMIT_PROXY_RELOAD:{tableMenuMethod:B("reload")},COMMIT_PROXY_DELETE:{tableMenuMethod:B("delete")},COMMIT_PROXY_SAVE:{tableMenuMethod:B("save")}}),M.interceptor.add("event.showMenu",Ce)}};typeof window<"u"&&window.VxeUI&&window.VxeUI.use&&window.VxeUI.use(de),I.setI18n("zh-CN",ae),I.use(de),I.setIcon({TABLE_EDIT:""}),I.setConfig({authId:"wmtxlrzz9kdguq7j"}),I.setLanguage("zh-CN");const be=I,he=le;function ne(l){l.use(I),l.use(le)}function Ee(l){for(let r=1,o=arguments.length;r<o;r++){let e=arguments[r]||{};for(let t in e)if(e.hasOwnProperty(t)){let n=e[t];n!==void 0&&(l[t]=n)}}return l}function J(l){const r=t=>t&&Object.prototype.toString.call(t)==="[object Object]",o=t=>Array.isArray(t),e=(t,n)=>{if(!o(t)||!o(n))return n||t;const a=[...t];return n.forEach((s,c)=>{if(o(s)){a[c]=e(a[c]||[],s);return}if(r(s)&&s.code){const i=a.findIndex(u=>(u==null?void 0:u.code)===s.code);i>-1?a[i]=J({},a[i],s):a.push(s)}else if(r(s)){const i=a[c];a[c]=i?J({},i,s):s}else a[c]=s}),a};for(let t=1,n=arguments.length;t<n;t++){const a=arguments[t]||{};for(const s in a)if(a.hasOwnProperty(s)){const c=l[s],i=a[s];if(i===void 0)continue;r(i)&&r(c)?l[s]=J({},c,i):o(i)&&o(c)?l[s]=e(c,i):(r(i)||o(i),l[s]=i)}}return l}const Me=()=>({menuConfig:{},editConfig:{enabled:!0,trigger:"dblclick",mode:"cell",showStatus:!0},exportConfig:{type:"xlsx"},columnConfig:{resizable:!0},sortConfig:{trigger:"cell",remote:!0},virtualYConfig:{enabled:!0,gt:1e4},clipConfig:{isCopy:!0,isCut:!0,isPaste:!0,isFillPaste:!0,isRowIncrement:!0,isColumnIncrement:!1},areaConfig:{extendByCopy:!0,multiple:!0,selectCellByHeader:!1,excludeFields:["tm"]},mouseConfig:{area:!0,extension:!0},keyboardConfig:{isClip:!0,isEdit:!0,isTab:!0,isArrow:!0,isDel:!0,isEnter:!0,isMerge:!0,isFNR:!0,isChecked:!0,isLastEnterAppendRow:!0,enterToTab:!1},rowConfig:{resizable:!0},toolbarConfig:{slots:{buttons:"toolbarButtons"},export:!1}}),Te=(l,r)=>{const o=l.__vccOpts||l;for(const[e,t]of r)o[e]=t;return o},Re=(l="children",r=[])=>{const o=[],e=(t,n=[])=>{n.forEach(a=>{var s;t.push(a),(s=a==null?void 0:a[l])!=null&&s.length&&e(t,a[l])})};return e(o,r),o},A=Me(),ye=f.defineComponent({name:"DseTable",emits:["menu-click","menu-clear-delete","update:data","update:height","update:columns"],props:{menuConfig:{type:Object,default:()=>A.menuConfig},autoResize:{type:Boolean,default:!0},border:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showHeaderOverflow:{type:Boolean,default:!1},showOverflow:{type:Boolean,default:!0},keepSource:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},cellStyle:{type:[Function,Object],default:()=>({})},rowStyle:{type:[Function,Object],default:()=>({column:l,rowIndex:r,columnIndex:o})=>r%2===0?{background:"#3280FF0A"}:{}},headerRowStyle:{type:[Function,Object],default:()=>({background:"#0080FF1F"})},data:{type:Array,default:()=>[]},height:{type:Number,default:0},maxHeight:{type:Number,default:0},percent:{type:Number,default:1},offset:{type:Number,default:0},editConfig:{type:Object,default:()=>A.editConfig},exportConfig:{type:Object,default:()=>A.exportConfig},align:{type:String,default:"center"},columnConfig:{type:Object,default:()=>A.columnConfig},sortConfig:{type:Object,default:()=>A.sortConfig},virtualYConfig:{type:Object,default:()=>A.virtualYConfig},clipConfig:{type:Object,default:()=>A.clipConfig},areaConfig:{type:Object,default:()=>A.areaConfig},mouseConfig:{type:Object,default:()=>A.mouseConfig},keyboardConfig:{type:Object,default:()=>A.keyboardConfig},rowConfig:{type:Object,default:()=>A.rowConfig},mergeCells:{type:Array,default:()=>[]},width:{type:[String,Number],default:"100%"}},setup(l,{emit:r,expose:o}){const e=f.getCurrentInstance();e&&e.proxy&&e.proxy.appContext&&e.proxy.appContext.app&&ne(e.proxy.appContext.app);const t=f.computed(()=>typeof l.width=="number"?`${l.width}px`:l.width),n=f.ref(),a=f.ref(0),s=f.ref("dse-table-grid"),c=f.computed(()=>Re("children",l.columns)),i=f.computed(()=>{const g=[];return c.value.forEach(C=>{C.slots&&(C.slots.default&&g.push({name:C.slots.default,type:"default",item:C}),C.slots.edit&&g.push({name:C.slots.edit,type:"edit",item:C}),C.slots.header&&g.push({name:C.slots.header,type:"header",item:C}))}),g}),u=f.computed(()=>{const g=["menuConfig"],C=["editConfig","exportConfig","columnConfig","sortConfig","virtualYConfig","clipConfig","areaConfig","mouseConfig","keyboardConfig","rowConfig","toolbarConfig"],T={};return g.forEach(b=>{T[b]=J({},A[b],l[b]||{})}),C.forEach(b=>{T[b]=Ee({},A[b],l[b]||{})}),T}),d=({menu:g,type:C,row:T,rowIndex:b,column:w,columnIndex:S,$event:V})=>{var x;g.code==="DELETE_COLUMN"&&(l.columns.splice(S,1),(x=n.value)==null||x.refreshColumn());const h=l.data,v={CLEAR_ROW:()=>{var P,D,G,Y;const E=(G=(D=(P=n.value)==null?void 0:P.getCellAreas())==null?void 0:D[0])==null?void 0:G.rows;if(E!=null&&E.length){for(let $=0;$<h.length;$++)E.includes(h[$])&&(h[$]={});r("update:data",h),(Y=n.value)==null||Y.reloadData(h),r("menu-clear-delete",h)}},DELETE:()=>{var D,G,Y,$;const E=(Y=(G=(D=n.value)==null?void 0:D.getCellAreas())==null?void 0:G[0])==null?void 0:Y.rows;if(!(E!=null&&E.length))return;E.map(N=>{var Q;return(Q=n.value)==null?void 0:Q.getRowIndex(N)}).sort((N,Q)=>Q-N).forEach(N=>{(N||N===0)&&h.splice(N,1)}),r("update:data",h),($=n.value)==null||$.reloadData(h),r("menu-clear-delete",h)},INSERT_AT_ROW:()=>{var E,P;if(!b&&b!==0){r("update:data",h.push({})),(E=n.value)==null||E.reloadData(h);return}r("update:data",h.splice(b+1,0,{})),(P=n.value)==null||P.reloadData(h)},INSERT_AT_ROW10:()=>{var P,D;const E=Array.from({length:10},()=>({}));if(!b&&b!==0){r("update:data",h.push(...E)),(P=n.value)==null||P.reloadData(h);return}r("update:data",h.splice(b+1,0,...E)),(D=n.value)==null||D.reloadData(h)}};v[g.code]?v[g.code]():r("menu-click",g,C,T,b,w,S,V)},m=({targetAreas:g})=>{var b,w;const C=((b=g==null?void 0:g[0])==null?void 0:b.rows)||[],T=((w=n.value)==null?void 0:w.getInsertRecords())||[];r("update:data",[...T,...C])},R=()=>{var T,b;const g=l.data,C=((T=g.at(-1))==null?void 0:T._X_ROW_KEY)??0;g.push({_X_ROW_KEY:C+1}),r("update:data",g),(b=n.value)==null||b.reloadData(g)};function y(g){const C=[];function T(b){var w;for(const S of b)S.field&&C.push(S.field),(w=S.children)!=null&&w.length&&T(S.children)}return T(g),C}const O=["tm","updateTime","startTime","endTime"],F=()=>{const g=[],C=y(l.columns),T=l.data,b=Object.keys(T);for(let w=0;w<b.length;w++){const S=b[w],V=T[S],h=[];for(let v=0;v<C.length;v++){const x=C[v];n.value.isUpdateByRow(V,x)&&h.push(x)}if(h.length>0){const v={};for(let x=0;x<h.length;x++){const E=h[x];v[E]=V[E]}for(let x=0;x<O.length;x++){const E=O[x];V[E]!==void 0&&(v[E]=V[E])}g.push(v)}}return g},k=()=>{l.height?a.value=l.height:f.nextTick(()=>{var C,T;const g=window.innerHeight-100-((T=(C=document.querySelector(`#${s.value}`))==null?void 0:C.getBoundingClientRect())==null?void 0:T.top);a.value=g})};return f.watch(()=>l.height,()=>{k()}),f.onMounted(()=>{console.log(l.data,"props.data");const g=0,C=2e4;s.value="_gridRef"+Math.round(Math.random()*(C-g))+g,[".app-main"].map(b=>document.querySelector(b)).forEach(b=>{b&&pe.useResizeObserver(b,()=>{k()})}),k()}),o({xGrid:n,getUpdateCellData:F}),{gridWidth:t,xGrid:n,gridId:s,tableHeight:a,transColumns:c,allSlots:i,mergedConfigs:u,handleMenu:d,cellAreaPaste:m,enterAppendRow:R}}}),Oe=["id"],_e={key:1};function Ae(l,r,o,e,t,n){const a=f.resolveComponent("vxe-grid");return f.openBlock(),f.createElementBlock("div",{id:l.gridId,ref:l.gridId},[f.createVNode(f.Transition,null,{default:f.withCtx(()=>[f.createVNode(a,f.mergeProps(l.$attrs,{class:"hydGrid",ref:"xGrid",size:"small",align:l.align,"area-config":l.mergedConfigs.areaConfig,"auto-resize":l.autoResize,border:l.border,"cell-style":l.cellStyle,"clip-config":l.mergedConfigs.clipConfig,"column-config":l.mergedConfigs.columnConfig,columns:l.columns,data:l.data,height:l.tableHeight,"max-height":l.tableHeight,"edit-config":l.mergedConfigs.editConfig,"export-config":l.mergedConfigs.exportConfig,"header-row-style":l.headerRowStyle,"keep-source":l.keepSource,"keyboard-config":l.mergedConfigs.keyboardConfig,"menu-config":l.mergedConfigs.menuConfig,"merge-cells":l.mergeCells,"mouse-config":l.mergedConfigs.mouseConfig,"row-config":l.mergedConfigs.rowConfig,"row-style":l.rowStyle,"show-footer":l.showFooter,"show-header":l.showHeader,"show-header-overflow":l.showHeaderOverflow,"show-overflow":l.showOverflow,"sort-config":l.mergedConfigs.sortConfig,style:{width:l.gridWidth},"virtual-y-config":l.mergedConfigs.virtualYConfig,onMenuClick:l.handleMenu,onCellAreaPaste:l.cellAreaPaste,onEnterAppendRow:l.enterAppendRow}),f.createSlots({_:2},[f.renderList(l.allSlots,s=>({name:s.name,fn:f.withCtx(c=>[f.renderSlot(l.$slots,s.name,f.normalizeProps(f.guardReactiveProps(c)),()=>[s.type==="header"?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[s.item.unit?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createElementVNode("span",null,f.toDisplayString(s.item.title),1),f.createElementVNode("div",null,"("+f.toDisplayString(s.item.unit)+")",1)],64)):(f.openBlock(),f.createElementBlock("span",_e,f.toDisplayString(s.item.title),1))],64)):f.createCommentVNode("",!0)])])}))]),1040,["align","area-config","auto-resize","border","cell-style","clip-config","column-config","columns","data","height","max-height","edit-config","export-config","header-row-style","keep-source","keyboard-config","menu-config","merge-cells","mouse-config","row-config","row-style","show-footer","show-header","show-header-overflow","show-overflow","sort-config","style","virtual-y-config","onMenuClick","onCellAreaPaste","onEnterAppendRow"])]),_:3})],8,Oe)}const j=Te(ye,[["render",Ae]]);j.install=l=>{l.component(j.name||"DseTable",j)};const xe=Object.freeze(Object.defineProperty({__proto__:null,DseTable:j},Symbol.toStringTag,{value:"Module"})),we={install:l=>{ne(l),Object.values(xe).forEach(r=>{r.install?r.install(l):r.name&&l.component(r.name,r)})}};_.DseTable=j,_.VxeTable=he,_.VxeUI=be,_.default=we,_.setupVxeTable=ne,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(O,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("vue"),require("vxe-pc-ui"),require("vxe-table"),require("xe-utils"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["exports","vue","vxe-pc-ui","vxe-table","xe-utils","@vueuse/core"],m):(O=typeof globalThis<"u"?globalThis:O||self,m(O.DseTableLib={},O.Vue,O.VxeUI,O.VXETable,O.XEUtils,O.VueUse))})(this,function(O,m,D,ne,p,pe){"use strict";var Q={};Object.defineProperty(Q,"__esModule",{value:!0});var le=Q.default=void 0;le=Q.default={vxe:{base:{pleaseInput:"请输入",pleaseSelect:"请选择",comma:",",fullStop:"。"},loading:{text:"加载中..."},error:{downErr:"下载失败",errLargeData:"当绑定的数据量过大时,应该请使用 {0},否则可能会出现卡顿",groupFixed:"如果使用分组表头,冻结列必须按组设置",groupMouseRange:'分组表头与 "{0}" 不能同时使用,这可能会出现错误',groupTag:'分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',scrollErrProp:'启用虚拟滚动后不支持该参数 "{0}"',errConflicts:'参数 "{0}" 与 "{1}" 有冲突',modelConflicts:'绑定的字段值 "{0}" 与 "{1}" 存在冲突,将会出现错误',notSupportProp:'当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',reqSupportProp:'当使用 "{0}" 时,应该设置 "{1}",否则可能会出现错误',notConflictProp:'当使用 "{0}" 时,应该设置 "{1}",否则可能会存在功能冲突',unableInsert:"无法插入到指定位置,请检查参数是否正确",useErr:'安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',barUnableLink:"工具栏无法关联表格",expandContent:'展开行的插槽应该是 "content",请检查是否正确',reqComp:'缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',reqModule:'缺少 "{0}" 模块',reqProp:'缺少必要的 "{0}" 参数,这可能会导致出现错误',emptyProp:'参数 "{0}" 不允许为空',errProp:'不支持的参数 "{0}",可能为 "{1}"',colRepet:'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',notFunc:'方法 "{0}" 不存在',errFunc:'参数 "{0}" 不是一个方法',notValidators:'全局校验 "{0}" 不存在',notFormats:'全局格式化 "{0}" 不存在',notCommands:'全局指令 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:'树结构不支持 "{0}"',noGroup:'数据分组后不支持 "{0}"',notProp:'不支持的参数 "{0}"',checkProp:'当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',coverProp:'"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',uniField:'字段名 "{0}" 重复定义,这可能会出现错误',repeatKey:'主键重复 {0}="{1}",这可能会出现错误',repeatProp:'参数重复 {0}="{1}",这可能会出现错误',delFunc:'方法 "{0}" 已废弃,请使用 "{1}"',delProp:'参数 "{0}" 已废弃,请使用 "{1}"',delEvent:'事件 "{0}" 已废弃,请使用 "{1}"',removeProp:'参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',errFormat:'全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',notType:'不支持的文件类型 "{0}"',notExp:"该浏览器不支持导入/导出功能",impFields:"导入失败,请检查字段名和数据格式是否正确",treeNotImp:"树表格不支持导入",treeCrossDrag:"只能拖拽第一层级",treeDragChild:"父级不能拖拽到自己的子级中",reqPlugin:'扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',errMaxRow:"超过支持的最大数据量 {0} 行,这可能会导致出现错误",useNew:"不建议使用 {0},请使用 {1}",errorVersion:"版本不匹配,当前版本 {0},最低支持版本为 {1}"},table:{emptyText:"暂无数据",allTitle:"全选/取消",seqTitle:"序号",actionTitle:"操作",confirmFilter:"筛选",resetFilter:"重置",allFilter:"全部",sortAsc:"升序:最低到最高",sortDesc:"降序:最高到最低",filter:"对所选的列启用筛选",impSuccess:"成功导入 {0} 条记录",expLoading:"正在导出中",expSuccess:"导出成功",expError:"导出失败",expFilename:"导出_{0}",expOriginFilename:"导出_源_{0}",customTitle:"列设置",customAll:"全部",customConfirm:"确认",customClose:"关闭",customCancel:"取消",customRestore:"恢复默认",maxFixedCol:"最大冻结列的数量不能超过 {0} 个",maxGroupCol:"最大分组字段的数量不能超过 {0} 个",dragTip:"移动:{0}",resizeColTip:"宽:{0} 像素",resizeRowTip:"高:{0} 像素",rowGroupContentTotal:"{0}({1})",menuLoading:"加载中..."},grid:{selectOneRecord:"请至少选择一条记录!",deleteSelectRecord:"您确定要删除所选记录吗?",removeSelectRecord:"您确定要移除所选记录吗?",dataUnchanged:"数据未改动!",delSuccess:"成功删除所选记录!",saveSuccess:"保存成功!",operError:"发生错误,操作失败!"},select:{clear:"清除",allChecked:"全选",total:"{0} / {1}",search:"搜索",loadingText:"加载中...",emptyText:"暂无数据",maxSize:"最大可选择的数量不能超过 {0} 个",overSizeErr:"已超出最大可选数量 {0} 个,超出部分将被忽略!",searchEmpty:"未匹配到数据!"},tree:{searchEmpty:"未匹配到数据!",dragTip:"移动:{0}"},treeSelect:{clearChecked:"清除",allChecked:"全选",allExpand:"全部展开",clearExpand:"全部收起",total:"已选 {0}",search:"搜索",emptyText:"暂无数据"},pager:{goto:"前往",gotoTitle:"页数",pagesize:"{0}条/页",total:"共 {0} 条记录",pageClassifier:"页",homePage:"首页",homePageTitle:"首页",prevPage:"上一页",prevPageTitle:"上一页",nextPage:"下一页",nextPageTitle:"下一页",prevJump:"向上跳页",prevJumpTitle:"向上跳页",nextJump:"向下跳页",nextJumpTitle:"向下跳页",endPage:"末页",endPageTitle:"末页"},alert:{title:"系统提示"},button:{confirm:"确认",cancel:"取消",clear:"清除"},filter:{search:"搜索"},custom:{cstmTitle:"列设置",cstmRestore:"恢复默认",cstmCancel:"取消",cstmConfirm:"确定",cstmConfirmRestore:"请确认是否恢复成默认列配置?",cstmDragTarget:"移动:{0}",setting:{colSort:"排序",sortHelpTip:"点击并拖动图标可以调整顺序",colTitle:"列标题",colResizable:"列宽(像素)",colVisible:"是否显示",colFixed:"冻结列",colFixedMax:"冻结列(最多 {0} 列)",fixedLeft:"左侧",fixedUnset:"不设置",fixedRight:"右侧"}},import:{modes:{covering:"覆盖方式(直接覆盖表格数据)",insert:"底部追加(在表格的底部追加新数据)",insertTop:"顶部追加(在表格的顶部追加新数据)",insertBottom:"底部追加(在表格的底部追加新数据)"},impTitle:"导入数据",impFile:"文件名",impSelect:"选择文件",impType:"文件类型",impOpts:"参数设置",impMode:"导入模式",impConfirm:"导入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"网页(*.html)",xml:"XML 数据(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{empty:"空数据",current:"当前数据(当前页的数据)",selected:"选中数据(当前页选中的数据)",all:"全量数据(包括所有分页的数据)"},printTitle:"打印数据",expTitle:"导出数据",expName:"文件名",expNamePlaceholder:"请输入文件名",expSheetName:"标题",expSheetNamePlaceholder:"请输入标题",expType:"保存类型",expMode:"选择数据",expCurrentColumn:"全部字段",expColumn:"选择字段",expOpts:"参数设置",expOptHeader:"表头",expHeaderTitle:"是否需要表头",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expOptTitle:"列标题",expTitleTitle:"是否为列标题,否则显示为列的字段名",expColgroupTitle:"如果存在,则支持带有分组结构的表头",expOptMerge:"合并",expMergeTitle:"如果存在,则支持带有合并结构的单元格",expOptAllExpand:"展开树",expAllExpandTitle:"如果存在,则支持将带有层级结构的数据全部展开",expOptUseStyle:"样式",expUseStyleTitle:"如果存在,则支持带样式的单元格",expOptOriginal:"源数据",expOriginalTitle:"如果为源数据,则支持导入到表格中",expPrint:"打印",expConfirm:"导出",expCancel:"取消"},modal:{errTitle:"错误提示",zoomMin:"最小化",zoomIn:"最大化",zoomOut:"还原",close:"关闭",miniMaxSize:"最小化窗口的数量不能超过 {0} 个",footPropErr:"show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用"},drawer:{close:"关闭"},form:{folding:"收起",unfolding:"展开"},toolbar:{import:"导入",export:"导出",print:"打印",refresh:"刷新",zoomIn:"全屏",zoomOut:"还原",custom:"列设置",customAll:"全部",customConfirm:"确认",customRestore:"重置",fixedLeft:"冻结在左侧",fixedRight:"冻结在右侧",cancelFixed:"取消冻结列"},datePicker:{yearTitle:"{0} 年"},dateRangePicker:{pleaseRange:"请选择开始日期与结束日期"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}},calendar:{yearLabel:"{0} 年",monthLabel:"{0} 月"},numberInput:{currencySymbol:"¥"},imagePreview:{popupTitle:"预览",operBtn:{zoomOut:"缩小",zoomIn:"放大",pctFull:"等比例缩放",pct11:"显示原始尺寸",rotateLeft:"向左旋转",rotateRight:"向右旋转",print:"点击打印图片",download:"点击下载图片"}},upload:{fileBtnText:"点击或拖拽上传",imgBtnText:"点击或拖拽上传",dragPlaceholder:"请把文件拖放到这个区域即可上传",imgSizeHint:"单张{0}",imgCountHint:"最多{0}张",fileTypeHint:"支持 {0} 文件类型",fileSizeHint:"单个文件大小不超过{0}",fileCountHint:"最多可上传{0}个文件",uploadTypeErr:"文件类型不匹配!",overCountErr:"最多只能选择{0}个文件!",overCountExtraErr:"已超出最大数量{0}个,超出的{1}个文件将被忽略!",overSizeErr:"文件大小最大不能超过{0}!",manualUpload:"点击上传",reUpload:"重新上传",uploadProgress:"上传中 {0}%",uploadErr:"上传失败",uploadSuccess:"上传成功",moreBtnText:"更多({0})",moreImgBtnText:"图片({0})",moreFileBtnText:"文件({0})",viewItemTitle:"点击查看",morePopup:{readTitle:"查看列表",imageTitle:"上传图片",fileTitle:"上传文件"}},empty:{defText:"暂无数据"},colorPicker:{clear:"清除",confirm:"确认",copySuccess:"已复制到剪贴板:{0}",hex:"十六进制"},formDesign:{formName:"表单名称",defFormTitle:"未命名的表单",widgetPropTab:"控件属性",widgetFormTab:"表单属性",error:{wdFormUni:"该类型的控件在表单中只允许添加一个",wdSubUni:"该类型的控件在子表中只允许添加一个"},styleSetting:{btn:"样式设置",title:"表单的样式设置",layoutTitle:"控件布局",verticalLayout:"上下布局",horizontalLayout:"横向布局",styleTitle:"标题样式",boldTitle:"标题加粗",fontBold:"加粗",fontNormal:"常规",colonTitle:"显示冒号",colonVisible:"显示",colonHidden:"隐藏",alignTitle:"对齐方式",widthTitle:"标题宽度",alignLeft:"居左",alignRight:"居右",unitPx:"像素",unitPct:"百分比"},widget:{group:{base:"基础控件",layout:"布局控件",system:"系统控件",module:"模块控件",chart:"图表控件",advanced:"高级控件"},copyTitle:"副本_{0}",component:{input:"输入框",textarea:"文本域",select:"下拉选择",row:"一行多列",title:"标题",text:"文本",subtable:"子表",VxeSwitch:"是/否",VxeInput:"输入框",VxeNumberInput:"数字",VxeDatePicker:"日期",VxeTextarea:"文本域",VxeSelect:"下拉选择",VxeTreeSelect:"树形选择",VxeRadioGroup:"单选框",VxeCheckboxGroup:"复选框",VxeUploadFile:"文件",VxeUploadImage:"图片",VxeRate:"评分",VxeSlider:"滑块"}},widgetProp:{name:"控件名称",placeholder:"提示语",required:"必填校验",multiple:"允许多选",displaySetting:{name:"显示设置",pc:"电脑端",mobile:"手机端",visible:"显示",hidden:"隐藏"},dataSource:{name:"数据源",defValue:"选项{0}",addOption:"添加选项",batchEditOption:"批量编辑",batchEditTip:"每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。",batchEditSubTip:"每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。",buildOption:"生成选项"},rowProp:{colSize:"列数",col2:"两列",col3:"三列",col4:"四列",col6:"六列",layout:"布局"},textProp:{name:"内容",alignTitle:"对齐方式",alignLeft:"居左",alignCenter:"居中",alignRight:"居右",colorTitle:"字体颜色",sizeTitle:"字体大小",boldTitle:"字体加粗",fontNormal:"常规",fontBold:"加粗"},subtableProp:{seqTitle:"序号",showSeq:"显示序号",showCheckbox:"允许多选",errSubDrag:"子表不支持该控件,请使用其他控件",colPlace:"将控件拖拽进来"},uploadProp:{limitFileCount:"文件数量限制",limitFileSize:"文件大小限制",multiFile:"允许上传多个文件",limitImgCount:"图片数量限制",limitImgSize:"图片大小限制",multiImg:"允许上传多张图片"}}},listDesign:{fieldSettingTab:"字段设置",listSettingTab:"参数设置",searchTitle:"查询条件",listTitle:"列表字段",searchField:"查询字段",listField:"列表字段",activeBtn:{ActionButtonUpdate:"编辑",ActionButtonDelete:"删除"},search:{addBtn:"编辑",emptyText:"未配置查询条件",editPopupTitle:"编辑查询字段"},searchPopup:{colTitle:"标题",saveBtn:"保存"}},text:{copySuccess:"已复制到剪贴板",copyError:"当前环境不支持该操作"},countdown:{formats:{yyyy:"年",MM:"月",dd:"天",HH:"时",mm:"分",ss:"秒"}},contextMenu:{loadingText:"加载中..."},gantt:{tFullFormat:{year:"{yyyy}年",quarter:"{yyyy}年第{q}季度",month:"{yyyy}年{MM}月",week:"{yyyy}年第{W}周",day:"{yyyy}年{MM}月 {E}",date:"{yyyy}年{MM}月{dd}日",hour:"{yyyy}年{MM}月{dd}日{HH}时",minute:"{yyyy}年{MM}月{dd}日{HH}时{mm}分",second:"{yyyy}年{MM}月{dd}日{HH}时{mm}分{ss}秒"},tSimpleFormat:{year:"{yyyy}年",quarter:"{q}季度",month:"{M}月",week:"{W}周",day:"{d}",date:"{d}",hour:"{HH}",minute:"{mm}",second:"{ss}"},dayss:{w0:"日",w1:"一",w2:"二",w3:"三",w4:"四",w5:"五",w6:"六"}},plugins:{extendCellArea:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",selectErr:"无法操作指定区域的单元格",extendErr:"如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作",cpInvalidErr:"该操作无法进行,您选择的区域中存在被禁止的列({0})"},fnr:{title:"查找和替换",titleFd:"查找",titleRe:"替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},body:{row:"行:{0}",col:"列:{0}"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},extendPivotTable:{aggregation:{grouping:"分组",values:"值",groupPlaceholder:"拖至此处进行分组",valuesPlaceholder:"拖至此处进行聚合",dragExistCol:"该列已存在",sortHelpTip:"点击并拖动图标可以调整顺序"},aggFuncs:{sum:"求和",count:"计数",avg:"平均值",min:"最小值",max:"最大值",first:"首个值",last:"末尾值"}},filterComplexInput:{menus:{fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结左侧",fixedRight:"冻结右侧"},cases:{equal:"等于",gt:"大于",lt:"小于",begin:"开头是",endin:"结尾是",include:"包含",isSensitive:"区分大小写"}},filterCombination:{menus:{sort:"排序",clearSort:"清除排序",sortAsc:"升序",sortDesc:"降序",fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结左侧",fixedRight:"冻结右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选",dateOption:"日期筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"显示行:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",isAfter:"在以下日期之后",eqAfter:"在以下日期之后或与之相同",isBefore:"在以下日期之前",eqBefore:"在以下日期之前或与之相同",top10:"前10项",aboveAverage:"高于平均值",belowAverage:"低于平均值",before:"之前",after:"之后",tomorrow:"明天",today:"今天",yesterday:"昨天",nextWeek:"下周",thisWeek:"本周",lastWeek:"上周",nextMonth:"下月",thisMonth:"本月",lastMonth:"上月",nextYear:"明年",thisYear:"今年",lastYear:"去年",yearToDate:"本年度截止到现在",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},empty:"(空白)",notData:"无匹配项"}},pro:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",extendErr:"如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替换",titleFd:"查找",titleRe:"替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},renderer:{search:"搜索",cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",top10:"前10项",aboveAverage:"高于平均值",belowAverage:"低于平均值",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},combination:{menus:{sort:"排序",clearSort:"清除排序",sortAsc:"升序",sortDesc:"降序",fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结到左侧",fixedRight:"冻结到右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选",dateOption:"日期筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"显示行:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},empty:"(空白)",notData:"无匹配项"}}}};let M,V;const Z=(l,a)=>p.findIndexOf(l,o=>o.id===a.id),U=(l,a,o)=>l.findRowIndexOf(a,o);function X(l){return{tableMenuMethod(a){const{$table:o,column:e}=a;p.eachTree([e],t=>{t.fixed=l}),o.refreshColumn()}}}function ee(){const l=M.globalStore;if(l)return l.clipboard||"";const a=M.config;return a&&a.clipboard?a.clipboard:null}function me(l){const a=M.globalStore;a?a.clipboard=l:M.config&&(M.config.clipboard=l)}let w;function fe(l){if(!w){w=document.createElement("textarea"),w.id="$XECopy";const a=w.style;a.width="48px",a.height="24px",a.position="fixed",a.zIndex="0",a.left="-500px",a.top="-500px",document.body.appendChild(w)}w.value=l==null?"":""+l}function se(l){let a=!1;try{fe(l),w.select(),w.setSelectionRange(0,w.value.length),a=document.execCommand("copy"),w.blur()}catch{}return a}function re(l,a){const{$event:o,$table:e,row:t,column:n}=l;if(t&&n){const s=e.props,{mouseConfig:r}=s,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;let u="";if(r&&i.area){a?e.triggerCutCellAreaEvent(o):e.triggerCopyCellAreaEvent(o);const d=ee();u=d?d.text:""}else u=p.toValueString(p.get(t,n.field)),me({text:u,html:""});p.isFunction(V)?V(u):se(u)}}function H(l){return function(a){const{$grid:o}=a;o&&o.commitProxy(l)}}function ge(l,a){const{$table:o}=l,{visibleData:e}=o.getTableData(),{visibleColumn:t}=o.getTableColumn(),n={};for(let s=0,r=a.length;s<r;s++){const c=a[s],{rows:i,cols:u}=c;for(let d=0,f=i.length;d<f;d++){const R=i[d],y=U(o,e,R);for(let _=0,I=u.length;_<I;_++){const F=u[_],g=Z(t,F),C=y+":"+g;if(n[C])return!1;n[C]=!0}}}return!0}function te(l){const{$table:a}=l,o=a.props,{mouseConfig:e}=o,{computeMouseOpts:t}=a.getComputeMaps(),n=t.value,{visibleData:s}=a.getTableData(),{visibleColumn:r}=a.getTableColumn(),c=e&&n.area?a.getCellAreas():[];return a.getMergeCells().filter(({row:u,col:d,rowspan:f,colspan:R})=>c.some(y=>{const{rows:_,cols:I}=y,F=U(a,s,_[0]),g=U(a,s,_[_.length-1]),C=Z(r,I[0]),T=Z(r,I[I.length-1]);return u>=F&&u+f-1<=g&&d>=C&&d+R-1<=T}))}function ae(l){const{$table:a}=l,o=te(l);return o.length&&a.removeMergeCells(o),o}function ie(l,a){const{code:o}=l,{$table:e,$grid:t,row:n,column:s,type:r}=a,c=e.props,{editConfig:i,mouseConfig:u}=c;switch(o){case"CLEAR_ALL_SORT":{const d=e.getSortColumns();l.disabled=!d.length;break}case"CLEAR_ALL_FILTER":{const d=e.getCheckedFilters();l.disabled=!d.length;break}case"CLEAR_ALL_MERGE":{const d=e.getMergeCells(),f=e.getMergeFooterItems();l.disabled=!d.length&&!f.length;break}case"CLEAR_MERGE_CELL":{const d=te(a);l.disabled=!d.length;break}case"COPY_TITLE":{l.disabled=!s||r!=="header";break}case"SELECT_ALL_AREA":{const{visibleData:d}=e.getTableData(),{visibleColumn:f}=e.getTableColumn();l.disabled=!d.length||!f.length;break}case"SELECT_AREA_TO_LEFT":case"SELECT_AREA_TO_RIGHT":case"SELECT_AREA_TO_TOP":case"SELECT_AREA_TO_BOTTON":{l.disabled=!s||!n;break}case"DELETE_CHECKBOX_ROW":{const d=e.getCheckboxRecords();l.disabled=!d.length;break}case"EDIT_CELL":case"CLEAR_CELL":case"CLEAR_ROW":case"COPY_CELL":case"CUT_CELL":case"PASTE_CELL":case"MERGE_OR_CLEAR":case"MERGE_CELL":case"REVERT_CELL":case"REVERT_ROW":case"DELETE_ROW":case"DELETE_AREA_ROW":case"CLEAR_SORT":case"SORT_ASC":case"SORT_DESC":case"CLEAR_FILTER":case"FILTER_CELL":case"EXPORT_ROW":case"OPEN_FIND":case"OPEN_REPLACE":case"HIDDEN_COLUMN":case"FIXED_LEFT_COLUMN":case"FIXED_RIGHT_COLUMN":case"CLEAR_FIXED_COLUMN":{if(l.disabled=!s,s){const{computeMouseOpts:d}=e.getComputeMaps(),f=d.value,R=!!s.parentId;switch(o){case"CLEAR_SORT":{l.disabled=!s.sortable||!s.order;break}case"SORT_ASC":case"SORT_DESC":l.disabled=!s.sortable;break;case"FILTER_CELL":case"CLEAR_FILTER":if(l.disabled=!s.filters||!s.filters.length,!l.disabled)switch(o){case"CLEAR_FILTER":l.disabled=!s.filters.some(y=>y.checked);break}break;case"REVERT_CELL":{l.disabled=!n||!s.field||!e.isUpdateByRow(n,s.field);break}case"REVERT_ROW":{l.disabled=!n||!s.field||!e.isUpdateByRow(n);break}case"OPEN_FIND":case"OPEN_REPLACE":{l.disabled=!(u&&f.area);break}case"EDIT_CELL":{l.disabled=!i||!s.editRender;break}case"COPY_CELL":case"CUT_CELL":case"PASTE_CELL":{const y=u&&f.area?e.getCellAreas():[];if(l.disabled=y.length>1,!l.disabled)switch(o){case"PASTE_CELL":{const _=ee();l.disabled=!_||!_.text;break}}break}case"MERGE_OR_CLEAR":case"MERGE_CELL":{const y=u&&f.area?e.getCellAreas():[];l.disabled=!y.length||y.length===1&&y[0].rows.length===1&&y[0].cols.length===1||!ge(a,y);break}case"FIXED_LEFT_COLUMN":l.disabled=R||s.fixed==="left";break;case"FIXED_RIGHT_COLUMN":l.disabled=R||s.fixed==="right";break;case"CLEAR_FIXED_COLUMN":l.disabled=R||!s.fixed;break}}break}case"COMMIT_PROXY_INITIAL":case"COMMIT_PROXY_QUERY":case"COMMIT_PROXY_RELOAD":case"COMMIT_PROXY_DELETE":case"COMMIT_PROXY_SAVE":{l.disabled=!t;break}}}function Ce(l){return l.options.forEach(a=>{a.forEach(o=>{ie(o,l),o.children&&o.children.forEach(e=>{ie(e,l)})})}),!0}function j(){return new Promise(l=>{if(M.modal){const a=M.getComponent("VxeNumberInput");if(a){const o=m.ref(1);M.modal.alert({title:"请输入行数",width:220,maskClosable:!1,slots:{default(){return m.h(a,{modelValue:o.value,min:1,max:100,type:"integer",align:"center",controlConfig:{layout:"default"},style:{width:"100%"},"onUpdate:modelValue"(e){o.value=e}})}}}).then(e=>{l(e==="confirm"?{size:o.value||1}:{size:0})})}else console.error(M.getI18n("vxe.error.reqComp",["vxe-number-input"])),l({size:0})}else l({size:0})})}function B(){location.reload()}function W(){history.forward()}function z(){history.back()}function ce(l){l&&l.copy&&(V=l.copy)}const ue={setConfig:ce,install(l,a){M=l,M.checkVersion?M.checkVersion(M.tableVersion,4,11)||console.error(`[@vxe-ui/plugin-menu 4.3.1] ${M.getI18n("vxe.error.errorVersion",[`vxe-table@${M.tableVersion||"?"}`,"vxe-table v4.11+"])} https://vxeui.com/other4/#/plugin-menu/install`):/^(4)\./.test(M.uiVersion||M.tableVersion)||console.error("[@vxe-ui/plugin-menu 4.3.1] Requires vxe-table 4.7.0+ version. https://vxeui.com/other4/#/plugin-menu/install"),ce(a),M.menus.mixin({SYSTEM_PAGE_REFRESH:{tableMenuMethod:B,treeMenuMethod:B,calendarMenuMethod:B,menuMenuMethod:B,formDesignMenuMethod:B},SYSTEM_PAGE_FORWARD:{tableMenuMethod:W,treeMenuMethod:W,calendarMenuMethod:W,menuMenuMethod:W,formDesignMenuMethod:W},SYSTEM_PAGE_BACK:{tableMenuMethod:z,treeMenuMethod:z,calendarMenuMethod:z,menuMenuMethod:z,formDesignMenuMethod:z},CLEAR_CELL:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o;if(t&&n){const s=e.props,{mouseConfig:r}=s,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;if(r&&i.area){const u=e.getCellAreas();u&&u.length&&u.forEach(d=>{const{rows:f,cols:R}=d;R.forEach(y=>{f.forEach(_=>{e.clearData(_,y.field)})})})}else e.clearData(t,n.field)}}},CLEAR_ROW:{tableMenuMethod(o){const{$table:e,row:t}=o;t&&e.clearData(t)}},CLEAR_CHECKBOX_ROW:{tableMenuMethod(o){const{$table:e}=o;e.clearData(e.getCheckboxRecords())}},CLEAR_AREA_ROW:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o,s=e.props,{mouseConfig:r}=s,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;r&&i.area?(r&&i.area?e.getCellAreas():[]).forEach(d=>{const{rows:f}=d;e.clearData(f)}):t&&n&&e.clearData(t)}},CLEAR_ALL:{tableMenuMethod(o){const{$table:e}=o;e.clearData()}},SELECT_ALL_AREA:{tableMenuMethod(o){const{$table:e}=o,t=e.props,{mouseConfig:n}=t,{computeMouseOpts:s}=e.getComputeMaps(),r=s.value;if(n&&r.area){const{visibleData:c}=e.getTableData(),{visibleColumn:i}=e.getTableColumn();e.setCellAreas([{startRow:p.first(c),endRow:p.last(c),startColumn:p.first(i),endColumn:p.last(i)}])}}},SELECT_AREA_TO_LEFT:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o,s=e.props,{mouseConfig:r}=s,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;if(t&&n&&r&&i.area){const{visibleColumn:u}=e.getTableColumn(),d=e.getCellAreas();if(d.length===1){const f=d[0];e.setCellAreas([{startRow:p.first(f.rows),endRow:p.last(f.rows),startColumn:p.first(u),endColumn:p.last(f.cols)}],{column:n,row:t})}else e.setCellAreas([{startRow:t,endRow:t,startColumn:p.first(u),endColumn:n}],{column:n,row:t})}}},SELECT_AREA_TO_RIGHT:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o,s=e.props,{mouseConfig:r}=s,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;if(t&&n&&r&&i.area){const{visibleColumn:u}=e.getTableColumn(),d=e.getCellAreas();if(d.length===1){const f=d[0];e.setCellAreas([{startRow:p.first(f.rows),endRow:p.last(f.rows),startColumn:p.first(f.cols),endColumn:p.last(u)}],{column:n,row:t})}else e.setCellAreas([{startRow:t,endRow:t,startColumn:n,endColumn:p.last(u)}],{column:n,row:t})}}},SELECT_AREA_TO_TOP:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o,s=e.props,{mouseConfig:r}=s,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;if(t&&n&&r&&i.area){const{visibleData:u}=e.getTableData(),d=e.getCellAreas();if(d.length===1){const f=d[0];e.setCellAreas([{startRow:p.first(u),endRow:p.last(f.rows),startColumn:p.first(f.cols),endColumn:p.last(f.cols)}],{column:n,row:t})}else e.setCellAreas([{startRow:p.first(u),endRow:t,startColumn:n,endColumn:n}],{column:n,row:t})}}},SELECT_AREA_TO_BOTTON:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o,s=e.props,{mouseConfig:r}=s,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;if(t&&n&&r&&i.area){const{visibleData:u}=e.getTableData(),d=e.getCellAreas();if(d.length===1){const f=d[0];e.setCellAreas([{startRow:p.first(f.rows),endRow:p.last(u),startColumn:p.first(f.cols),endColumn:p.last(f.cols)}],{column:n,row:t})}else e.setCellAreas([{startRow:t,endRow:p.last(u),startColumn:n,endColumn:n}],{column:n,row:t})}}},REVERT_CELL:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o;if(t&&n){const s=e.props,{mouseConfig:r}=s,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;if(r&&i.area){const u=e.getCellAreas();u&&u.length&&u.forEach(d=>{const{rows:f,cols:R}=d;R.forEach(y=>{f.forEach(_=>{e.revertData(_,y.field)})})})}else e.revertData(t,n.field)}}},REVERT_ROW:{tableMenuMethod(o){const{$table:e,row:t}=o;t&&e.revertData(t)}},REVERT_CHECKBOX_ROW:{tableMenuMethod(o){const{$table:e}=o;e.revertData(e.getCheckboxRecords())}},REVERT_ALL:{tableMenuMethod(o){const{$table:e}=o;e.revertData()}},COPY_TITLE:{tableMenuMethod(o){const{column:e}=o,t=e.getTitle();t&&(p.isFunction(V)?V(t):se(t))}},COPY_CELL:{tableMenuMethod(o){re(o)}},CUT_CELL:{tableMenuMethod(o){re(o,!0)}},PASTE_CELL:{tableMenuMethod(o){const{$event:e,$table:t,row:n,column:s}=o,r=t.props,{mouseConfig:c}=r,{computeMouseOpts:i}=t.getComputeMaps(),u=i.value;if(c&&u.area)t.triggerPasteCellAreaEvent(e);else{const d=ee();d&&d.text&&p.set(n,s.field,d.text)}}},MERGE_OR_CLEAR:{tableMenuMethod(o){const{$event:e,$table:t}=o,n=t.getCellAreas(),s=te(o);let r=!1;s.length?t.removeMergeCells(s):(r=!0,t.setMergeCells(n.map(({rows:i,cols:u})=>({row:i[0],col:u[0],rowspan:i.length,colspan:u.length}))));const c=n.map(({rows:i,cols:u})=>({rows:i,cols:u}));t.dispatchEvent("cell-area-merge",{status:r,targetAreas:c},e)}},MERGE_CELL:{tableMenuMethod(o){const{$event:e,$table:t}=o,{visibleData:n}=t.getTableData(),{visibleColumn:s}=t.getTableColumn(),r=t.getCellAreas();if(ae(o),r.some(({rows:i,cols:u})=>i.length===n.length||u.length===s.length)){M.modal&&M.modal.message({content:M.getI18n("vxe.pro.area.mergeErr"),status:"error",id:"operErr"});return}t.setMergeCells(r.map(({rows:i,cols:u})=>({row:i[0],col:u[0],rowspan:i.length,colspan:u.length})));const c=r.map(({rows:i,cols:u})=>({rows:i,cols:u}));t.dispatchEvent("cell-area-merge",{status:!0,targetAreas:c},e)}},CLEAR_MERGE_CELL:{tableMenuMethod(o){const{$event:e,$table:t}=o,n=ae(o);n.length&&t.dispatchEvent("clear-cell-area-merge",{mergeCells:n},e)}},CLEAR_ALL_MERGE:{tableMenuMethod(o){const{$event:e,$table:t}=o,n=t.getMergeCells(),s=t.getMergeFooterItems();t.clearMergeCells(),t.clearMergeFooterItems(),t.dispatchEvent("clear-merge",{mergeCells:n,mergeFooterItems:s},e)}},EDIT_CELL:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o;e.setEditCell?e.setEditCell(t,n):e.setActiveCell(t,n.field)}},EDIT_ROW:{tableMenuMethod(o){const{$table:e,row:t}=o;e.setEditRow?e.setEditRow(t):e.setActiveRow(t)}},INSERT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,column:n}=o,s=e.props,{mouseConfig:r}=s,{computeMouseOpts:c}=e.getComputeMaps(),i=c.value;e.insert(t.params||{}).then(({rows:u})=>{n&&r&&i.area&&e.setCellAreas([{startRow:p.first(u),endRow:p.last(u),startColumn:n,endColumn:n}])})}},INSERT_AT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:s}=o,r=e.props,{mouseConfig:c}=r,{computeMouseOpts:i}=e.getComputeMaps(),u=i.value;(n?e.insertAt(t.params||{},n):e.insert(t.params||{})).then(({rows:d})=>{s&&c&&u.area&&e.setCellAreas([{startRow:p.first(d),endRow:p.last(d),startColumn:s,endColumn:s}])})}},BATCH_INSERT_AT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:s}=o,r=e.props,{mouseConfig:c}=r,{computeMouseOpts:i}=e.getComputeMaps(),u=i.value;j().then(({size:d})=>{if(d){const f=p.range(0,d).map(()=>Object.assign({},t.params));(n?e.insertAt(f,n):e.insert(f)).then(({rows:R})=>{s&&c&&u.area&&e.setCellAreas([{startRow:p.first(R),endRow:p.last(R),startColumn:s,endColumn:s}])})}})}},INSERT_NEXT_AT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:s}=o,r=e.props,{mouseConfig:c}=r,{computeMouseOpts:i}=e.getComputeMaps(),u=i.value;(n?e.insertNextAt(t.params||{},n):e.insert(t.params||{})).then(({rows:d})=>{s&&c&&u.area&&e.setCellAreas([{startRow:p.first(d),endRow:p.last(d),startColumn:s,endColumn:s}])})}},BATCH_INSERT_NEXT_AT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:s}=o,r=e.props,{mouseConfig:c}=r,{computeMouseOpts:i}=e.getComputeMaps(),u=i.value;j().then(({size:d})=>{if(d){const f=p.range(0,d).map(()=>Object.assign({},t.params));(n?e.insertNextAt(f,n):e.insert(f)).then(({rows:R})=>{s&&c&&u.area&&e.setCellAreas([{startRow:p.first(R),endRow:p.last(R),startColumn:s,endColumn:s}])})}})}},INSERT_ACTIVED_ROW:{tableMenuMethod(o){const{$table:e,menu:t,column:n}=o,s=t.params||[],r=Object.assign({},s[0]||{});e.insert(r).then(({row:c})=>{e.setEditCell?e.setEditCell(c,s[1]||n):e.setActiveCell(c,s[1]||n.field)})}},INSERT_EDIT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,column:n}=o,s=t.params||[],r=Object.assign({},s[0]||{});e.insert(r).then(({row:c})=>{e.setEditCell?e.setEditCell(c,s[1]||n):e.setActiveCell(c,s[1]||n.field)})}},INSERT_AT_ACTIVED_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:s}=o,r=t.params||[],c=Object.assign({},r[0]||{});(n?e.insertAt(c,n):e.insert(c)).then(({row:i})=>{e.setEditCell?e.setEditCell(i,r[1]||s):e.setActiveCell(i,r[1]||s.field)})}},INSERT_AT_EDIT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:s}=o,r=t.params||[],c=Object.assign({},r[0]||{});(n?e.insertAt(c,n):e.insert(c)).then(({row:i})=>{e.setEditCell?e.setEditCell(i,r[1]||s):e.setActiveCell(i,r[1]||s.field)})}},BATCH_INSERT_AT_EDIT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:s}=o,r=t.params||[];j().then(({size:c})=>{if(c){const i=p.range(0,c).map(()=>Object.assign({},r[0]));(n?e.insertAt(i,n):e.insert(i)).then(({row:u})=>{e.setEditCell?e.setEditCell(u,r[1]||s):e.setActiveCell(u,r[1]||s.field)})}})}},INSERT_NEXT_AT_EDIT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:s}=o,r=t.params||[],c=Object.assign({},r[0]||{});(n?e.insertNextAt(c,n):e.insert(c)).then(({row:i})=>{e.setEditCell?e.setEditCell(i,r[1]||s):e.setActiveCell(i,r[1]||s.field)})}},BATCH_INSERT_NEXT_AT_EDIT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n,column:s}=o,r=t.params||[];j().then(({size:c})=>{if(c){const i=p.range(0,c).map(()=>Object.assign({},r[0]));(n?e.insertNextAt(i,n):e.insert(i)).then(({row:u})=>{e.setEditCell?e.setEditCell(u,r[1]||s):e.setActiveCell(u,r[1]||s.field)})}})}},DELETE_ROW:{tableMenuMethod(o){const{$table:e,row:t}=o;t&&e.remove(t)}},DELETE_AREA_ROW:{tableMenuMethod(o){const{$table:e,row:t}=o,n=e.props,{mouseConfig:s}=n,{computeMouseOpts:r}=e.getComputeMaps(),c=r.value;s&&c.area?e.getCellAreas().forEach(u=>{const{rows:d}=u;e.remove(d)}):t&&e.remove(t)}},DELETE_CHECKBOX_ROW:{tableMenuMethod(o){const{$table:e}=o;e.removeCheckboxRow()}},DELETE_ALL:{tableMenuMethod(o){const{$table:e}=o;e.remove()}},CLEAR_SORT:{tableMenuMethod(o){const{$event:e,$table:t,column:n}=o;n&&t.triggerSortEvent(e,n,null)}},CLEAR_ALL_SORT:{tableMenuMethod(o){const{$event:e,$table:t}=o,n=t.getSortColumns();n.length&&(t.clearSort(),t.dispatchEvent("clear-sort",{sortList:n},e))}},SORT_ASC:{tableMenuMethod(o){const{$event:e,$table:t,column:n}=o;n&&t.triggerSortEvent(e,n,"asc")}},SORT_DESC:{tableMenuMethod(o){const{$event:e,$table:t,column:n}=o;n&&t.triggerSortEvent(e,n,"desc")}},CLEAR_FILTER:{tableMenuMethod(o){const{$event:e,$table:t,column:n}=o;n&&(t.handleClearFilter(n),t.confirmFilterEvent(e))}},CLEAR_ALL_FILTER:{tableMenuMethod(o){const{$event:e,$table:t}=o,n=t.getCheckedFilters();n.length&&(t.clearFilter(),t.dispatchEvent("clear-filter",{filterList:n},e))}},FILTER_CELL:{tableMenuMethod(o){const{$table:e,row:t,column:n}=o;if(t&&n){const{field:s,filters:r}=n;if(r.length){const c=r[0];c.data=p.get(t,s),c.checked=!0,e.updateData()}}}},EXPORT_ROW:{tableMenuMethod(o){const{$table:e,menu:t,row:n}=o;if(n){const s={data:[n]};e.exportData(p.assign({},t.params?t.params[0]:{},s))}}},EXPORT_CHECKBOX_ROW:{tableMenuMethod(o){const{$table:e,menu:t}=o,n={data:e.getCheckboxRecords()};e.exportData(p.assign({},t.params?t.params[0]:{},n))}},EXPORT_ALL:{tableMenuMethod(o){const{$table:e,menu:t}=o;e.exportData(t.params)}},PRINT_ALL:{tableMenuMethod(o){const{$table:e,menu:t}=o;e.print(t.params)}},PRINT_CHECKBOX_ROW:{tableMenuMethod(o){const{$table:e,menu:t}=o,n={data:e.getCheckboxRecords()};e.print(p.assign(n,t.params))}},OPEN_FIND:{tableMenuMethod(o){const{$event:e,$table:t}=o;t.triggerFNROpenEvent(e,"find")}},OPEN_REPLACE:{tableMenuMethod(o){const{$event:e,$table:t}=o;t.triggerFNROpenEvent(e,"replace")}},HIDDEN_COLUMN:{tableMenuMethod(o){const{$table:e,column:t}=o;t&&e.hideColumn(t)}},FIXED_LEFT_COLUMN:X("left"),FIXED_RIGHT_COLUMN:X("right"),CLEAR_FIXED_COLUMN:X(null),RESET_COLUMN:{tableMenuMethod(o){const{$table:e}=o;e.resetColumn({visible:!0,resizable:!1})}},RESET_RESIZABLE:{tableMenuMethod(o){const{$table:e}=o;e.resetColumn({visible:!1,resizable:!0})}},RESET_ALL:{tableMenuMethod(o){const{$table:e}=o;e.resetColumn(!0)}},COMMIT_PROXY_INITIAL:{tableMenuMethod:H("initial")},COMMIT_PROXY_QUERY:{tableMenuMethod:H("query")},COMMIT_PROXY_RELOAD:{tableMenuMethod:H("reload")},COMMIT_PROXY_DELETE:{tableMenuMethod:H("delete")},COMMIT_PROXY_SAVE:{tableMenuMethod:H("save")}}),M.interceptor.add("event.showMenu",Ce)}};typeof window<"u"&&window.VxeUI&&window.VxeUI.use&&window.VxeUI.use(ue),D.setI18n("zh-CN",le),D.use(ue),D.setIcon({TABLE_EDIT:""}),D.setConfig({authId:"wmtxlrzz9kdguq7j"}),D.setLanguage("zh-CN");const be=D,he=ne;function oe(l){l.use(D),l.use(ne)}function Ee(l){for(let a=1,o=arguments.length;a<o;a++){let e=arguments[a]||{};for(let t in e)if(e.hasOwnProperty(t)){let n=e[t];n!==void 0&&(l[t]=n)}}return l}function K(l){const a=t=>t&&Object.prototype.toString.call(t)==="[object Object]",o=t=>Array.isArray(t),e=(t,n)=>{if(!o(t)||!o(n))return n||t;const s=[...t];return n.forEach((r,c)=>{if(o(r)){s[c]=e(s[c]||[],r);return}if(a(r)&&r.code){const i=s.findIndex(u=>(u==null?void 0:u.code)===r.code);i>-1?s[i]=K({},s[i],r):s.push(r)}else if(a(r)){const i=s[c];s[c]=i?K({},i,r):r}else s[c]=r}),s};for(let t=1,n=arguments.length;t<n;t++){const s=arguments[t]||{};for(const r in s)if(s.hasOwnProperty(r)){const c=l[r],i=s[r];if(i===void 0)continue;a(i)&&a(c)?l[r]=K({},c,i):o(i)&&o(c)?l[r]=e(c,i):(a(i)||o(i),l[r]=i)}}return l}const Me=()=>({menuConfig:{},editConfig:{enabled:!0,trigger:"dblclick",mode:"cell",showStatus:!0},exportConfig:{type:"xlsx"},columnConfig:{resizable:!0},sortConfig:{trigger:"cell",remote:!0},virtualYConfig:{enabled:!0,gt:1e4},clipConfig:{isCopy:!0,isCut:!0,isPaste:!0,isFillPaste:!0,isRowIncrement:!0,isColumnIncrement:!1},areaConfig:{extendByCopy:!0,multiple:!0,selectCellByHeader:!1,excludeFields:["tm"]},mouseConfig:{area:!0,extension:!0},keyboardConfig:{isClip:!0,isEdit:!0,isTab:!0,isArrow:!0,isDel:!0,isEnter:!0,isMerge:!0,isFNR:!0,isChecked:!0,isLastEnterAppendRow:!0,enterToTab:!1},rowConfig:{resizable:!0},toolbarConfig:{slots:{buttons:"toolbarButtons"},export:!1}}),Te=(l,a)=>{const o=l.__vccOpts||l;for(const[e,t]of a)o[e]=t;return o},Re=(l="children",a=[])=>{const o=[],e=(t,n=[])=>{n.forEach(s=>{var r;t.push(s),(r=s==null?void 0:s[l])!=null&&r.length&&e(t,s[l])})};return e(o,a),o},de=Me(),ye=m.defineComponent({name:"DseTable",emits:["menu-click","menu-clear-delete","update:data","update:height","update:columns"],props:{menuConfig:{},editConfig:{enabled:!0,trigger:"dblclick",mode:"cell",showStatus:!0},exportConfig:{type:"xlsx"},columnConfig:{resizable:!0},sortConfig:{trigger:"cell",remote:!0},virtualYConfig:{enabled:!0,gt:1e4},clipConfig:{isCopy:!0,isCut:!0,isPaste:!0,isFillPaste:!0,isRowIncrement:!0,isColumnIncrement:!1},areaConfig:{extendByCopy:!0,multiple:!0,selectCellByHeader:!1,excludeFields:["tm"]},mouseConfig:{area:!0,extension:!0},keyboardConfig:{isClip:!0,isEdit:!0,isTab:!0,isArrow:!0,isDel:!0,isEnter:!0,isMerge:!0,isFNR:!0,isChecked:!0,isLastEnterAppendRow:!0,enterToTab:!1},rowConfig:{resizable:!0},toolbarConfig:{slots:{buttons:"toolbarButtons"},export:!1},autoResize:{type:Boolean,default:!0},border:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showHeaderOverflow:{type:Boolean,default:!1},showOverflow:{type:Boolean,default:!0},keepSource:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},cellStyle:{type:[Function,Object],default:()=>({})},rowStyle:{type:[Function,Object],default:()=>({column:l,rowIndex:a,columnIndex:o})=>a%2===0?{background:"#3280FF0A"}:{}},headerRowStyle:{type:[Function,Object],default:()=>({background:"#0080FF1F"})},height:{type:Number,default:0},maxHeight:{type:Number,default:0},percent:{type:Number,default:1},offset:{type:Number,default:0},align:{type:String,default:"center"},mergeCells:{type:Array,default:()=>[]},width:{type:[String,Number],default:"100%"}},setup(l,{emit:a,expose:o}){const e=m.getCurrentInstance();e&&e.proxy&&e.proxy.appContext&&e.proxy.appContext.app&&oe(e.proxy.appContext.app);const t=m.computed(()=>typeof l.width=="number"?`${l.width}px`:l.width),n=m.ref(),s=m.ref(0),r=m.ref("dse-table-grid"),c=m.computed(()=>Re("children",l.columns)),i=m.computed(()=>{const g=[];return c.value.forEach(C=>{C.slots&&(C.slots.default&&g.push({name:C.slots.default,type:"default",item:C}),C.slots.edit&&g.push({name:C.slots.edit,type:"edit",item:C}),C.slots.header&&g.push({name:C.slots.header,type:"header",item:C}))}),g}),u=m.computed(()=>{const g=["menuConfig"],C=["editConfig","exportConfig","columnConfig","sortConfig","virtualYConfig","clipConfig","areaConfig","mouseConfig","keyboardConfig","rowConfig","toolbarConfig"],T={};return g.forEach(b=>{T[b]=K({},de[b],l[b]||{})}),C.forEach(b=>{T[b]=Ee({},de[b],l[b]||{})}),T}),d=({menu:g,type:C,row:T,rowIndex:b,column:A,columnIndex:v,$event:N})=>{var x;g.code==="DELETE_COLUMN"&&(l.columns.splice(v,1),(x=n.value)==null||x.refreshColumn());const h=l.data,L={CLEAR_ROW:()=>{var S,P,G,Y;const E=(G=(P=(S=n.value)==null?void 0:S.getCellAreas())==null?void 0:P[0])==null?void 0:G.rows;if(E!=null&&E.length){for(let k=0;k<h.length;k++)E.includes(h[k])&&(h[k]={});a("update:data",h),(Y=n.value)==null||Y.reloadData(h),a("menu-clear-delete",h)}},DELETE:()=>{var P,G,Y,k;const E=(Y=(G=(P=n.value)==null?void 0:P.getCellAreas())==null?void 0:G[0])==null?void 0:Y.rows;if(!(E!=null&&E.length))return;E.map($=>{var J;return(J=n.value)==null?void 0:J.getRowIndex($)}).sort(($,J)=>J-$).forEach($=>{($||$===0)&&h.splice($,1)}),a("update:data",h),(k=n.value)==null||k.reloadData(h),a("menu-clear-delete",h)},INSERT_AT_ROW:()=>{var E,S;if(!b&&b!==0){a("update:data",h.push({})),(E=n.value)==null||E.reloadData(h);return}a("update:data",h.splice(b+1,0,{})),(S=n.value)==null||S.reloadData(h)},INSERT_AT_ROW10:()=>{var S,P;const E=Array.from({length:10},()=>({}));if(!b&&b!==0){a("update:data",h.push(...E)),(S=n.value)==null||S.reloadData(h);return}a("update:data",h.splice(b+1,0,...E)),(P=n.value)==null||P.reloadData(h)}};L[g.code]?L[g.code]():a("menu-click",g,C,T,b,A,v,N)},f=({targetAreas:g})=>{var b,A;const C=((b=g==null?void 0:g[0])==null?void 0:b.rows)||[],T=((A=n.value)==null?void 0:A.getInsertRecords())||[];a("update:data",[...T,...C])},R=()=>{var T,b;const g=l.data,C=((T=g.at(-1))==null?void 0:T._X_ROW_KEY)??0;g.push({_X_ROW_KEY:C+1}),a("update:data",g),(b=n.value)==null||b.reloadData(g)};function y(g){const C=[];function T(b){var A;for(const v of b)v.field&&C.push(v.field),(A=v.children)!=null&&A.length&&T(v.children)}return T(g),C}const _=["tm","updateTime","startTime","endTime"],I=()=>{const g=[],C=y(l.columns),T=l.data,b=Object.keys(T);for(let A=0;A<b.length;A++){const v=b[A],N=T[v],h=[];for(let L=0;L<C.length;L++){const x=C[L];n.value.isUpdateByRow(N,x)&&h.push(x)}if(h.length>0){const L={};for(let x=0;x<h.length;x++){const E=h[x];L[E]=N[E]}for(let x=0;x<_.length;x++){const E=_[x];N[E]!==void 0&&(L[E]=N[E])}g.push(L)}}return g},F=()=>{l.height?s.value=l.height:m.nextTick(()=>{var C,T;const g=window.innerHeight-100-((T=(C=document.querySelector(`#${r.value}`))==null?void 0:C.getBoundingClientRect())==null?void 0:T.top);s.value=g})};return m.watch(()=>l.height,()=>{F()}),m.onMounted(()=>{console.log(l.data,"props.data");const g=0,C=2e4;r.value="_gridRef"+Math.round(Math.random()*(C-g))+g,[".app-main"].map(b=>document.querySelector(b)).forEach(b=>{b&&pe.useResizeObserver(b,()=>{F()})}),F()}),o({xGrid:n,getUpdateCellData:I}),{gridWidth:t,xGrid:n,gridId:r,tableHeight:s,transColumns:c,allSlots:i,mergedConfigs:u,handleMenu:d,cellAreaPaste:f,enterAppendRow:R}}}),_e=["id"],Oe={key:1};function xe(l,a,o,e,t,n){const s=m.resolveComponent("vxe-grid");return m.openBlock(),m.createElementBlock("div",{id:l.gridId,ref:l.gridId},[m.createVNode(m.Transition,null,{default:m.withCtx(()=>[m.createVNode(s,m.mergeProps(l.$attrs,{class:"hydGrid",ref:"xGrid",size:"small",align:l.align,"area-config":l.mergedConfigs.areaConfig,"auto-resize":l.autoResize,border:l.border,"cell-style":l.cellStyle,"clip-config":l.mergedConfigs.clipConfig,"column-config":l.mergedConfigs.columnConfig,columns:l.columns,height:l.tableHeight,"max-height":l.tableHeight,"edit-config":l.mergedConfigs.editConfig,"export-config":l.mergedConfigs.exportConfig,"header-row-style":l.headerRowStyle,"keep-source":l.keepSource,"keyboard-config":l.mergedConfigs.keyboardConfig,"menu-config":l.mergedConfigs.menuConfig,"merge-cells":l.mergeCells,"mouse-config":l.mergedConfigs.mouseConfig,"row-config":l.mergedConfigs.rowConfig,"row-style":l.rowStyle,"show-footer":l.showFooter,"show-header":l.showHeader,"show-header-overflow":l.showHeaderOverflow,"show-overflow":l.showOverflow,"sort-config":l.mergedConfigs.sortConfig,style:{width:l.gridWidth},"virtual-y-config":l.mergedConfigs.virtualYConfig,onMenuClick:l.handleMenu,onCellAreaPaste:l.cellAreaPaste,onEnterAppendRow:l.enterAppendRow}),m.createSlots({_:2},[m.renderList(l.allSlots,r=>({name:r.name,fn:m.withCtx(c=>[m.renderSlot(l.$slots,r.name,m.normalizeProps(m.guardReactiveProps(c)),()=>[r.type==="header"?(m.openBlock(),m.createElementBlock(m.Fragment,{key:0},[r.item.unit?(m.openBlock(),m.createElementBlock(m.Fragment,{key:0},[m.createElementVNode("span",null,m.toDisplayString(r.item.title),1),m.createElementVNode("div",null,"("+m.toDisplayString(r.item.unit)+")",1)],64)):(m.openBlock(),m.createElementBlock("span",Oe,m.toDisplayString(r.item.title),1))],64)):m.createCommentVNode("",!0)])])}))]),1040,["align","area-config","auto-resize","border","cell-style","clip-config","column-config","columns","height","max-height","edit-config","export-config","header-row-style","keep-source","keyboard-config","menu-config","merge-cells","mouse-config","row-config","row-style","show-footer","show-header","show-header-overflow","show-overflow","sort-config","style","virtual-y-config","onMenuClick","onCellAreaPaste","onEnterAppendRow"])]),_:3})],8,_e)}const q=Te(ye,[["render",xe]]);q.install=l=>{l.component(q.name||"DseTable",q)};const Ae=Object.freeze(Object.defineProperty({__proto__:null,DseTable:q},Symbol.toStringTag,{value:"Module"})),we={install:l=>{oe(l),Object.values(Ae).forEach(a=>{a.install?a.install(l):a.name&&l.component(a.name,a)})}};O.DseTable=q,O.VxeTable=he,O.VxeUI=be,O.default=we,O.setupVxeTable=oe,Object.defineProperties(O,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
2
2
  //# sourceMappingURL=index.cjs.map