@jx3box/jx3box-common-ui 5.4.9 → 5.5.0
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/assets/css/box.less +5 -5
- package/package.json +1 -1
- package/src/Box.vue +7 -7
package/assets/css/box.less
CHANGED
package/package.json
CHANGED
package/src/Box.vue
CHANGED
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
<span class="u-txt">首页</span>
|
|
13
13
|
</a>
|
|
14
14
|
</li>
|
|
15
|
-
<li v-for="(item,i) in
|
|
15
|
+
<li v-for="(item,i) in list" :key="i" :class="{'u-app-start':item.lf}">
|
|
16
16
|
<a class="u-item" :href="item.href" :target="item.href | getTarget">
|
|
17
|
-
<img class="u-pic"
|
|
18
|
-
<img class="u-pic-hover" svg-inline :src="item.hover | getBoxIcon" />
|
|
19
|
-
<span class="u-txt">{{item.
|
|
17
|
+
<img class="u-pic" :src="item.img | getBoxIcon" />
|
|
18
|
+
<!-- <img class="u-pic-hover" svg-inline :src="item.hover | getBoxIcon" /> -->
|
|
19
|
+
<span class="u-txt">{{item.abbr}}</span>
|
|
20
20
|
</a>
|
|
21
21
|
</li>
|
|
22
22
|
</ul>
|
|
@@ -56,8 +56,8 @@ export default {
|
|
|
56
56
|
return __imgPath + "image/box/origin.svg";
|
|
57
57
|
},
|
|
58
58
|
list : function (){
|
|
59
|
-
return this.data.
|
|
60
|
-
return item.status && item.client == this.client
|
|
59
|
+
return this.data.filter((item,i) => {
|
|
60
|
+
return item.status && (item.client == this.client || item.client == 'all')
|
|
61
61
|
})
|
|
62
62
|
}
|
|
63
63
|
},
|
|
@@ -100,7 +100,7 @@ export default {
|
|
|
100
100
|
return __imgPath + "image/box/" + val;
|
|
101
101
|
},
|
|
102
102
|
getTarget: function (val) {
|
|
103
|
-
if (window.innerWidth < 768 || val
|
|
103
|
+
if (window.innerWidth < 768 || val?.startsWith("/")) {
|
|
104
104
|
return "_self";
|
|
105
105
|
} else {
|
|
106
106
|
return "_blank";
|