@whitesev/pops 2.0.12 → 2.0.14
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.amd.js +9 -6
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +9 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +9 -6
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +9 -6
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +9 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/components/rightClickMenu/indexType.d.ts +5 -3
- package/package.json +2 -1
- package/src/components/rightClickMenu/index.ts +10 -6
- package/src/components/rightClickMenu/indexType.ts +5 -3
package/dist/index.amd.js
CHANGED
|
@@ -10256,7 +10256,7 @@ define((function () { 'use strict';
|
|
|
10256
10256
|
if (typeof item.icon === "string" && item.icon.trim() !== "") {
|
|
10257
10257
|
let iconSVGHTML = PopsIcon.getIcon(item.icon) ?? item.icon;
|
|
10258
10258
|
let iconElement = popsDOMUtils.parseTextToDOM(
|
|
10259
|
-
/*html*/ `<i class="pops-${PopsType}-icon" is-loading="${item.iconIsLoading}">${iconSVGHTML}</i>`);
|
|
10259
|
+
/*html*/ `<i class="pops-${PopsType}-icon" is-loading="${item.iconIsLoading ?? false}">${iconSVGHTML}</i>`);
|
|
10260
10260
|
menuLiElement.appendChild(iconElement);
|
|
10261
10261
|
}
|
|
10262
10262
|
/* 插入文字 */
|
|
@@ -10313,11 +10313,14 @@ define((function () { 'use strict';
|
|
|
10313
10313
|
*/
|
|
10314
10314
|
async function liElementClickEvent(clickEvent) {
|
|
10315
10315
|
if (typeof item.callback === "function") {
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10316
|
+
try {
|
|
10317
|
+
OriginPrototype.Object.defineProperty(menuEvent, "target", {
|
|
10318
|
+
get() {
|
|
10319
|
+
return menuEventTarget;
|
|
10320
|
+
},
|
|
10321
|
+
});
|
|
10322
|
+
}
|
|
10323
|
+
catch (error) { }
|
|
10321
10324
|
let callbackResult = await item.callback(clickEvent, menuEvent, menuLiElement, menuListenerRootNode);
|
|
10322
10325
|
if (typeof callbackResult === "boolean" &&
|
|
10323
10326
|
callbackResult == false) {
|