vxe-table 3.12.0-beta.1 → 3.12.0-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/es/style.css +1 -1
- package/es/table/module/custom/panel.js +2 -4
- package/es/table/module/edit/mixin.js +7 -1
- package/es/table/src/methods.js +3 -7
- package/es/table/src/table.js +7 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +14 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +32 -13
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/custom/panel.js +1 -3
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/mixin.js +6 -1
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/src/methods.js +2 -6
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +7 -0
- 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/dom.js +16 -2
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/table/module/custom/panel.ts +2 -4
- package/packages/table/module/edit/mixin.ts +6 -1
- package/packages/table/src/methods.ts +3 -7
- package/packages/table/src/table.ts +9 -0
- package/packages/ui/src/dom.ts +16 -1
- /package/es/{iconfont.1735108867776.ttf → iconfont.1735193691325.ttf} +0 -0
- /package/es/{iconfont.1735108867776.woff → iconfont.1735193691325.woff} +0 -0
- /package/es/{iconfont.1735108867776.woff2 → iconfont.1735193691325.woff2} +0 -0
- /package/lib/{iconfont.1735108867776.ttf → iconfont.1735193691325.ttf} +0 -0
- /package/lib/{iconfont.1735108867776.woff → iconfont.1735193691325.woff} +0 -0
- /package/lib/{iconfont.1735108867776.woff2 → iconfont.1735193691325.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.12.0-beta.
|
|
2223
|
+
const version = "3.12.0-beta.3";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2632,7 +2632,20 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2632
2632
|
|
|
2633
2633
|
const reClsMap = {};
|
|
2634
2634
|
const browse = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().browse();
|
|
2635
|
-
|
|
2635
|
+
let tpImgEl;
|
|
2636
|
+
function initTpImg() {
|
|
2637
|
+
if (!tpImgEl) {
|
|
2638
|
+
tpImgEl = new Image();
|
|
2639
|
+
tpImgEl.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';
|
|
2640
|
+
}
|
|
2641
|
+
return tpImgEl;
|
|
2642
|
+
}
|
|
2643
|
+
function getTpImg() {
|
|
2644
|
+
if (!tpImgEl) {
|
|
2645
|
+
return initTpImg();
|
|
2646
|
+
}
|
|
2647
|
+
return tpImgEl;
|
|
2648
|
+
}
|
|
2636
2649
|
function getPropClass(property, params) {
|
|
2637
2650
|
return property ? XEUtils.isFunction(property) ? property(params) : property : '';
|
|
2638
2651
|
}
|
|
@@ -2795,7 +2808,7 @@ function isNodeElement(elem) {
|
|
|
2795
2808
|
const {
|
|
2796
2809
|
log: log_log
|
|
2797
2810
|
} = core_.VxeUI;
|
|
2798
|
-
const log_version = `table v${"3.12.0-beta.
|
|
2811
|
+
const log_version = `table v${"3.12.0-beta.3"}`;
|
|
2799
2812
|
const warnLog = log_log.create('warn', log_version);
|
|
2800
2813
|
const errLog = log_log.create('error', log_version);
|
|
2801
2814
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -11046,9 +11059,7 @@ const Methods = {
|
|
|
11046
11059
|
*/
|
|
11047
11060
|
handleRowDragDragstartEvent(evnt) {
|
|
11048
11061
|
if (evnt.dataTransfer) {
|
|
11049
|
-
|
|
11050
|
-
img.src = tpImg;
|
|
11051
|
-
evnt.dataTransfer.setDragImage(img, 0, 0);
|
|
11062
|
+
evnt.dataTransfer.setDragImage(getTpImg(), 0, 0);
|
|
11052
11063
|
}
|
|
11053
11064
|
},
|
|
11054
11065
|
handleRowDragDragendEvent(evnt) {
|
|
@@ -11347,9 +11358,7 @@ const Methods = {
|
|
|
11347
11358
|
*/
|
|
11348
11359
|
handleHeaderCellDragDragstartEvent(evnt) {
|
|
11349
11360
|
if (evnt.dataTransfer) {
|
|
11350
|
-
|
|
11351
|
-
img.src = tpImg;
|
|
11352
|
-
evnt.dataTransfer.setDragImage(img, 0, 0);
|
|
11361
|
+
evnt.dataTransfer.setDragImage(getTpImg(), 0, 0);
|
|
11353
11362
|
}
|
|
11354
11363
|
},
|
|
11355
11364
|
handleColDragSwapEvent(evnt, isSyncColumn, dragCol, prevDragCol, prevDragPos, prevDragToChild) {
|
|
@@ -16952,9 +16961,7 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
16952
16961
|
},
|
|
16953
16962
|
sortDragstartEvent(evnt) {
|
|
16954
16963
|
if (evnt.dataTransfer) {
|
|
16955
|
-
|
|
16956
|
-
img.src = tpImg;
|
|
16957
|
-
evnt.dataTransfer.setDragImage(img, 0, 0);
|
|
16964
|
+
evnt.dataTransfer.setDragImage(getTpImg(), 0, 0);
|
|
16958
16965
|
}
|
|
16959
16966
|
},
|
|
16960
16967
|
sortDragendEvent(evnt) {
|
|
@@ -19266,7 +19273,12 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
19266
19273
|
throw new Error(errLog('vxe.error.unableInsert'));
|
|
19267
19274
|
}
|
|
19268
19275
|
afterFullData.splice(afIndex, 0, ...newRecords);
|
|
19269
|
-
|
|
19276
|
+
const tfIndex = $xeTable.findRowIndexOf(tableFullData, targetRow);
|
|
19277
|
+
if (tfIndex > -1) {
|
|
19278
|
+
tableFullData.splice(tfIndex + (isInsertNextRow ? 1 : 0), 0, ...newRecords);
|
|
19279
|
+
} else {
|
|
19280
|
+
tableFullData.push(...newRecords);
|
|
19281
|
+
}
|
|
19270
19282
|
// 刷新单元格合并
|
|
19271
19283
|
mergeList.forEach(mergeItem => {
|
|
19272
19284
|
const {
|
|
@@ -23274,6 +23286,7 @@ function validErrorRuleValue(rule, val) {
|
|
|
23274
23286
|
|
|
23275
23287
|
|
|
23276
23288
|
|
|
23289
|
+
|
|
23277
23290
|
|
|
23278
23291
|
|
|
23279
23292
|
const {
|
|
@@ -24401,6 +24414,12 @@ function handleUupdateResize(_vm) {
|
|
|
24401
24414
|
mounted() {
|
|
24402
24415
|
const $xeTable = this;
|
|
24403
24416
|
const props = $xeTable;
|
|
24417
|
+
const columnOpts = $xeTable.computeColumnOpts;
|
|
24418
|
+
const rowOpts = $xeTable.computeRowOpts;
|
|
24419
|
+
const customOpts = $xeTable.computeCustomOpts;
|
|
24420
|
+
if (columnOpts.drag || rowOpts.drag || customOpts.allowSort) {
|
|
24421
|
+
initTpImg();
|
|
24422
|
+
}
|
|
24404
24423
|
if (true) {
|
|
24405
24424
|
const {
|
|
24406
24425
|
$listeners
|