@jx3box/jx3box-common-ui 7.7.5 → 7.7.7

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": "7.7.5",
3
+ "version": "7.7.7",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,7 +8,7 @@
8
8
  v-for="item in langs"
9
9
  :key="item.key"
10
10
  @click="onLangChange(item.key)"
11
- :class="{ 'is-active': item.key === currentLang }"
11
+ :class="{ 'is-active': item.key === currentLang, 'is-disabled': item.disabled }"
12
12
  >
13
13
  <a>{{ item.name }}</a>
14
14
  </li>
@@ -30,17 +30,17 @@ export default {
30
30
  {
31
31
  name: "繁体中文",
32
32
  key: "zh-tw",
33
- disabled: false,
33
+ disabled: true,
34
34
  },
35
35
  {
36
36
  name: "Tiếng Việt",
37
37
  key: "vi",
38
- disabled: false,
38
+ disabled: true,
39
39
  },
40
40
  {
41
41
  name: "English",
42
42
  key: "en-us",
43
- disabled: false,
43
+ disabled: true,
44
44
  },
45
45
  ], // 语言列表 简体中文、繁体中文、英文、越南语
46
46
  currentLang: "zh-cn", // 当前语言
@@ -82,6 +82,17 @@ export default {
82
82
  font-weight: 600;
83
83
  }
84
84
  }
85
+ &.is-disabled {
86
+ a {
87
+ color: #999;
88
+ cursor: not-allowed;
89
+ }
90
+ &:hover a {
91
+ // .tm(0);
92
+ background-color: #fff;
93
+ color: #999;
94
+ }
95
+ }
85
96
  }
86
97
  }
87
98
  @media screen and (max-width: @phone) {
@@ -13,7 +13,7 @@
13
13
  <em class="u-label">本月状态</em>
14
14
  已用<b>{{ this.used }}</b> 剩余<b>{{ this.left }}</b> 总计<b>{{ this.total }}</b>
15
15
  <el-progress
16
- :percentage="100 - (this.used * 100) / this.total"
16
+ :percentage="this.total ? 100 - (this.used * 100 / this.total) : 0"
17
17
  :stroke-width="15"
18
18
  :text-inside="true"
19
19
  ></el-progress>
@@ -15,7 +15,7 @@
15
15
  <div class="u-left">
16
16
  <em class="u-label">本月状态</em>
17
17
  已用<b>{{this.used}}</b> 剩余<b>{{this.left}}</b> 总计<b>{{this.total}}</b>
18
- <el-progress :percentage="100 - (this.used * 100 / this.total)" :stroke-width="15" :text-inside="true"></el-progress>
18
+ <el-progress :percentage="this.total ? 100 - (this.used * 100 / this.total) : 0" :stroke-width="15" :text-inside="true"></el-progress>
19
19
  </div>
20
20
  <div class="u-list">
21
21
  <em class="u-label">❤️ 品鉴</em>