@jx3box/jx3box-vue3-ui 0.9.2 → 0.9.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/assets/css/breadcrumb.less +8 -0
- package/assets/css/footer.less +6 -0
- package/assets/css/header.less +6 -0
- package/assets/css/main.less +10 -0
- package/package.json +4 -4
- package/src/Header.vue +8 -0
- package/src/interact/Fav.vue +2 -2
package/assets/css/footer.less
CHANGED
package/assets/css/header.less
CHANGED
package/assets/css/main.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-vue3-ui",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "JX3BOX Vue3 UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@element-plus/icons-vue": "^2.1.0",
|
|
29
|
-
"@jx3box/jx3box-common": "^8.
|
|
30
|
-
"@jx3box/jx3box-data": "^3.6.
|
|
29
|
+
"@jx3box/jx3box-common": "^8.4.1",
|
|
30
|
+
"@jx3box/jx3box-data": "^3.6.9",
|
|
31
31
|
"@jx3box/jx3box-emotion": "^1.2.8",
|
|
32
32
|
"@jx3box/jx3box-macro": "^1.0.1",
|
|
33
|
-
"@jx3box/jx3box-talent": "^1.2
|
|
33
|
+
"@jx3box/jx3box-talent": "^1.3.2",
|
|
34
34
|
"@jx3box/reporter": "^0.0.4",
|
|
35
35
|
"@tinymce/tinymce-vue": "^5.1.1",
|
|
36
36
|
"@vueuse/core": "^9.13.0",
|
package/src/Header.vue
CHANGED
|
@@ -36,6 +36,7 @@ import search from "./header/Search.vue";
|
|
|
36
36
|
import nav from "./header/Nav.vue";
|
|
37
37
|
import user from "./header/User.vue";
|
|
38
38
|
import Box from "../src/Box.vue";
|
|
39
|
+
import { isMiniProgram, miniprogramHack } from "@jx3box/jx3box-common/js/utils";
|
|
39
40
|
|
|
40
41
|
export default {
|
|
41
42
|
name: "CommonHeader",
|
|
@@ -57,6 +58,13 @@ export default {
|
|
|
57
58
|
if (window.navigator.userAgent.includes(KW)) {
|
|
58
59
|
document.documentElement.classList.add("env-app");
|
|
59
60
|
}
|
|
61
|
+
|
|
62
|
+
if (isMiniProgram()) {
|
|
63
|
+
document.documentElement.classList.add("wechat-miniprogram");
|
|
64
|
+
|
|
65
|
+
// 微信小程序hack
|
|
66
|
+
miniprogramHack();
|
|
67
|
+
}
|
|
60
68
|
},
|
|
61
69
|
|
|
62
70
|
// 检查
|
package/src/interact/Fav.vue
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<div class="w-fav2" :class="{ disabled: favorite }" @click="doFav">
|
|
3
3
|
<el-tooltip effect="dark" :content="favContent" placement="top-start">
|
|
4
4
|
<div>
|
|
5
|
-
<img v-if="favorite" class="u-icon" svg-inline
|
|
6
|
-
<img v-else class="u-icon" svg-inline
|
|
5
|
+
<img v-if="favorite" class="u-icon" svg-inline src="../../assets/img/widget/unstar.svg" />
|
|
6
|
+
<img v-else class="u-icon" svg-inline src="../../assets/img/widget/star.svg" />
|
|
7
7
|
<span class="u-count" v-if="!hiddenNum && total">{{ total }}</span>
|
|
8
8
|
</div>
|
|
9
9
|
</el-tooltip>
|