vxe-table 4.17.17 → 4.17.18
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/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +29 -2
- package/es/locale/lang/de-DE.js +29 -2
- package/es/locale/lang/en-US.js +33 -6
- package/es/locale/lang/es-ES.js +29 -2
- package/es/locale/lang/fr-FR.js +29 -2
- package/es/locale/lang/hu-HU.js +29 -2
- package/es/locale/lang/hy-AM.js +29 -2
- package/es/locale/lang/id-ID.js +29 -2
- package/es/locale/lang/it-IT.js +29 -2
- package/es/locale/lang/ja-JP.js +29 -2
- package/es/locale/lang/ko-KR.js +29 -2
- package/es/locale/lang/ms-MY.js +29 -2
- package/es/locale/lang/nb-NO.js +29 -2
- package/es/locale/lang/pt-BR.js +29 -2
- package/es/locale/lang/ru-RU.js +29 -2
- package/es/locale/lang/th-TH.js +29 -2
- package/es/locale/lang/ug-CN.js +29 -2
- package/es/locale/lang/uk-UA.js +29 -2
- package/es/locale/lang/uz-UZ.js +29 -2
- package/es/locale/lang/vi-VN.js +29 -2
- package/es/locale/lang/zh-CHT.js +31 -4
- package/es/locale/lang/zh-CN.js +31 -4
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/menu/hook.js +1 -1
- package/es/table/src/table.js +2 -1
- package/es/table/style.css +2 -1
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +2 -1
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +35 -8
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +29 -2
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +29 -2
- package/lib/locale/lang/de-DE.js +29 -2
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +29 -2
- package/lib/locale/lang/en-US.js +33 -6
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +33 -6
- package/lib/locale/lang/es-ES.js +29 -2
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +29 -2
- package/lib/locale/lang/fr-FR.js +29 -2
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +29 -2
- package/lib/locale/lang/hu-HU.js +29 -2
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +29 -2
- package/lib/locale/lang/hy-AM.js +29 -2
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +29 -2
- package/lib/locale/lang/id-ID.js +29 -2
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +29 -2
- package/lib/locale/lang/it-IT.js +29 -2
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +29 -2
- package/lib/locale/lang/ja-JP.js +29 -2
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +29 -2
- package/lib/locale/lang/ko-KR.js +29 -2
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +29 -2
- package/lib/locale/lang/ms-MY.js +29 -2
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +29 -2
- package/lib/locale/lang/nb-NO.js +29 -2
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +29 -2
- package/lib/locale/lang/pt-BR.js +29 -2
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +29 -2
- package/lib/locale/lang/ru-RU.js +29 -2
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +29 -2
- package/lib/locale/lang/th-TH.js +29 -2
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +29 -2
- package/lib/locale/lang/ug-CN.js +29 -2
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +29 -2
- package/lib/locale/lang/uk-UA.js +29 -2
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +29 -2
- package/lib/locale/lang/uz-UZ.js +29 -2
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +29 -2
- package/lib/locale/lang/vi-VN.js +29 -2
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +29 -2
- package/lib/locale/lang/zh-CHT.js +31 -4
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +31 -4
- package/lib/locale/lang/zh-CN.js +31 -4
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +31 -4
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/menu/hook.js +1 -1
- package/lib/table/module/menu/hook.min.js +1 -1
- package/lib/table/src/table.js +1 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +2 -1
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +2 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/locale/lang/ar-EG.ts +29 -2
- package/packages/locale/lang/de-DE.ts +29 -2
- package/packages/locale/lang/en-US.ts +33 -6
- package/packages/locale/lang/es-ES.ts +29 -2
- package/packages/locale/lang/fr-FR.ts +29 -2
- package/packages/locale/lang/hu-HU.ts +29 -2
- package/packages/locale/lang/hy-AM.ts +29 -2
- package/packages/locale/lang/id-ID.ts +29 -2
- package/packages/locale/lang/it-IT.ts +29 -2
- package/packages/locale/lang/ja-JP.ts +29 -2
- package/packages/locale/lang/ko-KR.ts +29 -2
- package/packages/locale/lang/ms-MY.ts +29 -2
- package/packages/locale/lang/nb-NO.ts +29 -2
- package/packages/locale/lang/pt-BR.ts +29 -2
- package/packages/locale/lang/ru-RU.ts +29 -2
- package/packages/locale/lang/th-TH.ts +29 -2
- package/packages/locale/lang/ug-CN.ts +29 -2
- package/packages/locale/lang/uk-UA.ts +29 -2
- package/packages/locale/lang/uz-UZ.ts +29 -2
- package/packages/locale/lang/vi-VN.ts +29 -2
- package/packages/locale/lang/zh-CHT.ts +31 -4
- package/packages/locale/lang/zh-CN.ts +31 -4
- package/packages/table/module/menu/hook.ts +1 -1
- package/packages/table/src/table.ts +2 -1
- package/styles/components/table.scss +2 -1
- /package/es/{iconfont.1763515386491.ttf → iconfont.1763618883966.ttf} +0 -0
- /package/es/{iconfont.1763515386491.woff → iconfont.1763618883966.woff} +0 -0
- /package/es/{iconfont.1763515386491.woff2 → iconfont.1763618883966.woff2} +0 -0
- /package/lib/{iconfont.1763515386491.ttf → iconfont.1763618883966.ttf} +0 -0
- /package/lib/{iconfont.1763515386491.woff → iconfont.1763618883966.woff} +0 -0
- /package/lib/{iconfont.1763515386491.woff2 → iconfont.1763618883966.woff2} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var _vue=require("vue"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../../ui"),_dom=require("../../../ui/src/dom"),_utils=require("../../../ui/src/utils");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let{menus,hooks,globalEvents,GLOBAL_EVENT_KEYS}=_ui.VxeUI,tableMenuMethodKeys=["closeMenu"];hooks.add("tableMenuModule",{setupTable(p){let{xID:
|
|
1
|
+
var _vue=require("vue"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../../ui"),_dom=require("../../../ui/src/dom"),_utils=require("../../../ui/src/utils");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let{menus,hooks,globalEvents,GLOBAL_EVENT_KEYS}=_ui.VxeUI,tableMenuMethodKeys=["closeMenu"];hooks.add("tableMenuModule",{setupTable(p){let{xID:x,props:M,reactData:E,internalData:_}=p,{refElem:C,refTableFilter:y,refTableMenu:T}=p.getRefMaps(),{computeMouseOpts:w,computeIsContentMenu:l,computeMenuOpts:N}=p.getComputeMaps();let i=p.xeGrid||p.xeGantt,L;var e;let O=(v,t,g)=>{let f=E.ctxMenuStore;var n=l.value,e=N.value,t=e[t];let{transfer:h,visibleMethod:o}=e;if(t){let{options:l,disabled:e}=t;e?v.preventDefault():n&&l&&l.length&&(g.options=l,p.preventEvent(v,"event.showMenu",g,()=>{if(!o||o(g)){v.preventDefault(),p.updateZindex();var t=(i?i.getRefMaps().refElem:C).value;if(t){t=t.getBoundingClientRect();let{scrollTop:o,scrollLeft:i,visibleHeight:u,visibleWidth:r}=(0,_dom.getDomNode)(),s=v.clientY-t.y,a=v.clientX-t.x,n=(h&&(s=v.clientY+o,a=v.clientX+i),()=>{_._currMenuParams=g,Object.assign(f,{visible:!0,list:l,selected:null,selectChild:null,showChild:!1,style:{zIndex:_.tZindex,top:s+"px",left:a+"px"}}),(0,_vue.nextTick)(()=>{var e=T.value.getRefMaps().refElem.value,t=e.clientHeight,l=e.clientWidth,{boundingTop:e,boundingLeft:n}=(0,_dom.getAbsolutePos)(e),e=e+t-u,n=n+l-r;-10<e&&(f.style.top=Math.max(o+2,s-t-2)+"px"),-10<n&&(f.style.left=Math.max(i+2,a-l-2)+"px")})}),{keyboard:e,row:d,column:c}=g;e&&d&&c?p.scrollToRow(d,c).then(()=>{var e,t,l=p.getCellElement(d,c);l&&({boundingTop:e,boundingLeft:t}=(0,_dom.getAbsolutePos)(l),s=e+o+Math.floor(l.offsetHeight/2),a=t+i+Math.floor(l.offsetWidth/2)),n()}):n()}}else L.closeMenu()}))}p.closeFilter()};return L={closeMenu(){return Object.assign(E.ctxMenuStore,{visible:!1,selected:null,selectChild:null,showChild:!1}),(0,_vue.nextTick)()}},e={moveCtxMenu(e,t,l,n,o,i){let u;var r=_xeUtils.default.findIndexOf(i,e=>t[l]===e);if(n)o&&(0,_utils.hasChildrenList)(t.selected)?t.showChild=!0:(t.showChild=!1,t.selectChild=null);else if(globalEvents.hasKey(e,GLOBAL_EVENT_KEYS.ARROW_UP)){for(let e=r-1;0<=e;e--)if(!1!==i[e].visible){u=i[e];break}t[l]=u||i[i.length-1]}else if(globalEvents.hasKey(e,GLOBAL_EVENT_KEYS.ARROW_DOWN)){for(let e=r+1;e<i.length;e++)if(!1!==i[e].visible){u=i[e];break}t[l]=u||i[0]}else t[l]&&(globalEvents.hasKey(e,GLOBAL_EVENT_KEYS.ENTER)||globalEvents.hasKey(e,GLOBAL_EVENT_KEYS.SPACEBAR))&&p.ctxMenuLinkEvent(e,t[l])},handleOpenMenuEvent:O,handleGlobalContextmenuEvent(t){var l=p.xeGrid,n=p.xeGantt,{mouseConfig:e,menuConfig:o}=M,{editStore:i,ctxMenuStore:u}=E,r=_.visibleColumn,s=y.value,a=T.value,d=w.value,c=N.value,v=C.value,i=i.selected,g=["header","body","footer"];if((0,_utils.isEnableConf)(o)){if(u.visible&&a&&(0,_dom.getEventTargetNode)(t,a.getRefMaps().refElem.value).flag)return void t.preventDefault();if(_._keyCtx){o="body",u={source:"table",type:o,$table:p,$grid:l,$gantt:n,keyboard:!0,columns:r.slice(0),$event:t};if(e&&d.area){a=p.getActiveCellArea();if(a&&a.row&&a.column)return u.row=a.row,u.column=a.column,void O(t,o,u)}else if(e&&d.selected&&i.row&&i.column)return u.row=i.row,u.column=i.column,void O(t,o,u)}for(let e=0;e<g.length;e++){var f=g[e],h=(0,_dom.getEventTargetNode)(t,v,`vxe-${f}--column`,e=>e.parentNode.parentNode.parentNode.getAttribute("xid")===x),b={source:"table",type:f,$table:p,$grid:l,$gantt:n,columns:r.slice(0),$event:t};if(h.flag){var h=h.targetElem,m=p.getColumnNode(h),m=m?m.item:null;let e=f+"-";m&&Object.assign(b,{column:m,columnIndex:p.getColumnIndex(m),cell:h}),"body"===f&&(h=(m=p.getRowNode(h.parentNode))?m.item:null,e="",h)&&(b.row=h,b.rowIndex=p.getRowIndex(h));m=e+"cell-menu";return O(t,f,b),void p.dispatchEvent(m,b,t)}if((0,_dom.getEventTargetNode)(t,v,`vxe-table--${f}-wrapper`,e=>e.getAttribute("xid")===x).flag||"body"===f&&(0,_dom.getEventTargetNode)(t,v,"vxe-table--empty-place-wrapper",e=>e.getAttribute("xid")===x).flag)return void("cell"===c.trigger?t.preventDefault():O(t,f,b))}}s&&!(0,_dom.getEventTargetNode)(t,s.getRefMaps().refElem.value).flag&&p.closeFilter(),L.closeMenu()},ctxMenuMouseoverEvent(e,t,l){let a=e.currentTarget;var n=E.ctxMenuStore;e.preventDefault(),e.stopPropagation(),n.selected=t,(n.selectChild=l)||(n.showChild=(0,_utils.hasChildrenList)(t),n.showChild&&(0,_vue.nextTick)(()=>{var o=a.nextElementSibling;if(o){var{boundingTop:i,boundingLeft:u,visibleHeight:r,visibleWidth:s}=(0,_dom.getAbsolutePos)(a),i=i+a.offsetHeight;let e="",t="",l=(u+a.offsetWidth+o.offsetWidth>s-10&&(e="auto",t=a.offsetWidth+"px"),""),n="";i+o.offsetHeight>r-10&&(l="auto",n="0"),o.style.left=e,o.style.right=t,o.style.top=l,o.style.bottom=n}}))},ctxMenuMouseoutEvent(e,t){var l=E.ctxMenuStore;t.children||(l.selected=null),l.selectChild=null},ctxMenuLinkEvent(e,t){var l,n=p.xeGrid,o=p.xeGantt;t.loading||t.disabled||!t.code&&t.children&&t.children.length||(l=menus.get(t.code),t=Object.assign({},_._currMenuParams,{menu:t,$table:p,$grid:n,$gantt:o,$event:e}),(n=l?l.tableMenuMethod||l.menuMethod:null)&&n(t,e),p.dispatchEvent("menu-click",t,e),L.closeMenu())}},Object.assign(Object.assign({},L),e)},setupGrid(e){return e.extendTableMethods(tableMenuMethodKeys)},setupGantt(e){return e.extendTableMethods(tableMenuMethodKeys)}});
|
package/lib/table/src/table.js
CHANGED
|
@@ -882,7 +882,7 @@ Object.assign($xeTable,tableMethods,tablePrivateMethods);/**
|
|
|
882
882
|
* 隐藏列
|
|
883
883
|
*/(0,_vue.h)('div',{class:'vxe-table-slots'},slots.default?slots.default({}):[]),(0,_vue.h)('div',{ref:refVarElem,class:'vxe-table-vars'},[(0,_vue.h)('div',{class:'vxe-table-var-default'}),(0,_vue.h)('div',{class:'vxe-table-var-medium'}),(0,_vue.h)('div',{class:'vxe-table-var-small'}),(0,_vue.h)('div',{class:'vxe-table-var-mini'})]),(0,_vue.h)('div',{key:'tw',class:'vxe-table--render-wrapper'},scrollbarXToTop?[renderScrollX(),renderBody()]:[renderBody(),renderScrollX()]),/**
|
|
884
884
|
* 空数据
|
|
885
|
-
*/(0,_vue.h)('div',{key:'tn',ref:refEmptyPlaceholder,class:'vxe-table--empty-place-wrapper'},[(0,_vue.h)('div',{class:'vxe-table--empty-placeholder'},[(0,_vue.h)('div',{class:'vxe-table--empty-content'},renderEmptyBody())])]),/**
|
|
885
|
+
*/(0,_vue.h)('div',{key:'tn',ref:refEmptyPlaceholder,class:'vxe-table--empty-place-wrapper',xid:xID},[(0,_vue.h)('div',{class:'vxe-table--empty-placeholder'},[(0,_vue.h)('div',{class:'vxe-table--empty-content'},renderEmptyBody())])]),/**
|
|
886
886
|
* 边框线
|
|
887
887
|
*/(0,_vue.h)('div',{key:'tl',class:'vxe-table--border-line'}),/**
|
|
888
888
|
* 列宽线
|