@whitesev/pops 3.0.2 → 3.1.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.
Files changed (41) hide show
  1. package/dist/index.amd.js +87 -66
  2. package/dist/index.amd.js.map +1 -1
  3. package/dist/index.amd.min.js +1 -1
  4. package/dist/index.amd.min.js.map +1 -1
  5. package/dist/index.cjs.js +87 -66
  6. package/dist/index.cjs.js.map +1 -1
  7. package/dist/index.cjs.min.js +1 -1
  8. package/dist/index.cjs.min.js.map +1 -1
  9. package/dist/index.esm.js +87 -66
  10. package/dist/index.esm.js.map +1 -1
  11. package/dist/index.esm.min.js +1 -1
  12. package/dist/index.esm.min.js.map +1 -1
  13. package/dist/index.iife.js +87 -66
  14. package/dist/index.iife.js.map +1 -1
  15. package/dist/index.iife.min.js +1 -1
  16. package/dist/index.iife.min.js.map +1 -1
  17. package/dist/index.system.js +87 -66
  18. package/dist/index.system.js.map +1 -1
  19. package/dist/index.system.min.js +1 -1
  20. package/dist/index.system.min.js.map +1 -1
  21. package/dist/index.umd.js +87 -66
  22. package/dist/index.umd.js.map +1 -1
  23. package/dist/index.umd.min.js +1 -1
  24. package/dist/index.umd.min.js.map +1 -1
  25. package/dist/types/src/Pops.d.ts +20 -20
  26. package/dist/types/src/components/panel/handlerComponents.d.ts +4 -6
  27. package/dist/types/src/components/tooltip/index.d.ts +2 -2
  28. package/dist/types/src/components/tooltip/types/index.d.ts +3 -3
  29. package/dist/types/src/types/PopsDOMUtilsEventType.d.ts +22 -0
  30. package/dist/types/src/utils/PopsDOMUtils.d.ts +29 -29
  31. package/dist/types/src/utils/PopsInstanceUtils.d.ts +1 -1
  32. package/package.json +3 -3
  33. package/src/components/folder/index.ts +3 -3
  34. package/src/components/panel/handlerComponents.ts +8 -10
  35. package/src/components/rightClickMenu/index.ts +3 -3
  36. package/src/components/tooltip/defaultConfig.ts +2 -2
  37. package/src/components/tooltip/index.ts +4 -4
  38. package/src/components/tooltip/types/index.ts +3 -3
  39. package/src/types/PopsDOMUtilsEventType.d.ts +22 -0
  40. package/src/utils/PopsDOMUtils.ts +90 -59
  41. package/src/utils/PopsInstanceUtils.ts +5 -5
