vxe-table 3.7.10-beta.1 → 3.7.10-beta.3
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/lib/button/src/button.js +7 -0
- package/lib/footer/src/footer.js +1 -0
- package/lib/footer/src/footer.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +29 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/cell.js +6 -1
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/methods.js +11 -6
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +4 -2
- package/lib/table/src/table.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/validator/src/mixin.js +1 -1
- package/lib/validator/src/mixin.min.js +1 -1
- package/package.json +2 -2
- package/packages/button/src/button.js +7 -0
- package/packages/footer/src/footer.js +16 -1
- package/packages/table/src/cell.js +6 -2
- package/packages/table/src/methods.js +12 -8
- package/packages/table/src/table.js +4 -2
- package/packages/validator/src/mixin.js +1 -1
- package/types/footer.d.ts +29 -28
- package/types/table.d.ts +5 -0
- /package/lib/icon/style/{iconfont.1710549343264.ttf → iconfont.1712546766218.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1710549343264.woff → iconfont.1712546766218.woff} +0 -0
- /package/lib/icon/style/{iconfont.1710549343264.woff2 → iconfont.1712546766218.woff2} +0 -0
- /package/lib/{iconfont.1710549343264.ttf → iconfont.1712546766218.ttf} +0 -0
- /package/lib/{iconfont.1710549343264.woff → iconfont.1712546766218.woff} +0 -0
- /package/lib/{iconfont.1710549343264.woff2 → iconfont.1712546766218.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -10596,7 +10596,7 @@ var es_array_concat = __webpack_require__(2222);
|
|
|
10596
10596
|
|
|
10597
10597
|
|
|
10598
10598
|
function getLog(message, params) {
|
|
10599
|
-
return "[vxe-table v".concat("3.7.10-beta.
|
|
10599
|
+
return "[vxe-table v".concat("3.7.10-beta.3", "] ").concat(conf.i18n(message, params));
|
|
10600
10600
|
}
|
|
10601
10601
|
function outLog(type) {
|
|
10602
10602
|
return function (message, params) {
|
|
@@ -12028,7 +12028,7 @@ var setup = config;
|
|
|
12028
12028
|
var globalStore = {};
|
|
12029
12029
|
var VXETable = {
|
|
12030
12030
|
v: v,
|
|
12031
|
-
version: "3.7.10-beta.
|
|
12031
|
+
version: "3.7.10-beta.3",
|
|
12032
12032
|
reg: reg,
|
|
12033
12033
|
use: use,
|
|
12034
12034
|
setup: setup,
|
|
@@ -14465,6 +14465,7 @@ function getFooterContent(h, params) {
|
|
|
14465
14465
|
var $table = params.$table,
|
|
14466
14466
|
column = params.column,
|
|
14467
14467
|
_columnIndex = params._columnIndex,
|
|
14468
|
+
row = params.row,
|
|
14468
14469
|
items = params.items;
|
|
14469
14470
|
var slots = column.slots,
|
|
14470
14471
|
editRender = column.editRender,
|
|
@@ -14479,7 +14480,11 @@ function getFooterContent(h, params) {
|
|
|
14479
14480
|
return getSlotVNs(compConf.renderFooter.call($table, h, renderOpts, params));
|
|
14480
14481
|
}
|
|
14481
14482
|
}
|
|
14482
|
-
|
|
14483
|
+
// 兼容老模式
|
|
14484
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(items)) {
|
|
14485
|
+
return [utils.formatText(items[_columnIndex], 1)];
|
|
14486
|
+
}
|
|
14487
|
+
return [utils.formatText(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field), 1)];
|
|
14483
14488
|
}
|
|
14484
14489
|
function getDefaultCellLabel(params) {
|
|
14485
14490
|
var $table = params.$table,
|
|
@@ -20286,9 +20291,7 @@ var Methods = {
|
|
|
20286
20291
|
return !!rowExpandedMaps[rowid];
|
|
20287
20292
|
},
|
|
20288
20293
|
isExpandByRow: function isExpandByRow(row) {
|
|
20289
|
-
|
|
20290
|
-
// warnLog('vxe.error.delFunc', ['isExpandByRow', 'isRowExpandByRow'])
|
|
20291
|
-
// }
|
|
20294
|
+
if (false) {}
|
|
20292
20295
|
// 即将废弃
|
|
20293
20296
|
return this.isRowExpandByRow(row);
|
|
20294
20297
|
},
|
|
@@ -21101,15 +21104,20 @@ var Methods = {
|
|
|
21101
21104
|
updateFooter: function updateFooter() {
|
|
21102
21105
|
var showFooter = this.showFooter,
|
|
21103
21106
|
visibleColumn = this.visibleColumn,
|
|
21107
|
+
footerData = this.footerData,
|
|
21104
21108
|
footerMethod = this.footerMethod;
|
|
21105
|
-
|
|
21106
|
-
|
|
21109
|
+
var footData = [];
|
|
21110
|
+
if (showFooter && footerData && footerData.length) {
|
|
21111
|
+
footData = footerData.slice(0);
|
|
21112
|
+
} else if (showFooter && footerMethod) {
|
|
21113
|
+
footData = visibleColumn.length ? footerMethod({
|
|
21107
21114
|
columns: visibleColumn,
|
|
21108
21115
|
data: this.afterFullData,
|
|
21109
21116
|
$table: this,
|
|
21110
21117
|
$grid: this.$xegrid
|
|
21111
21118
|
}) : [];
|
|
21112
21119
|
}
|
|
21120
|
+
this.footerTableData = footData;
|
|
21113
21121
|
return this.$nextTick();
|
|
21114
21122
|
},
|
|
21115
21123
|
/**
|
|
@@ -21364,7 +21372,7 @@ var Methods = {
|
|
|
21364
21372
|
};
|
|
21365
21373
|
|
|
21366
21374
|
// Module methods
|
|
21367
|
-
var funcs = 'setFilter,openFilter,clearFilter,getCheckedFilters,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',');
|
|
21375
|
+
var funcs = 'setFilter,openFilter,clearFilter,getCheckedFilters,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',');
|
|
21368
21376
|
funcs.forEach(function (name) {
|
|
21369
21377
|
Methods[name] = function () {
|
|
21370
21378
|
if (false) {}
|
|
@@ -21655,6 +21663,8 @@ function handleUupdateResize(_vm) {
|
|
|
21655
21663
|
highlightCell: Boolean,
|
|
21656
21664
|
// 是否显示表尾合计
|
|
21657
21665
|
showFooter: Boolean,
|
|
21666
|
+
// 表尾数据
|
|
21667
|
+
footerData: Array,
|
|
21658
21668
|
// 表尾合计的计算方法
|
|
21659
21669
|
footerMethod: Function,
|
|
21660
21670
|
// 给行附加 className
|
|
@@ -32848,7 +32858,7 @@ function validErrorRuleValue(rule, val) {
|
|
|
32848
32858
|
return handleFieldOrColumn(_this4, column);
|
|
32849
32859
|
});
|
|
32850
32860
|
var validErrMaps = {};
|
|
32851
|
-
if (validTip && validTip.
|
|
32861
|
+
if (validTip && validTip.visible) {
|
|
32852
32862
|
validTip.close();
|
|
32853
32863
|
}
|
|
32854
32864
|
// 如果是单个提示模式
|
|
@@ -33180,6 +33190,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
|
|
|
33180
33190
|
var params = {
|
|
33181
33191
|
$table: $xetable,
|
|
33182
33192
|
$grid: $xetable.xegrid,
|
|
33193
|
+
row: list,
|
|
33183
33194
|
_rowIndex: _rowIndex,
|
|
33184
33195
|
$rowIndex: $rowIndex,
|
|
33185
33196
|
column: column,
|
|
@@ -36721,6 +36732,8 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
36721
36732
|
|
|
36722
36733
|
|
|
36723
36734
|
|
|
36735
|
+
// import { warnLog } from '../../tools/log'
|
|
36736
|
+
|
|
36724
36737
|
/* harmony default export */ var button_src_button = ({
|
|
36725
36738
|
name: 'VxeButton',
|
|
36726
36739
|
mixins: [size],
|
|
@@ -36771,6 +36784,12 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
36771
36784
|
}
|
|
36772
36785
|
},
|
|
36773
36786
|
created: function created() {
|
|
36787
|
+
// if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
36788
|
+
// if (props.type === 'text') {
|
|
36789
|
+
// warnLog('vxe.error.delFunc', ['type=text', 'mode=text'])
|
|
36790
|
+
// }
|
|
36791
|
+
// }
|
|
36792
|
+
|
|
36774
36793
|
GlobalEvent.on(this, 'mousewheel', this.handleGlobalMousewheelEvent);
|
|
36775
36794
|
},
|
|
36776
36795
|
beforeDestroy: function beforeDestroy() {
|