@jx3box/jx3box-common-ui 7.7.8 → 7.8.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/package.json
CHANGED
package/src/filters/topicBy.vue
CHANGED
|
@@ -45,6 +45,10 @@ export default {
|
|
|
45
45
|
type: String,
|
|
46
46
|
default: "",
|
|
47
47
|
},
|
|
48
|
+
label: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: "主题",
|
|
51
|
+
}
|
|
48
52
|
},
|
|
49
53
|
emits: ["update:modelValue"],
|
|
50
54
|
model: {
|
|
@@ -60,7 +64,7 @@ export default {
|
|
|
60
64
|
computed: {
|
|
61
65
|
activeText() {
|
|
62
66
|
const { value } = this;
|
|
63
|
-
return value === "全部" ?
|
|
67
|
+
return value === "全部" ? this.label : value;
|
|
64
68
|
},
|
|
65
69
|
computedTopics() {
|
|
66
70
|
return ["全部", ...this.topics];
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<li
|
|
8
8
|
v-for="item in langs"
|
|
9
9
|
:key="item.key"
|
|
10
|
-
@click="onLangChange(item
|
|
10
|
+
@click="onLangChange(item)"
|
|
11
11
|
:class="{ 'is-active': item.key === currentLang, 'is-disabled': item.disabled }"
|
|
12
12
|
>
|
|
13
13
|
<a>{{ item.name }}</a>
|
|
@@ -51,8 +51,9 @@ export default {
|
|
|
51
51
|
this.currentLang = lang;
|
|
52
52
|
},
|
|
53
53
|
methods: {
|
|
54
|
-
onLangChange(
|
|
55
|
-
|
|
54
|
+
onLangChange({disabled, key}) {
|
|
55
|
+
if (disabled) return;
|
|
56
|
+
localStorage.setItem("lang", key);
|
|
56
57
|
location.reload();
|
|
57
58
|
},
|
|
58
59
|
},
|
package/src/header/user.vue
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<manage />
|
|
21
21
|
|
|
22
22
|
<!-- 语言切换 -->
|
|
23
|
-
<lang-switch />
|
|
23
|
+
<!-- <lang-switch /> -->
|
|
24
24
|
|
|
25
25
|
<!-- user info -->
|
|
26
26
|
<user-info :asset="asset" @logout="logout" />
|
|
@@ -49,7 +49,7 @@ import vip from "./vip.vue"
|
|
|
49
49
|
import asset from "./asset.vue"
|
|
50
50
|
import manage from "./manage.vue"
|
|
51
51
|
import userInfo from './userInfo.vue';
|
|
52
|
-
import langSwitch from "./langSwitch.vue";
|
|
52
|
+
// import langSwitch from "./langSwitch.vue";
|
|
53
53
|
import shop from "./shop.vue";
|
|
54
54
|
export default {
|
|
55
55
|
components: {
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
asset,
|
|
60
60
|
manage,
|
|
61
61
|
userInfo,
|
|
62
|
-
langSwitch,
|
|
62
|
+
// langSwitch,
|
|
63
63
|
shop
|
|
64
64
|
},
|
|
65
65
|
data: function () {
|