@vxe-ui/plugin-menu 4.2.2 → 4.3.0
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/dist/index.umd.js +1752 -1737
- package/dist/index.umd.min.js +1 -1
- package/es/index.esm.js +1476 -0
- package/es/index.js +1476 -0
- package/es/style.css +0 -0
- package/es/style.min.css +0 -0
- package/{dist → lib}/index.common.js +47 -46
- package/lib/index.js +1727 -0
- package/lib/index.umd.js +1754 -0
- package/lib/index.umd.min.js +1 -0
- package/lib/style.css +0 -0
- package/lib/style.min.css +0 -0
- package/package.json +15 -10
package/es/style.css
ADDED
|
File without changes
|
package/es/style.min.css
ADDED
|
File without changes
|
|
@@ -402,6 +402,7 @@ function selectMultipleRows() {
|
|
|
402
402
|
modelValue: rowSize.value,
|
|
403
403
|
min: 1,
|
|
404
404
|
max: 100,
|
|
405
|
+
type: 'integer',
|
|
405
406
|
align: 'center',
|
|
406
407
|
controlConfig: {
|
|
407
408
|
layout: 'default'
|
|
@@ -474,11 +475,11 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
474
475
|
var pVersion = 4;
|
|
475
476
|
var sVersion = 11;
|
|
476
477
|
if (!VxeUI.checkVersion(VxeUI.tableVersion, pVersion, sVersion)) {
|
|
477
|
-
console.error("[@vxe-ui/plugin-menu 4.
|
|
478
|
+
console.error("[@vxe-ui/plugin-menu 4.3.0] ".concat(VxeUI.getI18n('vxe.error.errorVersion', ["vxe-table@".concat(VxeUI.tableVersion || '?'), "vxe-table v".concat(pVersion, ".").concat(sVersion, "+")]), " https://vxeui.com/other4/#/plugin-menu/install"));
|
|
478
479
|
}
|
|
479
480
|
} else {
|
|
480
481
|
if (!/^(4)\./.test(VxeUI.uiVersion || VxeUI.tableVersion)) {
|
|
481
|
-
console.error('[@vxe-ui/plugin-menu 4.
|
|
482
|
+
console.error('[@vxe-ui/plugin-menu 4.3.0] Requires vxe-table 4.7.0+ version. https://vxeui.com/other4/#/plugin-menu/install');
|
|
482
483
|
}
|
|
483
484
|
}
|
|
484
485
|
pluginSetup(options);
|
|
@@ -763,8 +764,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
763
764
|
column = params.column;
|
|
764
765
|
var tableProps = $table.props;
|
|
765
766
|
var mouseConfig = tableProps.mouseConfig;
|
|
766
|
-
var _$table$
|
|
767
|
-
computeMouseOpts = _$table$
|
|
767
|
+
var _$table$getComputeMap0 = $table.getComputeMaps(),
|
|
768
|
+
computeMouseOpts = _$table$getComputeMap0.computeMouseOpts;
|
|
768
769
|
var mouseOpts = computeMouseOpts.value;
|
|
769
770
|
if (row && column && mouseConfig && mouseOpts.area) {
|
|
770
771
|
var _$table$getTableData6 = $table.getTableData(),
|
|
@@ -806,8 +807,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
806
807
|
if (row && column) {
|
|
807
808
|
var tableProps = $table.props;
|
|
808
809
|
var mouseConfig = tableProps.mouseConfig;
|
|
809
|
-
var _$table$
|
|
810
|
-
computeMouseOpts = _$table$
|
|
810
|
+
var _$table$getComputeMap1 = $table.getComputeMaps(),
|
|
811
|
+
computeMouseOpts = _$table$getComputeMap1.computeMouseOpts;
|
|
811
812
|
var mouseOpts = computeMouseOpts.value;
|
|
812
813
|
if (mouseConfig && mouseOpts.area) {
|
|
813
814
|
var cellAreas = $table.getCellAreas();
|
|
@@ -902,8 +903,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
902
903
|
column = params.column;
|
|
903
904
|
var tableProps = $table.props;
|
|
904
905
|
var mouseConfig = tableProps.mouseConfig;
|
|
905
|
-
var _$table$
|
|
906
|
-
computeMouseOpts = _$table$
|
|
906
|
+
var _$table$getComputeMap10 = $table.getComputeMaps(),
|
|
907
|
+
computeMouseOpts = _$table$getComputeMap10.computeMouseOpts;
|
|
907
908
|
var mouseOpts = computeMouseOpts.value;
|
|
908
909
|
if (mouseConfig && mouseOpts.area) {
|
|
909
910
|
$table.triggerPasteCellAreaEvent($event);
|
|
@@ -1079,8 +1080,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1079
1080
|
column = params.column;
|
|
1080
1081
|
var tableProps = $table.props;
|
|
1081
1082
|
var mouseConfig = tableProps.mouseConfig;
|
|
1082
|
-
var _$table$
|
|
1083
|
-
computeMouseOpts = _$table$
|
|
1083
|
+
var _$table$getComputeMap11 = $table.getComputeMaps(),
|
|
1084
|
+
computeMouseOpts = _$table$getComputeMap11.computeMouseOpts;
|
|
1084
1085
|
var mouseOpts = computeMouseOpts.value;
|
|
1085
1086
|
$table.insert(menu.params || {}).then(function (_ref7) {
|
|
1086
1087
|
var rows = _ref7.rows;
|
|
@@ -1106,8 +1107,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1106
1107
|
column = params.column;
|
|
1107
1108
|
var tableProps = $table.props;
|
|
1108
1109
|
var mouseConfig = tableProps.mouseConfig;
|
|
1109
|
-
var _$table$
|
|
1110
|
-
computeMouseOpts = _$table$
|
|
1110
|
+
var _$table$getComputeMap12 = $table.getComputeMaps(),
|
|
1111
|
+
computeMouseOpts = _$table$getComputeMap12.computeMouseOpts;
|
|
1111
1112
|
var mouseOpts = computeMouseOpts.value;
|
|
1112
1113
|
(row ? $table.insertAt(menu.params || {}, row) : $table.insert(menu.params || {})).then(function (_ref8) {
|
|
1113
1114
|
var rows = _ref8.rows;
|
|
@@ -1133,8 +1134,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1133
1134
|
column = params.column;
|
|
1134
1135
|
var tableProps = $table.props;
|
|
1135
1136
|
var mouseConfig = tableProps.mouseConfig;
|
|
1136
|
-
var _$table$
|
|
1137
|
-
computeMouseOpts = _$table$
|
|
1137
|
+
var _$table$getComputeMap13 = $table.getComputeMaps(),
|
|
1138
|
+
computeMouseOpts = _$table$getComputeMap13.computeMouseOpts;
|
|
1138
1139
|
var mouseOpts = computeMouseOpts.value;
|
|
1139
1140
|
selectMultipleRows().then(function (_ref9) {
|
|
1140
1141
|
var size = _ref9.size;
|
|
@@ -1142,8 +1143,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1142
1143
|
var records = _xeUtils["default"].range(0, size).map(function () {
|
|
1143
1144
|
return Object.assign({}, menu.params);
|
|
1144
1145
|
});
|
|
1145
|
-
(row ? $table.insertAt(records, row) : $table.insert(records)).then(function (
|
|
1146
|
-
var rows =
|
|
1146
|
+
(row ? $table.insertAt(records, row) : $table.insert(records)).then(function (_ref0) {
|
|
1147
|
+
var rows = _ref0.rows;
|
|
1147
1148
|
if (column && mouseConfig && mouseOpts.area) {
|
|
1148
1149
|
$table.setCellAreas([{
|
|
1149
1150
|
startRow: _xeUtils["default"].first(rows),
|
|
@@ -1168,11 +1169,11 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1168
1169
|
column = params.column;
|
|
1169
1170
|
var tableProps = $table.props;
|
|
1170
1171
|
var mouseConfig = tableProps.mouseConfig;
|
|
1171
|
-
var _$table$
|
|
1172
|
-
computeMouseOpts = _$table$
|
|
1172
|
+
var _$table$getComputeMap14 = $table.getComputeMaps(),
|
|
1173
|
+
computeMouseOpts = _$table$getComputeMap14.computeMouseOpts;
|
|
1173
1174
|
var mouseOpts = computeMouseOpts.value;
|
|
1174
|
-
(row ? $table.insertNextAt(menu.params || {}, row) : $table.insert(menu.params || {})).then(function (
|
|
1175
|
-
var rows =
|
|
1175
|
+
(row ? $table.insertNextAt(menu.params || {}, row) : $table.insert(menu.params || {})).then(function (_ref1) {
|
|
1176
|
+
var rows = _ref1.rows;
|
|
1176
1177
|
if (column && mouseConfig && mouseOpts.area) {
|
|
1177
1178
|
$table.setCellAreas([{
|
|
1178
1179
|
startRow: _xeUtils["default"].first(rows),
|
|
@@ -1195,17 +1196,17 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1195
1196
|
column = params.column;
|
|
1196
1197
|
var tableProps = $table.props;
|
|
1197
1198
|
var mouseConfig = tableProps.mouseConfig;
|
|
1198
|
-
var _$table$
|
|
1199
|
-
computeMouseOpts = _$table$
|
|
1199
|
+
var _$table$getComputeMap15 = $table.getComputeMaps(),
|
|
1200
|
+
computeMouseOpts = _$table$getComputeMap15.computeMouseOpts;
|
|
1200
1201
|
var mouseOpts = computeMouseOpts.value;
|
|
1201
|
-
selectMultipleRows().then(function (
|
|
1202
|
-
var size =
|
|
1202
|
+
selectMultipleRows().then(function (_ref10) {
|
|
1203
|
+
var size = _ref10.size;
|
|
1203
1204
|
if (size) {
|
|
1204
1205
|
var records = _xeUtils["default"].range(0, size).map(function () {
|
|
1205
1206
|
return Object.assign({}, menu.params);
|
|
1206
1207
|
});
|
|
1207
|
-
(row ? $table.insertNextAt(records, row) : $table.insert(records)).then(function (
|
|
1208
|
-
var rows =
|
|
1208
|
+
(row ? $table.insertNextAt(records, row) : $table.insert(records)).then(function (_ref11) {
|
|
1209
|
+
var rows = _ref11.rows;
|
|
1209
1210
|
if (column && mouseConfig && mouseOpts.area) {
|
|
1210
1211
|
$table.setCellAreas([{
|
|
1211
1212
|
startRow: _xeUtils["default"].first(rows),
|
|
@@ -1230,8 +1231,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1230
1231
|
column = params.column;
|
|
1231
1232
|
var args = menu.params || []; // [{}, 'field']
|
|
1232
1233
|
var record = Object.assign({}, args[0] || {});
|
|
1233
|
-
$table.insert(record).then(function (
|
|
1234
|
-
var row =
|
|
1234
|
+
$table.insert(record).then(function (_ref12) {
|
|
1235
|
+
var row = _ref12.row;
|
|
1235
1236
|
if ($table.setEditCell) {
|
|
1236
1237
|
$table.setEditCell(row, args[1] || column);
|
|
1237
1238
|
} else {
|
|
@@ -1252,8 +1253,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1252
1253
|
column = params.column;
|
|
1253
1254
|
var args = menu.params || []; // [{}, 'field']
|
|
1254
1255
|
var record = Object.assign({}, args[0] || {});
|
|
1255
|
-
$table.insert(record).then(function (
|
|
1256
|
-
var row =
|
|
1256
|
+
$table.insert(record).then(function (_ref13) {
|
|
1257
|
+
var row = _ref13.row;
|
|
1257
1258
|
if ($table.setEditCell) {
|
|
1258
1259
|
$table.setEditCell(row, args[1] || column);
|
|
1259
1260
|
} else {
|
|
@@ -1274,8 +1275,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1274
1275
|
column = params.column;
|
|
1275
1276
|
var args = menu.params || []; // [{}, 'field']
|
|
1276
1277
|
var record = Object.assign({}, args[0] || {});
|
|
1277
|
-
(row ? $table.insertAt(record, row) : $table.insert(record)).then(function (
|
|
1278
|
-
var row =
|
|
1278
|
+
(row ? $table.insertAt(record, row) : $table.insert(record)).then(function (_ref14) {
|
|
1279
|
+
var row = _ref14.row;
|
|
1279
1280
|
if ($table.setEditCell) {
|
|
1280
1281
|
$table.setEditCell(row, args[1] || column);
|
|
1281
1282
|
} else {
|
|
@@ -1296,8 +1297,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1296
1297
|
column = params.column;
|
|
1297
1298
|
var args = menu.params || []; // [{}, 'field']
|
|
1298
1299
|
var record = Object.assign({}, args[0] || {});
|
|
1299
|
-
(row ? $table.insertAt(record, row) : $table.insert(record)).then(function (
|
|
1300
|
-
var row =
|
|
1300
|
+
(row ? $table.insertAt(record, row) : $table.insert(record)).then(function (_ref15) {
|
|
1301
|
+
var row = _ref15.row;
|
|
1301
1302
|
if ($table.setEditCell) {
|
|
1302
1303
|
$table.setEditCell(row, args[1] || column);
|
|
1303
1304
|
} else {
|
|
@@ -1317,14 +1318,14 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1317
1318
|
row = params.row,
|
|
1318
1319
|
column = params.column;
|
|
1319
1320
|
var args = menu.params || []; // [{}, 'field']
|
|
1320
|
-
selectMultipleRows().then(function (
|
|
1321
|
-
var size =
|
|
1321
|
+
selectMultipleRows().then(function (_ref16) {
|
|
1322
|
+
var size = _ref16.size;
|
|
1322
1323
|
if (size) {
|
|
1323
1324
|
var records = _xeUtils["default"].range(0, size).map(function () {
|
|
1324
1325
|
return Object.assign({}, args[0]);
|
|
1325
1326
|
});
|
|
1326
|
-
(row ? $table.insertAt(records, row) : $table.insert(records)).then(function (
|
|
1327
|
-
var row =
|
|
1327
|
+
(row ? $table.insertAt(records, row) : $table.insert(records)).then(function (_ref17) {
|
|
1328
|
+
var row = _ref17.row;
|
|
1328
1329
|
if ($table.setEditCell) {
|
|
1329
1330
|
$table.setEditCell(row, args[1] || column);
|
|
1330
1331
|
} else {
|
|
@@ -1347,8 +1348,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1347
1348
|
column = params.column;
|
|
1348
1349
|
var args = menu.params || []; // [{}, 'field']
|
|
1349
1350
|
var record = Object.assign({}, args[0] || {});
|
|
1350
|
-
(row ? $table.insertNextAt(record, row) : $table.insert(record)).then(function (
|
|
1351
|
-
var row =
|
|
1351
|
+
(row ? $table.insertNextAt(record, row) : $table.insert(record)).then(function (_ref18) {
|
|
1352
|
+
var row = _ref18.row;
|
|
1352
1353
|
if ($table.setEditCell) {
|
|
1353
1354
|
$table.setEditCell(row, args[1] || column);
|
|
1354
1355
|
} else {
|
|
@@ -1368,14 +1369,14 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1368
1369
|
row = params.row,
|
|
1369
1370
|
column = params.column;
|
|
1370
1371
|
var args = menu.params || []; // [{}, 'field']
|
|
1371
|
-
selectMultipleRows().then(function (
|
|
1372
|
-
var size =
|
|
1372
|
+
selectMultipleRows().then(function (_ref19) {
|
|
1373
|
+
var size = _ref19.size;
|
|
1373
1374
|
if (size) {
|
|
1374
1375
|
var records = _xeUtils["default"].range(0, size).map(function () {
|
|
1375
1376
|
return Object.assign({}, args[0]);
|
|
1376
1377
|
});
|
|
1377
|
-
(row ? $table.insertNextAt(records, row) : $table.insert(records)).then(function (
|
|
1378
|
-
var row =
|
|
1378
|
+
(row ? $table.insertNextAt(records, row) : $table.insert(records)).then(function (_ref20) {
|
|
1379
|
+
var row = _ref20.row;
|
|
1379
1380
|
if ($table.setEditCell) {
|
|
1380
1381
|
$table.setEditCell(row, args[1] || column);
|
|
1381
1382
|
} else {
|
|
@@ -1408,8 +1409,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
|
|
|
1408
1409
|
row = params.row;
|
|
1409
1410
|
var tableProps = $table.props;
|
|
1410
1411
|
var mouseConfig = tableProps.mouseConfig;
|
|
1411
|
-
var _$table$
|
|
1412
|
-
computeMouseOpts = _$table$
|
|
1412
|
+
var _$table$getComputeMap16 = $table.getComputeMaps(),
|
|
1413
|
+
computeMouseOpts = _$table$getComputeMap16.computeMouseOpts;
|
|
1413
1414
|
var mouseOpts = computeMouseOpts.value;
|
|
1414
1415
|
if (mouseConfig && mouseOpts.area) {
|
|
1415
1416
|
var cellAreas = $table.getCellAreas();
|