@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.
@@ -6538,42 +6538,7 @@ var pops = (function () {
6538
6538
  },
6539
6539
  },
6540
6540
  ],
6541
- bottomContentConfig: [
6542
- {
6543
- text: "Github",
6544
- position: "left",
6545
- className: "user-home",
6546
- attributes: {
6547
- "data-url": "https://github.com/whitesevs",
6548
- },
6549
- props: {
6550
- "data-test": 1,
6551
- },
6552
- disableHoverCSS: false,
6553
- clickCallback() {
6554
- const userHomeUrl = this.attributes["data-url"];
6555
- console.log("打开个人主页:" + userHomeUrl);
6556
- window.open(userHomeUrl, "_blank");
6557
- },
6558
- afterRender(config) {
6559
- console.log(config);
6560
- },
6561
- },
6562
- {
6563
- text: "0.0.1",
6564
- position: "right",
6565
- className: "script-version",
6566
- attributes: {},
6567
- props: {},
6568
- disableHoverCSS: true,
6569
- clickCallback() {
6570
- console.log("当前版本:" + this.text);
6571
- },
6572
- afterRender(config) {
6573
- console.log(config);
6574
- },
6575
- },
6576
- ],
6541
+ bottomContentConfig: [],
6577
6542
  btn: {
6578
6543
  close: {
6579
6544
  enable: true,
@@ -10090,8 +10055,19 @@ var pops = (function () {
10090
10055
  let config = PopsPanelConfig();
10091
10056
  config = popsUtils.assign(config, GlobalConfig.getGlobalConfig());
10092
10057
  config = popsUtils.assign(config, details);
10093
- if (details && Array.isArray(details.content)) {
10094
- config.content = details.content;
10058
+ if (details) {
10059
+ if (Array.isArray(details.content)) {
10060
+ // 存在内容配置
10061
+ config.content = details.content;
10062
+ }
10063
+ if (Array.isArray(details.bottomContentConfig)) {
10064
+ // 存在底部配置
10065
+ config.bottomContentConfig = details.bottomContentConfig;
10066
+ }
10067
+ else {
10068
+ // 不存在底部配置 清空默认的
10069
+ config.bottomContentConfig = [];
10070
+ }
10095
10071
  }
10096
10072
  config = PopsHandler.handleOnly(popsType, config);
10097
10073
  const { $shadowContainer, $shadowRoot } = PopsHandler.handlerShadow(config);
@@ -11945,7 +11921,7 @@ var pops = (function () {
11945
11921
  },
11946
11922
  };
11947
11923
 
11948
- const version = "2.5.3";
11924
+ const version = "2.5.4";
11949
11925
 
11950
11926
  class Pops {
11951
11927
  /** 配置 */