@jx3box/jx3box-common-ui 8.9.3 → 8.9.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "8.9.3",
3
+ "version": "8.9.5",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -65,7 +65,7 @@ export default {
65
65
  default: "medium",
66
66
  },
67
67
  post: {
68
- type: Object,
68
+ type: [Object, String],
69
69
  default: () => {},
70
70
  },
71
71
  userId: {
@@ -176,7 +176,7 @@ export default {
176
176
  default: false,
177
177
  },
178
178
  postId: {
179
- type: Number,
179
+ type: [Number, String],
180
180
  default: 0,
181
181
  },
182
182
  },
@@ -61,7 +61,7 @@ export default {
61
61
  default: false,
62
62
  },
63
63
  post: {
64
- type: Object,
64
+ type: [Object, String],
65
65
  default: () => {
66
66
  return {};
67
67
  },
@@ -8,7 +8,7 @@
8
8
  </span>
9
9
  <ul class="u-menu u-pop-content">
10
10
  <li v-for="item in userPanel" :key="item.label">
11
- <a :href="item.link" :target="item.target || '_self'" class="u-menu-item">
11
+ <a :href="item.link" :target="item.target || '_self'" class="u-menu-item" @click="onClick(item)">
12
12
  <img :src="resolveImg(item.icon)" svg-inline class="u-menu-icon" :alt="item.icon" />
13
13
  {{ item.label }}
14
14
  <span v-if="showPop" class="u-new">New!</span>
@@ -89,11 +89,17 @@ export default {
89
89
  const local = localStorage.getItem("jb_panel_meta");
90
90
 
91
91
  if (local) {
92
- this.showPop = item?.meta != local
92
+ this.showPop = item?.meta && item?.meta != local
93
93
  } else {
94
94
  localStorage.setItem("jb_panel_meta", item?.meta);
95
95
  this.showPop = true
96
96
  }
97
+ },
98
+ onClick(item) {
99
+ if (item.meta) {
100
+ localStorage.setItem("jb_panel_meta", item.meta);
101
+ this.showPop = false
102
+ }
97
103
  }
98
104
  },
99
105
  };
@@ -44,7 +44,7 @@
44
44
  <div class="u-meta u-sub-block">
45
45
  <em class="u-label">适用客户端</em>
46
46
  <span class="u-value u-client" :class="'i-client-' + client">{{ showClientLabel(client) }}</span>
47
- <span class="u-value u-client i-client-wujie">无界</span>
47
+ <span class="u-value u-client i-client-wujie" v-if="is_wujie">无界</span>
48
48
  </div>
49
49
 
50
50
  <!-- 发布日期 -->