From d811b0577f5245623a863ae10440b4df1d2f9858 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Mon, 22 Jan 2024 11:44:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=A8=A1=E5=9E=8B=E5=88=9D?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/device.js | 9 + src/api/model/modelType.js | 9 + src/api/model/modelparam.js | 37 +- src/assets/styles/self-defined.scss | 3 + .../TableColumnTreeSelect/index.vue | 653 ++++++++++++++ src/main.js | 5 + src/plugins/vxe-table/index.js | 37 + src/plugins/vxe-table/pro/vxe-table-pro.css | 170 ++++ .../vxe-table/pro/vxe-table-pro.es6.min.d.ts | 7 + .../vxe-table/pro/vxe-table-pro.es6.min.js | 10 + .../vxe-table/pro/vxe-table-pro.min.css | 1 + src/plugins/vxe-table/pro/vxe-table-pro.scss | 168 ++++ src/views/model/device/index.vue | 83 +- src/views/model/devicemodel/addmodel.vue | 813 +++++++++++------- src/views/model/devicemodel/editModel.vue | 692 ++++++++++----- src/views/model/devicemodel/index.vue | 105 ++- src/views/model/devicemodel/modelparams.vue | 7 +- 17 files changed, 2268 insertions(+), 541 deletions(-) create mode 100644 src/components/TableColumnTreeSelect/index.vue create mode 100644 src/plugins/vxe-table/index.js create mode 100644 src/plugins/vxe-table/pro/vxe-table-pro.css create mode 100644 src/plugins/vxe-table/pro/vxe-table-pro.es6.min.d.ts create mode 100644 src/plugins/vxe-table/pro/vxe-table-pro.es6.min.js create mode 100644 src/plugins/vxe-table/pro/vxe-table-pro.min.css create mode 100644 src/plugins/vxe-table/pro/vxe-table-pro.scss diff --git a/src/api/model/device.js b/src/api/model/device.js index 2c3fa43..4d312ee 100644 --- a/src/api/model/device.js +++ b/src/api/model/device.js @@ -99,4 +99,13 @@ export function cleanRedisCache() { url: '/model/dcBaseDeviceinfo/cleanRedisCache', method: 'post' }); +} + +//新增 +export function addAndSyncParamMap(data) { + return request({ + url: '/model/dcBaseDeviceinfo/addAndSyncParamMap', + method: 'post', + data: data + }); } \ No newline at end of file diff --git a/src/api/model/modelType.js b/src/api/model/modelType.js index 96f0c5b..d8bd519 100644 --- a/src/api/model/modelType.js +++ b/src/api/model/modelType.js @@ -50,4 +50,13 @@ export function exportModelType(query) { method: 'get', params: query }) +} + +// 查询设备模型类别列表 +export function listModelTypeNoPage(query) { + return request({ + url: '/model/dcModelType/listNoPage', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/src/api/model/modelparam.js b/src/api/model/modelparam.js index 0401ead..a168a3d 100644 --- a/src/api/model/modelparam.js +++ b/src/api/model/modelparam.js @@ -50,4 +50,39 @@ export function exportModelparam(query) { method: 'get', params: query }) -} \ No newline at end of file +} + +// 查询设备模型参数明细列表 +export function listModelparamNoPage(query) { + return request({ + url: '/model/dcModelDeviceParam/listNoPage', + method: 'get', + params: query + }) +} + +// 修改模型参数配置 +export function removeAndAdd(data) { + return request({ + url: '/model/dcModelDeviceParam/removeAndAdd', + method: 'put', + data: data + }) +} + +// 批量新增 +export function addBatch(data) { + return request({ + url: '/model/dcModelDeviceParam/addBatch', + method: 'post', + data: data + }) +} +// 批量修改 +export function editBatch(data) { + return request({ + url: '/model/dcModelDeviceParam/editBatch', + method: 'put', + data: data + }) +} diff --git a/src/assets/styles/self-defined.scss b/src/assets/styles/self-defined.scss index 3c41780..d784956 100644 --- a/src/assets/styles/self-defined.scss +++ b/src/assets/styles/self-defined.scss @@ -234,4 +234,7 @@ width: 96%; } + .height600{ + height: 600px; + } diff --git a/src/components/TableColumnTreeSelect/index.vue b/src/components/TableColumnTreeSelect/index.vue new file mode 100644 index 0000000..9faafe1 --- /dev/null +++ b/src/components/TableColumnTreeSelect/index.vue @@ -0,0 +1,653 @@ + + + + + diff --git a/src/main.js b/src/main.js index 707ca28..a9b6818 100644 --- a/src/main.js +++ b/src/main.js @@ -4,8 +4,10 @@ import Cookies from 'js-cookie' import ElementPlus from 'element-plus' import locale from 'element-plus/lib/locale/lang/zh-cn' // 中文语言 +import { useTable } from "./plugins/vxe-table"; import '@/assets/styles/index.scss' // global css +import "vxe-table/lib/style.css"; import App from './App' import store from './store' @@ -94,4 +96,7 @@ app.use(ElementPlus, { // 支持 large、default、small size: Cookies.get('size') || 'default' }) + + +app.use(useTable); app.mount('#app') diff --git a/src/plugins/vxe-table/index.js b/src/plugins/vxe-table/index.js new file mode 100644 index 0000000..724519d --- /dev/null +++ b/src/plugins/vxe-table/index.js @@ -0,0 +1,37 @@ +import VXETable from 'vxe-table' +import 'vxe-table/lib/style.css' + +// 自行按照,具体 echarts 看文档 +import 'echarts/lib/chart/bar' +import 'echarts/lib/chart/pie' +import 'echarts/lib/chart/line' +import 'echarts/lib/component/grid' +import 'echarts/lib/component/tooltip' +import 'echarts/lib/component/legend' +import 'echarts/lib/component/legendScroll' + +// 引入 vxe-table pro +import './pro/vxe-table-pro.es6.min' +import './pro/vxe-table-pro.min.css' + +// 引入快捷菜单插件(可选) +import VXETablePluginMenus from 'vxe-table-plugin-menus' +// 引入图表插件(可选) +import VXETablePluginCharts from 'vxe-table-plugin-charts' +import 'vxe-table-plugin-charts/dist/style.css' + +// 全局默认参数 +VXETable.config({ + authId: '1kedlpuyjow1v7ez', // Auth ID 在官网登录查看(必须,重要!!!) + version: 4, // 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据 + zIndex: 999 // 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡 +}) + +// 安装快捷菜单插件(可选) +VXETable.use(VXETablePluginMenus) +// 安装图表插件(可选) +VXETable.use(VXETablePluginCharts) + +export function useTable (app) { + app.use(VXETable) +} diff --git a/src/plugins/vxe-table/pro/vxe-table-pro.css b/src/plugins/vxe-table/pro/vxe-table-pro.css new file mode 100644 index 0000000..be1b0d8 --- /dev/null +++ b/src/plugins/vxe-table/pro/vxe-table-pro.css @@ -0,0 +1,170 @@ +.vxe-table--fnr.vxe-modal--wrapper .vxe-modal--content { + padding: 0; +} +.vxe-table--fnr.vxe-modal--wrapper .vxe-modal--content { + display: flex; + flex-direction: column; +} + +.vxe-table--fnr .vxe-table--fnr-tabs { + flex-shrink: 0; + border-bottom: 1px solid #e8eaec; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.vxe-table--fnr .vxe-table--fnr-tabs > span { + position: relative; + display: inline-block; + padding: 0 1em; + height: 2.4em; + line-height: 2.4em; + text-align: center; + border-right: 1px solid #e8eaec; + background-color: #F8F8F9; + vertical-align: bottom; + cursor: pointer; +} +.vxe-table--fnr .vxe-table--fnr-tabs > span.is--active { + background-color: #fff; +} +.vxe-table--fnr .vxe-table--fnr-tabs > span.is--active:after { + content: ""; + position: absolute; + left: 0; + bottom: -1px; + width: 100%; + height: 1px; + background-color: #fff; + z-index: 1; +} +.vxe-table--fnr .vxe-table--fnr-tabs > span:not(.is--active) { + color: #909399; +} +.vxe-table--fnr .vxe-table--fnr-body { + flex-shrink: 0; + padding: 0.3em 1em 0 1em; +} +.vxe-table--fnr .vxe-table--fnr-form { + width: 100%; + border: 0; + border-spacing: 0; + border-collapse: separate; +} +.vxe-table--fnr .vxe-table--fnr-form tr { + visibility: hidden; +} +.vxe-table--fnr .vxe-table--fnr-form tr.is--visible { + visibility: visible; +} +.vxe-table--fnr .vxe-table--fnr-form-title { + white-space: nowrap; + padding-right: 0.8em; +} +.vxe-table--fnr .vxe-table--fnr-form-content, +.vxe-table--fnr .vxe-table--fnr-form-input { + width: 100%; +} +.vxe-table--fnr .vxe-table--fnr-form-content { + padding: 0.3em 0; +} +.vxe-table--fnr .vxe-table--fnr-form-filter { + padding-left: 1.8em; + vertical-align: top; +} +.vxe-table--fnr .vxe-table--fnr-form-filter > .vxe-checkbox { + display: block; + margin: 0.6em 0 0 0; +} +.vxe-table--fnr .vxe-table--fnr-footer { + flex-shrink: 0; + padding: 0.8em 1em; + overflow: hidden; + text-align: right; +} +.vxe-table--fnr .vxe-table--fnr-search { + display: flex; + flex-direction: column; + flex-grow: 1; + border-top: 1px solid #e8eaec; + border-bottom: 1px solid #e8eaec; + overflow: hidden; +} +.vxe-table--fnr .vxe-table--fnr-search .vxe-table--fnr-search-list, +.vxe-table--fnr .vxe-table--fnr-search .vxe-list--virtual-wrapper { + height: 100%; +} +.vxe-table--fnr .vxe-table--fnr-search-header { + flex-shrink: 0; + height: 2.5em; + line-height: 2.5em; + padding: 0 0.8em; + font-weight: 700; + background-color: #f8f8f8; +} +.vxe-table--fnr .vxe-table--fnr-search-header, +.vxe-table--fnr .vxe-table--fnr-find-item { + display: flex; +} +.vxe-table--fnr .vxe-table--fnr-search-header > div, +.vxe-table--fnr .vxe-table--fnr-find-item > div { + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.vxe-table--fnr .vxe-table--fnr-search-header > div:nth-child(1), +.vxe-table--fnr .vxe-table--fnr-find-item > div:nth-child(1) { + width: 100px; + flex-shrink: 0; +} +.vxe-table--fnr .vxe-table--fnr-search-header > div:nth-child(2), +.vxe-table--fnr .vxe-table--fnr-find-item > div:nth-child(2) { + width: 160px; + flex-shrink: 0; +} +.vxe-table--fnr .vxe-table--fnr-search-header > div:nth-child(3), +.vxe-table--fnr .vxe-table--fnr-find-item > div:nth-child(3) { + flex-grow: 1; +} +.vxe-table--fnr .vxe-table--fnr-search-body { + flex-grow: 1; + overflow: hidden; + border-top: 1px solid #e8eaec; + border-bottom: 1px solid #e8eaec; +} +.vxe-table--fnr .vxe-table--fnr-find-item { + height: 2em; + line-height: 2em; + padding: 0 0.8em; + cursor: pointer; +} +.vxe-table--fnr .vxe-table--fnr-find-item.is--active { + font-weight: 700; + color: #409eff; + background-color: #e6f7ff; +} +.vxe-table--fnr .vxe-table--fnr-find-item:hover { + color: #409eff; +} +.vxe-table--fnr .vxe-table--fnr-find-item:hover.is--active { + background-color: #d7effb; +} +.vxe-table--fnr .vxe-table--fnr-find-item:hover > div { + text-decoration: underline; +} +.vxe-table--fnr .vxe-table--fnr-search-footer { + flex-shrink: 0; + height: 2em; + line-height: 2em; + padding: 0 0.8em; + visibility: hidden; +} +.vxe-table--fnr .vxe-table--fnr-search-footer.is--error { + color: #f56c6c; +} +.vxe-table--fnr .vxe-table--fnr-search-footer.is--visible { + visibility: visible; +} \ No newline at end of file diff --git a/src/plugins/vxe-table/pro/vxe-table-pro.es6.min.d.ts b/src/plugins/vxe-table/pro/vxe-table-pro.es6.min.d.ts new file mode 100644 index 0000000..3897803 --- /dev/null +++ b/src/plugins/vxe-table/pro/vxe-table-pro.es6.min.d.ts @@ -0,0 +1,7 @@ +/** + * vxe-table pro v2.1.6 + * Purchase authorization: https://vxetable.cn/plugins/ + * @copyright x_extends@163.com + */ +export const VXETablePro: {} +export default VXETablePro diff --git a/src/plugins/vxe-table/pro/vxe-table-pro.es6.min.js b/src/plugins/vxe-table/pro/vxe-table-pro.es6.min.js new file mode 100644 index 0000000..7fa5e99 --- /dev/null +++ b/src/plugins/vxe-table/pro/vxe-table-pro.es6.min.js @@ -0,0 +1,10 @@ +/** + * vxe-table pro v2.1.6 + * Purchase authorization: https://vxetable.cn/plugins/ + * @copyright x_extends@163.com + */ +/* eslint-disable */ +import XEUtils from 'xe-utils'; +import { h, ref, nextTick, onMounted, onUnmounted, resolveComponent } from 'vue'; +import { VXETable } from 'vxe-table'; +(function(){function t(e){return"vxe.pro."+e}function l(e,t,l){return e.replace(t,l)}const o=VXETable,r=o.hooks,n=window,a="\n";let s=!1;const i=n[`a${s?"":"to"}b`],d=document,c="main",u="copy",f="extend",g="multi",m="active",w=n[i("Y29uc29sZQ==")],p={F2:"F2",ESCAPE:"Escape",ENTER:"Enter",TAB:"Tab",DELETE:"Delete",BACKSPACE:"Backspace",SPACEBAR:" ",CONTEXT_MENU:"ContextMenu",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",A:"a",X:"x",C:"c",V:"v",F:"f",H:"h",M:"m"},v={" ":"Spacebar",Apps:p.CONTEXT_MENU,Del:p.DELETE,Up:p.ARROW_UP,Down:p.ARROW_DOWN,Left:p.ARROW_LEFT,Right:p.ARROW_RIGHT};let C=!1,A=!1;const S="pro-"+"auth",x="Enter",E="operErr",R="error",b=4,I=C?"":"error",y="warn",D=I?"log":"",B="o"+(D?"":"x")+"nmousemove",T="o"+(D?"":"x")+"nmouseup",V="checkbox",F="radio",M=i?"getSetupOptions":"",$=C?"":"Event",_=s?"":"message",W=_?"dispatch"+$:"",O=_?"setData":"",L=O?"setCellAreas":"",k=L?"clearCellAreas":"",U=k?"getActiveCellArea":"",N=U?"getCellAreas":"",H=N?"setActiveCellArea":"",Y=H?"scrollToRow":"",X=Y?"scrollToColumn":"",P=X?"clearCopyCellArea":"",K=P?"clearEdit":"",j=K?"clearActived":"",q={children:"children"},G=["getCellAreas","clearCellAreas","getCopyCellArea","clearCopyCellArea","setCellAreas","setActiveCellArea","getActiveCellArea","openFind","openReplace","closeFNR","copyCellArea","cutCellArea","pasteCellArea"],J=n[i("bG9jYXRpb24=")],z=$?5:1,Z=177-z,Q="\\d{1,3}",ee=XEUtils.range(16,32).join("|"),te=[`(${2*z}.${Q}.${Q}.${Q})`,`(${Z}.(${ee}).${Q}.${Q})`,`(${187+z}.${163+z}.${Q}.${Q})`],le=new RegExp(`^(${te.join("|")})$`);r.add("pro",{setupTable(e){var r=Math.abs,$=Math.ceil,G=Math.max,z=Math.min,Q=Math.floor;function ee(e){return e?e:"In"+(Ol?"val":"")+"id"}function oe(){const{no:e,avType:t}=dl(ql(i(Zl)));return io=t===i("VHJpYWw="),A||(A=!ao||ao<_t(),C=!A),X&&s&&C?co||io||uo||!!Qt("")?w[y](cl(ql(lo.join("")),[3,ee(t),e,eo])):(t!==i("UHJvZmV"+(eo?"":"xo")+"zc2lvbmFs")||!1!==Ql)&&w[D](cl(ql(no.join("")),[3,ee(t),e,eo])):(!A&&(A=!so||soe!==t).concat([t]).join(" ")}function de(e,t){e&&e.className&&ll(e.className.split(" "),e=>e!==t).join(" ")}function ce(e){const t=Vl.value,l=Fl.value,o=Ml.value;let r=t?t.$el:null;return"left"===e&&l?r=l.$el:"right"==e&&o&&(r=o.$el),r}function ue(e){const t=d.createElement("span");return t.className="vxe-table--cell-main-area",e.appendChild(t),t}function fe(e,t){t?e.setAttribute("half","1"):e.removeAttribute("half")}function he(e,t){Vo(e),e.style.height=`${t.height}px`,e.style.width=`${t.width}px`,e.style.left=`${t.left}px`,e.style.top=`${t.top}px`}function ge(e){const t=Dl.value;if(t){const l=t.querySelectorAll(".vxe-table--cell-area");for(let t=0;t{const l=t.children[xo(e)];se(l)})}function we(e,t){const{mergeList:l}=wl;return qt(l,({row:l,col:o,rowspan:r,colspan:n})=>e>=l&&e=o&&tKl[L]([{type:c,startRow:l,endRow:l,startColumn:r,endColumn:r}]))}}function Ce(e,t){const l=To(t);return{offsetY:e.clientY-l.top,offsetX:e.clientX-l.left}}function Ae(){const{mergeList:e}=wl,t=Kl[N]();return ll(e,({row:e,col:l,rowspan:o,colspan:r})=>ol(t,t=>{const{rows:n,cols:a}=t,s=Eo(al(n)),i=Eo(sl(n)),d=Ro(al(a)),c=Ro(sl(a));return e>=s&&e+o-1<=i&&l>=d&&l+r-1<=c}))}function Se(l){const o=Kl[N](),r=o.length;let n=!1;const a={};for(let e=0;e(Pt(e,(e,l)=>{Pt(t,(t,o)=>{(0({rows:e,cols:t}));e[W]("cell-area-merge",{status:i,targetAreas:d},l)}function xe(e,t){const{mergeList:l}=wl,o=pl[Ol],r=pl[Wl];if(l.length){const l=al(e),n=al(t),a=Eo(l),s=Ro(n),i=a+e.length-1,d=s+t.length-1;let c=a,u=s,f=i,g=d;for(let e=c;e<=f;e++)for(let t=u;t<=g;t++){const l=we(e,t);if(l){const{row:o,col:r,rowspan:n,colspan:a}=l,s=o+n-1,i=r+a-1;let d=!1;of&&(d=!0,f=s),i>g&&(g=i,d=!0),d&&(e=c,t=u)}}return{rows:Ut(r,c,f+1),cols:Ut(o,u,g+1)}}return{rows:e,cols:t}}function Ee(t,l,o,r,n){const{scrollYLoad:a}=wl,{scrollYStore:s}=pl,i=pl[Ol],d=pl[Wl],{rowHeight:c}=s;if(a)return(Q(n/c)+1)*c;let u=0;const f=r?"nextElementSibling":"previousElementSibling";if(r&&o){const{row:e,col:r}=o;t=d[e],l=i[r]}const g=e.getCell(t,l);for(let e=g.parentNode;e&&n>=u;)u+=e.offsetHeight,e=e[f];return u}function Re(e,t,l,o,r){const n=pl[Ol];let a=0;if(o)for(let e=Ro(t)+1,l=n.length;e=r)return a}else for(let e=Ro(t)-1;0<=e;e--){const t=n[e];if(a+=t.renderWidth,a>=r)return a}return a}function be(e,t,l,o,r){const{scrollYLoad:n}=wl,{scrollYStore:a}=pl,s=pl[Wl];let i=0,d=0,c=[];const u=Eo(e);if(n){const{rowHeight:e}=a;d=Q(r/e)+1,i=d*e}else{const e=o?"nextElementSibling":"previousElementSibling";for(o&&(d++,i+=l.offsetHeight);l&&r>=i;)l=l[e],l&&(i+=l.offsetHeight,d++)}return c=o?Ut(s,u,z(s.length+1,u+d)):Ut(s,G(0,u-d),u+1),{moveHeight:i,moveSize:d,rows:c}}function Ie(e,t,l,o,r){const n=pl[Ol];let a=0;const s=[t];let i=Ro(t);if(o){a+=t.renderWidth,i++;for(let e=n.length;i=r);i++){const e=n[i];s.push(e),a+=e.renderWidth}}else for(i--;0<=i&&!(a>=r);i--){const e=n[i];s.unshift(e),a+=e.renderWidth}return{moveWidth:a,moveSize:s.length,cols:s}}function ye(e,t){const l=pl[Ol],{left:o,width:r}=t;let n=0;const a=[],s=o+r;for(let r=0,i=l.length;r=o&&a.push(e),n+=e.renderWidth,n>=s)return a}return a}function De(t,l){const{scrollYLoad:o}=wl,{scrollYStore:r}=pl,{top:n,height:a}=l,s=pl[Wl];if(o){const{rowHeight:e}=r,t=Q(n/e);return Ut(s,t,t+Q(a/e))}let i=0;const d=[],c=n+a;for(;t&&i+2=n){const l=e.getRowNode(t);if(l)d.push(l.item);else break}i=t.offsetTop+t.offsetHeight,t=t.nextElementSibling}return d}function Be(t){const{refTableBody:l}=e.getRefMaps(),o=e.getRowid(t),r=l.value,n=r.$el;return n?n.querySelector(`.vxe-body--row[rowid="${o}"]`):null}function Te(t,l,o,r,n){const{showOverflow:a,spanMethod:s,keyboardConfig:i}=ml,{scrollXLoad:d,columnStore:w,mergeList:p,scrollYLoad:v}=wl,{scrollYStore:C}=pl,A=pl[Ol],S=pl[Wl],{type:x,cols:E}=t,R=xl.value,b=ce(o),I=Bo(b,".vxe-table--cell-area");if(!I)return null;const y=I.children,D=y[0],B=y[1],T=y[2],V=y[3],F=y[4],M=Bo(b,".vxe-body--row"),$=M.firstChild;let _=al(n),W=al(r),O=sl(n),L=sl(r),k=Ro(W),U=Eo(_),N=Ro(L),H=Eo(O),Y=0,X=0;const P=[];if(p.length&&Pt(n,(e,t)=>{const l=Eo(e);Pt(r,(e,o)=>{const a=Ro(e),s=we(l,a);if(s){const{row:e,col:l,rowspan:a,colspan:i}=s;0===t&&0===o&&(U=e,_=S[U]),t===n.length-1&&o===r.length-1&&(H=e,Y=a-1,O=S[H]),0===t&&0===o&&(k=l,W=A[k]),t===n.length-1&&o===r.length-1&&(N=l,X=i-1,L=A[N]),s&&-1===Ht(P,s)&&P.push(s)}})}),-1{y+=e.renderWidth}),Pt(Ut(A,k,N+X+1),e=>{n+=e.renderWidth}),v){const{rowHeight:e}=C;b=U*e,S=(H+Y+1-U)*e}else{const t=e.getCell(_,W),l=t?t.parentNode:Be(_),o=e.getCell(O,L),r=o?o.parentNode:Be(O);if(!l||!r)return null;b=l.offsetTop,S=r.offsetTop+(o?o.offsetHeight:r.offsetHeight)-b}const K={el:t.el,leftEl:t.leftEl,rightEl:t.rightEl,type:x,cols:[],rows:[],top:b,left:y,width:n,height:S},j=!!o&&r.length!==E.length;if(K.cols=ye($,K),K.rows=De(M,K),Vo(I),x===c)l?Vo(D.firstChild):se(D.firstChild),fe(D,j),he(D,K);else if(x===u)fe(B,j),he(B,K);else if(x===f)fe(T,j),he(T,K);else if(x===g){const e=o?`${o}El`:"el",t=K[e]||ue(V);K[e]=t,fe(t,j),he(t,K)}else x===m&&(fe(F,j),he(F,K));return K}return null}function Ve(e){const t=Bl.value,l=Tl.value,{type:o,cols:r,rows:n}=e;let a=[],s=[];return o!==g&&me(o),t&&(a=ll(r,e=>"left"===e.fixed),a.length&&Te(e,r.length===a.length,"left",a,n)),l&&(s=ll(r,e=>"right"===e.fixed),s.length&&Te(e,!0,"right",s,n)),Te(e,!s.length,null,r,n)}function Fe(e){const t=pl[Ol],l=pl[Wl],{type:o,startColumn:r,endColumn:n,startRow:a,endRow:s}=e,i=Ot(a)?a:Eo(a),d=Ot(s)?s:Eo(s),c=Ot(r)?r:Ro(r),u=Ot(n)?n:Ro(n),f=Ut(l,i,d+1),g=Ut(t,c,u+1),{rows:m,cols:w}=xe(f,g);return Ve({type:o,rows:m,cols:w})}function Me(t){const{scrollYLoad:l}=wl,{scrollYStore:o}=pl,r=pl[Ol],n=pl[Wl],{type:a,area:s,column:i,row:d}=t;let c,u,f=s,g=i,m=d;if(Ot(s)){const e=Kl[N]();f=e[s]}Ot(m)?(u=m,m=n[u]):u=Eo(m),Ot(g)?(c=g,g=r[c]):c=Ro(g);const w=ce(g.fixed),p=Bo(w,".vxe-table--cell-area"),v=p.children,C=v[4];if(f&&-1{d+=e.renderWidth}),l){const{rowHeight:e}=o;if(i=u*e,w){const{rowspan:t}=w;s=e*t}else s=e}else{const t=e.getCell(m,g),l=t?t.parentNode:Be(m);if(!l)return;i=l.offsetTop,s=t?t.offsetHeight:l.offsetHeight}const p={type:a,area:f,column:g,row:m,top:i,left:d,width:t,height:s};return he(C,p),p}return null}function $e(e){return /\n/.test(e)?`"${l(e,/"/g,"\"\"")}"`:e}function _e(e){return l(e,/"/g,""")}function We(e){return Nt(e)?e?"TRUE":"FALSE":e}function Oe(t,l,o){const r=El.value,n=r.seqMethod;let a;return a=po(l,"seq")?n?n({row:t,rowIndex:e.getRowIndex(t),$rowIndex:e.getVMRowIndex(t),column:l,columnIndex:e.getColumnIndex(l),$columnIndex:e.getVMColumnIndex(l)}):o:po(l,V)?e.isCheckedByCheckboxRow(t):po(l,F)?e.isCheckedByRadioRow(t):rl(t,l.field),a}function Le(t,l){const o=[],r=[];if(t){const n=Sl.value,{xegrid:a}=e,{cols:s,rows:i}=t,{copyMethod:d}=n;let c=Eo(al(i));Pt(i,t=>{const n=[],i=[],u=Eo(t);c++,Pt(s,o=>{const r=Ro(o),s=we(u,r);let f=Oe(t,o,c);if(d&&(f=d({isCut:l,row:t,column:o,cellValue:f,$table:e,$grid:a})),f=Qt(We(f)),s){const{row:e,col:t,rowspan:l,colspan:o}=s;u===e&&r===t&&n.push(`${_e(f)}`)}else n.push(`${_e(f)}`);i.push($e(f))}),o.push(i),r.push(`\n${n.join("")}\n`)})}const n=r.length?["","","","","","",r.join("\n"),"
","",""]:[];return{area:t,cellValues:o,text:o.map(e=>e.join("\t")).join(a)+"\n",html:n.join(a)}}function ke(){const e=d.activeElement,t=Kl[N](),l=e?e.tagName:"";return t.length&&(!l||!Yt(["input","textarea"],ho(l)))}function Ue(t,l){const o=Sl.value,{xegrid:r}=e,{afterCopyMethod:n}=o;n&&n({isCut:l,targetAreas:t.targetAreas,$table:e,$grid:r})}function Ne(l,o){const{filterStore:r}=wl,n=Sl.value,{xegrid:a}=e,{beforeCopyMethod:s}=n,i=Kl[N](),d=Kl[U](),c={text:"",html:""};let f,g=!1,m=[];if(!r.visible){if(l&&Io(l),1===i.length){const t=al(i);if(t){const{rows:l,cols:r}=t,n=Ut(l,0),i=Ut(r,0);if(m=[{rows:n,cols:i}],!s||!1!==s({isCut:o,activeArea:d,targetAreas:m,$table:e,$grid:a})){const e=kt({},t,{type:u,rows:n,cols:i});g=!0,f=Le(t,o),c.text=f.text,c.html=f.html;const l=kt(e,Ve(e));Pl={cut:o,cellAreas:l?[l]:[]}}}}else 1Kt(t,e)?t[e]:e)}function Ye(e){return`#${e}@${Wt()}`}function Xe(e,t){const o=He(e,t);return l(o,/^"+$/g,e=>"\"".repeat($(e.length/2)))}function Pe(e){return"TRUE"===e||"true"===e||!0===e}function Ke(e){var t=String.fromCharCode;const l=[];for(;0<=e;){const o=e%26;l.push(t(o+97)),e=jt(e/26)-1}return l.reverse().join("")}function je(t){const l=pl[_l],o=Sl.value,{isRowIncrement:r,isColumnIncrement:n,createRowsMethod:a,createColumnsMethod:s}=o,{targetAreas:i,pasteCells:d}=t,u=d[0],f=i[0],{rows:g,cols:m}=f,w=kt({},t,{insertRows:[],insertColumns:[]}),p=r&&d.length>g.length,v=n&&u.length>m.length,C=al(g);let A=sl(g);const S=al(m);let x,E=sl(m),R=[];if(v){const t=u.slice(m.length);if(Fo||(Fo=l.length),Pt(t,()=>{const e=Ke(Fo++);R.push({field:e,title:e.toUpperCase(),width:100})}),s&&(R=s(kt({},w,{insertColumns:R}))),R&&R.length&&(Fo++,x=e.loadColumn(l.concat(R)).then(()=>{const e=pl[Ol];return E=sl(e),w.insertColumns=e.slice(e.length-R.length),p||Kl[L]([{type:c,startColumn:S,endColumn:E,startRow:C,endRow:A}],{column:S,row:C}),w})),!p)return Promise.resolve(x||w)}if(p){const t=d.slice(g.length),l=[];let o,r,n=t.map((e,t)=>{const n={};return Pt(e,(e,a)=>{const s=m[a];s&&(po(s,V)?l.push({rIndex:t,checked:Pe(e)}):po(s,F)?(!o&&(o=s),Pe(e)&&(r=a)):s.field&&nl(n,s.field,e))}),n});if(a&&(n=a(kt({},w,{insertRows:n}))),n&&n.length)return Promise.resolve(x).then(()=>e.insertAt(n,-1).then(({rows:t})=>{const n=pl[Wl];return A=sl(n),w.insertRows=t,o&&(t[r]?e.setRadioRow(t[r]):e.clearRadioRow()),Pt(l,l=>{e.setCheckboxRow(t[l.rIndex],l.checked)}),Kl[L]([{type:c,startColumn:S,endColumn:E,startRow:C,endRow:A}],{column:S,row:C}),w}))}return Promise.resolve(w)}function qe(e,t,l){const o=Sl.value,{isFillPaste:r}=o,n=l.map(e=>e.slice(0)),a=e.length,s=t.length,i=l.length,d=l[0].length;if(r||0==a%i&&0==s%d){if(a>i){const e=l.map(e=>e.slice(0));for(let t=$(a/i)-2;0<=t;)n.push(...e.map(e=>e.slice(0))),t--;r&&(n.length=z(n.length,a))}s>d&&Pt(n,e=>{const t=e.slice(0);for(let l=$(s/d)-2;0<=l;)e.push(...t.slice(0)),l--;r&&(e.length=z(e.length,s))})}return n}function Ge(o,r){const{filterStore:n}=wl,s=Sl.value,{cutMethod:i,beforeCutMethod:d,afterCutMethod:u,pasteMethod:f,beforePasteMethod:g,afterPasteMethod:m}=s,w=Kl[N](),p=Kl[U]();let v=!1,C=[];if(!n.visible){if(o&&Io(o),w.length){const n=al(w),{rows:s,cols:A}=n,{xegrid:S}=e,x=al(A),b=al(s),I=[],y=w.map(({rows:e,cols:t})=>({rows:e,cols:t})),D=[];let B=!1;if(Pl&&Pl.cut){B=!0;const t=Pl.cellAreas[0],{cols:l,rows:o}=t;if(D.push({rows:o,cols:l}),!d||!1!==d({activeArea:p,cutAreas:D,currentAreas:y,$table:e,$grid:S})){let t;const r=null;Pt(o,o=>{Pt(l,l=>{if(i)i({row:o,column:l,cellValue:r,$table:e,$grid:S});else{const{field:n}=l;po(l,V)?e.setCheckboxRow(o,!1):po(l,F)?e.isCheckedByRadioRow(o)&&(t=o):n&&nl(o,n,r)}})}),t&&e.clearRadioRow(),Kl[P](),u&&u({cutAreas:D,currentAreas:y,$table:e,$grid:S})}}const{text:T}=r,M={},$=Date.now();let O,k=null;T?Pt(l(l(T,/\r\n/g,"\n"),/(\n$)/,"").split(a),e=>{const t=[];Pt(e.split(Mo),e=>{let o=e.trim();if(/\n/.test(o)){const e=l(l(o,/("")|(\n)/g,(e,t)=>{const l=Ye($);return M[l]=t?"\"":"\n",l}),/"(.*?)"/g,(e,t)=>Xe(t,M));o=He(e,M)}t.push(o)}),I.push(t)}):I.push([""]);const U=(t,l,o)=>{f?f({isCut:B,row:t,column:l,cellValue:o,$table:e,$grid:S}):po(l,V)?e.setCheckboxRow(t,Pe(o)):po(l,F)?(!k&&(k=l),Pe(o)&&(O=t)):l.field&&nl(t,l.field,o)};if(1===I.length&&1===I[0].length){C=y;const t=I;if(!g||!1!==g({isCut:B,activeArea:p,cutAreas:D,currentAreas:y,targetAreas:C,cellValues:t,pasteCells:t,$table:e,$grid:S}))return void je({isCut:B,cutAreas:D,currentAreas:y,targetAreas:C,cellValues:t,pasteCells:t,$table:e,$grid:S}).then(l=>{const r=t[0][0];v=!0,Pt(w,e=>{const{rows:t,cols:l}=e;Pt(t,e=>{Pt(l,t=>{U(e,t,r)})})}),m&&m(l),k&&(O?e.setRadioRow(O):e.clearRadioRow()),o&&e[W]("cell-area-paste",{status:v,targetAreas:v?C:[]},o)})}else if(1{const{rows:t,cols:l}=e;return I.length===t.length&&I[0].length===l.length}))return void(fl&&fl[_]({message:hl(t("area.pasteMultiErr")),status:R,id:E}));C=y;const l=I;if(!g||!1!==g({isCut:B,activeArea:p,cutAreas:D,currentAreas:y,targetAreas:C,cellValues:l,pasteCells:l,$table:e,$grid:S}))return void je({isCut:B,cutAreas:D,currentAreas:y,targetAreas:C,cellValues:l,pasteCells:l,$table:e,$grid:S}).then(t=>{v=!0,Pt(w,e=>{const{rows:t,cols:o}=e;Pt(t,(e,t)=>{Pt(o,(o,r)=>{const n=l[t][r];U(e,o,n)})})}),m&&m(t),k&&(O?e.setRadioRow(O):e.clearRadioRow()),o&&e[W]("cell-area-paste",{status:v,targetAreas:v?C:[]},o)})}else if(1===w.length){const l=pl[Ol],r=pl[Wl];let n=b,a=x;const i=Eo(b),d=Ro(x);if(-1{const l=pl[Ol],r=pl[Wl],{insertColumns:s,insertRows:u}=t;v=!0,Pt(w,(e,t)=>{const o=r[i+t];o&&(n=o,Pt(e,(e,t)=>{const r=l[d+t];r&&(a=r,U(o,r,e))}))}),s.length?(a=sl(s),Pt(T,(e,t)=>{const l=r[i+t],o=e.length-s.length;l&&Pt(s,(t,r)=>{const n=e[o+r];U(l,t,n)})})):!u.length&&Kl[L]([{type:c,startColumn:x,endColumn:a,startRow:b,endRow:n}],{column:x,row:b}),m&&m(t),k&&(O?e.setRadioRow(O):e.clearRadioRow()),o&&e[W]("cell-area-paste",{status:v,targetAreas:v?C:[]},o)})}}else return void(fl&&fl[_]({message:hl(t("area.multiErr")),status:R,id:E}));k&&(O?e.setRadioRow(O):e.clearRadioRow())}else if(1e||l+nt||o+at&&(t=o.length-1),e=r.length-1,tt(e,t,l);return{offsetRow:n,offsetColumn:a}}function lt(e,t,l){const o=pl[Ol],r=pl[Wl];let n=r[e];const a=o[t];if(n){const e=Eo(n),t=Ro(a),l=we(e,t);if(l){const{row:t,rowspan:o}=l;e!==t&&(n=r[t+o-1+1])}}else if(l)return t++,t>o.length-1&&(t=0),e=0,lt(e,t,l);return{offsetRow:n,offsetColumn:a}}function ot(e,t,l){const o=pl[Ol],r=pl[Wl],n=r[e];let a=o[t];if(a){const e=Eo(n),t=Ro(a),l=we(e,t);if(l){const{col:e}=l;t!==e&&(a=o[e])}}else if(l)return e--,0>e&&(e=r.length-1),t=o.length-1,ot(e,t,l);return{offsetRow:n,offsetColumn:a}}function rt(e,t,l){const o=pl[Ol],r=pl[Wl],n=r[e];let a=o[t];if(a){const e=Eo(n),t=Ro(a),l=we(e,t);if(l){const{col:e,colspan:r}=l;t!==e&&(a=o[t+r-1+1])}}else if(l)return e++,e>r.length-1&&(e=0),t=0,rt(e,t,l);return{offsetRow:n,offsetColumn:a}}function nt(e,t,l,o){const r=pl[Wl],n=e[t],{cols:a,rows:s}=n;let i=s[l];const d=a[o];if(i){const c=Eo(i),u=Ro(d),f=we(c,u);if(f){const{row:g,col:m}=f,w=Ao(s,r[g]);return c===g&&u===m?(l=w,i=s[o],{offsetArea:n,offsetRow:i,offsetColumn:d}):(u===m?(l=w,i=s[l]):(l=w-1,0>l&&(o--,0>o&&(o=a.length-1),l=s.length-1)),nt(e,t,l,o))}return{offsetArea:n,offsetRow:i,offsetColumn:d}}return o--,0>o?(t--,0>t&&(t=e.length-1),l=e[t].rows.length-1,o=e[t].cols.length-1):l=s.length-1,nt(e,t,l,o)}function at(e,t,l,o){const r=pl[Wl],n=e[t],{cols:a,rows:s}=n;let i=s[l];const d=a[o];if(i){const c=Eo(i),u=Ro(d),f=we(c,u);if(f){const{row:g,col:m,rowspan:w}=f,p=Ao(s,r[g]);return c===g&&u===m?(l=p,i=s[l],{offsetArea:n,offsetRow:i,offsetColumn:d}):(u===m?(l=p+w-1+1,i=s[l]):(l=p+w-1+1,l>s.length+1&&(o++,l>a.length-1&&(o=0),l=0)),at(e,t,l,o))}return{offsetArea:n,offsetRow:i,offsetColumn:d}}return l++,o++,l>s.length-1&&(l=0),o>a.length-1&&(t++,t>e.length-1&&(t=0),o=0),at(e,t,l,o)}function st(t,l,o,r,n,a,s){Io(t);const i=wo(t,x),{row:d,column:u}=l,f=Kl[N](),g=!i||et(f,d,u);if(g){let l=Eo(d),f=Ro(u),g=d,m=u;const w=we(l,f);if(n){if(w){const{row:e}=w;l=e}const{offsetRow:e,offsetColumn:t}=tt(l-1,f,i);g=e,m=t}else if(s){if(w){const{row:e,rowspan:t}=w;l=e+t-1}const{offsetRow:e,offsetColumn:t}=lt(l+1,f,i);g=e,m=t}else if(r){if(w){const{col:e}=w;f=e}const{offsetRow:e,offsetColumn:t}=ot(l,f-1);g=e,m=t}else if(a){if(w){const{col:e,colspan:t}=w;f=e+t-1}const{offsetRow:e,offsetColumn:t}=rt(l,f+1);g=e,m=t}if(g&&m){const l={row:d,column:u,isTab:!1,isEnter:i,isLeft:r,isUp:n,isRight:a,isDown:s};if(e[W]("active-cell-change-start",{...l,activeArea:o},t),t.cancelBubble)return;e[Y](g,m),Kl[L]([{type:c,startColumn:m,endColumn:m,startRow:g,endRow:g}],{column:m,row:g}).then(()=>{e[W]("active-cell-change-end",{...l,beforeActiveArea:o,activeArea:Kl[U]()},t)})}}else{const l=Kl[U]();if(l){const{area:o,row:d,column:c}=l,u=zt(f,e=>e===o);let g=f[u],m=d,w=c;if(g){const{cols:e,rows:t}=g,l=Ao(t,d),o=vo(e,c),{offsetArea:r,offsetRow:a,offsetColumn:s}=n?nt(f,u,l-1,o):at(f,u,l+1,o);g=r,m=a,w=s}if(m&&w){const o={row:d,column:c,isTab:!1,isEnter:i,isLeft:r,isUp:n,isRight:a,isDown:s};if(e[W]("active-cell-change-start",{...o,activeArea:l},t),t.cancelBubble)return;e[Y](m,w).then(()=>{Kl[H]({area:g,column:w,row:m})}).then(()=>{e[W]("active-cell-change-end",{...o,beforeActiveArea:l,activeArea:Kl[U]()},t)})}}}}function it(e,l,o,r){if(Io(e),1>=o.length){const{row:e,column:t}=l,{row:o,column:n}=r,a=Eo(e),s=Ro(t),i=Eo(o),d=Ro(n),u=a>i?o:e,f=a>i?e:o,g=s>d?n:t,m=s>d?t:n;Kl[L]([{type:c,startRow:u,endRow:f,startColumn:g,endColumn:m}],{column:t,row:e})}else fl&&fl[_]({message:hl(t("area.multiErr")),status:R,id:E})}function dt(t,l,o,r,n,a){Io(t);const s=pl[Ol],i=pl[Wl],{area:d,row:u,column:f}=l,{rows:g,cols:m}=d;let w=al(g),p=sl(g),v=al(m),C=sl(m);const A=Eo(u),S=Ro(f);let x=Eo(w),E=Ro(v),R=Eo(p),b=Ro(C),I=g,y=m;const D=we(A,S);if(r||a){if(r){if(Pt(m,e=>{const t=Ro(e),l=we(R,t);if(l){const{row:e}=l;R=z(R,e)}}),R>(D?A+D.rowspan-1:A))R-=1,p=i[R];else{if(0>=x)return;x-=1,w=i[x]}}else if(Pt(m,e=>{const t=Ro(e),l=we(x,t);if(l){const{row:e,rowspan:t}=l;x=G(x,e+t-1)}}),x<(D?A+D.rowspan-1:A))x+=1,w=i[x];else{if(R>=i.length-1)return;R+=1,p=i[R]}const{rows:e,cols:t}=xe(Ut(i,x,R+1),y);I=e,y=t}else{if(o){if(Pt(g,e=>{const t=Eo(e),l=we(t,b);if(l){const{col:e}=l;b=z(b,e)}}),b>(D?S+D.colspan-1:S))b-=1,C=s[b];else{if(0>=E)return;E-=1,v=s[E]}}else if(Pt(g,e=>{const t=Eo(e),l=we(t,E);if(l){const{col:e,colspan:t}=l;E=G(E,e+t-1)}}),E<(D?S+D.colspan-1:S))E+=1,v=s[E];else{if(b>=s.length-1)return;b+=1,C=s[b]}const{rows:e,cols:t}=xe(I,Ut(s,E,b+1));I=e,y=t}w=al(I),p=sl(I),v=al(y),C=sl(y),e[W]("cell-area-arrows-start",{rows:g,cols:m,isLeft:o,isUp:r,isRight:n,isDown:a},t),r||a?e[Y](al(g)===w?p:w):e[X](al(m)===v?C:v),Kl[L]([{type:c,startRow:w,endRow:p,startColumn:v,endColumn:C}],{column:f,row:u}),e[W]("cell-area-arrows-end",{rows:g,cols:m,isLeft:o,isUp:r,isRight:n,isDown:a,targetRows:I,targetCols:y},t)}function ct(e,t,l,o){const r=pl[Ol],n=e[t],{cols:a,rows:s}=n,i=s[l];let d=a[o];if(d){const c=Eo(i),u=Ro(d),f=we(c,u);if(f){const{row:g,col:m}=f,w=vo(a,r[m]);return c===g&&u===m?(o=w,d=a[o],{offsetArea:n,offsetRow:i,offsetColumn:d}):(c===g?(o=w,d=a[o]):(o=w-1,0>o&&(l--,0>l&&(l=s.length-1),o=a.length-1)),ct(e,t,l,o))}return{offsetArea:n,offsetRow:i,offsetColumn:d}}return l--,0>l?(t--,0>t&&(t=e.length-1),l=e[t].rows.length-1,o=e[t].cols.length-1):o=a.length-1,ct(e,t,l,o)}function ut(e,t,l,o){const r=pl[Ol],n=e[t],{cols:a,rows:s}=n,i=s[l];let d=a[o];if(d){const c=Eo(i),u=Ro(d),f=we(c,u);if(f){const{row:g,col:m,colspan:w}=f,p=vo(a,r[m]);return c===g&&u===m?(o=p,d=a[o],{offsetArea:n,offsetRow:i,offsetColumn:d}):(c===g?(o=p+w-1+1,d=a[o]):(o=p+w-1+1,o>a.length-1&&(l++,l>s.length-1&&(t++,t>e.length-1&&(t=0),l=0),o=0)),ut(e,t,l,o))}return{offsetArea:n,offsetRow:i,offsetColumn:d}}return l++,l>s.length-1?(t++,t>e.length-1&&(t=0),l=0,o=0):o=0,ut(e,t,l,o)}function ft(t,l,o,r,n,a){const{column:s,row:i}=l,d=Kl[N](),u=et(d,i,s);if(u){const l=Eo(i);let d=Ro(s),u=i,f=s;const g=we(l,d);if(g){const{col:e,colspan:t}=g;d=r?e:d+t-1}const{offsetRow:m,offsetColumn:w}=r?ot(l,d-1,!0):rt(l,d+1,!0);if(u=m,f=w,u&&f){const l={row:i,column:s,isTab:n,isEnter:a,isLeft:r,isUp:!1,isRight:!1,isDown:!1};if(e[W]("active-cell-change-start",{...l,activeArea:o},t),t.cancelBubble)return;e[Y](u,f),Kl[L]([{type:c,startColumn:f,endColumn:f,startRow:u,endRow:u}],{column:f,row:u}).then(()=>{e[W]("active-cell-change-end",{...l,beforeActiveArea:o,activeArea:Kl[U]()},t)})}}else if(o){const{area:l,row:s,column:i}=o,c=zt(d,e=>e===l);let u=d[c],f=s,g=i;if(u){const{cols:e,rows:t}=u,l=Ao(t,s),o=vo(e,i),{offsetArea:n,offsetRow:a,offsetColumn:m}=r?ct(d,c,l,o-1):ut(d,c,l,o+1);u=n,f=a,g=m}if(f&&g){const l={row:s,column:i,isTab:n,isEnter:a,isLeft:r,isUp:!1,isRight:!1,isDown:!1};if(e[W]("active-cell-change-start",{...l,activeArea:o},t),t.cancelBubble)return;e[Y](f,g).then(()=>{Kl[H]({area:u,column:g,row:f}).then(()=>{e[W]("active-cell-change-end",{...l,beforeActiveArea:o,activeArea:Kl[U]()},t)})})}}}function ht(e,t,l,o,r,n,a,s){const{clientX:i,clientY:d}=e,{scrollbarWidth:c}=wl,u=Bl.value,f=Tl.value,g=i-l,m=d-o,w=a.scrollLeft,p=s.scrollTop;let v=g+(w-r);const C=m+(p-n);let A,S,x=0;u&&(x=u.offsetWidth,A=To(u)),f&&(S=To(f));const{scrollWidth:E,offsetWidth:R}=a,b=E-R-w;return A&&S?"left"===t?i>S.left?v=g+w+c+b:iS.left&&(v=g+(w-r)+c+b):A?"left"===t?iS.left&&(v=g+(w-r)+c+b)),{moveX:g,moveY:m,offsetLeft:v,offsetTop:C}}function gt(e){const l=Ll.value;if(l.showREErr=!1,l.findCellRE=null,l.isRE)try{l.findCellRE=new RegExp(e,l.isSensitive?"":"i")}catch(o){return l.showREErr=!0,fl&&fl[_]({message:hl(t("fnr.reError")),status:R,id:E}),!1}return!0}function mt(e,t,l){if(t.field){const o=Ll.value,r=Al.value,{isWhole:n,isRE:a,isSensitive:s,findCellRE:i}=o,{findMethod:d}=r;let c=Qt(rl(e,t.field));return d?d({cellValue:c,isWhole:n,isRE:a,isSensitive:s,findValue:l,findRE:i}):l?a?i&&i.test(c):(s||(c=ho(c),l=ho(l)),n?c===l:-1=l&&e>=r&&p>=a)return u}}}return u}function pt(e,t,l,o,r,n){const a=pl[Ol],s=pl[Wl],i=Eo(e),d=Ro(t)+1,c=Eo(l),u=Ro(o)+1,f=[];for(let g=0,m=s.length;g=c&&t>=u)return f}}return f}function vt(){Pt(kl.value,e=>{e.isActived=!1})}function Ct(){Mt(()=>{if(_o){const{refElem:t}=_o.getRefMaps(),l=t.value;if(l){const t=Bo(l,".vxe-table--fnr-form-input .vxe-input--inner");t&&(e.blur(),t.focus())}}})}function At(t){const l=Ll.value,o=pl[Ol],r=pl[Wl],n=Kl[U](),a=Kl[N]();let s=al(r),i=al(o),d=sl(r),u=sl(o);const f=Qt(l.findValue);let g=[],m=!0;if(l.showREErr=!1,!gt(f))return g;if(n){const{row:e,column:l}=n;m=et(a,e,l),!t&&m&&(s=e,i=l)}if(m){if(g=pt(s,i,d,u,f,t),!t&&(g.length||(d=s,u=i,s=al(r),i=al(o),g=pt(s,i,d,u,f,t)),g.length)){const{offsetRow:t,offsetColumn:l}=g[0];e[Y](t,l),Kl[L]([{type:c,startRow:t,endRow:t,startColumn:l,endColumn:l}])}}else if(n){const{area:l,row:o,column:r}=n;let s=t?0:zt(a,e=>e===l);const i=a[s];if(i){const{cols:l,rows:n}=i;let d=t?0:Ao(n,o),c=t?0:vo(l,r)+1,u=a.length-1;const m=a[u];let w=m.rows.length-1,p=m.cols.length-1;if(g=wt(a,s,u,d,w,c,p,f,t),!t&&(g.length||(u=s,w=d,p=c,s=0,d=0,c=0,g=wt(a,s,u,d,w,c,p,f,t)),g.length)){const{offsetArea:t,offsetRow:l,offsetColumn:o}=g[0];e[Y](l,o).then(()=>{Kl[H]({area:t,column:o,row:l})})}}}return g}function St(){const e=Ll.value;e.visible=!1,e.showCount=!1,kl.value=[],_o=null}function xt(l){const o=vl.value,r=Ll.value,n=Al.value,a=Kl[U](),s=ll(Hl,e=>"find"===e.value&&!!n.isFind||"replace"===e.value&&!!n.isReplace),i=-1Vt("span",{key:t,class:{"is--active":r===e.value},onClick(t){Wo(t,e)}},hl(e.label)))),Vt("div",{class:d+"body"},[Vt("table",{class:d+"form",cellspacing:0,cellpadding:0,border:0},[Vt("tbody",[Vt("tr",{class:"is--visible"},[Vt("td",{class:d+"form-title"},hl(t("fnr.findTitle"))),Vt("td",{class:d+"form-content"},[Vt($t("vxe-input"),{class:d+"form-input",modelValue:l.findValue,clearable:!0,onKeydown:Ho,"onUpdate:modelValue"(e){l.findValue=e}})]),Vt("td",{class:d+"form-filter",rowspan:2},[Vt($t("vxe-checkbox"),{modelValue:n,content:hl(t("fnr.filter.re")),"onUpdate:modelValue"(e){l.isRE=e}}),Vt($t("vxe-checkbox"),{modelValue:!n&&l.isWhole,disabled:n,content:hl(t("fnr.filter.whole")),"onUpdate:modelValue"(e){l.isRE||(l.isWhole=e)}}),Vt($t("vxe-checkbox"),{modelValue:l.isSensitive,content:hl(t("fnr.filter.sensitive")),"onUpdate:modelValue"(e){l.isSensitive=e}})])]),Vt("tr",{class:{"is--visible":"replace"===l.activeTab}},[Vt("td",{class:d+"form-title"},hl(t("fnr.replaceTitle"))),Vt("td",{class:d+"form-content"},[Vt($t("vxe-input"),{class:d+"form-input",modelValue:l.replaceValue,clearable:!0,"onUpdate:modelValue"(e){l.replaceValue=e},onKeydown:ko})])])])])]),Vt("div",{class:d+"footer"},i),Vt("div",{class:d+"search"},[Vt("div",{class:d+"search-header"},[Vt("div",hl(t("fnr.header.seq"))),Vt("div",hl(t("fnr.header.cell"))),Vt("div",hl(t("fnr.header.value")))]),Vt("div",{class:d+"search-body"},[Vt($t("vxe-list"),{class:d+"search-list",data:kl.value,autoResize:!0,scrollY:{gt:10,sItem:d+"find-item"}},{default(e){const{items:t}=e;return t.map(e=>Vt("div",{key:e.seq,class:[d+"find-item",{"is--active":e.isActived}],onClick(t){Oo(t,e)}},[Vt("div",e.seq),Vt("div","Row:"+(e.row+1)+", Col:"+(e.col+1)),Vt("div",e.value)]))}})]),Vt("div",{class:[d+"search-footer",{"is--error":a,"is--visible":a||l.showCount}]},a?hl(t("fnr.reError")):hl(t("fnr.recordCount"),[l.findCount]))])]}}}))}function Et(e){const{mouseConfig:t}=ml,l=Rl.value,o=Ll.value;return t&&l.area&&(o.visible?e.value!==o.activeTab&&(o.activeTab=e.value,Ct()):xt(e)),Mt()}function Rt(l){const{keyboardConfig:o,editConfig:r,highlightCurrentRow:n}=ml,{editStore:a,filterStore:s,ctxMenuStore:i}=wl,{xegrid:d}=e,c=xl.value,u=Cl.value,f=Al.value,g=Il.value,m=yl.value,{actived:w}=a,{keyCode:v}=l,C=wo(l,p.SPACEBAR),A=wo(l,p.ESCAPE),S=wo(l,p.ENTER),x=wo(l,p.ARROW_LEFT),b=wo(l,p.ARROW_UP),I=wo(l,p.ARROW_RIGHT),y=wo(l,p.ARROW_DOWN),D=wo(l,p.TAB),B=wo(l,p.BACKSPACE),T=wo(l,p.DELETE),M=wo(l,p.A),$=wo(l,p.X),W=wo(l,p.C),O=wo(l,p.V),L=wo(l,p.F),k=wo(l,p.H),H=wo(l,p.M),Y=wo(l,p.F2),X=wo(l,p.CONTEXT_MENU),q=x||b||I||y,G=l.metaKey,J=l.ctrlKey,z=l.shiftKey,Z=Kl[U](),Q=mo(r)&&w.column&&w.row,ee=u.beforeEditMethod||u.activeMethod;if(C&&Z&&o&&c.isChecked){const t=Z.column,o={row:Z.row,column:t};po(t,V)?(Io(l),e.handleToggleCheckRowEvent(l,o)):po(t,F)&&(Io(l),e.triggerRadioRowEvent(l,o))}if(A)s.visible&&(yo(l),e.closeFilter()),i.visible&&(yo(l),e.closeMenu()),Pl?(yo(l),Kl[P]()):ve(l);else if(Y&&mo(r)&&Z){if(!Q){const{offsetRow:t,offsetColumn:o}=pe(Z.row,Z.column);if(mo(o.editRender)){const r={row:t,column:o,cell:e.getCell(t,o)};Io(l),e.handleActived(r,l)}}}else if(X)pl._keyCtx=Z&&Z.row&&Z.column&&g.length,clearTimeout(jo),jo=setTimeout(()=>{pl._keyCtx=!1},1e3);else if(J&&H&&o&&c.isMerge&&Z)Q||(Io(l),Se(l),Kl[P]());else if(J&&o&&c.isFNR&&(L&&f.isFind||k&&f.isReplace)){Io(l);const e=Ll.value,t=Hl[L?0:1];e.visible?Wo(l,t):Xo(l,t.value),ve(l)}else if(S&&o&&c.isEnter){const{column:t,row:o}=w;if(t&&o){const{offsetRow:r,offsetColumn:n}=pe(o,t);Io(l),e[K]?e[K](l):e[j](l),c.enterToTab?ft(l,{row:r,column:n},Z,z,!1,!0):st(l,{row:r,column:n},Z,!1,z,!1,!z)}else Z&&(Io(l),c.enterToTab?ft(l,{row:Z.row,column:Z.column},Z,z,!1,!0):st(l,{row:Z.row,column:Z.column},Z,!1,z,!1,!z))}else if(q&&o&&c.isArrow){if(!Q)if(!Z)(b||y)&&(m.isCurrent||n)&&e.moveCurrentRow(b,y,l);else if(!z)st(l,{row:Z.row,column:Z.column},Z,x,b,I,y);else if(c.isShift){const e=Kl[N]();1>=e.length?dt(l,Z,x,b,I,y):fl&&fl[_]({message:hl(t("area.multiErr")),status:R,id:E})}}else if(D&&o&&c.isTab){const{column:t,row:o}=w;if(o&&t){const{offsetRow:r,offsetColumn:n}=pe(o,t);Io(l),e[K]?e[K](l):e[j](l),ft(l,{row:r,column:n},Z,z,!0,!1)}else Z&&(Io(l),ft(l,{row:Z.row,column:Z.column},Z,z,!0,!1))}else if((T||B)&&mo(r)&&o&&c.isDel){const{delMethod:t,backMethod:o}=c;if(!Q)if(B&&Z){const{column:t,row:r}=Z;if(r&&t){const{offsetRow:n,offsetColumn:a}=pe(r,t);if(mo(a.editRender)){const t={row:n,rowIndex:e.getRowIndex(n),column:a,columnIndex:e.getColumnIndex(a),cell:e.getCell(n,a),$table:e,$grid:d};(!ee||ee(t))&&(o?o(t):(t.cell=e.getCell(n,a),nl(n,a.field,null),e.handleActived(t,l)))}}}else if(T){const l=Kl[N]();Pt(l,l=>{const{rows:o,cols:r}=l;Pt(o,l=>{Pt(r,o=>{if(mo(o.editRender)){const r=e.getRowIndex(l),n=e.getColumnIndex(o),a={row:l,rowIndex:r,column:o,columnIndex:n,cell:e.getCell(l,o),$table:e,$grid:d};(!ee||ee(a))&&(t?t(a):nl(l,o.field,null))}})})})}}else if(o&&J&&M)Q||Po(l);else if(o&&c.isClip&&J&&ul.msie&&($||W||O));else if(o&&mo(r)&&c.isEdit&&!J&&!G&&(C||48<=v&&57>=v||65<=v&&90>=v||96<=v&&111>=v||186<=v&&192>=v||219<=v&&222>=v)&&!Q&&Z){const{column:t,row:o}=Z;if(o&&t){const{offsetRow:r,offsetColumn:n}=pe(o,t),{editMethod:a}=c;if(mo(n.editRender)){const t={row:r,rowIndex:e.getRowIndex(r),column:n,columnIndex:e.getColumnIndex(n),cell:e.getCell(r,n),$table:e,$grid:d};(!ee||ee(t))&&(a?a(t):(nl(r,n.field,null),e.handleActived(t,l)))}}}}function bt(e){return e.map(e=>e.map(e=>{let t=0;const o=!isNaN(e);let r="{0}";return o?t=e:r=l(Qt(e),/\d+(?!.*\d)/,e=>(t=e,"{0}")),{v:r,n:Zt(t),t:o}}))}function It(e,t){const{targetValues:l,targetRows:o,extendRows:n,extendCols:a}=e,s=bt(l),i=s[t?0:s.length-2],d=s[t?1:s.length-1],c=a.map((e,l)=>{const o=i[l],r=d[l];return{offset:t?o.n-r.n:r.n-o.n,num:t?o.n:r.n}}),u=n.map((e,l)=>{const n=l%o.length,i=s[t?s.length-n-1:n];return a.map((e,t)=>{const l=i[t],o=c[t],{num:n,offset:a}=o,s=n+a;return!l.t&&0>=s&&(o.offset=r(a)),o.num=s,el(l.v,[s])})});return t&&u.reverse(),u}function yt(e,t){const{targetValues:l,targetCols:o,extendRows:n,extendCols:a}=e,s=bt(l),i=s.map(e=>{const l=e[t?0:e.length-2],o=e[t?1:e.length-1];return{offset:t?l.n-o.n:o.n-l.n,num:t?l.n:o.n}});return n.map((e,l)=>{const n=i[l],d=s[l],c=a.map((e,l)=>{const a=l%o.length,s=d[t?d.length-a-1:a],{num:i,offset:c}=n,u=i+c;return!s.t&&0>=u&&(n.offset=r(c)),n.num=u,el(s.v,[u])});return t&&c.reverse(),c})}function Dt(t,l,o,r){const n=bl.value,{xegrid:a}=e,{rows:s,cols:i}=r,d=s.length>l.length,c=i.length>o.length,u=t.shiftKey,f=t.ctrlKey;let g;if(!u&&(d||c)){const{extendByCopy:t,extendByCalc:r,extendCalcMethod:u,extendSetMethod:m,beforeExtendSetMethod:w,afterExtendSetMethod:p}=n,v=Eo(l[0]),C=Eo(s[0]),A=Ro(o[0]),S=Ro(i[0]);let x=!1,E=!1,R=[];if(d){const n=!f&&r&&2<=l.length;if(t||n){let t=[];R=l.map(e=>o.map(t=>Oe(e,t,0))),C{const n=x?t.length%g.length:0,a=(n+l)%g.length,s=g[a];Pt(o,(t,l)=>{const o=s[l%s.length];if(m)m(kt({cellValue:o,row:e,column:t},r));else{const{field:l}=t;l&&nl(e,l,o)}})}),p&&p(kt({extendValues:g},r)))}}else if(c){const n=!f&&r&&2<=o.length;if(t||n){let t=[];So.map(t=>Oe(e,t,0)));const r={rows:s,cols:i,targetValues:R,targetRows:l,targetCols:o,extendRows:l,extendCols:t.slice(0),direction:E?"left":"right",$table:e,$grid:a};w&&!1===w(r)||(g=R,n&&(u?g=u(r):g=yt(r,E)),Pt(l,(e,l)=>{const o=l%g.length,n=g[o],a=E?t.length%n.length:0;Pt(t,(t,l)=>{const o=(a+l)%n.length,s=n[o];if(m)m(kt({cellValue:s,row:e,column:t},r));else{const{field:l}=t;l&&nl(e,l,s)}})}),p&&p(kt({extendValues:g},r)))}}}}function Bt(l,o){const{button:n}=l,a=0===n;if(!a)return;const{fixed:s}=o,i=Kl[N](),u=qt(i,e=>e.type===c);if(bo(),u){const n=d[B],a=d[T],i=Dl.value,c=l.clientX,g=l.clientY,m=Vl.value,w=Ml.value,p=$l.value,v=m.$el,C=w?w.$el:null,A=p?p.$el:null,S=C||v,x=A||v,{rows:I,cols:y}=u,D=al(y),V=al(I),F=sl(y),M=sl(I),$=u.top,O=u.left,L=u.width,k=u.height,U=ce(D.fixed),N=Bo(U,".vxe-table--cell-area"),H=N.children[2],Y=S.scrollTop,X="left"===s?0:x.scrollLeft,P=Eo(M),K=Ro(F),j=we(P,K);let q=1,G=1,J=0,Z=0,Q="",ee=null,te=null;const le=Bo(U,".vxe-body--row"),oe=le.firstChild,re={type:f,cols:[],rows:[],top:0,left:0,width:0,height:0},ne=t=>{const{offsetTop:l,offsetLeft:o}=ht(t,s,c,g,X,Y,x,S),n=r(l),a=r(o),i=x.scrollWidth,d=S.scrollHeight;let f=k,m=L,w=$,p=O;switch(Q){case"top":if(l<-k){const e=z($,Ee(V,D,j,!1,n-k));w-=e,f+=e}break;case"bottom":0{bo(),Yl=setTimeout(()=>{if(Yl){const{clientHeight:l,clientWidth:o}=v,{scrollLeft:r,scrollWidth:n}=x,{scrollTop:a,scrollHeight:s}=S;let i=null,d=null;null!==ee&&(ee?a+l{Do(e);const{clientY:t,clientX:l}=e,{clientHeight:o,clientWidth:r}=v,{offsetTop:n,offsetLeft:a}=ht(e,s,c,g,X,Y,x,S),i=To(v),d=i.top,u=i.left,f=O+L+a,m=$+k+n;let w;ee=null,te=null,J=t,Z=l,Jd+o&&(w=!0,ee=!0,q=J-d-o),Zu+r&&(w=!0,te=!0,G=Z-u-r),f$&&m<$+k&&(Q="left"):f>O+L?m>$&&m<$+k&&(Q="right"):m<$?Q="top":m>$+k&&(Q="bottom"),w?!Yl&&ae(e):bo(),ne(e)},d[T]=()=>{d[B]=n,d[T]=a,bo(),de(i,"drag--extend-range");const o=De(le,re),r=ye(oe,re);Qe(o,r)?(u.rows=o,u.cols=r):fl&&fl[_]({message:hl(t("area.extendErr")),status:R,id:E}),kt(u,Ve(u)),se(H),Dt(l,I,y,u),Xl=!1,e[W]("cell-area-extension-end",{rows:u.rows,cols:u.cols,targetRows:I,targetCols:y},l)},ie(i,"drag--extend-range"),Xl=!0,e[W]("cell-area-extension-start",kt({targetRows:I,targetCols:y},o),l)}}function Tt(t,l){if(!fo)return;const{button:o}=t,n=0===o,a=2===o;if(!(n||a))return;const s=Dl.value,{editStore:i}=wl,u=Cl.value,f=bl.value,{actived:w,selected:p}=i,{fixed:v,row:C,column:A,cell:S}=l;if(Xl)return void Io(t);if(w.row===C&&("cell"===u.mode?w.column===A:"row"===u.mode))return;const x=t.ctrlKey,E=t.shiftKey,R=x&&f.multiple,I=S.offsetTop,y=S.offsetLeft,D=S.offsetWidth,V=S.offsetHeight;let F=Kl[N]();const M=Kl[U]();if(bo(),!a&&E&&M)return void it(t,M,F,l);if(w.column&&(e[K]?e[K](t):e[j](t)),p.column&&e.clearSelected(),!a||!ol(F,e=>So(e.rows,C)&&Co(e.cols,A))){const o={row:M?M.row:null,column:M?M.column:null,isTab:!1,isEnter:!1,isLeft:!1,isUp:!1,isRight:!1,isDown:!1};if(e[W]("active-cell-change-start",{...o,activeArea:M},t),t.cancelBubble)return;R||(F=[],Kl[k]());const n=d[B],i=d[T],u=t.clientX,f=t.clientY,w=Vl.value,p=Ml.value,x=$l.value,E=Ce(t,S),$=w.$el,_=p?p.$el:null,O=x?x.$el:null,L=_||$,N=O||$,Y=ce(A.fixed),X=Bo(Y,".vxe-table--cell-area"),P=X.children,K=P[0],j=P[2],q=P[3],G=S,J=G.parentNode,Z=Bo(Y,".vxe-body--row"),Q=Z.firstChild,ee=L.scrollTop,te="left"===v?0:N.scrollLeft;let le=null,oe=null,re=1,ne=1,ae=0,fe=0;const ge={type:R?g:c,cols:[],rows:[],top:0,left:0,width:0,height:0},me={type:m,area:ge,column:A,row:C,top:S.offsetTop,left:S.offsetLeft,width:S.offsetWidth,height:S.offsetHeight};if(R){const e=v?`${v}El`:"el",t=qt(F,e=>e.type===c);t&&(t.type=g,t[e]=ue(q),he(t[e],t)),ge[e]=ue(q)}Kl[H](me),F.push(ge);const we=t=>{const{offsetTop:l,offsetLeft:o}=ht(t,v,u,f,te,ee,N,L),n=N.scrollWidth,a=L.scrollHeight,s=0<=l,i=0<=o;let d,c,g=r(l),m=r(o);s?(d=be(C,A,J,s,g+E.offsetY),g=z(a-I,d.moveHeight)):(d=be(C,A,J,s,g-E.offsetY),g=z(I+V,d.moveHeight)),i?(c=Ie(C,A,S,i,m+E.offsetX),m=z(n-y,c.moveWidth)):(c=Ie(C,A,S,i,m-E.offsetX),m=z(y+D,c.moveWidth));const{rows:w,cols:p}=xe(d.rows,c.cols);ge.rows=w,ge.cols=p,se(j),R?(se(K),Vo(q)):(se(q),Vo(K)),kt(ge,Ve(ge)),e[W]("cell-area-selection-drag",{rows:ge.rows,cols:ge.cols},t)},pe=t=>{bo(),Yl=setTimeout(()=>{if(Yl){const{clientHeight:l,clientWidth:o}=$,{scrollLeft:r,scrollWidth:n}=N,{scrollTop:a,scrollHeight:s}=L;let i=null,d=null;null!==le&&(le?a+l{Do(e);const{clientY:t,clientX:l}=e,{clientHeight:o,clientWidth:r}=$,n=To($),a=n.top,s=n.left;let i;le=null,oe=null,ae=t,fe=l,aea+o&&(i=!0,le=!0,re=ae-a-o),fes+r&&(i=!0,oe=!0,ne=fe-s-r),i?!Yl&&pe(e):bo(),we(e)}),d[T]=()=>{d[B]=n,d[T]=i,bo(),ge.cols=ye(Q,ge),ge.rows=De(Z,ge),de(s,"drag--area"),e[W]("cell-area-selection-end",{rows:ge.rows,cols:ge.cols},t)},ie(s,"drag--area"),we(t),Nl.value=F,e[W]("cell-area-selection-start",l,t),e[W]("active-cell-change-end",{...o,beforeActiveArea:M,activeArea:Kl[U]()},t)}}const Vt=h,Ft=ref,Mt=nextTick,$t=resolveComponent,{now:_t,uniqueId:Wt,isNumber:Ot,browse:Lt,assign:kt,slice:Ut,isBoolean:Nt,indexOf:Ht,includes:Yt,eachTree:Xt,arrayEach:Pt,hasOwnProp:Kt,toInteger:jt,find:qt,findLast:Gt,findLastIndexOf:Jt,findIndexOf:zt,toNumber:Zt,toValueString:Qt,toFormatString:el,toDateString:tl,filter:ll,some:ol,get:rl,set:nl,first:al,last:sl,isArray:il,toStringJSON:dl,template:cl}=XEUtils,ul=Lt(),fl=O?o[E?"modal":""]:U,hl=U?o.t:Z,gl=W?o.globalStore?o.globalStore:o.config:te,{props:ml,reactData:wl,internalData:pl}=e,{computeSize:vl,computeEditOpts:Cl,computeFNROpts:Al,computeClipOpts:Sl,computeKeyboardOpts:xl,computeSeqOpts:El,computeMouseOpts:Rl,computeAreaOpts:bl,computeBodyMenu:Il,computeRowOpts:yl}=e.getComputeMaps(),{refElem:Dl,refLeftContainer:Bl,refRightContainer:Tl,refTableBody:Vl,refTableLeftBody:Fl,refTableRightBody:Ml,refTableFooter:$l}=e.getRefMaps(),_l=(le?"table":"")+"Full"+(J?"Column":""),Wl=(K?"after":"")+"Full"+(U?"Data":""),Ol=(F?"visible":"")+(S?"Column":""),Ll=Ft({visible:!1,activeTab:"",findValue:"",replaceValue:"",isRE:!1,isWhole:!1,isSensitive:!1,showREErr:!1,showCount:!1,findCellRE:null,findCount:0}),kl=Ft([]),Ul=Ft(null),Nl=Ft([]),Hl=[{value:"find",label:t("fnr.tabs.find")},{value:"replace",label:t("fnr.tabs.replace")}];let Yl,Xl,Pl=null,Kl={},jl={};const ql=n[i("ZGVjb2RlVVJJQ29tcG9uZW50")];let Gl=0;const Jl=Date.now(),zl="WEUwMDAwMjMXy",Zl=Ot(Jl)?["JTdCJTIybm8lMjIl","M0ElMjJYRTA","wMDAyMzIlMjIlM","kMlMjJrZXklM","jIlM0ElMjI","xa2VkbHB1eWpvd","zF2N2V6JTI","yJTJDJTIydHlw","ZSUyMiUzQSUyM","jElMjIlMkMlMjJ","hdlR5cGUlMjI","lM0ElMjJFbnR","lcnByaXNlJTIyJ","TJDJTIydWVUaW1l","JTIyJTNBM","jMzMzU0ODgwMDAw","MCUyQyUyMm0lMj","IlM0ElNUIlNU","QlMkMlMjJz","JTIyJTNBJTVCJ","TVEJTJDJ","TIyaSUyMiUzQSU1","QiUyMjEwL","iouKi4qJT","IyJTJDJTIyMT","cyLjE2LiouKiUy","MiUyQyUyMj","E5Mi4xNjg","uKi4qJTIyJTVEJ","TdE"].join(""):"0G58JFNSHCKSUSJ51OSIUDFF";let Ql=!0;const eo="https://vxetable.cn",to=`${"https://vxetable.cn"}/plugins/`,lo=["%","5B","v","x","e-ta","bl","e%20v","%7B%","7B0%7","D%7D%","20pl","ugi","n%20","%7B%7","B1%7D%","7D%5D%","20Tr","ial%3A%7","B%7B2%7","D%7D","%EF%BC%","8C%E8%A","F%95%E7","%94%A8%E","7%89%","88%E","5%8F","%AA%","E8%83","%BD%E7","%94%A8%","E4%BA%8E","%E6%BC","%94%","E7%A","4%BA%","EF%BC%8","C%E5%A6%","82%E9%9","C%80","%E6%AD%","A3%E5%B","C%8F%E4%","BD%BF","%E7%9","4%A8%EF%B","C%8C%","E8%AF%B","7%E5%8","8%B0%E","5%AE%9","8%E7%","BD%91%2","0%7B%7","B3%7D","%7D%","20%E8","%B4%A","D%E4%","B9%B0%E","6%8E%","88%E","6%9D","%83"],oo=["%","5Bv","xe","-tab","le%2","0v","%7","B%7B0","%7","D%7D%","20plu","gin","%20%7","B%7B1","%7D%","7D%5D","%20","Er","ror%3A","%7B","%7B","2%7","D%7D","%20","%E6%9C","%AA%E6","%8E%8","8%E6%9D%","83%E","F%BC%8C","%E5","%A6%8","2%E9%","9C%80%","E7%BB%A","7%E7%","BB%AD","%E","4%BD%BF","%E7%","94%A8","%EF%","BC%","8C%E8%A","F%B7%E","5%88","%B0%E5","%AE%98","%E7%","BD%91%20","%7B%7","B3%7","D%7D%2","0%E8%","B4%AD","%E","4%B9%B","0%E6","%8E%8","8%E6","%9D","%8","3"],ro=["%5Bv","x","e-t","ab","le%2","0v%","7B%","7B0%","7D%7","D%2","0plu","gin","%20%7","B%7","B1%7","D%7D%","5D%","20E","xpi","red","%3A%7","B%7B2","%7D%7D","%20","%E5","%B7%","B2%","E8%BF","%87%","E6%9C%","9F%E","F%BC%","8C%","E5%A6%8","2%E9%9C","%80%","E7%BB","%A7%E7","%BB","%AD","%E4","%BD%B","F%E7%","94%","A8%EF","%BC%8","C%E","8%AF","%B7%E","5%8","8%B0%E","5%AE%98","%E7%B","D%91%20","%7B%7B","3%7D%7D","%20%E8%B","4%AD%","E4%B9%B","0%E6","%8E%","88%E6","%9D%8","3"],no=["%","5Bvx","e-t","abl","e","%20","v%","7B%","7B0","%7D","%7","D%2","0pl","ugin%2","0%7B%","7B1%7","D%7D","%5D","%20","Suc","ce","ss%","3A%","7B%7","B2%","7D%7","D%EF%","BC%8CA","PI","%EF","%BC%","9A%7B%7","B3%","7D%","7D"],ao=Zt("2333548803543"),so=Zt("2333548801712");let io=!0;const co=!!Qt(""),uo=!!Qt(""),fo=_t(),ho=function(e){return e?e.toLowerCase():""},go=(io?"ena":"")+"bled",mo=e=>e&&!1!==e[go],wo=(e,t)=>{const{key:l}=e;return t=ho(t),t===ho(l)||!!(v[l]&&ho(v[l])===t)},po=(e,t)=>e.type===t,vo=(e,t)=>zt(e,e=>e.id===t.id),Co=(e,t)=>-1e.findRowIndexOf(t,l),So=(e,t)=>-1e===u?1:e===f?2:e===g?3:e===m?4:0,Eo=t=>e.getVTRowIndex(t),Ro=t=>e.getVTColumnIndex(t),bo=()=>{clearTimeout(Yl),Yl=null},Io=e=>{e.preventDefault()},yo=e=>{e.stopPropagation()},Do=e=>{yo(e),Io(e)},Bo=(e,t)=>e.querySelector(t),To=e=>e.getBoundingClientRect(),Vo=e=>{e&&(e.style.display="block")};let Fo=0;const Mo="\t",$o=e=>{const t=pl[Wl],l=al(t),o=[];Xt([e],e=>{e.children&&e.children.length||o.push(e)},q);const r=al(o),n=sl(o);return Mt(()=>{Kl[P](),Kl[L]([{type:c,startColumn:r,endColumn:n,startRow:l,endRow:sl(t)}],{column:r,row:l})}),{cols:o,rows:t}};let _o;const Wo=(t,l)=>{const o=Ll.value;o.activeTab!==l.value&&(o.activeTab=l.value,Ct(),e[W]("fnr-change",{tab:o.activeTab},t))},Oo=(t,l)=>{const o=pl[Ol],r=pl[Wl],n=r[l.row],a=o[l.col];n&&a&&(vt(),l.isActived=!0,e[Y](n,a),Kl[L]([{type:c,startRow:n,endRow:n,startColumn:a,endColumn:a}]))},Lo=l=>{const o=!1,r=Ll.value,n=Kl[U](),a=Qt(r.findValue),s=Qt(r.replaceValue);if(gt(a)&&(a||s))if(n){const r=Al.value,{xegrid:i}=e,{beforeReplaceMethod:d,replaceMethod:c,afterReplaceMethod:u}=r,{row:f,column:g}=n;if(d&&!1===d({isAll:o,findValue:a,replaceValue:s,$table:e,$grid:i}))return;mt(f,g,a)?(c?c({row:f,column:g,cellValue:s}):nl(f,g.field,s),At(),vt(),u&&u({isAll:o,findValue:a,replaceValue:s,result:[{row:f,_rowIndex:Eo(f),column:g,_columnIndex:Ro(g)}],$table:e,$grid:i}),e[W]("fnr-replace",{findValue:a,replaceValue:s,row:f,column:g},l)):fl&&fl[_]({message:hl(t("fnr.notCell")),status:"warning",id:"operWarn"})}else fl&&fl[_]({message:hl(t("fnr.notCell")),status:"warning",id:"operWarn"})},ko=e=>{const{$event:t}=e,l=wo(t,x);l&&Lo(t)},Uo=l=>{const o=!0,r=Ll.value,n=Al.value,a=Qt(r.findValue),s=Qt(r.replaceValue);if(a||s){const{xegrid:i}=e,{beforeReplaceMethod:d,replaceMethod:c,afterReplaceMethod:u}=n;if(r.showREErr)return;if(d&&!1===d({isAll:o,findValue:a,replaceValue:s,$table:e,$grid:i}))return;const f=At(!0);if(vt(),f.length){const r=[];Pt(f,e=>{const{offsetRow:t,_rowIndex:l,offsetColumn:o,_columnIndex:n}=e;c?c({row:t,column:o,cellValue:s}):nl(t,o.field,s),r.push({row:t,_rowIndex:l,column:o,_columnIndex:n})}),u&&u({isAll:o,findValue:a,replaceValue:s,result:r,$table:e,$grid:i}),e[W]("fnr-replace-all",{findValue:a,replaceValue:s,result:r},l),fl&&fl[_]({message:hl(t("fnr.replaceSuccess"),[f.length]),status:"success",id:"operEnd"})}else fl&&fl[_]({message:hl(t("fnr.notCell")),status:"warning",id:"operWarn"})}},No=l=>{const o=!1,r=Ll.value,n=Al.value,{xegrid:a}=e,{beforeFindMethod:s,afterFindMethod:i}=n,d=Qt(r.findValue);if(!r.showREErr&&!(s&&!1===s({isAll:!1,findValue:d,$table:e,$grid:a}))){const o=At();if(vt(),!o.length)return void(fl&&fl[_]({message:hl(t("fnr.notCell")),status:"warning",id:"operWarn"}));const r=o[0];i&&i({isAll:!1,findValue:d,result:o.map(e=>({row:e.offsetRow,_rowIndex:e._rowIndex,column:e.offsetColumn,_columnIndex:e._columnIndex})),$table:e,$grid:a}),e[W]("fnr-find",{findValue:d,row:r.offsetRow,column:r.offsetColumn},l)}},Ho=e=>{const{$event:t}=e,l=Ll.value,o=wo(t,x);o&&("replace"===l.activeTab?Lo(t):No(t))},Yo=l=>{const o=!0,r=Ll.value,n=Al.value,{xegrid:a}=e,{beforeFindMethod:s,afterFindMethod:i}=n,d=Qt(r.findValue);if((kl.value=[],!r.showREErr)&&!(s&&!1===s({isAll:!0,findValue:d,$table:e,$grid:a}))){const n=At(!0);if(r.findCount=n.length,r.showCount=!0,n.length){const r=[],s=n.map((e,l)=>{const{offsetRow:o,offsetColumn:n,_rowIndex:a,_columnIndex:s}=e,i=Qt(rl(o,n.field)),d=i||hl(t("fnr.empty"));return r.push({row:o,_rowIndex:a,column:n,_columnIndex:s}),{seq:l+1,row:a,col:s,isActived:!1,value:d}});setTimeout(()=>{kl.value=s,i&&i({isAll:o,findValue:d,result:r,$table:e,$grid:a})},10),e[W]("fnr-find-all",{findValue:d,result:r},l)}else fl&&fl[_]({message:hl(t("fnr.notCell")),status:"warning",id:"operWarn"})}},Xo=(t,l)=>{if(!ae())return;const o=Ll.value,r=Al.value,n=qt(Hl,e=>e.value===l)||Hl[0];("find"!==n.value||!r.isFind)&&("replace"!==n.value||!r.isReplace)||(Et(n),e[W]("open-fnr",{tab:o.activeTab},t))},Po=t=>{const l=pl[Ol],o=pl[Wl];o.length&&l.length&&(Io(t),e[W]("cell-area-selection-all-start",{},t),Kl[L]([{type:c,startRow:al(o),endRow:sl(o),startColumn:al(l),endColumn:sl(l)}]),e[W]("cell-area-selection-all-end",{rows:Ut(o,0),cols:Ut(l,0)},t))},Ko=(t,l)=>{t.length&&e.recalculate().then(()=>{const e=pl[Ol],o=pl[Wl],r=[];if(Pt(t,t=>{const{type:l,cols:n,rows:a}=t,s=qt(n,t=>Co(e,t)),i=qt(a,e=>So(o,e));if(i&&s){const t=Gt(n,t=>Co(e,t)),d=Gt(a,e=>So(o,e));r.push({type:l,startColumn:s,endColumn:t,startRow:i,endRow:d})}}),r.length){let e;l&&(e={area:r[Ht(t,l.area)],row:l.row,column:l.column}),Kl[L](r,e)}else Kl[k]();if(Pl){const t=Pl.cellAreas[0],{cols:l,rows:r}=t,n=zt(l,t=>Co(e,t)),a=zt(r,e=>So(o,e));if(-1Co(e,t)),i=Jt(r,e=>So(o,e));t.cols=Ut(l,n,s+1),t.rows=Ut(r,a,i+1);const d=Ve(t);Pl={cut:!1,cellAreas:d?[d]:[]}}}})};let jo;Kl={[N](){return Nl.value||[]},[k](e){const t=Kl[N]();let l=e;if(Ot(e)&&(l=t[e]),l&&1e!==l);if(Nl.value=r,o&&o.area===l){const e=sl(r);Kl[H]({area:e,row:sl(e.rows),column:sl(e.cols)})}}else ge(e=>{const t=e.children,l=t[0],o=t[2],r=t[3],n=t[4];if(se(l),se(l.firstChild),se(o),se(n),r){const e=r.children;for(let t=e.length-1;0<=t;t--)r.removeChild(e[t])}}),Ul.value=null,Nl.value=[];return Mt()},getCopyCellArea(){return Pl?Pl.cellAreas[0]:null},getCopyCellAreas(){return Pl?Pl.cellAreas:[]},[P](){return me(u),Pl=null,Mt()},[L](e,t){if(e){il(e)||(e=[e]),Kl[k]();let l=qt(e,e=>e.type===c),o=[];if(l||(l=qt(e,e=>!e.type),l&&(l.type=c)),l){const e=Fe(l);o=e?[e]:[]}else{const t=[];Pt(e,e=>{const l=Fe(e);l&&t.push(l)}),o=t}if(o.length){const l=o[0];let r,n,a=o[0];if(t){const{area:s,row:i,column:d}=t;Ot(s)?a=o[s]:s&&(a=o[Ht(e,s)]||l),r=Ot(i)?a.rows[i]:i,n=Ot(d)?a.cols[d]:d}Kl[H]({area:a,row:r||sl(a.rows),column:n||sl(a.cols)})}Nl.value=o}return Mt()},[H](e){return me(m),Ul.value=Me(kt({},e,{type:m})),Mt()},[U](){return Ul.value||null},openFind(){const e=Al.value;return e.isFind?Et(Hl[0]):Mt()},openReplace(){const e=Al.value;return e.isReplace?Et(Hl[1]):Mt()},closeFNR(){return _o&&_o.close(),St(),Mt()},copyCellArea(){return Je(null)},cutCellArea(){return ze(null)},pasteCellArea(){return Ze(null)}},jl={handleFilterEvent(e,t){const{mouseConfig:l}=ml,o=Rl.value;l&&o.area&&(Kl[P](),Kl[k]())},handleSortEvent(e,t){const{mouseConfig:l}=ml,o=Rl.value;l&&o.area&&(Kl[P](),Kl[k]())},handleHeaderCellAreaEvent(t,l){const{mouseConfig:o}=ml,r=pl[Wl],{triggerFilter:n,triggerSort:a,column:s}=l;if(n||a)return;const i=Rl.value,d=bl.value;o&&i.area&&d.selectCellByHeader&&(r.length?(e[K]?e[K](t):e[j](t),Mt(()=>{const{cols:o,rows:r}=$o(s);e[W]("header-cell-area-selection",kt({targetRows:r,targetCols:o},l),t)})):(Kl[k](),Kl[P]()))},handleUpdateCellAreas(){const{scrollXLoad:e,scrollYLoad:t}=wl,l=Kl[N](),o=Kl[U]();return new Promise(r=>{if(l.length&&o){const n=()=>{Ko(l,o)};let a=0;(e||t)&&(a=100,setTimeout(n,40)),setTimeout(()=>{n(),r()},a)}else r()})},handleKeyboardEvent(e){Rt(e)},handleCopyCellAreaEvent(e){const t=Sl.value;if(zl&&!1!==t.isCopy&&ke()){const t=e.clipboardData;if(t){const l=Ne(e,!1),{text:o,html:r,status:n}=l;t[O]("text/plain",o),t[O]("text/html",r),n&&Ue(l,!1)}}},handleCutCellAreaEvent(e){const t=Sl.value;if(zl&&!1!==t.isCut&&ke()){const t=e.clipboardData;if(t){const l=Ne(e,!0),{text:o,html:r,status:n}=l;t[O]("text/plain",o),t[O]("text/html",r),n&&Ue(l,!0)}}},handlePasteCellAreaEvent(e){const t=Sl.value;if(!1!==t.isPaste&&ke()){const t=e.clipboardData;if(t){const l=t.getData("text/plain");Ge(e,{text:l})}}},triggerCellExtendMousedownEvent(e,t){re()&&Bt(e,t)},handleCellAreaEvent(e,t){ne()&&Tt(e,t)},triggerCopyCellAreaEvent(e){re()&&Je(e)},triggerCutCellAreaEvent(e){ne()&&ze(e)},triggerPasteCellAreaEvent(e){re()&&Ze(e)},triggerFNROpenEvent:Xo};const qo=()=>{if(!zl)return Gl=80*(50*(oo?1:2)),!1;const t=e[M]?e[M]():null,{key:l,m:o,avType:r,ueTime:a}=dl(ql(i(Zl)));if(!t)return Gl=10*(400.9*(oo?1:2)),!1;const s=t["show"+(B?"":"x")+"Au"+(Jl?"":"y")+"thL"+(to?"":"z")+"og"];Nt(s)&&(Ql=s);const d=t["a"+(zl?"":"f")+"ut"+(M?"":"g")+"hI"+(n?"":"t")+"d"];if(!d)return Gl=2e3*(2.004*(oo?1:2)),!1;const c=J[i("aG9zdG5hbWU=")],u=c===i("bG9jYWxob3N0")||c===i("MTI3LjAuMC4x");if(io=r===i("VHJpYWw="),d!==l)return Gl=100*(40.01*(oo?1:2)),!1;if(!c)return Gl=6*(667*(no?1:2)),!1;if(!a||Zt(a)e===c||new RegExp(`.${e}$`).test(c)))return!0}return Gl=100*(40.03*(no?1:2)),!1};return onMounted(()=>{const e=Dl.value,t=qo();s||(s=t),e&&e.setAttribute(S,zl),C=t}),onUnmounted(()=>{const e=Dl.value;e&&e.removeAttribute(S),_o&&_o.close()}),Mt(()=>{setTimeout(oe,3e3)}),{...Kl,...jl}},setupGrid(e){return e.extendTableMethods(G)}})})(); \ No newline at end of file diff --git a/src/plugins/vxe-table/pro/vxe-table-pro.min.css b/src/plugins/vxe-table/pro/vxe-table-pro.min.css new file mode 100644 index 0000000..ca20549 --- /dev/null +++ b/src/plugins/vxe-table/pro/vxe-table-pro.min.css @@ -0,0 +1 @@ +.vxe-table--fnr.vxe-modal--wrapper .vxe-modal--content{padding:0}.vxe-table--fnr.vxe-modal--wrapper .vxe-modal--content{display:flex;flex-direction:column}.vxe-table--fnr .vxe-table--fnr-tabs{flex-shrink:0;border-bottom:1px solid #e8eaec;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-table--fnr .vxe-table--fnr-tabs>span{position:relative;display:inline-block;padding:0 1em;height:2.4em;line-height:2.4em;text-align:center;border-right:1px solid #e8eaec;background-color:#f8f8f9;vertical-align:bottom;cursor:pointer}.vxe-table--fnr .vxe-table--fnr-tabs>span.is--active{background-color:#fff}.vxe-table--fnr .vxe-table--fnr-tabs>span.is--active:after{content:"";position:absolute;left:0;bottom:-1px;width:100%;height:1px;background-color:#fff;z-index:1}.vxe-table--fnr .vxe-table--fnr-tabs>span:not(.is--active){color:#909399}.vxe-table--fnr .vxe-table--fnr-body{flex-shrink:0;padding:.3em 1em 0 1em}.vxe-table--fnr .vxe-table--fnr-form{width:100%;border:0;border-spacing:0;border-collapse:separate}.vxe-table--fnr .vxe-table--fnr-form tr{visibility:hidden}.vxe-table--fnr .vxe-table--fnr-form tr.is--visible{visibility:visible}.vxe-table--fnr .vxe-table--fnr-form-title{white-space:nowrap;padding-right:.8em}.vxe-table--fnr .vxe-table--fnr-form-content,.vxe-table--fnr .vxe-table--fnr-form-input{width:100%}.vxe-table--fnr .vxe-table--fnr-form-content{padding:.3em 0}.vxe-table--fnr .vxe-table--fnr-form-filter{padding-left:1.8em;vertical-align:top}.vxe-table--fnr .vxe-table--fnr-form-filter>.vxe-checkbox{display:block;margin:.6em 0 0 0}.vxe-table--fnr .vxe-table--fnr-footer{flex-shrink:0;padding:.8em 1em;overflow:hidden;text-align:right}.vxe-table--fnr .vxe-table--fnr-search{display:flex;flex-direction:column;flex-grow:1;border-top:1px solid #e8eaec;border-bottom:1px solid #e8eaec;overflow:hidden}.vxe-table--fnr .vxe-table--fnr-search .vxe-list--virtual-wrapper,.vxe-table--fnr .vxe-table--fnr-search .vxe-table--fnr-search-list{height:100%}.vxe-table--fnr .vxe-table--fnr-search-header{flex-shrink:0;height:2.5em;line-height:2.5em;padding:0 .8em;font-weight:700;background-color:#f8f8f8}.vxe-table--fnr .vxe-table--fnr-find-item,.vxe-table--fnr .vxe-table--fnr-search-header{display:flex}.vxe-table--fnr .vxe-table--fnr-find-item>div,.vxe-table--fnr .vxe-table--fnr-search-header>div{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-table--fnr .vxe-table--fnr-find-item>div:nth-child(1),.vxe-table--fnr .vxe-table--fnr-search-header>div:nth-child(1){width:100px;flex-shrink:0}.vxe-table--fnr .vxe-table--fnr-find-item>div:nth-child(2),.vxe-table--fnr .vxe-table--fnr-search-header>div:nth-child(2){width:160px;flex-shrink:0}.vxe-table--fnr .vxe-table--fnr-find-item>div:nth-child(3),.vxe-table--fnr .vxe-table--fnr-search-header>div:nth-child(3){flex-grow:1}.vxe-table--fnr .vxe-table--fnr-search-body{flex-grow:1;overflow:hidden;border-top:1px solid #e8eaec;border-bottom:1px solid #e8eaec}.vxe-table--fnr .vxe-table--fnr-find-item{height:2em;line-height:2em;padding:0 .8em;cursor:pointer}.vxe-table--fnr .vxe-table--fnr-find-item.is--active{font-weight:700;color:#409eff;background-color:#e6f7ff}.vxe-table--fnr .vxe-table--fnr-find-item:hover{color:#409eff}.vxe-table--fnr .vxe-table--fnr-find-item:hover.is--active{background-color:#d7effb}.vxe-table--fnr .vxe-table--fnr-find-item:hover>div{text-decoration:underline}.vxe-table--fnr .vxe-table--fnr-search-footer{flex-shrink:0;height:2em;line-height:2em;padding:0 .8em;visibility:hidden}.vxe-table--fnr .vxe-table--fnr-search-footer.is--error{color:#f56c6c}.vxe-table--fnr .vxe-table--fnr-search-footer.is--visible{visibility:visible} \ No newline at end of file diff --git a/src/plugins/vxe-table/pro/vxe-table-pro.scss b/src/plugins/vxe-table/pro/vxe-table-pro.scss new file mode 100644 index 0000000..2b72a59 --- /dev/null +++ b/src/plugins/vxe-table/pro/vxe-table-pro.scss @@ -0,0 +1,168 @@ +.vxe-table--fnr { + &.vxe-modal--wrapper { + .vxe-modal--content { + padding: 0; + } + .vxe-modal--content { + display: flex; + flex-direction: column; + } + } +} + +.vxe-table--fnr { + .vxe-table--fnr-tabs { + flex-shrink: 0; + border-bottom: 1px solid #e8eaec; + user-select: none; + & > span { + position: relative; + display: inline-block; + padding: 0 1em; + height: 2.4em; + line-height: 2.4em; + text-align: center; + border-right: 1px solid #e8eaec; + background-color: #F8F8F9; + vertical-align: bottom; + cursor: pointer; + &.is--active { + background-color: #fff; + &:after { + content: ""; + position: absolute; + left: 0; + bottom: -1px; + width: 100%; + height: 1px; + background-color: #fff; + z-index: 1; + } + } + &:not(.is--active) { + color: #909399; + } + } + } + .vxe-table--fnr-body { + flex-shrink: 0; + padding: 0.3em 1em 0 1em; + } + .vxe-table--fnr-form { + width: 100%; + border: 0; + border-spacing: 0; + border-collapse: separate; + tr { + visibility: hidden; + &.is--visible { + visibility: visible; + } + } + } + .vxe-table--fnr-form-title { + white-space: nowrap; + padding-right: 0.8em; + } + .vxe-table--fnr-form-content, + .vxe-table--fnr-form-input { + width: 100%; + } + .vxe-table--fnr-form-content { + padding: 0.3em 0; + } + .vxe-table--fnr-form-filter { + padding-left: 1.8em; + vertical-align: top; + & > .vxe-checkbox { + display: block; + margin: 0.6em 0 0 0; + } + } + .vxe-table--fnr-footer { + flex-shrink: 0; + padding: 0.8em 1em; + overflow: hidden; + text-align: right; + } + .vxe-table--fnr-search { + display: flex; + flex-direction: column; + flex-grow: 1; + border-top: 1px solid #e8eaec; + border-bottom: 1px solid #e8eaec; + overflow: hidden; + .vxe-table--fnr-search-list, + .vxe-list--virtual-wrapper { + height: 100%; + } + } + .vxe-table--fnr-search-header { + flex-shrink: 0; + height: 2.5em; + line-height: 2.5em; + padding: 0 0.8em; + font-weight: 700; + background-color: #f8f8f8; + } + .vxe-table--fnr-search-header, + .vxe-table--fnr-find-item { + display: flex; + & > div { + user-select: none; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + &:nth-child(1) { + width: 100px; + flex-shrink: 0; + } + &:nth-child(2) { + width: 160px; + flex-shrink: 0; + } + &:nth-child(3) { + flex-grow: 1; + } + } + } + .vxe-table--fnr-search-body { + flex-grow: 1; + overflow: hidden; + border-top: 1px solid #e8eaec; + border-bottom: 1px solid #e8eaec; + } + .vxe-table--fnr-find-item { + height: 2em; + line-height: 2em; + padding: 0 0.8em; + cursor: pointer; + &.is--active { + font-weight: 700; + color: #409eff; + background-color: #e6f7ff; + } + &:hover { + color: #409eff; + &.is--active { + background-color: #d7effb; + } + & > div { + text-decoration: underline; + } + } + } + .vxe-table--fnr-search-footer { + flex-shrink: 0; + height: 2em; + line-height: 2em; + padding: 0 0.8em; + visibility: hidden; + &.is--error { + color: #f56c6c; + } + &.is--visible { + visibility: visible; + } + } +} \ No newline at end of file diff --git a/src/views/model/device/index.vue b/src/views/model/device/index.vue index d68f01f..1dd44b6 100644 --- a/src/views/model/device/index.vue +++ b/src/views/model/device/index.vue @@ -252,11 +252,21 @@ - + + + + + + + + + + + @@ -333,9 +343,9 @@ - - - +
- - - + + +
- - -
+ + +
- + - + - + - + - - - - + + + + - +
- - 上一步 - 提交 - 下一步 + + 上一步 + 提交 + 下一步 取 消
- -
-
- 添加参数模版 -
- - - - - - - - - - - - - - - - - - - - - - - -
-
- - 上一步 - 提交 - 下一步 - 取 消 - + +
+ +
+ +
+
+
+ + 上一步 + 提交 + 下一步 + 取 消 + +
- - + +
+

操作成功!

+

+ 倒计时:{{ countdown }} 秒返回首页 +

+
+
+ + - - - + + + + + + + @@ -132,42 +109,43 @@ - - - -
提交
-
+
- diff --git a/src/views/model/devicemodel/editModel.vue b/src/views/model/devicemodel/editModel.vue index e1eeb5b..58a9335 100644 --- a/src/views/model/devicemodel/editModel.vue +++ b/src/views/model/devicemodel/editModel.vue @@ -5,13 +5,14 @@ - +
- - + +
@@ -29,12 +30,13 @@ - - + + - + @@ -52,54 +54,20 @@
- -
-
- 添加参数模版 + +
+
+ +
- - - - - - - - - - - - - - - - - - - - - - - +
-
+
上一步 @@ -111,12 +79,26 @@
+ +
+

操作成功!

+

+ 倒计时:{{ countdown }} 秒返回首页 +

+
+
- + + + + + @@ -125,12 +107,6 @@ - - - -
提交 @@ -153,19 +129,24 @@ display: none !important; } } + +.customCarousel .vxeTableStyle button { + display: inline-block !important; +} diff --git a/src/views/model/devicemodel/index.vue b/src/views/model/devicemodel/index.vue index 24568ca..e95d383 100644 --- a/src/views/model/devicemodel/index.vue +++ b/src/views/model/devicemodel/index.vue @@ -25,15 +25,15 @@ @keyup.enter="handleQuery" /> - + - + - + @@ -64,6 +64,15 @@ v-hasPermi="['model:devicemodel:add']" >新增 + + 删除 + - 新增 + - + - + - +