vxe-table 4.18.3 → 4.18.5
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/grid/style.css +4 -0
- package/es/grid/style.min.css +1 -1
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/hook.js +3 -1
- package/es/table/module/custom/panel.js +3 -1
- package/es/table/src/table.js +31 -22
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-grid/style.css +4 -0
- package/es/vxe-grid/style.min.css +1 -1
- package/lib/grid/style/style.css +4 -0
- package/lib/grid/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +10 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/hook.js +3 -1
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/module/custom/panel.js +3 -1
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/src/table.js +2 -2
- package/lib/table/src/table.min.js +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-grid/style/style.css +4 -0
- package/lib/vxe-grid/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/table/module/custom/hook.ts +3 -1
- package/packages/table/module/custom/panel.ts +3 -1
- package/packages/table/src/table.ts +31 -23
- package/styles/components/grid.scss +4 -0
- /package/es/{iconfont.1773640299992.ttf → iconfont.1773710736571.ttf} +0 -0
- /package/es/{iconfont.1773640299992.woff → iconfont.1773710736571.woff} +0 -0
- /package/es/{iconfont.1773640299992.woff2 → iconfont.1773710736571.woff2} +0 -0
- /package/lib/{iconfont.1773640299992.ttf → iconfont.1773710736571.ttf} +0 -0
- /package/lib/{iconfont.1773640299992.woff → iconfont.1773710736571.woff} +0 -0
- /package/lib/{iconfont.1773640299992.woff2 → iconfont.1773710736571.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3144,7 +3144,7 @@ function getDefaultConfig(val1, def1) {
|
|
|
3144
3144
|
;// ./packages/ui/index.ts
|
|
3145
3145
|
|
|
3146
3146
|
|
|
3147
|
-
const version = "4.18.
|
|
3147
|
+
const version = "4.18.5";
|
|
3148
3148
|
core_.VxeUI.version = version;
|
|
3149
3149
|
core_.VxeUI.tableVersion = version;
|
|
3150
3150
|
core_.VxeUI.setConfig({
|
|
@@ -3669,7 +3669,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3669
3669
|
const {
|
|
3670
3670
|
log: log_log
|
|
3671
3671
|
} = core_.VxeUI;
|
|
3672
|
-
const log_version = `table v${"4.18.
|
|
3672
|
+
const log_version = `table v${"4.18.5"}`;
|
|
3673
3673
|
const warnLog = log_log.create('warn', log_version);
|
|
3674
3674
|
const errLog = log_log.create('error', log_version);
|
|
3675
3675
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -10316,7 +10316,9 @@ function panel_createInternalData() {
|
|
|
10316
10316
|
});
|
|
10317
10317
|
const popupStys = {};
|
|
10318
10318
|
if (maxHeight && !['left', 'right'].includes(placement || '')) {
|
|
10319
|
-
|
|
10319
|
+
if (popupTop) {
|
|
10320
|
+
popupStys.top = toCssUnit(popupTop);
|
|
10321
|
+
}
|
|
10320
10322
|
popupStys.maxHeight = toCssUnit(maxHeight);
|
|
10321
10323
|
}
|
|
10322
10324
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -17437,7 +17439,9 @@ core_.VxeUI.hooks.add('tableCustomModule', {
|
|
|
17437
17439
|
const {
|
|
17438
17440
|
refElem
|
|
17439
17441
|
} = $xeTable.getRefMaps();
|
|
17442
|
+
const $xeGrid = $xeTable.xeGrid;
|
|
17440
17443
|
const $xeGantt = $xeTable.xeGantt;
|
|
17444
|
+
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
17441
17445
|
const updatePopupStyle = () => {
|
|
17442
17446
|
const {
|
|
17443
17447
|
customStore
|
|
@@ -17464,7 +17468,7 @@ core_.VxeUI.hooks.add('tableCustomModule', {
|
|
|
17464
17468
|
}
|
|
17465
17469
|
}
|
|
17466
17470
|
if (showCustomSimpleOutside) {
|
|
17467
|
-
if (wrapperEl) {
|
|
17471
|
+
if ($xeGGWrapper && wrapperEl) {
|
|
17468
17472
|
popupTop = wrapperEl.offsetTop;
|
|
17469
17473
|
}
|
|
17470
17474
|
popupMaxHeight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(maxHeight) ? 360 : maxHeight;
|
|
@@ -20279,8 +20283,8 @@ if(isEnableConf(editConfig)&&editOpts.trigger==='dblclick'){if(actived.row&&acti
|
|
|
20279
20283
|
* 多选,选中所有事件
|
|
20280
20284
|
*/triggerCheckAllEvent(evnt,value){const checkboxOpts=computeCheckboxOpts.value;const{trigger}=checkboxOpts;if(trigger==='manual'){return;}if(evnt){evnt.stopPropagation();}handleCheckAllEvent(evnt,value);},/**
|
|
20281
20285
|
* 单选,行选中事件
|
|
20282
|
-
*/triggerRadioRowEvent(evnt,params){const{selectRadioRow:oldValue}=reactData;const{row}=params;const radioOpts=computeRadioOpts.value;const{trigger,strict,checkMethod}=radioOpts;if(trigger==='manual'){return;}evnt.stopPropagation();if(!checkMethod||checkMethod({$table:$xeTable,row})){let newValue=row;let isChange=oldValue!==newValue;
|
|
20283
|
-
dispatchEvent('current-change',{oldValue,newValue
|
|
20286
|
+
*/triggerRadioRowEvent(evnt,params){const{selectRadioRow:oldValue}=reactData;const{row}=params;const radioOpts=computeRadioOpts.value;const{trigger,strict,checkMethod}=radioOpts;if(trigger==='manual'){return;}evnt.stopPropagation();if(!checkMethod||checkMethod({$table:$xeTable,row})){let newValue=row;let isChange=oldValue!==newValue;if(strict){handleCheckedRadioRow(newValue);}else{if(oldValue===newValue){newValue=null;}isChange=oldValue!==newValue;if(isChange&&newValue){handleCheckedRadioRow(newValue);}else{newValue=null;$xeTable.clearRadioRow();}}if(isChange){dispatchEvent('radio-change',{oldValue,newValue,selected:!!newValue,...params},evnt);}}},triggerCurrentColumnEvent(evnt,params){const{currentColumn:oldValue}=reactData;const columnOpts=computeColumnOpts.value;const currentColumnOpts=computeCurrentColumnOpts.value;const beforeRowMethod=currentColumnOpts.beforeSelectMethod||columnOpts.currentMethod;let newValue=params.column;const{trigger,strict}=currentColumnOpts;if(trigger==='manual'){return;}let isChange=oldValue!==newValue;if(!beforeRowMethod||beforeRowMethod({column:newValue,$table:$xeTable})){if(strict){$xeTable.setCurrentColumn(newValue);}else{if(oldValue===newValue){newValue=null;}isChange=oldValue!==newValue;if(isChange&&newValue){$xeTable.setCurrentColumn(newValue);}else{newValue=null;$xeTable.clearCurrentColumn();}}if(isChange){dispatchEvent('current-column-change',{oldValue,newValue,selected:!!newValue,...params},evnt);}}else{dispatchEvent('current-column-disabled',params,evnt);}},triggerCurrentRowEvent(evnt,params){const{currentRow:oldValue}=reactData;const rowOpts=computeRowOpts.value;const currentRowOpts=computeCurrentRowOpts.value;const beforeRowMethod=currentRowOpts.beforeSelectMethod||rowOpts.currentMethod;let{row:newValue}=params;const{trigger,strict}=currentRowOpts;if(trigger==='manual'){return;}let isChange=oldValue!==newValue;if(!beforeRowMethod||beforeRowMethod({row:newValue,$table:$xeTable})){if(strict){$xeTable.setCurrentRow(newValue);}else{if(oldValue===newValue){newValue=null;}isChange=oldValue!==newValue;if(isChange&&newValue){$xeTable.setCurrentRow(newValue);}else{newValue=null;$xeTable.clearCurrentRow();}}if(isChange){dispatchEvent('current-row-change',{oldValue,newValue,selected:!!newValue,...params},evnt);// 已废弃
|
|
20287
|
+
dispatchEvent('current-change',{oldValue,newValue,...params},evnt);}}else{dispatchEvent('current-row-disabled',params,evnt);}},/**
|
|
20284
20288
|
* 展开行事件
|
|
20285
20289
|
*/triggerRowExpandEvent(evnt,params){const{expandColumn}=reactData;const{rowExpandLazyLoadedMaps}=internalData;const expandOpts=computeExpandOpts.value;const{row}=params;const{lazy,trigger}=expandOpts;if(trigger==='manual'){return;}evnt.stopPropagation();const rowid=getRowid($xeTable,row);if(!lazy||!rowExpandLazyLoadedMaps[rowid]){const expanded=!$xeTable.isRowExpandByRow(row);const columnIndex=expandColumn?$xeTable.getColumnIndex(expandColumn):-1;const $columnIndex=expandColumn?$xeTable.getVMColumnIndex(expandColumn):-1;$xeTable.setRowExpand(row,expanded);dispatchEvent('toggle-row-expand',{expanded,column:expandColumn,columnIndex,$columnIndex,row,rowIndex:$xeTable.getRowIndex(row),$rowIndex:$xeTable.getVMRowIndex(row)},evnt);}},/**
|
|
20286
20290
|
* 行分组事件
|