服务列表页带宽使用比特代替字节

This commit is contained in:
GoEdgeLab
2022-10-03 19:25:20 +08:00
parent bceb14cedc
commit cab36d6f68
15 changed files with 161 additions and 184 deletions

View File

@@ -0,0 +1,16 @@
Vue.component("bits-var", {
props: ["v-bits"],
data: function () {
let bits = this.vBits
if (typeof bits != "number") {
bits = 0
}
let format = teaweb.splitFormat(teaweb.formatBits(bits))
return {
format: format
}
},
template:`<var class="normal">
<span>{{format[0]}}</span>{{format[1]}}
</var>`
})