@whitesev/pops 2.0.2 → 2.0.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/dist/index.amd.js +217 -328
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +217 -328
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +217 -328
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +217 -328
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +217 -328
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +217 -328
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/Pops.d.ts +3 -3
- package/dist/types/src/components/searchSuggestion/indexType.d.ts +1 -1
- package/dist/types/src/handler/PopsElementHandler.d.ts +4 -4
- package/dist/types/src/types/event.d.ts +3 -3
- package/dist/types/src/types/mask.d.ts +1 -1
- package/dist/types/src/utils/PopsInstanceUtils.d.ts +3 -3
- package/package.json +1 -1
- package/src/Pops.ts +1 -1
- package/src/components/alert/index.ts +13 -20
- package/src/components/confirm/index.ts +10 -20
- package/src/components/drawer/index.ts +11 -26
- package/src/components/folder/index.ts +11 -20
- package/src/components/iframe/index.ts +14 -23
- package/src/components/loading/index.ts +10 -9
- package/src/components/panel/PanelHandleContentDetails.ts +14 -36
- package/src/components/panel/index.ts +7 -11
- package/src/components/prompt/index.ts +16 -23
- package/src/components/rightClickMenu/index.ts +9 -7
- package/src/components/searchSuggestion/index.ts +8 -13
- package/src/components/searchSuggestion/indexType.ts +1 -1
- package/src/handler/PopsElementHandler.ts +33 -72
- package/src/handler/PopsHandler.ts +9 -11
- package/src/types/event.d.ts +3 -3
- package/src/types/mask.d.ts +1 -1
- package/src/utils/PopsDOMUtils.ts +21 -19
- package/src/utils/PopsInstanceUtils.ts +120 -96
package/dist/index.amd.js
CHANGED
|
@@ -1221,30 +1221,32 @@ define((function () { 'use strict';
|
|
|
1221
1221
|
if (element == null) {
|
|
1222
1222
|
return;
|
|
1223
1223
|
}
|
|
1224
|
+
let setStyleProperty = (propertyName, propertyValue) => {
|
|
1225
|
+
if (typeof propertyValue === "string" &&
|
|
1226
|
+
propertyValue.trim().endsWith("!important")) {
|
|
1227
|
+
propertyValue = propertyValue
|
|
1228
|
+
.trim()
|
|
1229
|
+
.replace(/!important$/gi, "")
|
|
1230
|
+
.trim();
|
|
1231
|
+
element.style.setProperty(propertyName, propertyValue, "important");
|
|
1232
|
+
}
|
|
1233
|
+
else {
|
|
1234
|
+
propertyValue = handlePixe(propertyName, propertyValue);
|
|
1235
|
+
element.style.setProperty(propertyName, propertyValue);
|
|
1236
|
+
}
|
|
1237
|
+
};
|
|
1224
1238
|
if (typeof property === "string") {
|
|
1225
1239
|
if (value == null) {
|
|
1226
1240
|
return getComputedStyle(element).getPropertyValue(property);
|
|
1227
1241
|
}
|
|
1228
1242
|
else {
|
|
1229
|
-
|
|
1230
|
-
element.style.setProperty(property, value, "important");
|
|
1231
|
-
}
|
|
1232
|
-
else {
|
|
1233
|
-
value = handlePixe(property, value);
|
|
1234
|
-
element.style.setProperty(property, value);
|
|
1235
|
-
}
|
|
1243
|
+
setStyleProperty(property, value);
|
|
1236
1244
|
}
|
|
1237
1245
|
}
|
|
1238
1246
|
else if (typeof property === "object") {
|
|
1239
1247
|
for (let prop in property) {
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
element.style.setProperty(prop, property[prop], "important");
|
|
1243
|
-
}
|
|
1244
|
-
else {
|
|
1245
|
-
property[prop] = handlePixe(prop, property[prop]);
|
|
1246
|
-
element.style.setProperty(prop, property[prop]);
|
|
1247
|
-
}
|
|
1248
|
+
let value = property[prop];
|
|
1249
|
+
setStyleProperty(prop, value);
|
|
1248
1250
|
}
|
|
1249
1251
|
}
|
|
1250
1252
|
}
|
|
@@ -1903,31 +1905,37 @@ define((function () { 'use strict';
|
|
|
1903
1905
|
* @param maskElement
|
|
1904
1906
|
*/
|
|
1905
1907
|
hide(popsType, layerConfigList, guid, config, animElement, maskElement) {
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1908
|
+
return new Promise((resolve) => {
|
|
1909
|
+
let popsElement = animElement.querySelector(".pops[type-value]");
|
|
1910
|
+
if (popsType === "drawer") {
|
|
1911
|
+
let drawerConfig = config;
|
|
1912
|
+
setTimeout(() => {
|
|
1913
|
+
maskElement.style.setProperty("display", "none");
|
|
1914
|
+
if (["top", "bottom"].includes(drawerConfig.direction)) {
|
|
1915
|
+
popsElement.style.setProperty("height", "0");
|
|
1916
|
+
}
|
|
1917
|
+
else if (["left", "right"].includes(drawerConfig.direction)) {
|
|
1918
|
+
popsElement.style.setProperty("width", "0");
|
|
1919
|
+
}
|
|
1920
|
+
else {
|
|
1921
|
+
console.error("未知direction:", drawerConfig.direction);
|
|
1922
|
+
}
|
|
1923
|
+
resolve();
|
|
1924
|
+
}, drawerConfig.closeDelay);
|
|
1925
|
+
}
|
|
1926
|
+
else {
|
|
1927
|
+
let findLayerIns = layerConfigList.find((layerConfigItem) => layerConfigItem.guid === guid);
|
|
1928
|
+
if (findLayerIns) {
|
|
1925
1929
|
/* 存在动画 */
|
|
1930
|
+
let layerConfigItem = findLayerIns;
|
|
1926
1931
|
layerConfigItem.animElement.style.width = "100%";
|
|
1927
1932
|
layerConfigItem.animElement.style.height = "100%";
|
|
1928
1933
|
layerConfigItem.animElement.style["animation-name"] =
|
|
1929
1934
|
layerConfigItem.animElement.getAttribute("anim") + "-reverse";
|
|
1930
1935
|
if (pops.config.animation.hasOwnProperty(layerConfigItem.animElement.style["animation-name"])) {
|
|
1936
|
+
/**
|
|
1937
|
+
* 动画结束的回调
|
|
1938
|
+
*/
|
|
1931
1939
|
function animationendCallBack() {
|
|
1932
1940
|
layerConfigItem.animElement.style.display = "none";
|
|
1933
1941
|
if (layerConfigItem.maskElement) {
|
|
@@ -1936,6 +1944,7 @@ define((function () { 'use strict';
|
|
|
1936
1944
|
popsDOMUtils.off(layerConfigItem.animElement, popsDOMUtils.getAnimationEndNameList(), animationendCallBack, {
|
|
1937
1945
|
capture: true,
|
|
1938
1946
|
});
|
|
1947
|
+
resolve();
|
|
1939
1948
|
}
|
|
1940
1949
|
popsDOMUtils.on(layerConfigItem.animElement, popsDOMUtils.getAnimationEndNameList(), animationendCallBack, {
|
|
1941
1950
|
capture: true,
|
|
@@ -1946,11 +1955,11 @@ define((function () { 'use strict';
|
|
|
1946
1955
|
if (layerConfigItem.maskElement) {
|
|
1947
1956
|
layerConfigItem.maskElement.style.display = "none";
|
|
1948
1957
|
}
|
|
1958
|
+
resolve();
|
|
1949
1959
|
}
|
|
1950
|
-
return;
|
|
1951
1960
|
}
|
|
1952
|
-
}
|
|
1953
|
-
}
|
|
1961
|
+
}
|
|
1962
|
+
});
|
|
1954
1963
|
},
|
|
1955
1964
|
/**
|
|
1956
1965
|
* 显示
|
|
@@ -1962,27 +1971,30 @@ define((function () { 'use strict';
|
|
|
1962
1971
|
* @param maskElement
|
|
1963
1972
|
*/
|
|
1964
1973
|
show(popsType, layerConfigList, guid, config, animElement, maskElement) {
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1974
|
+
return new Promise((resolve) => {
|
|
1975
|
+
let popsElement = animElement.querySelector(".pops[type-value]");
|
|
1976
|
+
if (popsType === "drawer") {
|
|
1977
|
+
let drawerConfig = config;
|
|
1978
|
+
setTimeout(() => {
|
|
1979
|
+
popsDOMUtils.css(maskElement, "display", "");
|
|
1980
|
+
let direction = drawerConfig.direction;
|
|
1981
|
+
let size = drawerConfig.size.toString();
|
|
1982
|
+
if (["top", "bottom"].includes(direction)) {
|
|
1983
|
+
popsElement.style.setProperty("height", size);
|
|
1984
|
+
}
|
|
1985
|
+
else if (["left", "right"].includes(direction)) {
|
|
1986
|
+
popsElement.style.setProperty("width", size);
|
|
1987
|
+
}
|
|
1988
|
+
else {
|
|
1989
|
+
console.error("未知direction:", direction);
|
|
1990
|
+
}
|
|
1991
|
+
resolve();
|
|
1992
|
+
}, drawerConfig.openDelay);
|
|
1993
|
+
}
|
|
1994
|
+
else {
|
|
1995
|
+
let findLayerIns = layerConfigList.find((layerConfigItem) => layerConfigItem.guid === guid);
|
|
1996
|
+
if (findLayerIns) {
|
|
1997
|
+
let layerConfigItem = findLayerIns;
|
|
1986
1998
|
layerConfigItem.animElement.style.width = "";
|
|
1987
1999
|
layerConfigItem.animElement.style.height = "";
|
|
1988
2000
|
layerConfigItem.animElement.style["animation-name"] =
|
|
@@ -1990,14 +2002,18 @@ define((function () { 'use strict';
|
|
|
1990
2002
|
.animElement.getAttribute("anim")
|
|
1991
2003
|
.replace("-reverse", "");
|
|
1992
2004
|
if (pops.config.animation.hasOwnProperty(layerConfigItem.animElement.style["animation-name"])) {
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
}
|
|
2005
|
+
/**
|
|
2006
|
+
* 动画结束的回调
|
|
2007
|
+
*/
|
|
1997
2008
|
function animationendCallBack() {
|
|
1998
2009
|
popsDOMUtils.off(layerConfigItem.animElement, popsDOMUtils.getAnimationEndNameList(), animationendCallBack, {
|
|
1999
2010
|
capture: true,
|
|
2000
2011
|
});
|
|
2012
|
+
resolve();
|
|
2013
|
+
}
|
|
2014
|
+
layerConfigItem.animElement.style.display = "";
|
|
2015
|
+
if (layerConfigItem.maskElement) {
|
|
2016
|
+
layerConfigItem.maskElement.style.display = "";
|
|
2001
2017
|
}
|
|
2002
2018
|
popsDOMUtils.on(layerConfigItem.animElement, popsDOMUtils.getAnimationEndNameList(), animationendCallBack, {
|
|
2003
2019
|
capture: true,
|
|
@@ -2008,11 +2024,11 @@ define((function () { 'use strict';
|
|
|
2008
2024
|
if (layerConfigItem.maskElement) {
|
|
2009
2025
|
layerConfigItem.maskElement.style.display = "";
|
|
2010
2026
|
}
|
|
2027
|
+
resolve();
|
|
2011
2028
|
}
|
|
2012
2029
|
}
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
}
|
|
2030
|
+
}
|
|
2031
|
+
});
|
|
2016
2032
|
},
|
|
2017
2033
|
/**
|
|
2018
2034
|
* 关闭
|
|
@@ -2023,50 +2039,57 @@ define((function () { 'use strict';
|
|
|
2023
2039
|
* @param animElement
|
|
2024
2040
|
*/
|
|
2025
2041
|
close(popsType, layerConfigList, guid, config, animElement) {
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
function
|
|
2033
|
-
|
|
2042
|
+
return new Promise((resolve) => {
|
|
2043
|
+
let popsElement = animElement.querySelector(".pops[type-value]");
|
|
2044
|
+
let drawerConfig = config;
|
|
2045
|
+
/**
|
|
2046
|
+
* 动画结束事件
|
|
2047
|
+
*/
|
|
2048
|
+
function transitionendEvent() {
|
|
2049
|
+
/**
|
|
2050
|
+
* 弹窗已关闭的回调
|
|
2051
|
+
*/
|
|
2052
|
+
function closeCallBack(event) {
|
|
2053
|
+
if (event.propertyName !== "transform") {
|
|
2054
|
+
return;
|
|
2055
|
+
}
|
|
2056
|
+
popsDOMUtils.off(popsElement, popsDOMUtils.getTransitionEndNameList(), void 0, closeCallBack);
|
|
2057
|
+
PopsInstanceUtils.removeInstance([layerConfigList], guid);
|
|
2058
|
+
resolve();
|
|
2059
|
+
}
|
|
2060
|
+
/* 监听过渡结束 */
|
|
2061
|
+
popsDOMUtils.on(popsElement, popsDOMUtils.getTransitionEndNameList(), closeCallBack);
|
|
2062
|
+
let popsTransForm = getComputedStyle(popsElement).transform;
|
|
2063
|
+
if (popsTransForm !== "none") {
|
|
2064
|
+
popsDOMUtils.trigger(popsElement, popsDOMUtils.getTransitionEndNameList(), void 0, true);
|
|
2034
2065
|
return;
|
|
2035
2066
|
}
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
}
|
|
2052
|
-
else if (["left"].includes(drawerConfig.direction)) {
|
|
2053
|
-
popsElement.style.setProperty("transform", "translateX(-100%)");
|
|
2067
|
+
if (["top"].includes(drawerConfig.direction)) {
|
|
2068
|
+
popsElement.style.setProperty("transform", "translateY(-100%)");
|
|
2069
|
+
}
|
|
2070
|
+
else if (["bottom"].includes(drawerConfig.direction)) {
|
|
2071
|
+
popsElement.style.setProperty("transform", "translateY(100%)");
|
|
2072
|
+
}
|
|
2073
|
+
else if (["left"].includes(drawerConfig.direction)) {
|
|
2074
|
+
popsElement.style.setProperty("transform", "translateX(-100%)");
|
|
2075
|
+
}
|
|
2076
|
+
else if (["right"].includes(drawerConfig.direction)) {
|
|
2077
|
+
popsElement.style.setProperty("transform", "translateX(100%)");
|
|
2078
|
+
}
|
|
2079
|
+
else {
|
|
2080
|
+
console.error("未知direction:", drawerConfig.direction);
|
|
2081
|
+
}
|
|
2054
2082
|
}
|
|
2055
|
-
|
|
2056
|
-
|
|
2083
|
+
if (popsType === "drawer") {
|
|
2084
|
+
setTimeout(() => {
|
|
2085
|
+
transitionendEvent();
|
|
2086
|
+
}, drawerConfig.closeDelay);
|
|
2057
2087
|
}
|
|
2058
2088
|
else {
|
|
2059
|
-
|
|
2089
|
+
PopsInstanceUtils.removeInstance([layerConfigList], guid);
|
|
2090
|
+
resolve();
|
|
2060
2091
|
}
|
|
2061
|
-
}
|
|
2062
|
-
if (popsType === "drawer") {
|
|
2063
|
-
setTimeout(() => {
|
|
2064
|
-
transitionendEvent();
|
|
2065
|
-
}, drawerConfig.closeDelay);
|
|
2066
|
-
}
|
|
2067
|
-
else {
|
|
2068
|
-
PopsInstanceUtils.removeInstance([layerConfigList], guid);
|
|
2069
|
-
}
|
|
2092
|
+
});
|
|
2070
2093
|
},
|
|
2071
2094
|
/**
|
|
2072
2095
|
* 拖拽元素
|
|
@@ -2471,7 +2494,7 @@ define((function () { 'use strict';
|
|
|
2471
2494
|
if (style.startsWith(";")) {
|
|
2472
2495
|
style = style.replace(";", "");
|
|
2473
2496
|
}
|
|
2474
|
-
return `<div class="pops-mask" data-guid="${guid}" style="z-index:${zIndex};${style}"></div>`;
|
|
2497
|
+
return /*html*/ `<div class="pops-mask" data-guid="${guid}" style="z-index:${zIndex};${style}"></div>`;
|
|
2475
2498
|
},
|
|
2476
2499
|
/**
|
|
2477
2500
|
* 获取动画层HTML
|
|
@@ -2499,23 +2522,10 @@ define((function () { 'use strict';
|
|
|
2499
2522
|
}
|
|
2500
2523
|
let hasBottomBtn = bottomBtnHTML.trim() === "" ? false : true;
|
|
2501
2524
|
return /*html*/ `
|
|
2502
|
-
<div
|
|
2503
|
-
class="pops-anim"
|
|
2504
|
-
anim="${__config.animation || ""}"
|
|
2505
|
-
style="${popsAnimStyle}"
|
|
2506
|
-
data-guid="${guid}">
|
|
2507
|
-
${config.style != null
|
|
2525
|
+
<div class="pops-anim" anim="${__config.animation || ""}" style="${popsAnimStyle}" data-guid="${guid}">${config.style != null
|
|
2508
2526
|
? `<style tyle="text/css">${config.style}</style>`
|
|
2509
2527
|
: ""}
|
|
2510
|
-
<div
|
|
2511
|
-
class="pops ${config.class || ""}"
|
|
2512
|
-
data-bottom-btn="${hasBottomBtn}"
|
|
2513
|
-
type-value="${type}"
|
|
2514
|
-
style="${popsStyle}"
|
|
2515
|
-
position="${popsPosition}"
|
|
2516
|
-
data-guid="${guid}">
|
|
2517
|
-
${html}
|
|
2518
|
-
</div>
|
|
2528
|
+
<div class="pops ${config.class || ""}" data-bottom-btn="${hasBottomBtn}" type-value="${type}" style="${popsStyle}" position="${popsPosition}" data-guid="${guid}">${html}</div>
|
|
2519
2529
|
</div>`;
|
|
2520
2530
|
},
|
|
2521
2531
|
/**
|
|
@@ -2540,22 +2550,20 @@ define((function () { 'use strict';
|
|
|
2540
2550
|
let topRightButtonHTML = "";
|
|
2541
2551
|
__config_iframe.topRightButton.split("|").forEach((item) => {
|
|
2542
2552
|
item = item.toLowerCase();
|
|
2543
|
-
topRightButtonHTML += `
|
|
2553
|
+
topRightButtonHTML += /*html*/ `
|
|
2544
2554
|
<button class="pops-header-control" type="${item}">
|
|
2545
2555
|
<i class="pops-icon">${pops.config.iconSVG[item]}</i>
|
|
2546
2556
|
</button>`;
|
|
2547
2557
|
});
|
|
2548
|
-
resultHTML = `
|
|
2549
|
-
<div class="pops-header-controls" data-margin
|
|
2550
|
-
${topRightButtonHTML}
|
|
2551
|
-
</div>`;
|
|
2558
|
+
resultHTML = /*html*/ `
|
|
2559
|
+
<div class="pops-header-controls" data-margin>${topRightButtonHTML}</div>`;
|
|
2552
2560
|
}
|
|
2553
2561
|
else {
|
|
2554
2562
|
if (__config_confirm.btn?.close?.enable) {
|
|
2555
|
-
closeHTML = `
|
|
2563
|
+
closeHTML = /*html*/ `
|
|
2556
2564
|
<div class="pops-header-controls">
|
|
2557
2565
|
<button class="pops-header-control" type="close" data-header>
|
|
2558
|
-
|
|
2566
|
+
<i class="pops-icon">${pops.config.iconSVG["close"]}</i>
|
|
2559
2567
|
</button>
|
|
2560
2568
|
</div>`;
|
|
2561
2569
|
}
|
|
@@ -2612,20 +2620,15 @@ define((function () { 'use strict';
|
|
|
2612
2620
|
iconHTML = okIcon;
|
|
2613
2621
|
}
|
|
2614
2622
|
iconHTML = iconHTML || "";
|
|
2615
|
-
okIconHTML =
|
|
2616
|
-
<i class="pops-bottom-icon" is-loading="${config.btn.ok.iconIsLoading}">
|
|
2617
|
-
${iconHTML}
|
|
2618
|
-
</i>`;
|
|
2623
|
+
okIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${config.btn.ok.iconIsLoading}">${iconHTML}</i>`;
|
|
2619
2624
|
}
|
|
2620
|
-
okHTML = `
|
|
2625
|
+
okHTML = /*html*/ `
|
|
2621
2626
|
<button
|
|
2622
2627
|
class="pops-${type}-btn-ok ${okButtonSizeClassName}"
|
|
2623
2628
|
type="${__config_confirm.btn.ok?.type}"
|
|
2624
2629
|
data-has-icon="${(__config_confirm.btn.ok.icon || "") !== ""}"
|
|
2625
2630
|
data-rightIcon="${__config_confirm.btn.ok?.rightIcon}"
|
|
2626
|
-
>
|
|
2627
|
-
${okIconHTML}
|
|
2628
|
-
<span>${config.btn.ok.text}</span>
|
|
2631
|
+
>${okIconHTML}<span>${config.btn.ok.text}</span>
|
|
2629
2632
|
</button>`;
|
|
2630
2633
|
}
|
|
2631
2634
|
if (__config_confirm.btn?.cancel?.enable) {
|
|
@@ -2651,20 +2654,15 @@ define((function () { 'use strict';
|
|
|
2651
2654
|
iconHTML = cancelIcon;
|
|
2652
2655
|
}
|
|
2653
2656
|
iconHTML = iconHTML || "";
|
|
2654
|
-
cancelIconHTML =
|
|
2655
|
-
<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.cancel.iconIsLoading}">
|
|
2656
|
-
${iconHTML}
|
|
2657
|
-
</i>`;
|
|
2657
|
+
cancelIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.cancel.iconIsLoading}">${iconHTML}</i>`;
|
|
2658
2658
|
}
|
|
2659
|
-
cancelHTML = `
|
|
2659
|
+
cancelHTML = /*html*/ `
|
|
2660
2660
|
<button
|
|
2661
2661
|
class="pops-${type}-btn-cancel ${cancelButtonSizeClassName}"
|
|
2662
2662
|
type="${__config_confirm.btn.cancel.type}"
|
|
2663
2663
|
data-has-icon="${(__config_confirm.btn.cancel.icon || "") !== ""}"
|
|
2664
2664
|
data-rightIcon="${__config_confirm.btn.cancel.rightIcon}"
|
|
2665
|
-
>
|
|
2666
|
-
${cancelIconHTML}
|
|
2667
|
-
<span>${__config_confirm.btn.cancel.text}</span>
|
|
2665
|
+
>${cancelIconHTML}<span>${__config_confirm.btn.cancel.text}</span>
|
|
2668
2666
|
</button>`;
|
|
2669
2667
|
}
|
|
2670
2668
|
if (__config_confirm.btn?.other?.enable) {
|
|
@@ -2687,20 +2685,15 @@ define((function () { 'use strict';
|
|
|
2687
2685
|
iconHTML = pops.config.iconSVG[otherIcon];
|
|
2688
2686
|
}
|
|
2689
2687
|
iconHTML = iconHTML || "";
|
|
2690
|
-
otherIconHTML =
|
|
2691
|
-
<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.other.iconIsLoading}">
|
|
2692
|
-
${iconHTML}
|
|
2693
|
-
</i>`;
|
|
2688
|
+
otherIconHTML = /*html*/ `<i class="pops-bottom-icon" is-loading="${__config_confirm.btn.other.iconIsLoading}">${iconHTML}</i>`;
|
|
2694
2689
|
}
|
|
2695
|
-
ohterHTML = `
|
|
2690
|
+
ohterHTML = /*html*/ `
|
|
2696
2691
|
<button
|
|
2697
2692
|
class="pops-${type}-btn-other ${otherButtonSizeClassName}"
|
|
2698
2693
|
type="${__config_confirm.btn.other.type}"
|
|
2699
2694
|
data-has-icon="${(__config_confirm.btn.other.icon || "") !== ""}"
|
|
2700
2695
|
data-rightIcon="${__config_confirm.btn.other.rightIcon}"
|
|
2701
|
-
>
|
|
2702
|
-
${otherIconHTML}
|
|
2703
|
-
<span>${__config_confirm.btn.other.text}</span>
|
|
2696
|
+
>${otherIconHTML}<span>${__config_confirm.btn.other.text}</span>
|
|
2704
2697
|
</button>`;
|
|
2705
2698
|
}
|
|
2706
2699
|
if (__config_confirm.btn.merge) {
|
|
@@ -2711,33 +2704,22 @@ define((function () { 'use strict';
|
|
|
2711
2704
|
else {
|
|
2712
2705
|
flexStyle += "flex-direction: row;";
|
|
2713
2706
|
}
|
|
2714
|
-
resultHTML = `
|
|
2715
|
-
<div class="pops-${type}-btn" style="${btnStyle}"
|
|
2716
|
-
${ohterHTML}
|
|
2717
|
-
<div
|
|
2707
|
+
resultHTML = /*html*/ `
|
|
2708
|
+
<div class="pops-${type}-btn" style="${btnStyle}">${ohterHTML}<div
|
|
2718
2709
|
class="pops-${type}-btn-merge"
|
|
2719
|
-
style="${flexStyle}">
|
|
2720
|
-
${okHTML}
|
|
2721
|
-
${cancelHTML}
|
|
2722
|
-
</div>
|
|
2710
|
+
style="${flexStyle}">${okHTML}${cancelHTML}</div>
|
|
2723
2711
|
</div>
|
|
2724
2712
|
`;
|
|
2725
2713
|
}
|
|
2726
2714
|
else {
|
|
2727
|
-
resultHTML =
|
|
2728
|
-
<div class="pops-${type}-btn" style="${btnStyle}">
|
|
2729
|
-
${okHTML}
|
|
2730
|
-
${cancelHTML}
|
|
2731
|
-
${ohterHTML}
|
|
2732
|
-
</div>
|
|
2733
|
-
`;
|
|
2715
|
+
resultHTML = /*html*/ `<div class="pops-${type}-btn" style="${btnStyle}">${okHTML}${cancelHTML}${ohterHTML}</div>`;
|
|
2734
2716
|
}
|
|
2735
2717
|
return resultHTML;
|
|
2736
2718
|
},
|
|
2737
2719
|
/**
|
|
2738
2720
|
* 获取标题style
|
|
2739
|
-
* @param type
|
|
2740
|
-
* @param config
|
|
2721
|
+
* @param type 弹窗类型
|
|
2722
|
+
* @param config 弹窗配置
|
|
2741
2723
|
*/
|
|
2742
2724
|
getHeaderStyle(type, config) {
|
|
2743
2725
|
return {
|
|
@@ -2747,8 +2729,8 @@ define((function () { 'use strict';
|
|
|
2747
2729
|
},
|
|
2748
2730
|
/**
|
|
2749
2731
|
* 获取内容style
|
|
2750
|
-
* @param type
|
|
2751
|
-
* @param config
|
|
2732
|
+
* @param type 弹窗类型
|
|
2733
|
+
* @param config 弹窗配置
|
|
2752
2734
|
*/
|
|
2753
2735
|
getContentStyle(type, config) {
|
|
2754
2736
|
return {
|
|
@@ -2836,11 +2818,11 @@ define((function () { 'use strict';
|
|
|
2836
2818
|
function originalRun() {
|
|
2837
2819
|
if (details.config.mask.clickEvent.toClose) {
|
|
2838
2820
|
/* 关闭 */
|
|
2839
|
-
PopsInstanceUtils.close(details.type, targetLayer, details.guid, details.config, details.animElement);
|
|
2821
|
+
return PopsInstanceUtils.close(details.type, targetLayer, details.guid, details.config, details.animElement);
|
|
2840
2822
|
}
|
|
2841
2823
|
else if (details.config.mask.clickEvent.toHide) {
|
|
2842
2824
|
/* 隐藏 */
|
|
2843
|
-
PopsInstanceUtils.hide(details.type, targetLayer, details.guid, details.config, details.animElement, result.maskElement);
|
|
2825
|
+
return PopsInstanceUtils.hide(details.type, targetLayer, details.guid, details.config, details.animElement, result.maskElement);
|
|
2844
2826
|
}
|
|
2845
2827
|
}
|
|
2846
2828
|
if (typeof details.config.mask.clickCallBack === "function") {
|
|
@@ -3019,13 +3001,13 @@ define((function () { 'use strict';
|
|
|
3019
3001
|
mode: mode,
|
|
3020
3002
|
guid: guid,
|
|
3021
3003
|
close() {
|
|
3022
|
-
PopsInstanceUtils.close(mode, pops.config.layer[mode], guid, config, animElement);
|
|
3004
|
+
return PopsInstanceUtils.close(mode, pops.config.layer[mode], guid, config, animElement);
|
|
3023
3005
|
},
|
|
3024
3006
|
hide() {
|
|
3025
|
-
PopsInstanceUtils.hide(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3007
|
+
return PopsInstanceUtils.hide(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3026
3008
|
},
|
|
3027
3009
|
show() {
|
|
3028
|
-
PopsInstanceUtils.show(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3010
|
+
return PopsInstanceUtils.show(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3029
3011
|
},
|
|
3030
3012
|
};
|
|
3031
3013
|
},
|
|
@@ -3047,13 +3029,13 @@ define((function () { 'use strict';
|
|
|
3047
3029
|
mode: mode,
|
|
3048
3030
|
guid: guid,
|
|
3049
3031
|
close() {
|
|
3050
|
-
PopsInstanceUtils.close(mode, pops.config.layer[mode], guid, config, animElement);
|
|
3032
|
+
return PopsInstanceUtils.close(mode, pops.config.layer[mode], guid, config, animElement);
|
|
3051
3033
|
},
|
|
3052
3034
|
hide() {
|
|
3053
|
-
PopsInstanceUtils.hide(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3035
|
+
return PopsInstanceUtils.hide(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3054
3036
|
},
|
|
3055
3037
|
show() {
|
|
3056
|
-
PopsInstanceUtils.show(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3038
|
+
return PopsInstanceUtils.show(mode, pops.config.layer[mode], guid, config, animElement, maskElement);
|
|
3057
3039
|
},
|
|
3058
3040
|
};
|
|
3059
3041
|
},
|
|
@@ -3292,21 +3274,12 @@ define((function () { 'use strict';
|
|
|
3292
3274
|
let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
3293
3275
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3294
3276
|
/*html*/ `
|
|
3295
|
-
<div
|
|
3296
|
-
class="pops-alert-title"
|
|
3297
|
-
style="text-align: ${config.title.position};
|
|
3298
|
-
${headerStyle}">
|
|
3299
|
-
${config.title.html
|
|
3277
|
+
<div class="pops-alert-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
3300
3278
|
? config.title.text
|
|
3301
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
3302
|
-
|
|
3303
|
-
</div>
|
|
3304
|
-
<div class="pops-alert-content" style="${contentStyle}">
|
|
3305
|
-
${config.content.html
|
|
3279
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
3280
|
+
<div class="pops-alert-content" style="${contentStyle}">${config.content.html
|
|
3306
3281
|
? config.content.text
|
|
3307
|
-
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}
|
|
3308
|
-
</div>
|
|
3309
|
-
${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
3282
|
+
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
3310
3283
|
/**
|
|
3311
3284
|
* 弹窗的主元素,包括动画层
|
|
3312
3285
|
*/
|
|
@@ -3483,22 +3456,12 @@ define((function () { 'use strict';
|
|
|
3483
3456
|
let { contentStyle, contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
3484
3457
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3485
3458
|
/*html*/ `
|
|
3486
|
-
<div class="pops-confirm-title" style="text-align: ${config.title.position};${headerStyle}"
|
|
3487
|
-
${config.title.html
|
|
3459
|
+
<div class="pops-confirm-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
3488
3460
|
? config.title.text
|
|
3489
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
3490
|
-
|
|
3491
|
-
</div>
|
|
3492
|
-
<div class="pops-confirm-content" style="${contentStyle}">
|
|
3493
|
-
${config.content.html
|
|
3461
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
3462
|
+
<div class="pops-confirm-content" style="${contentStyle}">${config.content.html
|
|
3494
3463
|
? config.content.text
|
|
3495
|
-
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}
|
|
3496
|
-
|
|
3497
|
-
</div>
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
${bottomBtnHTML}
|
|
3501
|
-
`, bottomBtnHTML, zIndex);
|
|
3464
|
+
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
3502
3465
|
/**
|
|
3503
3466
|
* 弹窗的主元素,包括动画层
|
|
3504
3467
|
*/
|
|
@@ -3680,14 +3643,10 @@ define((function () { 'use strict';
|
|
|
3680
3643
|
let { contentPStyle } = PopsElementHandler.getContentStyle(PopsType, config);
|
|
3681
3644
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3682
3645
|
/*html*/ `
|
|
3683
|
-
<div class="pops-prompt-title" style="text-align: ${config.title.position};${headerStyle}"
|
|
3684
|
-
${config.title.html
|
|
3646
|
+
<div class="pops-prompt-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
3685
3647
|
? config.title.text
|
|
3686
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
3687
|
-
${
|
|
3688
|
-
</div>
|
|
3689
|
-
<div class="pops-prompt-content" style="${contentPStyle}">
|
|
3690
|
-
${config.content.row
|
|
3648
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
3649
|
+
<div class="pops-prompt-content" style="${contentPStyle}">${config.content.row
|
|
3691
3650
|
? '<textarea pops="" placeholder="' +
|
|
3692
3651
|
config.content.placeholder +
|
|
3693
3652
|
'"></textarea>'
|
|
@@ -3695,10 +3654,7 @@ define((function () { 'use strict';
|
|
|
3695
3654
|
config.content.placeholder +
|
|
3696
3655
|
'" type="' +
|
|
3697
3656
|
(config.content.password ? "password" : "text") +
|
|
3698
|
-
'">'}
|
|
3699
|
-
</div>
|
|
3700
|
-
${bottomBtnHTML}
|
|
3701
|
-
`, bottomBtnHTML, zIndex);
|
|
3657
|
+
'">'}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
3702
3658
|
/**
|
|
3703
3659
|
* 弹窗的主元素,包括动画层
|
|
3704
3660
|
*/
|
|
@@ -3811,9 +3767,8 @@ define((function () { 'use strict';
|
|
|
3811
3767
|
let { contentPStyle } = PopsElementHandler.getContentStyle("loading", config);
|
|
3812
3768
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3813
3769
|
/*html*/ `
|
|
3814
|
-
<div class="pops-loading-content"
|
|
3815
|
-
|
|
3816
|
-
? `
|
|
3770
|
+
<div class="pops-loading-content">${config.addIndexCSS
|
|
3771
|
+
? /*html*/ `
|
|
3817
3772
|
<style data-model-name="index">${pops.config.cssText.index}</style>
|
|
3818
3773
|
<style data-model-name="anim">${pops.config.cssText.anim}</style>
|
|
3819
3774
|
<style data-model-name="common">${pops.config.cssText.common}</style>
|
|
@@ -3823,9 +3778,8 @@ define((function () { 'use strict';
|
|
|
3823
3778
|
${pops.config.cssText.loadingCSS}
|
|
3824
3779
|
</style>
|
|
3825
3780
|
${config.style != null ? `<style>${config.style}</style>` : ""}
|
|
3826
|
-
|
|
3827
|
-
</div
|
|
3828
|
-
`, "", zIndex);
|
|
3781
|
+
<p pops style="${contentPStyle}">${config.content.text}</p>
|
|
3782
|
+
</div>`, "", zIndex);
|
|
3829
3783
|
/**
|
|
3830
3784
|
* 弹窗的主元素,包括动画层
|
|
3831
3785
|
*/
|
|
@@ -3849,6 +3803,9 @@ define((function () { 'use strict';
|
|
|
3849
3803
|
maskHTML: maskHTML,
|
|
3850
3804
|
});
|
|
3851
3805
|
$mask = _handleMask_.maskElement;
|
|
3806
|
+
// 遮罩层必须是跟随主内容
|
|
3807
|
+
// 即设置主内容position: relative,mask:position: absolute
|
|
3808
|
+
popsDOMUtils.css($mask, "position", "absolute !important");
|
|
3852
3809
|
elementList.push($mask);
|
|
3853
3810
|
}
|
|
3854
3811
|
let eventDetails = PopsHandler.handleLoadingEventDetails(guid, PopsType, $anim, $pops, $mask, config);
|
|
@@ -3959,27 +3916,16 @@ define((function () { 'use strict';
|
|
|
3959
3916
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
3960
3917
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
3961
3918
|
/*html*/ `
|
|
3962
|
-
<div
|
|
3963
|
-
class="pops-iframe-title"
|
|
3964
|
-
style="text-align: ${config.title.position};${headerStyle}"
|
|
3965
|
-
>
|
|
3966
|
-
${config.title.html
|
|
3919
|
+
<div class="pops-iframe-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
3967
3920
|
? titleText
|
|
3968
|
-
: `<p pops style="${headerPStyle}">${titleText}</p>`}
|
|
3969
|
-
|
|
3970
|
-
</div>
|
|
3971
|
-
<div class="pops-iframe-content">
|
|
3921
|
+
: `<p pops style="${headerPStyle}">${titleText}</p>`}${headerBtnHTML}</div>
|
|
3922
|
+
<div class="pops-iframe-content">
|
|
3972
3923
|
<div class="pops-iframe-content-global-loading"></div>
|
|
3973
|
-
<iframe
|
|
3974
|
-
src="${config.url}"
|
|
3975
|
-
pops
|
|
3976
|
-
${config.sandbox
|
|
3924
|
+
<iframe src="${config.url}" pops ${config.sandbox
|
|
3977
3925
|
? "sandbox='allow-forms allow-same-origin allow-scripts'"
|
|
3978
3926
|
: ""}>
|
|
3979
3927
|
</iframe>
|
|
3980
|
-
|
|
3981
|
-
${config.loading.enable ? iframeLoadingHTML : ""}
|
|
3982
|
-
`, "", zIndex);
|
|
3928
|
+
</div>${config.loading.enable ? iframeLoadingHTML : ""}`, "", zIndex);
|
|
3983
3929
|
/**
|
|
3984
3930
|
* 弹窗的主元素,包括动画层
|
|
3985
3931
|
*/
|
|
@@ -4285,29 +4231,14 @@ define((function () { 'use strict';
|
|
|
4285
4231
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4286
4232
|
/*html*/ `
|
|
4287
4233
|
${config.title.enable
|
|
4288
|
-
? `
|
|
4289
|
-
<div class="pops-${PopsType}-title" style="${headerStyle}"
|
|
4290
|
-
${config.title.html
|
|
4234
|
+
? /*html*/ `
|
|
4235
|
+
<div class="pops-${PopsType}-title" style="${headerStyle}">${config.title.html
|
|
4291
4236
|
? config.title.text
|
|
4292
|
-
: `<p
|
|
4293
|
-
pops
|
|
4294
|
-
style="
|
|
4295
|
-
width: 100%;
|
|
4296
|
-
text-align: ${config.title.position};
|
|
4297
|
-
${headerPStyle}">${config.title.text}</p>`}
|
|
4298
|
-
${headerBtnHTML}
|
|
4299
|
-
</div>
|
|
4300
|
-
`
|
|
4237
|
+
: /*html*/ `<p pops style="width: 100%;text-align: ${config.title.position};${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>`
|
|
4301
4238
|
: ""}
|
|
4302
|
-
|
|
4303
|
-
<div class="pops-${PopsType}-content" style="${contentStyle}">
|
|
4304
|
-
${config.content.html
|
|
4239
|
+
<div class="pops-${PopsType}-content" style="${contentStyle}">${config.content.html
|
|
4305
4240
|
? config.content.text
|
|
4306
|
-
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}
|
|
4307
|
-
</div>
|
|
4308
|
-
|
|
4309
|
-
${bottomBtnHTML}
|
|
4310
|
-
`, bottomBtnHTML, zIndex);
|
|
4241
|
+
: `<p pops style="${contentPStyle}">${config.content.text}</p>`}</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
4311
4242
|
/**
|
|
4312
4243
|
* 弹窗的主元素,包括动画层
|
|
4313
4244
|
*/
|
|
@@ -4689,14 +4620,12 @@ define((function () { 'use strict';
|
|
|
4689
4620
|
let headerBtnHTML = PopsElementHandler.getHeaderBtnHTML(PopsType, config);
|
|
4690
4621
|
let bottomBtnHTML = PopsElementHandler.getBottomBtnHTML(PopsType, config);
|
|
4691
4622
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
4692
|
-
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4693
|
-
|
|
4694
|
-
|
|
4623
|
+
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
4624
|
+
/*html*/ `
|
|
4625
|
+
<div class="pops-folder-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
4695
4626
|
? config.title.text
|
|
4696
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
4697
|
-
|
|
4698
|
-
</div>
|
|
4699
|
-
<div class="pops-folder-content ${pops.isPhone() ? "pops-mobile-folder-content" : ""}">
|
|
4627
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
4628
|
+
<div class="pops-folder-content ${pops.isPhone() ? "pops-mobile-folder-content" : ""}">
|
|
4700
4629
|
<div class="pops-folder-list">
|
|
4701
4630
|
<div class="pops-folder-file-list-breadcrumb">
|
|
4702
4631
|
<div class="pops-folder-file-list-breadcrumb-primary">
|
|
@@ -4708,7 +4637,6 @@ define((function () { 'use strict';
|
|
|
4708
4637
|
<div class="pops-folder-list-table__header-div">
|
|
4709
4638
|
<table class="pops-folder-list-table__header">
|
|
4710
4639
|
<colgroup>
|
|
4711
|
-
<!-- <col width="8%"> --!>
|
|
4712
4640
|
<col width="52%">
|
|
4713
4641
|
<col width="24%">
|
|
4714
4642
|
<col width="16%">
|
|
@@ -4779,7 +4707,6 @@ define((function () { 'use strict';
|
|
|
4779
4707
|
<div class="pops-folder-list-table__body-div">
|
|
4780
4708
|
<table class="pops-folder-list-table__body">
|
|
4781
4709
|
<colgroup>
|
|
4782
|
-
<!-- <col width="8%"> --!>
|
|
4783
4710
|
${pops.isPhone()
|
|
4784
4711
|
? `<col width="100%">`
|
|
4785
4712
|
: `
|
|
@@ -4794,9 +4721,7 @@ define((function () { 'use strict';
|
|
|
4794
4721
|
</table>
|
|
4795
4722
|
</div>
|
|
4796
4723
|
</div>
|
|
4797
|
-
</div
|
|
4798
|
-
${bottomBtnHTML}
|
|
4799
|
-
`, bottomBtnHTML, zIndex);
|
|
4724
|
+
</div>${bottomBtnHTML}`, bottomBtnHTML, zIndex);
|
|
4800
4725
|
/**
|
|
4801
4726
|
* 弹窗的主元素,包括动画层
|
|
4802
4727
|
*/
|
|
@@ -4977,9 +4902,7 @@ define((function () { 'use strict';
|
|
|
4977
4902
|
<div class="pops-folder-list-file-name pops-mobile-folder-list-file-name cursor-p">
|
|
4978
4903
|
<img src="${fileIcon}" alt="${fileType}" class="pops-folder-list-file-icon u-file-icon u-file-icon--list">
|
|
4979
4904
|
<div>
|
|
4980
|
-
<a title="${fileName}" class="pops-folder-list-file-name-title-text inline-block-v-middle text-ellip list-name-text">
|
|
4981
|
-
${fileName}
|
|
4982
|
-
</a>
|
|
4905
|
+
<a title="${fileName}" class="pops-folder-list-file-name-title-text inline-block-v-middle text-ellip list-name-text">${fileName}</a>
|
|
4983
4906
|
<span>${latestTime} ${fileSize}</span>
|
|
4984
4907
|
</div>
|
|
4985
4908
|
</div>
|
|
@@ -6122,9 +6045,7 @@ define((function () { 'use strict';
|
|
|
6122
6045
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
6123
6046
|
/*html*/ `
|
|
6124
6047
|
<div class="pops-panel-item-left-text">
|
|
6125
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
6126
|
-
${leftDescriptionText}
|
|
6127
|
-
</div>
|
|
6048
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
6128
6049
|
<div class="pops-panel-switch">
|
|
6129
6050
|
<input class="pops-panel-switch__input" type="checkbox">
|
|
6130
6051
|
<span class="pops-panel-switch__core">
|
|
@@ -6224,9 +6145,7 @@ define((function () { 'use strict';
|
|
|
6224
6145
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
6225
6146
|
/*html*/ `
|
|
6226
6147
|
<div class="pops-panel-item-left-text">
|
|
6227
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
6228
|
-
${leftDescriptionText}
|
|
6229
|
-
</div>
|
|
6148
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
6230
6149
|
<div class="pops-panel-slider">
|
|
6231
6150
|
<input type="range" min="${formConfig.min}" max="${formConfig.max}">
|
|
6232
6151
|
</div>
|
|
@@ -6289,9 +6208,7 @@ define((function () { 'use strict';
|
|
|
6289
6208
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
6290
6209
|
/*html*/ `
|
|
6291
6210
|
<div class="pops-panel-item-left-text" style="flex: 1;">
|
|
6292
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
6293
|
-
${leftDescriptionText}
|
|
6294
|
-
</div>
|
|
6211
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
6295
6212
|
<div class="pops-slider pops-slider-width">
|
|
6296
6213
|
<div class="pops-slider__runway">
|
|
6297
6214
|
<div class="pops-slider__bar" style="width: 0%; left: 0%"></div>
|
|
@@ -6852,9 +6769,7 @@ define((function () { 'use strict';
|
|
|
6852
6769
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
6853
6770
|
/*html*/ `
|
|
6854
6771
|
<div class="pops-panel-item-left-text">
|
|
6855
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
6856
|
-
${leftDescriptionText}
|
|
6857
|
-
</div>
|
|
6772
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
6858
6773
|
<div class="pops-panel-input pops-user-select-none">
|
|
6859
6774
|
<input type="${inputType}" placeholder="${formConfig.placeholder}">
|
|
6860
6775
|
</div>
|
|
@@ -7049,12 +6964,9 @@ define((function () { 'use strict';
|
|
|
7049
6964
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
7050
6965
|
/*html*/ `
|
|
7051
6966
|
<div class="pops-panel-item-left-text">
|
|
7052
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
7053
|
-
${leftDescriptionText}
|
|
7054
|
-
</div>
|
|
6967
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7055
6968
|
<div class="pops-panel-textarea">
|
|
7056
|
-
<textarea placeholder="${formConfig.placeholder ?? ""}">
|
|
7057
|
-
</textarea>
|
|
6969
|
+
<textarea placeholder="${formConfig.placeholder ?? ""}"></textarea>
|
|
7058
6970
|
</div>
|
|
7059
6971
|
`);
|
|
7060
6972
|
const PopsPanelTextArea = {
|
|
@@ -7124,9 +7036,7 @@ define((function () { 'use strict';
|
|
|
7124
7036
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
7125
7037
|
/*html*/ `
|
|
7126
7038
|
<div class="pops-panel-item-left-text">
|
|
7127
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
7128
|
-
${leftDescriptionText}
|
|
7129
|
-
</div>
|
|
7039
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7130
7040
|
<div class="pops-panel-select pops-user-select-none">
|
|
7131
7041
|
<select></select>
|
|
7132
7042
|
</div>
|
|
@@ -7320,9 +7230,7 @@ define((function () { 'use strict';
|
|
|
7320
7230
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
7321
7231
|
/*html*/ `
|
|
7322
7232
|
<div class="pops-panel-item-left-text">
|
|
7323
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
7324
|
-
${leftDescriptionText}
|
|
7325
|
-
</div>
|
|
7233
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7326
7234
|
<div class="pops-panel-select-multiple">
|
|
7327
7235
|
<div class="el-select__wrapper">
|
|
7328
7236
|
<div class="el-select__selection">
|
|
@@ -7615,9 +7523,7 @@ define((function () { 'use strict';
|
|
|
7615
7523
|
function createSelectItemElement(dataInfo) {
|
|
7616
7524
|
let $item = popsDOMUtils.createElement("li", {
|
|
7617
7525
|
className: "select-item",
|
|
7618
|
-
innerHTML: /*html*/
|
|
7619
|
-
<span>${dataInfo.text}</span>
|
|
7620
|
-
`,
|
|
7526
|
+
innerHTML: /*html*/ `<span>${dataInfo.text}</span>`,
|
|
7621
7527
|
});
|
|
7622
7528
|
Reflect.set($item, "data-info", dataInfo);
|
|
7623
7529
|
return $item;
|
|
@@ -7879,9 +7785,7 @@ define((function () { 'use strict';
|
|
|
7879
7785
|
PopsSafeUtils.setSafeHTML(liElement,
|
|
7880
7786
|
/*html*/ `
|
|
7881
7787
|
<div class="pops-panel-item-left-text">
|
|
7882
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
7883
|
-
${leftDescriptionText}
|
|
7884
|
-
</div>
|
|
7788
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7885
7789
|
<div class="pops-panel-button">
|
|
7886
7790
|
<button class="pops-panel-button_inner">
|
|
7887
7791
|
<i class="pops-bottom-icon"></i>
|
|
@@ -8046,13 +7950,8 @@ define((function () { 'use strict';
|
|
|
8046
7950
|
PopsSafeUtils.setSafeHTML($li,
|
|
8047
7951
|
/*html*/ `
|
|
8048
7952
|
<div class="pops-panel-item-left-text">
|
|
8049
|
-
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>
|
|
8050
|
-
|
|
8051
|
-
</div>
|
|
8052
|
-
<div class="pops-panel-deepMenu">
|
|
8053
|
-
${rightText}
|
|
8054
|
-
${arrowRightIconHTML}
|
|
8055
|
-
</div>
|
|
7953
|
+
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
7954
|
+
<div class="pops-panel-deepMenu">${rightText}${arrowRightIconHTML}</div>
|
|
8056
7955
|
`);
|
|
8057
7956
|
const PopsPanelDeepMenu = {
|
|
8058
7957
|
[Symbol.toStringTag]: "PopsPanelDeepMenu",
|
|
@@ -8435,15 +8334,9 @@ define((function () { 'use strict';
|
|
|
8435
8334
|
let { headerStyle, headerPStyle } = PopsElementHandler.getHeaderStyle(PopsType, config);
|
|
8436
8335
|
let animHTML = PopsElementHandler.getAnimHTML(guid, PopsType, config,
|
|
8437
8336
|
/*html*/ `
|
|
8438
|
-
<div
|
|
8439
|
-
class="pops-${PopsType}-title"
|
|
8440
|
-
style="text-align: ${config.title.position};
|
|
8441
|
-
${headerStyle}">
|
|
8442
|
-
${config.title.html
|
|
8337
|
+
<div class="pops-${PopsType}-title" style="text-align: ${config.title.position};${headerStyle}">${config.title.html
|
|
8443
8338
|
? config.title.text
|
|
8444
|
-
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}
|
|
8445
|
-
${headerBtnHTML}
|
|
8446
|
-
</div>
|
|
8339
|
+
: `<p pops style="${headerPStyle}">${config.title.text}</p>`}${headerBtnHTML}</div>
|
|
8447
8340
|
<div class="pops-${PopsType}-content">
|
|
8448
8341
|
<aside class="pops-${PopsType}-aside">
|
|
8449
8342
|
<ul></ul>
|
|
@@ -8988,7 +8881,8 @@ define((function () { 'use strict';
|
|
|
8988
8881
|
/* 判断有无图标,有就添加进去 */
|
|
8989
8882
|
if (typeof item.icon === "string" && item.icon.trim() !== "") {
|
|
8990
8883
|
let iconSVGHTML = pops.config.iconSVG[item.icon] ?? item.icon;
|
|
8991
|
-
let iconElement = popsUtils.parseTextToDOM(
|
|
8884
|
+
let iconElement = popsUtils.parseTextToDOM(
|
|
8885
|
+
/*html*/ `<i class="pops-${PopsType}-icon" is-loading="${item.iconIsLoading}">${iconSVGHTML}</i>`);
|
|
8992
8886
|
menuLiElement.appendChild(iconElement);
|
|
8993
8887
|
}
|
|
8994
8888
|
/* 插入文字 */
|
|
@@ -9005,7 +8899,9 @@ define((function () { 'use strict';
|
|
|
9005
8899
|
return;
|
|
9006
8900
|
}
|
|
9007
8901
|
function removeElement(element) {
|
|
9008
|
-
element
|
|
8902
|
+
element
|
|
8903
|
+
.querySelectorAll("ul li")
|
|
8904
|
+
.forEach((ele) => {
|
|
9009
8905
|
if (ele?.__menuData__?.child) {
|
|
9010
8906
|
removeElement(ele.__menuData__.child);
|
|
9011
8907
|
}
|
|
@@ -9222,9 +9118,7 @@ define((function () { 'use strict';
|
|
|
9222
9118
|
<style data-dynamic="true">
|
|
9223
9119
|
${this.getDynamicCSS()}
|
|
9224
9120
|
</style>
|
|
9225
|
-
<ul class="pops-${PopsType}-search-suggestion-hint">
|
|
9226
|
-
${config.toSearhNotResultHTML}
|
|
9227
|
-
</ul>
|
|
9121
|
+
<ul class="pops-${PopsType}-search-suggestion-hint">${config.toSearhNotResultHTML}</ul>
|
|
9228
9122
|
`,
|
|
9229
9123
|
}, {
|
|
9230
9124
|
"data-guid": guid,
|
|
@@ -9303,12 +9197,7 @@ define((function () { 'use strict';
|
|
|
9303
9197
|
className: `pops-${PopsType}-search-suggestion-hint-item pops-flex-items-center pops-flex-y-center`,
|
|
9304
9198
|
"data-index": index,
|
|
9305
9199
|
"data-value": SearchSuggestion.getItemDataValue(data),
|
|
9306
|
-
innerHTML:
|
|
9307
|
-
${config.getItemHTML(data)}
|
|
9308
|
-
${config.deleteIcon.enable
|
|
9309
|
-
? SearchSuggestion.getDeleteIconHTML()
|
|
9310
|
-
: ""}
|
|
9311
|
-
`,
|
|
9200
|
+
innerHTML: `${config.getItemHTML(data)}${config.deleteIcon.enable ? SearchSuggestion.getDeleteIconHTML() : ""}`,
|
|
9312
9201
|
});
|
|
9313
9202
|
},
|
|
9314
9203
|
/**
|
|
@@ -10191,7 +10080,7 @@ define((function () { 'use strict';
|
|
|
10191
10080
|
/** 配置 */
|
|
10192
10081
|
config = {
|
|
10193
10082
|
/** 版本号 */
|
|
10194
|
-
version: "2025.
|
|
10083
|
+
version: "2025.5.12",
|
|
10195
10084
|
cssText: {
|
|
10196
10085
|
/** 主CSS */
|
|
10197
10086
|
index: indexCSS,
|