@vxe-ui/plugin-menu 4.3.1 → 4.3.4

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/index.js CHANGED
@@ -76,7 +76,7 @@ function handleCopyOrCut(params, isCut) {
76
76
  const { mouseConfig } = tableProps;
77
77
  const { computeMouseOpts } = $table.getComputeMaps();
78
78
  const mouseOpts = computeMouseOpts.value;
79
- let text = '';
79
+ let text;
80
80
  if (mouseConfig && mouseOpts.area) {
81
81
  if (isCut) {
82
82
  $table.triggerCutCellAreaEvent($event);
@@ -213,10 +213,14 @@ function checkPrivilege(item, params) {
213
213
  }
214
214
  case 'EDIT_CELL':
215
215
  case 'CLEAR_CELL':
216
+ case 'CLEAR_AREA_CELL':
216
217
  case 'CLEAR_ROW':
217
218
  case 'COPY_CELL':
219
+ case 'COPY_AREA_CELL':
218
220
  case 'CUT_CELL':
221
+ case 'CUT_AREA_CELL':
219
222
  case 'PASTE_CELL':
223
+ case 'PASTE_AREA_CELL':
220
224
  case 'MERGE_OR_CLEAR':
221
225
  case 'MERGE_CELL':
222
226
  case 'REVERT_CELL':
@@ -278,13 +282,17 @@ function checkPrivilege(item, params) {
278
282
  break;
279
283
  }
280
284
  case 'COPY_CELL':
285
+ case 'COPY_AREA_CELL':
281
286
  case 'CUT_CELL':
282
- case 'PASTE_CELL': {
287
+ case 'CUT_AREA_CELL':
288
+ case 'PASTE_CELL':
289
+ case 'PASTE_AREA_CELL': {
283
290
  const cellAreas = mouseConfig && mouseOpts.area ? $table.getCellAreas() : [];
284
291
  item.disabled = cellAreas.length > 1;
285
292
  if (!item.disabled) {
286
293
  switch (code) {
287
- case 'PASTE_CELL': {
294
+ case 'PASTE_CELL':
295
+ case 'PASTE_AREA_CELL': {
288
296
  const clipboard = getClipboardObj();
289
297
  item.disabled = !clipboard || !clipboard.text;
290
298
  break;
@@ -427,12 +435,12 @@ export const VxeUIPluginMenu = {
427
435
  const pVersion = 4;
428
436
  const sVersion = 11;
429
437
  if (!VxeUI.checkVersion(VxeUI.tableVersion, pVersion, sVersion)) {
430
- console.error(`[@vxe-ui/plugin-menu 4.3.1] ${VxeUI.getI18n('vxe.error.errorVersion', [`vxe-table@${VxeUI.tableVersion || '?'}`, `vxe-table v${pVersion}.${sVersion}+`])} https://vxeui.com/other4/#/plugin-menu/install`);
438
+ console.error(`[@vxe-ui/plugin-menu 4.3.4] ${VxeUI.getI18n('vxe.error.errorVersion', [`vxe-table@${VxeUI.tableVersion || '?'}`, `vxe-table v${pVersion}.${sVersion}+`])} https://vxeui.com/other4/#/plugin-menu/install`);
431
439
  }
432
440
  }
433
441
  else {
434
442
  if (!/^(4)\./.test(VxeUI.uiVersion || VxeUI.tableVersion)) {
435
- console.error('[@vxe-ui/plugin-menu 4.3.1] Requires vxe-table 4.7.0+ version. https://vxeui.com/other4/#/plugin-menu/install');
443
+ console.error('[@vxe-ui/plugin-menu 4.3.4] Requires vxe-table 4.7.0+ version. https://vxeui.com/other4/#/plugin-menu/install');
436
444
  }
437
445
  }
438
446
  pluginSetup(options);
@@ -497,6 +505,33 @@ export const VxeUIPluginMenu = {
497
505
  }
498
506
  }
499
507
  },
508
+ /**
509
+ * 用于 mouse-config.area 功能,清除区域范围内的单元格数据
510
+ */
511
+ CLEAR_AREA_CELL: {
512
+ tableMenuMethod(params) {
513
+ const { $table, row, column } = params;
514
+ if (row && column) {
515
+ const tableProps = $table.props;
516
+ const { mouseConfig } = tableProps;
517
+ const { computeMouseOpts } = $table.getComputeMaps();
518
+ const mouseOpts = computeMouseOpts.value;
519
+ if (mouseConfig && mouseOpts.area) {
520
+ const cellAreas = $table.getCellAreas();
521
+ if (cellAreas && cellAreas.length) {
522
+ cellAreas.forEach(areaItem => {
523
+ const { rows, cols } = areaItem;
524
+ cols.forEach(column => {
525
+ rows.forEach(row => {
526
+ $table.clearData(row, column.field);
527
+ });
528
+ });
529
+ });
530
+ }
531
+ }
532
+ }
533
+ }
534
+ },
500
535
  /**
501
536
  * 清除行数据的值
502
537
  */
@@ -789,6 +824,14 @@ export const VxeUIPluginMenu = {
789
824
  handleCopyOrCut(params);
790
825
  }
791
826
  },
827
+ /**
828
+ * 复制单元格数据的值;用于 mouse-config.area 功能,复制区域范围内的单元格数据,支持 Excel 和 WPS
829
+ */
830
+ COPY_AREA_CELL: {
831
+ tableMenuMethod(params) {
832
+ handleCopyOrCut(params);
833
+ }
834
+ },
792
835
  /**
793
836
  * 剪贴单元格数据的值;如果启用 mouse-config.area 功能,则剪贴区域范围内的单元格数据,支持 Excel 和 WPS
794
837
  */
@@ -797,6 +840,14 @@ export const VxeUIPluginMenu = {
797
840
  handleCopyOrCut(params, true);
798
841
  }
799
842
  },
843
+ /**
844
+ * 剪贴单元格数据的值;用于 mouse-config.area 功能,剪贴区域范围内的单元格数据,支持 Excel 和 WPS
845
+ */
846
+ CUT_AREA_CELL: {
847
+ tableMenuMethod(params) {
848
+ handleCopyOrCut(params, true);
849
+ }
850
+ },
800
851
  /**
801
852
  * 粘贴从表格中被复制的数据;如果启用 mouse-config.area 功能,则粘贴区域范围内的单元格数据,不支持读取剪贴板
802
853
  */
@@ -819,6 +870,21 @@ export const VxeUIPluginMenu = {
819
870
  }
820
871
  }
821
872
  },
873
+ /**
874
+ * 粘贴从表格中被复制的数据;用于 mouse-config.area 功能,粘贴区域范围内的单元格数据,不支持读取剪贴板
875
+ */
876
+ PASTE_AREA_CELL: {
877
+ tableMenuMethod(params) {
878
+ const { $event, $table } = params;
879
+ const tableProps = $table.props;
880
+ const { mouseConfig } = tableProps;
881
+ const { computeMouseOpts } = $table.getComputeMaps();
882
+ const mouseOpts = computeMouseOpts.value;
883
+ if (mouseConfig && mouseOpts.area) {
884
+ $table.triggerPasteCellAreaEvent($event);
885
+ }
886
+ }
887
+ },
822
888
  /**
823
889
  * 如果启用 mouse-config.area 功能,如果所选区域内已存在合并单元格,则取消临时合并,否则临时合并
824
890
  */
@@ -1374,7 +1440,12 @@ export const VxeUIPluginMenu = {
1374
1440
  OPEN_FIND: {
1375
1441
  tableMenuMethod(params) {
1376
1442
  const { $event, $table } = params;
1377
- $table.triggerFNROpenEvent($event, 'find');
1443
+ if ($table.triggerFnrOpenEvent) {
1444
+ $table.triggerFnrOpenEvent($event, 'find');
1445
+ }
1446
+ else {
1447
+ $table.triggerFNROpenEvent($event, 'find');
1448
+ }
1378
1449
  }
1379
1450
  },
1380
1451
  /**
@@ -1383,7 +1454,12 @@ export const VxeUIPluginMenu = {
1383
1454
  OPEN_REPLACE: {
1384
1455
  tableMenuMethod(params) {
1385
1456
  const { $event, $table } = params;
1386
- $table.triggerFNROpenEvent($event, 'replace');
1457
+ if ($table.triggerFnrOpenEvent) {
1458
+ $table.triggerFnrOpenEvent($event, 'replace');
1459
+ }
1460
+ else {
1461
+ $table.triggerFNROpenEvent($event, 'replace');
1462
+ }
1387
1463
  }
1388
1464
  },
1389
1465
  /**
@@ -88,7 +88,7 @@ function handleCopyOrCut(params, isCut) {
88
88
  var _$table$getComputeMap = $table.getComputeMaps(),
89
89
  computeMouseOpts = _$table$getComputeMap.computeMouseOpts;
90
90
  var mouseOpts = computeMouseOpts.value;
91
- var text = '';
91
+ var text;
92
92
  if (mouseConfig && mouseOpts.area) {
93
93
  if (isCut) {
94
94
  $table.triggerCutCellAreaEvent($event);
@@ -251,10 +251,14 @@ function checkPrivilege(item, params) {
251
251
  }
252
252
  case 'EDIT_CELL':
253
253
  case 'CLEAR_CELL':
254
+ case 'CLEAR_AREA_CELL':
254
255
  case 'CLEAR_ROW':
255
256
  case 'COPY_CELL':
257
+ case 'COPY_AREA_CELL':
256
258
  case 'CUT_CELL':
259
+ case 'CUT_AREA_CELL':
257
260
  case 'PASTE_CELL':
261
+ case 'PASTE_AREA_CELL':
258
262
  case 'MERGE_OR_CLEAR':
259
263
  case 'MERGE_CELL':
260
264
  case 'REVERT_CELL':
@@ -325,14 +329,18 @@ function checkPrivilege(item, params) {
325
329
  break;
326
330
  }
327
331
  case 'COPY_CELL':
332
+ case 'COPY_AREA_CELL':
328
333
  case 'CUT_CELL':
334
+ case 'CUT_AREA_CELL':
329
335
  case 'PASTE_CELL':
336
+ case 'PASTE_AREA_CELL':
330
337
  {
331
338
  var cellAreas = mouseConfig && mouseOpts.area ? $table.getCellAreas() : [];
332
339
  item.disabled = cellAreas.length > 1;
333
340
  if (!item.disabled) {
334
341
  switch (code) {
335
342
  case 'PASTE_CELL':
343
+ case 'PASTE_AREA_CELL':
336
344
  {
337
345
  var clipboard = getClipboardObj();
338
346
  item.disabled = !clipboard || !clipboard.text;
@@ -475,11 +483,11 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
475
483
  var pVersion = 4;
476
484
  var sVersion = 11;
477
485
  if (!VxeUI.checkVersion(VxeUI.tableVersion, pVersion, sVersion)) {
478
- console.error("[@vxe-ui/plugin-menu 4.3.1] ".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"));
486
+ console.error("[@vxe-ui/plugin-menu 4.3.4] ".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"));
479
487
  }
480
488
  } else {
481
489
  if (!/^(4)\./.test(VxeUI.uiVersion || VxeUI.tableVersion)) {
482
- console.error('[@vxe-ui/plugin-menu 4.3.1] Requires vxe-table 4.7.0+ version. https://vxeui.com/other4/#/plugin-menu/install');
490
+ console.error('[@vxe-ui/plugin-menu 4.3.4] Requires vxe-table 4.7.0+ version. https://vxeui.com/other4/#/plugin-menu/install');
483
491
  }
484
492
  }
485
493
  pluginSetup(options);
@@ -547,6 +555,37 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
547
555
  }
548
556
  }
549
557
  },
558
+ /**
559
+ * 用于 mouse-config.area 功能,清除区域范围内的单元格数据
560
+ */
561
+ CLEAR_AREA_CELL: {
562
+ tableMenuMethod: function tableMenuMethod(params) {
563
+ var $table = params.$table,
564
+ row = params.row,
565
+ column = params.column;
566
+ if (row && column) {
567
+ var tableProps = $table.props;
568
+ var mouseConfig = tableProps.mouseConfig;
569
+ var _$table$getComputeMap5 = $table.getComputeMaps(),
570
+ computeMouseOpts = _$table$getComputeMap5.computeMouseOpts;
571
+ var mouseOpts = computeMouseOpts.value;
572
+ if (mouseConfig && mouseOpts.area) {
573
+ var cellAreas = $table.getCellAreas();
574
+ if (cellAreas && cellAreas.length) {
575
+ cellAreas.forEach(function (areaItem) {
576
+ var rows = areaItem.rows,
577
+ cols = areaItem.cols;
578
+ cols.forEach(function (column) {
579
+ rows.forEach(function (row) {
580
+ $table.clearData(row, column.field);
581
+ });
582
+ });
583
+ });
584
+ }
585
+ }
586
+ }
587
+ }
588
+ },
550
589
  /**
551
590
  * 清除行数据的值
552
591
  */
@@ -578,8 +617,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
578
617
  column = params.column;
579
618
  var tableProps = $table.props;
580
619
  var mouseConfig = tableProps.mouseConfig;
581
- var _$table$getComputeMap5 = $table.getComputeMaps(),
582
- computeMouseOpts = _$table$getComputeMap5.computeMouseOpts;
620
+ var _$table$getComputeMap6 = $table.getComputeMaps(),
621
+ computeMouseOpts = _$table$getComputeMap6.computeMouseOpts;
583
622
  var mouseOpts = computeMouseOpts.value;
584
623
  if (mouseConfig && mouseOpts.area) {
585
624
  var cellAreas = mouseConfig && mouseOpts.area ? $table.getCellAreas() : [];
@@ -611,8 +650,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
611
650
  var $table = params.$table;
612
651
  var tableProps = $table.props;
613
652
  var mouseConfig = tableProps.mouseConfig;
614
- var _$table$getComputeMap6 = $table.getComputeMaps(),
615
- computeMouseOpts = _$table$getComputeMap6.computeMouseOpts;
653
+ var _$table$getComputeMap7 = $table.getComputeMaps(),
654
+ computeMouseOpts = _$table$getComputeMap7.computeMouseOpts;
616
655
  var mouseOpts = computeMouseOpts.value;
617
656
  if (mouseConfig && mouseOpts.area) {
618
657
  var _$table$getTableData4 = $table.getTableData(),
@@ -638,8 +677,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
638
677
  column = params.column;
639
678
  var tableProps = $table.props;
640
679
  var mouseConfig = tableProps.mouseConfig;
641
- var _$table$getComputeMap7 = $table.getComputeMaps(),
642
- computeMouseOpts = _$table$getComputeMap7.computeMouseOpts;
680
+ var _$table$getComputeMap8 = $table.getComputeMaps(),
681
+ computeMouseOpts = _$table$getComputeMap8.computeMouseOpts;
643
682
  var mouseOpts = computeMouseOpts.value;
644
683
  if (row && column && mouseConfig && mouseOpts.area) {
645
684
  var _$table$getTableColum5 = $table.getTableColumn(),
@@ -680,8 +719,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
680
719
  column = params.column;
681
720
  var tableProps = $table.props;
682
721
  var mouseConfig = tableProps.mouseConfig;
683
- var _$table$getComputeMap8 = $table.getComputeMaps(),
684
- computeMouseOpts = _$table$getComputeMap8.computeMouseOpts;
722
+ var _$table$getComputeMap9 = $table.getComputeMaps(),
723
+ computeMouseOpts = _$table$getComputeMap9.computeMouseOpts;
685
724
  var mouseOpts = computeMouseOpts.value;
686
725
  if (row && column && mouseConfig && mouseOpts.area) {
687
726
  var _$table$getTableColum6 = $table.getTableColumn(),
@@ -722,8 +761,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
722
761
  column = params.column;
723
762
  var tableProps = $table.props;
724
763
  var mouseConfig = tableProps.mouseConfig;
725
- var _$table$getComputeMap9 = $table.getComputeMaps(),
726
- computeMouseOpts = _$table$getComputeMap9.computeMouseOpts;
764
+ var _$table$getComputeMap0 = $table.getComputeMaps(),
765
+ computeMouseOpts = _$table$getComputeMap0.computeMouseOpts;
727
766
  var mouseOpts = computeMouseOpts.value;
728
767
  if (row && column && mouseConfig && mouseOpts.area) {
729
768
  var _$table$getTableData5 = $table.getTableData(),
@@ -764,8 +803,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
764
803
  column = params.column;
765
804
  var tableProps = $table.props;
766
805
  var mouseConfig = tableProps.mouseConfig;
767
- var _$table$getComputeMap0 = $table.getComputeMaps(),
768
- computeMouseOpts = _$table$getComputeMap0.computeMouseOpts;
806
+ var _$table$getComputeMap1 = $table.getComputeMaps(),
807
+ computeMouseOpts = _$table$getComputeMap1.computeMouseOpts;
769
808
  var mouseOpts = computeMouseOpts.value;
770
809
  if (row && column && mouseConfig && mouseOpts.area) {
771
810
  var _$table$getTableData6 = $table.getTableData(),
@@ -807,8 +846,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
807
846
  if (row && column) {
808
847
  var tableProps = $table.props;
809
848
  var mouseConfig = tableProps.mouseConfig;
810
- var _$table$getComputeMap1 = $table.getComputeMaps(),
811
- computeMouseOpts = _$table$getComputeMap1.computeMouseOpts;
849
+ var _$table$getComputeMap10 = $table.getComputeMaps(),
850
+ computeMouseOpts = _$table$getComputeMap10.computeMouseOpts;
812
851
  var mouseOpts = computeMouseOpts.value;
813
852
  if (mouseConfig && mouseOpts.area) {
814
853
  var cellAreas = $table.getCellAreas();
@@ -884,6 +923,14 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
884
923
  handleCopyOrCut(params);
885
924
  }
886
925
  },
926
+ /**
927
+ * 复制单元格数据的值;用于 mouse-config.area 功能,复制区域范围内的单元格数据,支持 Excel 和 WPS
928
+ */
929
+ COPY_AREA_CELL: {
930
+ tableMenuMethod: function tableMenuMethod(params) {
931
+ handleCopyOrCut(params);
932
+ }
933
+ },
887
934
  /**
888
935
  * 剪贴单元格数据的值;如果启用 mouse-config.area 功能,则剪贴区域范围内的单元格数据,支持 Excel 和 WPS
889
936
  */
@@ -892,6 +939,14 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
892
939
  handleCopyOrCut(params, true);
893
940
  }
894
941
  },
942
+ /**
943
+ * 剪贴单元格数据的值;用于 mouse-config.area 功能,剪贴区域范围内的单元格数据,支持 Excel 和 WPS
944
+ */
945
+ CUT_AREA_CELL: {
946
+ tableMenuMethod: function tableMenuMethod(params) {
947
+ handleCopyOrCut(params, true);
948
+ }
949
+ },
895
950
  /**
896
951
  * 粘贴从表格中被复制的数据;如果启用 mouse-config.area 功能,则粘贴区域范围内的单元格数据,不支持读取剪贴板
897
952
  */
@@ -903,8 +958,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
903
958
  column = params.column;
904
959
  var tableProps = $table.props;
905
960
  var mouseConfig = tableProps.mouseConfig;
906
- var _$table$getComputeMap10 = $table.getComputeMaps(),
907
- computeMouseOpts = _$table$getComputeMap10.computeMouseOpts;
961
+ var _$table$getComputeMap11 = $table.getComputeMaps(),
962
+ computeMouseOpts = _$table$getComputeMap11.computeMouseOpts;
908
963
  var mouseOpts = computeMouseOpts.value;
909
964
  if (mouseConfig && mouseOpts.area) {
910
965
  $table.triggerPasteCellAreaEvent($event);
@@ -917,6 +972,23 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
917
972
  }
918
973
  }
919
974
  },
975
+ /**
976
+ * 粘贴从表格中被复制的数据;用于 mouse-config.area 功能,粘贴区域范围内的单元格数据,不支持读取剪贴板
977
+ */
978
+ PASTE_AREA_CELL: {
979
+ tableMenuMethod: function tableMenuMethod(params) {
980
+ var $event = params.$event,
981
+ $table = params.$table;
982
+ var tableProps = $table.props;
983
+ var mouseConfig = tableProps.mouseConfig;
984
+ var _$table$getComputeMap12 = $table.getComputeMaps(),
985
+ computeMouseOpts = _$table$getComputeMap12.computeMouseOpts;
986
+ var mouseOpts = computeMouseOpts.value;
987
+ if (mouseConfig && mouseOpts.area) {
988
+ $table.triggerPasteCellAreaEvent($event);
989
+ }
990
+ }
991
+ },
920
992
  /**
921
993
  * 如果启用 mouse-config.area 功能,如果所选区域内已存在合并单元格,则取消临时合并,否则临时合并
922
994
  */
@@ -1080,8 +1152,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
1080
1152
  column = params.column;
1081
1153
  var tableProps = $table.props;
1082
1154
  var mouseConfig = tableProps.mouseConfig;
1083
- var _$table$getComputeMap11 = $table.getComputeMaps(),
1084
- computeMouseOpts = _$table$getComputeMap11.computeMouseOpts;
1155
+ var _$table$getComputeMap13 = $table.getComputeMaps(),
1156
+ computeMouseOpts = _$table$getComputeMap13.computeMouseOpts;
1085
1157
  var mouseOpts = computeMouseOpts.value;
1086
1158
  $table.insert(menu.params || {}).then(function (_ref7) {
1087
1159
  var rows = _ref7.rows;
@@ -1107,8 +1179,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
1107
1179
  column = params.column;
1108
1180
  var tableProps = $table.props;
1109
1181
  var mouseConfig = tableProps.mouseConfig;
1110
- var _$table$getComputeMap12 = $table.getComputeMaps(),
1111
- computeMouseOpts = _$table$getComputeMap12.computeMouseOpts;
1182
+ var _$table$getComputeMap14 = $table.getComputeMaps(),
1183
+ computeMouseOpts = _$table$getComputeMap14.computeMouseOpts;
1112
1184
  var mouseOpts = computeMouseOpts.value;
1113
1185
  (row ? $table.insertAt(menu.params || {}, row) : $table.insert(menu.params || {})).then(function (_ref8) {
1114
1186
  var rows = _ref8.rows;
@@ -1134,8 +1206,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
1134
1206
  column = params.column;
1135
1207
  var tableProps = $table.props;
1136
1208
  var mouseConfig = tableProps.mouseConfig;
1137
- var _$table$getComputeMap13 = $table.getComputeMaps(),
1138
- computeMouseOpts = _$table$getComputeMap13.computeMouseOpts;
1209
+ var _$table$getComputeMap15 = $table.getComputeMaps(),
1210
+ computeMouseOpts = _$table$getComputeMap15.computeMouseOpts;
1139
1211
  var mouseOpts = computeMouseOpts.value;
1140
1212
  selectMultipleRows().then(function (_ref9) {
1141
1213
  var size = _ref9.size;
@@ -1169,8 +1241,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
1169
1241
  column = params.column;
1170
1242
  var tableProps = $table.props;
1171
1243
  var mouseConfig = tableProps.mouseConfig;
1172
- var _$table$getComputeMap14 = $table.getComputeMaps(),
1173
- computeMouseOpts = _$table$getComputeMap14.computeMouseOpts;
1244
+ var _$table$getComputeMap16 = $table.getComputeMaps(),
1245
+ computeMouseOpts = _$table$getComputeMap16.computeMouseOpts;
1174
1246
  var mouseOpts = computeMouseOpts.value;
1175
1247
  (row ? $table.insertNextAt(menu.params || {}, row) : $table.insert(menu.params || {})).then(function (_ref1) {
1176
1248
  var rows = _ref1.rows;
@@ -1196,8 +1268,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
1196
1268
  column = params.column;
1197
1269
  var tableProps = $table.props;
1198
1270
  var mouseConfig = tableProps.mouseConfig;
1199
- var _$table$getComputeMap15 = $table.getComputeMaps(),
1200
- computeMouseOpts = _$table$getComputeMap15.computeMouseOpts;
1271
+ var _$table$getComputeMap17 = $table.getComputeMaps(),
1272
+ computeMouseOpts = _$table$getComputeMap17.computeMouseOpts;
1201
1273
  var mouseOpts = computeMouseOpts.value;
1202
1274
  selectMultipleRows().then(function (_ref10) {
1203
1275
  var size = _ref10.size;
@@ -1409,8 +1481,8 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
1409
1481
  row = params.row;
1410
1482
  var tableProps = $table.props;
1411
1483
  var mouseConfig = tableProps.mouseConfig;
1412
- var _$table$getComputeMap16 = $table.getComputeMaps(),
1413
- computeMouseOpts = _$table$getComputeMap16.computeMouseOpts;
1484
+ var _$table$getComputeMap18 = $table.getComputeMaps(),
1485
+ computeMouseOpts = _$table$getComputeMap18.computeMouseOpts;
1414
1486
  var mouseOpts = computeMouseOpts.value;
1415
1487
  if (mouseConfig && mouseOpts.area) {
1416
1488
  var cellAreas = $table.getCellAreas();
@@ -1617,7 +1689,11 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
1617
1689
  tableMenuMethod: function tableMenuMethod(params) {
1618
1690
  var $event = params.$event,
1619
1691
  $table = params.$table;
1620
- $table.triggerFNROpenEvent($event, 'find');
1692
+ if ($table.triggerFnrOpenEvent) {
1693
+ $table.triggerFnrOpenEvent($event, 'find');
1694
+ } else {
1695
+ $table.triggerFNROpenEvent($event, 'find');
1696
+ }
1621
1697
  }
1622
1698
  },
1623
1699
  /**
@@ -1627,7 +1703,11 @@ var VxeUIPluginMenu = exports.VxeUIPluginMenu = {
1627
1703
  tableMenuMethod: function tableMenuMethod(params) {
1628
1704
  var $event = params.$event,
1629
1705
  $table = params.$table;
1630
- $table.triggerFNROpenEvent($event, 'replace');
1706
+ if ($table.triggerFnrOpenEvent) {
1707
+ $table.triggerFnrOpenEvent($event, 'replace');
1708
+ } else {
1709
+ $table.triggerFNROpenEvent($event, 'replace');
1710
+ }
1631
1711
  }
1632
1712
  },
1633
1713
  /**