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