vxe-table-select-area
Version:
一个基于 vxe-table 的可区域选中复制、粘贴的组件
1 lines • 18.3 kB
JavaScript
;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.cancelColumnFixed=cancelColumnFixed,exports.cellAutofill=cellAutofill,exports.clsName=clsName,exports.getBodyContextmenuOptionCollection=getBodyContextmenuOptionCollection,exports.getColKeysByFixedType=getColKeysByFixedType,exports.getColKeysByFixedTypeWithinColKeys=getColKeysByFixedTypeWithinColKeys,exports.getColKeysByHeaderColumn=getColKeysByHeaderColumn,exports.getColKeysByRangeColKeys=getColKeysByRangeColKeys,exports.getColumnByColkey=getColumnByColkey,exports.getDomResizeObserverCompKey=getDomResizeObserverCompKey,exports.getFixedTotalWidthByColumnKey=getFixedTotalWidthByColumnKey,exports.getHeaderContextmenuOptionCollection=getHeaderContextmenuOptionCollection,exports.getLeftmostColKey=getLeftmostColKey,exports.getNextColKey=getNextColKey,exports.getNotFixedTotalWidthByColumnKey=getNotFixedTotalWidthByColumnKey,exports.getPreviewColKey=getPreviewColKey,exports.getRightmostColKey=getRightmostColKey,exports.getRowKey=getRowKey,exports.getRowKeysByRangeRowKeys=getRowKeysByRangeRowKeys,exports.getSelectionRangeData=getSelectionRangeData,exports.getSelectionRangeIndexes=getSelectionRangeIndexes,exports.getSelectionRangeKeys=getSelectionRangeKeys,exports.getTotalWidthByColKeys=getTotalWidthByColKeys,exports.initGroupColumns=initGroupColumns,exports.isCellInSelectionRange=isCellInSelectionRange,exports.isClearSelectionByBodyCellRightClick=isClearSelectionByBodyCellRightClick,exports.isContextmenuPanelClicked=isContextmenuPanelClicked,exports.isExistGivenFixedColKey=isExistGivenFixedColKey,exports.isExistNotFixedColKey=isExistNotFixedColKey,exports.isLastColumnByColKey=isLastColumnByColKey,exports.isLastRowByRowKey=isLastRowByRowKey,exports.isOperationColumn=isOperationColumn,exports.recursiveRemoveColumnByKey=recursiveRemoveColumnByKey,exports.setBodyContextmenuOptions=setBodyContextmenuOptions,exports.setColumnFixed=setColumnFixed,exports.setHeaderContextmenuOptions=setHeaderContextmenuOptions;var _constant=require("./constant"),_constant2=require("../utils/constant"),_index=require("../utils/index");function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"===_typeof(e)?e:String(e)}function _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _objectDestructuringEmpty(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,o=arguments[t];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}function clsName(e){return _constant.PREFIX_CLS+e}function getRowKey(e,t){var n=null;return n=e&&t?e[t]:n}function getColumnByColkey(t,e){return t?e.find(function(e){return e.key===t}):null}function isLastColumnByColKey(e,t){return!(0,_index.isEmptyValue)(e)&&!(0,_index.isEmptyArray)(t)&&t[t.length-1].key===e}function isOperationColumn(e,t){if(!(0,_index.isEmptyValue)(e)&&!(0,_index.isEmptyArray)(t)){t=t[0];if(t.key===e&&t.operationColumn)return!0}return!1}function isLastRowByRowKey(e,t){return!(0,_index.isEmptyValue)(e)&&!(0,_index.isEmptyArray)(t)&&t[t.length-1]===e}function getDomResizeObserverCompKey(e,t){return!e&&0!==e?e:e+"@"+t}function recursiveRemoveColumnByKey(e,t){return e.filter(function(e){return"children"in e&&(e.children=recursiveRemoveColumnByKey(e.children,t)),e.key!==t})}function getFixedTotalWidthByColumnKey(e){var t=e.colgroups,n=e.colKey,e=e.fixed,o=t.findIndex(function(e){return e.key===n}),l=0;return e===_constant.COLUMN_FIXED_TYPE.LEFT?l=t.reduce(function(e,t,n){return n<o&&t.fixed==_constant.COLUMN_FIXED_TYPE.LEFT?t._realTimeWidth+e:e},0):e===_constant.COLUMN_FIXED_TYPE.RIGHT&&(l=t.reduce(function(e,t,n){return o<n&&t.fixed===_constant.COLUMN_FIXED_TYPE.RIGHT?t._realTimeWidth+e:e},0)),l}function getNotFixedTotalWidthByColumnKey(e){var t=e.colgroups,n=e.colKey,e=e.fixed,o=t.findIndex(function(e){return e.key===n}),l=0;return e===_constant.COLUMN_FIXED_TYPE.LEFT?l=t.reduce(function(e,t,n){return n<o&&!t.fixed?t._realTimeWidth+e:e},0):e===_constant.COLUMN_FIXED_TYPE.RIGHT&&(l=t.reduce(function(e,t,n){return o<n&&!t.fixed?t._realTimeWidth+e:e},0)),l}function getTotalWidthByColKeys(e){var o=e.colKeys;return e.colgroups.reduce(function(e,t,n){return-1<o.indexOf(t.key)?t._realTimeWidth+e:e},0)}function initGroupColumns(e){function n(t,e){e&&(t._level=e._level+1,i<t._level)&&(i=t._level),t.children&&t.children.forEach(function(e){e.fixed=t.fixed,n(e,t)})}function o(e){var t,n;e.children?(t="",n=0,e.children.forEach(function(e){o(e),n+=e._colspan,t+=e._keys.endsWith("|")?e._keys:e._keys+"|"}),e._keys=t,e._colspan=n,e._rowspan=1):(e._keys=e.key,e._colspan=1,e._rowspan=i-e._level+1)}var l=[],r=[],i=1;e.forEach(function(e){e._level=1,n(e)});e.forEach(function(e){o(e)});for(var t=0;t<i;t++)r.push([]);function a(e){var t;(0,_index.isEmptyArray)(e.children)&&(0,_index.isEmptyValue)(e.key)||(t=_extends({},(_objectDestructuringEmpty(e),e)),r[e._level-1].push(t),e.children?e.children.forEach(function(e){a(e)}):((t=_extends({},(_objectDestructuringEmpty(e),e)))._realTimeWidth=t.width,l.push(t)))}return e.forEach(function(e){a(e)}),{isGroupHeader:1<i,colgroups:l,groupColumns:r}}function getHeaderContextmenuOptionCollection(e){return[{type:_constant.CONTEXTMENU_NODE_TYPES.SEPARATOR},{label:e("cut"),type:_constant.CONTEXTMENU_NODE_TYPES.CUT},{label:e("copy"),type:_constant.CONTEXTMENU_NODE_TYPES.COPY},{label:e("removeColumn"),type:_constant.CONTEXTMENU_NODE_TYPES.REMOVE_COLUMN},{label:e("emptyColumn"),type:_constant.CONTEXTMENU_NODE_TYPES.EMPTY_COLUMN},{label:e("hideColumn"),type:_constant.CONTEXTMENU_NODE_TYPES.HIDE_COLUMN},{label:e("leftFixedColumnTo"),type:_constant.CONTEXTMENU_NODE_TYPES.LEFT_FIXED_COLUMN_TO},{label:e("cancelLeftFixedColumnTo"),type:_constant.CONTEXTMENU_NODE_TYPES.CANCEL_LEFT_FIXED_COLUMN_TO},{label:e("rightFixedColumnTo"),type:_constant.CONTEXTMENU_NODE_TYPES.RIGHT_FIXED_COLUMN_TO},{label:e("cancelRightFixedColumnTo"),type:_constant.CONTEXTMENU_NODE_TYPES.CANCEL_RIGHT_FIXED_COLUMN_TO}]}function getBodyContextmenuOptionCollection(e){return[{type:_constant.CONTEXTMENU_NODE_TYPES.SEPARATOR},{label:e("cut"),type:_constant.CONTEXTMENU_NODE_TYPES.CUT},{label:e("copy"),type:_constant.CONTEXTMENU_NODE_TYPES.COPY},{label:e("insertRowAbove"),type:_constant.CONTEXTMENU_NODE_TYPES.INSERT_ROW_ABOVE},{label:e("insertRowBelow"),type:_constant.CONTEXTMENU_NODE_TYPES.INSERT_ROW_BELOW},{label:e("removeRow"),type:_constant.CONTEXTMENU_NODE_TYPES.REMOVE_ROW},{label:e("emptyRow"),type:_constant.CONTEXTMENU_NODE_TYPES.EMPTY_ROW},{label:e("removeColumn"),type:_constant.CONTEXTMENU_NODE_TYPES.REMOVE_COLUMN},{label:e("emptyCell"),type:_constant.CONTEXTMENU_NODE_TYPES.EMPTY_CELL}]}function setHeaderContextmenuOptions(e){var o,l,r,i,a,s,t=e.column,n=e.contextmenuHeaderOption,c=e.cellSelectionRangeData,u=e.colgroups,d=e.allRowKeys,y=e.headerIndicatorColKeys,C=e.enableHeaderContextmenu,e=e.t,x=[];return C&&(C=getSelectionRangeKeys({cellSelectionRangeData:c}),c=getSelectionRangeIndexes({cellSelectionRangeData:c,colgroups:u,allRowKeys:d}),o=isOperationColumn(t.key,u),l=c.endColIndex-c.startColIndex+1,d=n.contextmenus,t=n.beforeShow,r=!(0,_index.isEmptyValue)(y.startColKey),i=getColKeysByFixedType({fixedType:_constant.COLUMN_FIXED_TYPE.LEFT,colgroups:u,isExcludeOperationColumn:!0}),a=getColKeysByFixedType({fixedType:_constant.COLUMN_FIXED_TYPE.RIGHT,colgroups:u,isExcludeOperationColumn:!0}),(0,_index.isFunction)(t)&&t({isWholeColSelection:r,selectionRangeKeys:C,selectionRangeIndexes:c}),s=getHeaderContextmenuOptionCollection(e),d.forEach(function(t){var e,n=s.find(function(e){return e.type===t.type});n?(e=!0,n.type===_constant.CONTEXTMENU_NODE_TYPES.EMPTY_COLUMN?r?n.label=n.label.replace("$1",l):e=!1:n.type===_constant.CONTEXTMENU_NODE_TYPES.LEFT_FIXED_COLUMN_TO?o&&(n.disabled=!0):n.type===_constant.CONTEXTMENU_NODE_TYPES.CANCEL_LEFT_FIXED_COLUMN_TO?i.length<1&&(n.disabled=!0):n.type===_constant.CONTEXTMENU_NODE_TYPES.RIGHT_FIXED_COLUMN_TO?o&&(n.disabled=!0):n.type===_constant.CONTEXTMENU_NODE_TYPES.CANCEL_RIGHT_FIXED_COLUMN_TO&&a.length<1&&(n.disabled=!0),e&&x.push(n)):x.push(t)})),x}function setBodyContextmenuOptions(e){var o,l,r,i,t=e.enableBodyContextmenu,n=e.contextmenuBodyOption,a=e.cellSelectionRangeData,s=e.colgroups,c=e.allRowKeys,u=e.bodyIndicatorRowKeys,e=e.t,d=[];return t&&(t=getSelectionRangeKeys({cellSelectionRangeData:a}),a=getSelectionRangeIndexes({cellSelectionRangeData:a,colgroups:s,allRowKeys:c}),o=a.endRowIndex-a.startRowIndex+1,l=a.endColIndex-a.startColIndex+1,s=n.contextmenus,c=n.beforeShow,r=!(0,_index.isEmptyValue)(u.startRowKey),(0,_index.isFunction)(c)&&c({isWholeRowSelection:r,selectionRangeKeys:t,selectionRangeIndexes:a}),i=getBodyContextmenuOptionCollection(e),s.forEach(function(t){var e,n=i.find(function(e){return e.type===t.type});n?(e=!0,n.type===_constant.CONTEXTMENU_NODE_TYPES.REMOVE_ROW?n.label=n.label.replace("$1",o):n.type===_constant.CONTEXTMENU_NODE_TYPES.EMPTY_ROW?r?n.label=n.label.replace("$1",o):e=!1:n.type===_constant.CONTEXTMENU_NODE_TYPES.EMPTY_CELL?e=!r:n.type===_constant.CONTEXTMENU_NODE_TYPES.REMOVE_COLUMN&&(r?e=!1:n.label=n.label.replace("$1",l)),e&&d.push(n)):d.push(t)})),d}function isContextmenuPanelClicked(t){var n=!1,e=document.querySelectorAll(".ve-contextmenu-popper");return[].forEach.call(e,function(e){e.contains(t.target)&&(n=!0)}),n}function getColKeysByHeaderColumn(e){var t=null;return t=1<(t=e.headerColumnItem._keys.split("|")).length?t.slice(0,t.length-1):t}function getColKeysByRangeColKeys(e){var t=e.colKey1,n=e.colKey2,e=e.colgroups,o=null,l=e.findIndex(function(e){return e.key===t}),r=e.findIndex(function(e){return e.key===n});return o=-1!==l?e.slice(l<r?l:r,(l<r?r:l)+1).map(function(e){return e.key}):o}function getColKeysByFixedTypeWithinColKeys(e){var t=e.colKeys,n=e.fixedType,e=e.colgroups,o=null;return o=Array.isArray(t)?e.filter(function(e){return-1<t.indexOf(e.key)&&e.fixed===n}).map(function(e){return e.key}):o}function getColKeysByFixedType(e){var n=e.fixedType,t=e.colgroups,o=e.isExcludeOperationColumn;return t.filter(function(e){var t=e.fixed===n;return o?t&&!e.operationColumn:t}).map(function(e){return e.key})}function getRowKeysByRangeRowKeys(e){var t=e.topRowKey,n=e.bottomRowKey,e=e.allRowKeys,o=null,l=e.findIndex(function(e){return e===t}),r=e.findIndex(function(e){return e===n});return o=-1!==l&&-1!==r?e.slice(l,r+1):o}function isCellInSelectionRange(e){var t=e.cellData,n=e.cellSelectionRangeData,o=e.colgroups,e=e.allRowKeys,l=n.leftColKey,r=n.rightColKey,i=n.topRowKey,n=n.bottomRowKey,l=getColKeysByRangeColKeys({colKey1:l,colKey2:r,colgroups:o}),r=getRowKeysByRangeRowKeys({topRowKey:i,bottomRowKey:n,allRowKeys:e});return-1<l.indexOf(t.colKey)&&-1<r.indexOf(t.rowKey)}function isClearSelectionByBodyCellRightClick(e){var t=e.mouseEventClickType,n=e.cellData,o=e.cellSelectionData,l=e.cellSelectionRangeData,r=e.colgroups,e=e.allRowKeys,i=!0;return i=t===_constant2.MOUSE_EVENT_CLICK_TYPE.RIGHT_MOUSE&&-1<o.normalEndCell.rowIndex?!isCellInSelectionRange({cellData:n,cellSelectionRangeData:l,colgroups:r,allRowKeys:e}):i}function getSelectionRangeKeys(e){e=e.cellSelectionRangeData;return{startColKey:e.leftColKey,endColKey:e.rightColKey,startRowKey:e.topRowKey,endRowKey:e.bottomRowKey}}function getSelectionRangeIndexes(e){var t=e.cellSelectionRangeData,n=e.colgroups,e=e.allRowKeys,o=t.leftColKey,l=t.rightColKey,r=t.topRowKey,t=t.bottomRowKey;return{startColIndex:n.findIndex(function(e){return e.key===o}),endColIndex:n.findIndex(function(e){return e.key===l}),startRowIndex:e.indexOf(r),endRowIndex:e.indexOf(t)}}function getSelectionRangeData(e){var t=e.cellSelectionRangeData,n=e.resultType,n=void 0===n?"normal":n,o=e.tableData,l=e.colgroups,e=e.allRowKeys,r=t.leftColKey,i=t.rightColKey,a=t.topRowKey,t=t.bottomRowKey,s=l.findIndex(function(e){return e.key===r}),c=l.findIndex(function(e){return e.key===i}),a=e.indexOf(a),e=e.indexOf(t),u=l.slice(s,c+1).map(function(e){return e.field});return"normal"===n?o.slice(a,e+1).map(function(t){var n={};return u.forEach(function(e){n[e]=t[e]||""}),n}):o.slice(a,e+1).map(function(t){var n=[];return u.forEach(function(e){n.push(t[e]||"")}),n})}function isExistGivenFixedColKey(e){var t=e.fixedType,n=e.colKeys,e=e.colgroups,o=!1;return o=Array.isArray(n)?e.some(function(e){return-1<n.indexOf(e.key)&&e.fixed===t}):o}function isExistNotFixedColKey(e){var t=e.colKeys,e=e.colgroups,n=!1;return n=Array.isArray(t)?e.filter(function(e){return!e.fixed&&-1<t.indexOf(e.key)}).length:n}function getLeftmostOrRightmostColKey(e){var n,o=e.type,l=e.colgroups,e=e.colKeys,t=null;return Array.isArray(e)&&e.length&&(n={colKey:null,colIndex:null},e.forEach(function(t){var e=l.findIndex(function(e){return e.key===t});if(-1===e)return console.warn("getLeftmostOrRightmostColKey error:: can't find colKey:".concat(t)),!1;(0,_index.isEmptyValue)(n.colKey)?n={colKey:t,colIndex:e}:"leftmost"===o?e<n.colIndex&&(n={colKey:t,colIndex:e}):"rightmost"===o&&e>n.colIndex&&(n={colKey:t,colIndex:e})}),t=n.colKey),t}function getLeftmostColKey(e){return getLeftmostOrRightmostColKey({type:"leftmost",colgroups:e.colgroups,colKeys:e.colKeys})}function getRightmostColKey(e){return getLeftmostOrRightmostColKey({type:"rightmost",colgroups:e.colgroups,colKeys:e.colKeys})}function getPreviewColKey(e){var t,n=e.colgroups,o=e.currentColKey,e=null;return(0,_index.isEmptyValue)(o)||(0===(t=n.findIndex(function(e){return e.key===o}))?e=o:0<t&&(e=n[t-1].key)),e}function getNextColKey(e){var t,n=e.colgroups,o=e.currentColKey,e=null;return(0,_index.isEmptyValue)(o)||((t=n.findIndex(function(e){return e.key===o}))===n.length-1?e=o:t<n.length-1&&(e=n[t+1].key)),e}function cellAutofill(e){var t,n=e.isReplaceData,o=e.tableData,l=e.allRowKeys,r=e.colgroups,i=e.direction,a=e.rowKeyFieldName,s=e.cellSelectionRangeData,c=e.nextCurrentCell,u=e.nextNormalEndCell,d=s.leftColKey,y=s.rightColKey,e=s.topRowKey,s=s.bottomRowKey,C={startRowIndex:-1,endRowIndex:-1,startColIndex:-1,endColIndex:-1},x={startRowIndex:-1,endRowIndex:-1,startColIndex:-1,endColIndex:-1};if(C.startRowIndex=l.indexOf(e),C.endRowIndex=l.indexOf(s),C.startColIndex=r.findIndex(function(e){return e.key===d}),C.endColIndex=r.findIndex(function(e){return e.key===y}),t=o.slice(C.startRowIndex,C.endRowIndex+1),i===_constant.AUTOFILLING_DIRECTION.UP){if(x.startRowIndex=l.indexOf(c.rowKey),x.endRowIndex=C.startRowIndex-1,x.startColIndex=C.startColIndex,x.endColIndex=C.endColIndex,n)for(var f=t.length-1,_=x.endRowIndex;x.startRowIndex<=_;_--){for(var p=x.startColIndex;p<=x.endColIndex;p++){var E=r[p].field;f<0&&(f=t.length-1),o[_][E]=t[f][E]}--f}}else if(i===_constant.AUTOFILLING_DIRECTION.DOWN){if(x.startRowIndex=C.endRowIndex+1,x.endRowIndex=l.indexOf(u.rowKey),x.startColIndex=C.startColIndex,x.endColIndex=C.endColIndex,n)for(var g=0,R=x.startRowIndex;R<=x.endRowIndex;R++){for(var m=x.startColIndex;m<=x.endColIndex;m++){var T=r[m].field;g>t.length-1&&(g=0),o[R][T]=t[g][T]}++g}}else if(i===_constant.AUTOFILLING_DIRECTION.LEFT){if(x.startRowIndex=C.startRowIndex,x.endRowIndex=C.endRowIndex,x.startColIndex=r.findIndex(function(e){return e.key===c.colKey}),x.endColIndex=C.startColIndex-1,n)for(var I=0,O=x.startRowIndex;O<=x.endRowIndex;O++){for(var K=C.endColIndex,N=x.endColIndex;x.startColIndex<=N;N--){var w=r[N].field;K<C.startColIndex&&(K=C.endColIndex),o[O][w]=t[I][r[K].field],--K}++I}}else if(i===_constant.AUTOFILLING_DIRECTION.RIGHT&&(x.startRowIndex=C.startRowIndex,x.endRowIndex=C.endRowIndex,x.startColIndex=C.endColIndex+1,x.endColIndex=r.findIndex(function(e){return e.key===u.colKey}),n))for(var h=0,v=x.startRowIndex;v<=x.endRowIndex;v++){for(var S=C.startColIndex,D=x.startColIndex;D<=x.endColIndex;D++){var b=r[D].field;C.startColIndex+(C.endColIndex-C.startColIndex)<S&&(S=C.startColIndex),o[v][b]=t[h][r[S].field],++S}++h}var e={direction:i,sourceSelectionRangeIndexes:C,targetSelectionRangeIndexes:x,sourceSelectionData:[],targetSelectionData:[]},L=r.slice(C.startColIndex,C.endColIndex+1).map(function(e){return e.field}),P=(e.sourceSelectionData=o.slice(C.startRowIndex,C.endRowIndex+1).map(function(t){var n=_defineProperty({},a,t[a]);return L.forEach(function(e){n[e]=t[e]}),n}),r.slice(x.startColIndex,x.endColIndex+1).map(function(e){return e.field}));return e.targetSelectionData=o.slice(x.startRowIndex,x.endRowIndex+1).map(function(t){var n=_defineProperty({},a,t[a]);return P.forEach(function(e){n[e]=t[e]}),n}),e}function setColumnFixed(e){var t,o=e.cloneColumns,n=e.cellSelectionRangeData,l=e.fixedType,r=e.colgroups,i=e.enableColumnResize,e=o,a=n.leftColKey,n=n.rightColKey,s=(_constant.COLUMN_FIXED_TYPE.LEFT===l?t=n:_constant.COLUMN_FIXED_TYPE.RIGHT===l&&(t=a),o.findIndex(function(e){return 1===e._level&&e.key===t||-1<getColKeysByHeaderColumn({headerColumnItem:e}).indexOf(t)||void 0}));if(-1<s){n=o[s].fixed;if(!(0,_index.isEmptyValue)(n)&&n!==l)return!1;e=o.map(function(t,e){var n;return t.fixed===l&&(t.fixed=""),!i||Array.isArray(t.children)&&t.children.length||(n=r.find(function(e){return e.key===t.key&&!(0,_index.isEmptyValue)(e.key)}))&&(t.width=n._columnResizeWidth),_constant.COLUMN_FIXED_TYPE.LEFT===l?e<=s&&e<o.length&&(t.fixed=l):s<=e&&0<e&&(t.fixed=l),t})}return e}function cancelColumnFixed(e){var t=e.cloneColumns,n=e.colgroups,o=e.fixedType,l=e.enableColumnResize;return t.map(function(t){var e;return!l||Array.isArray(t.children)&&t.children.length||(e=n.find(function(e){return e.key===t.key&&!(0,_index.isEmptyValue)(e.key)}))&&(t.width=e._columnResizeWidth),_constant.COLUMN_FIXED_TYPE.LEFT===o?t.fixed!==o||isOperationColumn(t.key,n)||(t.fixed=""):t.fixed===o&&(t.fixed=""),t})}