@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.
@@ -152,4 +152,12 @@
152
152
  .none;
153
153
  }
154
154
  }
155
+
156
+ .wechat-miniprogram{
157
+ .c-breadcrumb{
158
+ .u-op {
159
+ .none;
160
+ }
161
+ }
162
+ }
155
163
  }
@@ -69,4 +69,10 @@
69
69
  .none;
70
70
  }
71
71
  }
72
+
73
+ .wechat-miniprogram {
74
+ .c-footer {
75
+ .none;
76
+ }
77
+ }
72
78
  }
@@ -524,6 +524,12 @@ body {
524
524
  padding-top: 0;
525
525
  }
526
526
  }
527
+
528
+ .wechat-miniprogram {
529
+ .c-header {
530
+ .none;
531
+ }
532
+ }
527
533
  }
528
534
 
529
535
  .c-header-jx3box {
@@ -65,4 +65,14 @@ a {
65
65
  .mt(0);
66
66
  }
67
67
  }
68
+
69
+ .wechat-miniprogram {
70
+ .c-wiki-comments {
71
+ .none;
72
+ }
73
+
74
+ .m-single-comment {
75
+ .none;
76
+ }
77
+ }
68
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-vue3-ui",
3
- "version": "0.9.2",
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.3.1",
30
- "@jx3box/jx3box-data": "^3.6.0",
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.7",
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
  // 检查
@@ -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 :src="unstarIcon" />
6
- <img v-else class="u-icon" svg-inline :src="starIcon" />
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>