package/dist/index.amd.js CHANGED
@@ -872,22 +872,25 @@ define((function () { 'use strict';
872
872
  }
873
873
  return option;
874
874
  }
875
- const DOMUtilsContext = this;
875
+ const that = this;
876
876
  // eslint-disable-next-line prefer-rest-params
877
877
  const args = arguments;
878
878
  if (typeof element === "string") {
879
- element = DOMUtilsContext.selectorAll(element);
879
+ element = that.selectorAll(element);
880
880
  }
881
881
  if (element == null) {
882
- return;
882
+ return {
883
+ off() { },
884
+ emit() { },
885
+ };
883
886
  }
884
- let elementList = [];
887
+ let $elList = [];
885
888
  if (element instanceof NodeList || Array.isArray(element)) {
886
889
  element = element;
887
- elementList = [...element];
890
+ $elList = [...element];
888
891
  }
889
892
  else {
890
- elementList.push(element);
893
+ $elList.push(element);
891
894
  }
892
895
  // 事件名
893
896
  let eventTypeList = [];
@@ -929,10 +932,10 @@ define((function () { 'use strict';
929
932
  */
930
933
  function checkOptionOnceToRemoveEventListener() {
931
934
  if (listenerOption.once) {
932
- DOMUtilsContext.off(element, eventType, selector, callback, option);
935
+ that.off(element, eventType, selector, callback, option);
933
936
  }
934
937
  }
935
- elementList.forEach((elementItem) => {
938
+ $elList.forEach((elementItem) => {
936
939
  /**
937
940
  * 事件回调
938
941
  * @param event
@@ -952,12 +955,12 @@ define((function () { 'use strict';
952
955
  }
953
956
  const findValue = selectorList.find((selectorItem) => {
954
957
  // 判断目标元素是否匹配选择器
955
- if (DOMUtilsContext.matches(eventTarget, selectorItem)) {
958
+ if (that.matches(eventTarget, selectorItem)) {
956
959
  // 当前目标可以被selector所匹配到
957
960
  return true;
958
961
  }
959
962
  // 在上层与主元素之间寻找可以被selector所匹配到的
960
- const $closestMatches = DOMUtilsContext.closest(eventTarget, selectorItem);
963
+ const $closestMatches = that.closest(eventTarget, selectorItem);
961
964
  if ($closestMatches && totalParent?.contains($closestMatches)) {
962
965
  eventTarget = $closestMatches;
963
966
  return true;
@@ -1003,6 +1006,23 @@ define((function () { 'use strict';
1003
1006
  Reflect.set(elementItem, SymbolEvents, elementEvents);
1004
1007
  });
1005
1008
  });
1009
+ return {
1010
+ /**
1011
+ * 取消绑定的监听事件
1012
+ * @param filter (可选)过滤函数,对元素属性上的事件进行过滤出想要删除的事件
1013
+ */
1014
+ off: (filter) => {
1015
+ that.off($elList, eventTypeList, selectorList, listenerCallBack, listenerOption, filter);
1016
+ },
1017
+ /**
1018
+ * 主动触发事件
1019
+ * @param details 赋予触发的Event的额外属性,如果是Event类型,那么将自动代替默认new的Event对象
1020
+ * @param useDispatchToEmit 是否使用dispatchEvent来触发事件,默认true,如果为false,则直接调用callback,但是这种会让使用了selectorTarget的没有值
1021
+ */
1022
+ emit: (details, useDispatchToEmit) => {
1023
+ that.emit($elList, eventTypeList, details, useDispatchToEmit);
1024
+ },
1025
+ };
1006
1026
  }
1007
1027
  off(element, eventType, selector, callback, option, filter) {
1008
1028
  /**
@@ -1180,11 +1200,11 @@ define((function () { 'use strict';
1180
1200
  * 等待文档加载完成后执行指定的函数
1181
1201
  * @param callback 需要执行的函数
1182
1202
  * @example
1183
- * DOMUtils.ready(function(){
1203
+ * DOMUtils.onReady(function(){
1184
1204
  * console.log("文档加载完毕")
1185
1205
  * })
1186
1206
  */
1187
- ready(callback) {
1207
+ onReady(callback) {
1188
1208
  const that = this;
1189
1209
  if (typeof callback !== "function") {
1190
1210
  return;
@@ -1257,16 +1277,16 @@ define((function () { 'use strict';
1257
1277
  * @param element 需要触发的元素|元素数组|window
1258
1278
  * @param eventType 需要触发的事件
1259
1279
  * @param details 赋予触发的Event的额外属性,如果是Event类型,那么将自动代替默认new的Event对象
1260
- * @param useDispatchToTriggerEvent 是否使用dispatchEvent来触发事件,默认true
1280
+ * @param useDispatchToEmitEvent 是否使用dispatchEvent来触发事件,默认true
1261
1281
  * @example
1262
1282
  * // 触发元素a.xx的click事件
1263
- * DOMUtils.trigger(document.querySelector("a.xx"),"click")
1264
- * DOMUtils.trigger("a.xx","click")
1283
+ * DOMUtils.emit(document.querySelector("a.xx"),"click")
1284
+ * DOMUtils.emit("a.xx","click")
1265
1285
  * // 触发元素a.xx的click、tap、hover事件
1266
- * DOMUtils.trigger(document.querySelector("a.xx"),"click tap hover")
1267
- * DOMUtils.trigger("a.xx",["click","tap","hover"])
1286
+ * DOMUtils.emit(document.querySelector("a.xx"),"click tap hover")
1287
+ * DOMUtils.emit("a.xx",["click","tap","hover"])
1268
1288
  */
1269
- trigger(element, eventType, details, useDispatchToTriggerEvent = true) {
1289
+ emit(element, eventType, details, useDispatchToEmitEvent = true) {
1270
1290
  if (typeof element === "string") {
1271
1291
  element = PopsCore.document.querySelector(element);
1272
1292
  }
@@ -1304,7 +1324,7 @@ define((function () { 'use strict';
1304
1324
  });
1305
1325
  }
1306
1326
  }
1307
- if (useDispatchToTriggerEvent == false && _eventType_ in events) {
1327
+ if (useDispatchToEmitEvent == false && _eventType_ in events) {
1308
1328
  events[_eventType_].forEach((eventsItem) => {
1309
1329
  eventsItem.callback(event);
1310
1330
  });
@@ -1320,7 +1340,7 @@ define((function () { 'use strict';
1320
1340
  * @param element 目标元素
1321
1341
  * @param handler (可选)事件处理函数
1322
1342
  * @param details (可选)赋予触发的Event的额外属性
1323
- * @param useDispatchToTriggerEvent (可选)是否使用dispatchEvent来触发事件,默认true
1343
+ * @param useDispatchToEmitEvent (可选)是否使用dispatchEvent来触发事件,默认true
1324
1344
  * @example
1325
1345
  * // 触发元素a.xx的click事件
1326
1346
  * DOMUtils.click(document.querySelector("a.xx"))
@@ -1329,7 +1349,7 @@ define((function () { 'use strict';
1329
1349
  * console.log("触发click事件成功")
1330
1350
  * })
1331
1351
  * */
1332
- click(element, handler, details, useDispatchToTriggerEvent) {
1352
+ click(element, handler, details, useDispatchToEmitEvent) {
1333
1353
  const DOMUtilsContext = this;
1334
1354
  if (typeof element === "string") {
1335
1355
  element = PopsCore.document.querySelector(element);
@@ -1338,7 +1358,7 @@ define((function () { 'use strict';
1338
1358
  return;
1339
1359
  }
1340
1360
  if (handler == null) {
1341
- DOMUtilsContext.trigger(element, "click", details, useDispatchToTriggerEvent);
1361
+ DOMUtilsContext.emit(element, "click", details, useDispatchToEmitEvent);
1342
1362
  }
1343
1363
  else {
1344
1364
  DOMUtilsContext.on(element, "click", null, handler);
@@ -1349,7 +1369,7 @@ define((function () { 'use strict';
1349
1369
  * @param element 目标元素
1350
1370
  * @param handler (可选)事件处理函数
1351
1371
  * @param details (可选)赋予触发的Event的额外属性
1352
- * @param useDispatchToTriggerEvent (可选)是否使用dispatchEvent来触发事件,默认true
1372
+ * @param useDispatchToEmitEvent (可选)是否使用dispatchEvent来触发事件,默认true
1353
1373
  * @example
1354
1374
  * // 触发元素a.xx的blur事件
1355
1375
  * DOMUtils.blur(document.querySelector("a.xx"))
@@ -1358,7 +1378,7 @@ define((function () { 'use strict';
1358
1378
  * console.log("触发blur事件成功")
1359
1379
  * })
1360
1380
  * */
1361
- blur(element, handler, details, useDispatchToTriggerEvent) {
1381
+ blur(element, handler, details, useDispatchToEmitEvent) {
1362
1382
  const DOMUtilsContext = this;
1363
1383
  if (typeof element === "string") {
1364
1384
  element = PopsCore.document.querySelector(element);
@@ -1367,7 +1387,7 @@ define((function () { 'use strict';
1367
1387
  return;
1368
1388
  }
1369
1389
  if (handler === null) {
1370
- DOMUtilsContext.trigger(element, "blur", details, useDispatchToTriggerEvent);
1390
+ DOMUtilsContext.emit(element, "blur", details, useDispatchToEmitEvent);
1371
1391
  }
1372
1392
  else {
1373
1393
  DOMUtilsContext.on(element, "blur", null, handler);
@@ -1378,7 +1398,7 @@ define((function () { 'use strict';
1378
1398
  * @param element 目标元素
1379
1399
  * @param handler (可选)事件处理函数
1380
1400
  * @param details (可选)赋予触发的Event的额外属性
1381
- * @param useDispatchToTriggerEvent (可选)是否使用dispatchEvent来触发事件,默认true
1401
+ * @param useDispatchToEmitEvent (可选)是否使用dispatchEvent来触发事件,默认true
1382
1402
  * @example
1383
1403
  * // 触发元素a.xx的focus事件
1384
1404
  * DOMUtils.focus(document.querySelector("a.xx"))
@@ -1387,7 +1407,7 @@ define((function () { 'use strict';
1387
1407
  * console.log("触发focus事件成功")
1388
1408
  * })
1389
1409
  * */
1390
- focus(element, handler, details, useDispatchToTriggerEvent) {
1410
+ focus(element, handler, details, useDispatchToEmitEvent) {
1391
1411
  const DOMUtilsContext = this;
1392
1412
  if (typeof element === "string") {
1393
1413
  element = PopsCore.document.querySelector(element);
@@ -1396,7 +1416,7 @@ define((function () { 'use strict';
1396
1416
  return;
1397
1417
  }
1398
1418
  if (handler == null) {
1399
- DOMUtilsContext.trigger(element, "focus", details, useDispatchToTriggerEvent);
1419
+ DOMUtilsContext.emit(element, "focus", details, useDispatchToEmitEvent);
1400
1420
  }
1401
1421
  else {
1402
1422
  DOMUtilsContext.on(element, "focus", null, handler);
@@ -1416,7 +1436,7 @@ define((function () { 'use strict';
1416
1436
  * console.log("移入/移除");
1417
1437
  * })
1418
1438
  */
1419
- hover(element, handler, option) {
1439
+ onHover(element, handler, option) {
1420
1440
  const DOMUtilsContext = this;
1421
1441
  if (typeof element === "string") {
1422
1442
  element = PopsCore.document.querySelector(element);
@@ -1442,7 +1462,7 @@ define((function () { 'use strict';
1442
1462
  * console.log("按键松开");
1443
1463
  * })
1444
1464
  */
1445
- keyup(target, handler, option) {
1465
+ onKeyup(target, handler, option) {
1446
1466
  const DOMUtilsContext = this;
1447
1467
  if (target == null) {
1448
1468
  return;
@@ -1467,7 +1487,7 @@ define((function () { 'use strict';
1467
1487
  * console.log("按键按下");
1468
1488
  * })
1469
1489
  */
1470
- keydown(target, handler, option) {
1490
+ onKeydown(target, handler, option) {
1471
1491
  const DOMUtilsContext = this;
1472
1492
  if (target == null) {
1473
1493
  return;
@@ -1492,7 +1512,7 @@ define((function () { 'use strict';
1492
1512
  * console.log("按键按下");
1493
1513
  * })
1494
1514
  */
1495
- keypress(target, handler, option) {
1515
+ onKeypress(target, handler, option) {
1496
1516
  const DOMUtilsContext = this;
1497
1517
  if (target == null) {
1498
1518
  return;
@@ -2551,6 +2571,9 @@ define((function () { 'use strict';
2551
2571
  * 监input、textarea的输入框值改变的事件
2552
2572
  */
2553
2573
  onInput($el, callback, option) {
2574
+ /**
2575
+ * 是否正在输入中
2576
+ */
2554
2577
  let isComposite = false;
2555
2578
  const __callback = async (event) => {
2556
2579
  if (isComposite)
@@ -2562,18 +2585,18 @@ define((function () { 'use strict';
2562
2585
  };
2563
2586
  const __composition_end_callback = () => {
2564
2587
  isComposite = false;
2565
- this.trigger($el, "input", {
2588
+ this.emit($el, "input", {
2566
2589
  isComposite,
2567
2590
  });
2568
2591
  };
2569
- this.on($el, "input", __callback, option);
2570
- this.on($el, "compositionstart", __composition_start_callback, option);
2571
- this.on($el, "compositionend", __composition_end_callback, option);
2592
+ const inputListener = this.on($el, "input", __callback, option);
2593
+ const compositionStartListener = this.on($el, "compositionstart", __composition_start_callback, option);
2594
+ const compositionEndListener = this.on($el, "compositionend", __composition_end_callback, option);
2572
2595
  return {
2573
2596
  off: () => {
2574
- this.off($el, "input", __callback, option);
2575
- this.off($el, "compositionstart", __composition_start_callback, option);
2576
- this.off($el, "compositionend", __composition_end_callback, option);
2597
+ inputListener.off();
2598
+ compositionStartListener.off();
2599
+ compositionEndListener.off();
2577
2600
  },
2578
2601
  };
2579
2602
  }
@@ -3310,7 +3333,7 @@ define((function () { 'use strict';
3310
3333
  popsDOMUtils.on($pops, popsDOMUtils.getTransitionEndNameList(), closeCallBack);
3311
3334
  const popsTransForm = getComputedStyle($pops).transform;
3312
3335
  if (popsTransForm !== "none") {
3313
- popsDOMUtils.trigger($pops, popsDOMUtils.getTransitionEndNameList(), void 0, true);
3336
+ popsDOMUtils.emit($pops, popsDOMUtils.getTransitionEndNameList(), void 0, true);
3314
3337
  return;
3315
3338
  }
3316
3339
  if (["top"].includes(drawerConfig.direction)) {
@@ -3353,7 +3376,7 @@ define((function () { 'use strict';
3353
3376
  limit: true,
3354
3377
  extraDistance: 3,
3355
3378
  container: PopsCore.globalThis,
3356
- triggerClick: true,
3379
+ emitClick: true,
3357
3380
  }, options);
3358
3381
  let isMove = false;
3359
3382
  // 点击元素,left偏移
@@ -3504,11 +3527,11 @@ define((function () { 'use strict';
3504
3527
  }
3505
3528
  }
3506
3529
  });
3507
- if (options.triggerClick) {
3530
+ if (options.emitClick) {
3508
3531
  // 因为会覆盖上面的点击事件,主动触发一下
3509
3532
  anyTouchElement.on(["tap"], function (event) {
3510
3533
  event.changedPoints.forEach((item) => {
3511
- popsDOMUtils.trigger(item.target, "click", void 0, true);
3534
+ popsDOMUtils.emit(item.target, "click", void 0, true);
3512
3535
  });
3513
3536
  });
3514
3537
  }
@@ -5244,17 +5267,17 @@ define((function () { 'use strict';
5244
5267
  });
5245
5268
  // 设置默认触发的arrow
5246
5269
  if (config.sort.name === "fileName") {
5247
- popsDOMUtils.trigger(folderListSortFileNameElement, "click", {
5270
+ popsDOMUtils.emit(folderListSortFileNameElement, "click", {
5248
5271
  notChangeSortRule: true,
5249
5272
  });
5250
5273
  }
5251
5274
  else if (config.sort.name === "latestTime") {
5252
- popsDOMUtils.trigger(folderListSortLatestTimeElement, "click", {
5275
+ popsDOMUtils.emit(folderListSortLatestTimeElement, "click", {
5253
5276
  notChangeSortRule: true,
5254
5277
  });
5255
5278
  }
5256
5279
  else if (config.sort.name === "fileSize") {
5257
- popsDOMUtils.trigger(folderListSortFileSizeElement, "click", {
5280
+ popsDOMUtils.emit(folderListSortFileSizeElement, "click", {
5258
5281
  notChangeSortRule: true,
5259
5282
  });
5260
5283
  }
@@ -7050,8 +7073,8 @@ define((function () { 'use strict';
7050
7073
  className: "",
7051
7074
  isFixed: false,
7052
7075
  alwaysShow: false,
7053
- triggerShowEventName: "mouseenter touchstart",
7054
- triggerCloseEventName: "mouseleave touchend",
7076
+ onShowEventName: "mouseenter touchstart",
7077
+ onCloseEventName: "mouseleave touchend",
7055
7078
  zIndex: 10000,
7056
7079
  only: false,
7057
7080
  eventOption: {
@@ -7382,13 +7405,13 @@ define((function () { 'use strict';
7382
7405
  * 绑定 显示事件
7383
7406
  */
7384
7407
  onShowEvent() {
7385
- popsDOMUtils.on(this.$data.config.$target, this.$data.config.triggerShowEventName, this.show, this.$data.config.eventOption);
7408
+ popsDOMUtils.on(this.$data.config.$target, this.$data.config.onShowEventName, this.show, this.$data.config.eventOption);
7386
7409
  }
7387
7410
  /**
7388
7411
  * 取消绑定 显示事件
7389
7412
  */
7390
7413
  offShowEvent() {
7391
- popsDOMUtils.off(this.$data.config.$target, this.$data.config.triggerShowEventName, this.show, {
7414
+ popsDOMUtils.off(this.$data.config.$target, this.$data.config.onShowEventName, this.show, {
7392
7415
  capture: true,
7393
7416
  });
7394
7417
  }
@@ -7443,13 +7466,13 @@ define((function () { 'use strict';
7443
7466
  * 绑定 关闭事件
7444
7467
  */
7445
7468
  onCloseEvent() {
7446
- popsDOMUtils.on(this.$data.config.$target, this.$data.config.triggerCloseEventName, this.close, this.$data.config.eventOption);
7469
+ popsDOMUtils.on(this.$data.config.$target, this.$data.config.onCloseEventName, this.close, this.$data.config.eventOption);
7447
7470
  }
7448
7471
  /**
7449
7472
  * 取消绑定 关闭事件
7450
7473
  */
7451
7474
  offCloseEvent() {
7452
- popsDOMUtils.off(this.$data.config.$target, this.$data.config.triggerCloseEventName, this.close, {
7475
+ popsDOMUtils.off(this.$data.config.$target, this.$data.config.onCloseEventName, this.close, {
7453
7476
  capture: true,
7454
7477
  });
7455
7478
  }
@@ -8858,7 +8881,7 @@ define((function () { 'use strict';
8858
8881
  /**
8859
8882
  * 主动触发输入框改变事件
8860
8883
  */
8861
- triggerValueChange() {
8884
+ emitValueChange() {
8862
8885
  this.$el.input.dispatchEvent(new Event("input"));
8863
8886
  },
8864
8887
  /**
@@ -9628,7 +9651,6 @@ define((function () { 'use strict';
9628
9651
  /**
9629
9652
  * 添加选中信息
9630
9653
  * @param data 选择项的数据
9631
- * @param [triggerValueChangeCallBack=true] 主动触发值改变回调
9632
9654
  */
9633
9655
  addSelectedItemInfo(data) {
9634
9656
  this.resetCurrentSelectedInfo();
@@ -10038,7 +10060,6 @@ define((function () { 'use strict';
10038
10060
  /**
10039
10061
  * 添加选中信息
10040
10062
  * @param data 选择项的数据
10041
- * @param [triggerValueChangeCallBack=true] 主动触发值改变回调
10042
10063
  */
10043
10064
  addSelectedItemInfo(data) {
10044
10065
  this.resetCurrentSelectedInfo();
@@ -10749,11 +10770,11 @@ define((function () { 'use strict';
10749
10770
  /**
10750
10771
  * 从保存的已选中的信息列表中移除目标信息
10751
10772
  * @param data 需要移除的信息
10752
- * @param [triggerValueChangeCallBack=true] 是否触发值改变的回调
10773
+ * @param [emitValueChangeCallBack=true] 是否触发值改变的回调
10753
10774
  * + true (默认)触发值改变的回调
10754
10775
  * + false 不触发值改变的回调
10755
10776
  */
10756
- removeSelectedInfo(data, triggerValueChangeCallBack = true) {
10777
+ removeSelectedInfo(data, emitValueChangeCallBack = true) {
10757
10778
  for (let index = 0; index < this.$data.selectedDataList.length; index++) {
10758
10779
  const selectInfo = this.$data.selectedDataList[index];
10759
10780
  if (selectInfo.value === data.value) {
@@ -10761,7 +10782,7 @@ define((function () { 'use strict';
10761
10782
  break;
10762
10783
  }
10763
10784
  }
10764
- triggerValueChangeCallBack && this.onValueChange();
10785
+ emitValueChangeCallBack && this.onValueChange();
10765
10786
  },
10766
10787
  /** 显示输入框 */
10767
10788
  showInputWrapper() {
@@ -11178,7 +11199,7 @@ define((function () { 'use strict';
11178
11199
  else {
11179
11200
  leaveViewTransition();
11180
11201
  }
11181
- that.triggerRenderRightContainer($currentSection);
11202
+ that.emitRenderRightContainer($currentSection);
11182
11203
  }, {
11183
11204
  once: true,
11184
11205
  });
@@ -11220,7 +11241,7 @@ define((function () { 'use strict';
11220
11241
  $sectionBodyContainer: $deepMenuMain,
11221
11242
  });
11222
11243
  }
11223
- that.triggerRenderRightContainer($deepMenuSection);
11244
+ that.emitRenderRightContainer($deepMenuSection);
11224
11245
  },
11225
11246
  /** 设置项的点击事件 */
11226
11247
  onLiClick() {
@@ -11381,7 +11402,7 @@ define((function () { 'use strict';
11381
11402
  * 主动触发触发渲染右侧容器的事件
11382
11403
  * @param $container 容器
11383
11404
  */
11384
- triggerRenderRightContainer($container) {
11405
+ emitRenderRightContainer($container) {
11385
11406
  const dataViewConfig = Reflect.get($container, this.$data.nodeStoreConfigKey);
11386
11407
  this.$el.$pops.dispatchEvent(new CustomEvent("pops:renderRightContainer", {
11387
11408
  detail: {
@@ -11446,7 +11467,7 @@ define((function () { 'use strict';
11446
11467
  return;
11447
11468
  }
11448
11469
  }
11449
- this.triggerRenderRightContainer(this.$el.$panelContentSectionContainer);
11470
+ this.emitRenderRightContainer(this.$el.$panelContentSectionContainer);
11450
11471
  });
11451
11472
  },
11452
11473
  };
@@ -12380,15 +12401,15 @@ define((function () { 'use strict';
12380
12401
  }
12381
12402
  // 鼠标|触摸 移入事件
12382
12403
  // 在移动端会先触发touchstart再然后mouseenter
12383
- let isTriggerTouchEvent = false;
12404
+ let isEmitTouchEvent = false;
12384
12405
  /**
12385
12406
  * 鼠标|触摸 移入事件
12386
12407
  */
12387
12408
  function liElementHoverEvent(event) {
12388
12409
  if (event.type === "touchstart") {
12389
- isTriggerTouchEvent = true;
12410
+ isEmitTouchEvent = true;
12390
12411
  }
12391
- if (isTriggerTouchEvent && event.type === "mouseenter") {
12412
+ if (isEmitTouchEvent && event.type === "mouseenter") {
12392
12413
  return;
12393
12414
  }
12394
12415
  Array.from(menuULElement.children).forEach((liElement) => {
@@ -13340,7 +13361,7 @@ define((function () { 'use strict';
13340
13361
  },
13341
13362
  };
13342
13363
 
13343
- const version = "3.0.2";
13364
+ const version = "3.1.0";
13344
13365
 
13345
13366
  class Pops {
13346
13367
  /** 配置 */