@whitesev/pops 2.5.3 → 2.5.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 +15 -39
- package/dist/index.amd.js.map +1 -1
- package/dist/index.amd.min.js +1 -1
- package/dist/index.amd.min.js.map +1 -1
- package/dist/index.cjs.js +15 -39
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +15 -39
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.iife.js +15 -39
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.system.js +15 -39
- package/dist/index.system.js.map +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/dist/index.umd.js +15 -39
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/panel/config.ts +1 -36
- package/src/components/panel/index.ts +12 -2
package/dist/index.umd.js
CHANGED
|
@@ -6541,42 +6541,7 @@
|
|
|
6541
6541
|
},
|
|
6542
6542
|
},
|
|
6543
6543
|
],
|
|
6544
|
-
bottomContentConfig: [
|
|
6545
|
-
{
|
|
6546
|
-
text: "Github",
|
|
6547
|
-
position: "left",
|
|
6548
|
-
className: "user-home",
|
|
6549
|
-
attributes: {
|
|
6550
|
-
"data-url": "https://github.com/whitesevs",
|
|
6551
|
-
},
|
|
6552
|
-
props: {
|
|
6553
|
-
"data-test": 1,
|
|
6554
|
-
},
|
|
6555
|
-
disableHoverCSS: false,
|
|
6556
|
-
clickCallback() {
|
|
6557
|
-
const userHomeUrl = this.attributes["data-url"];
|
|
6558
|
-
console.log("打开个人主页:" + userHomeUrl);
|
|
6559
|
-
window.open(userHomeUrl, "_blank");
|
|
6560
|
-
},
|
|
6561
|
-
afterRender(config) {
|
|
6562
|
-
console.log(config);
|
|
6563
|
-
},
|
|
6564
|
-
},
|
|
6565
|
-
{
|
|
6566
|
-
text: "0.0.1",
|
|
6567
|
-
position: "right",
|
|
6568
|
-
className: "script-version",
|
|
6569
|
-
attributes: {},
|
|
6570
|
-
props: {},
|
|
6571
|
-
disableHoverCSS: true,
|
|
6572
|
-
clickCallback() {
|
|
6573
|
-
console.log("当前版本:" + this.text);
|
|
6574
|
-
},
|
|
6575
|
-
afterRender(config) {
|
|
6576
|
-
console.log(config);
|
|
6577
|
-
},
|
|
6578
|
-
},
|
|
6579
|
-
],
|
|
6544
|
+
bottomContentConfig: [],
|
|
6580
6545
|
btn: {
|
|
6581
6546
|
close: {
|
|
6582
6547
|
enable: true,
|
|
@@ -10093,8 +10058,19 @@
|
|
|
10093
10058
|
let config = PopsPanelConfig();
|
|
10094
10059
|
config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
|
|
10095
10060
|
config = popsUtils.assign(config, details);
|
|
10096
|
-
if (details
|
|
10097
|
-
|
|
10061
|
+
if (details) {
|
|
10062
|
+
if (Array.isArray(details.content)) {
|
|
10063
|
+
// 存在内容配置
|
|
10064
|
+
config.content = details.content;
|
|
10065
|
+
}
|
|
10066
|
+
if (Array.isArray(details.bottomContentConfig)) {
|
|
10067
|
+
// 存在底部配置
|
|
10068
|
+
config.bottomContentConfig = details.bottomContentConfig;
|
|
10069
|
+
}
|
|
10070
|
+
else {
|
|
10071
|
+
// 不存在底部配置 清空默认的
|
|
10072
|
+
config.bottomContentConfig = [];
|
|
10073
|
+
}
|
|
10098
10074
|
}
|
|
10099
10075
|
config = PopsHandler.handleOnly(popsType, config);
|
|
10100
10076
|
const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
|
|
@@ -11948,7 +11924,7 @@
|
|
|
11948
11924
|
},
|
|
11949
11925
|
};
|
|
11950
11926
|
|
|
11951
|
-
const version = "2.5.
|
|
11927
|
+
const version = "2.5.4";
|
|
11952
11928
|
|
|
11953
11929
|
class Pops {
|
|
11954
11930
|
/** 配置 */
|