Files
EdgeAdmin/web/public/js/components/server/traffic-limit-view.js

16 lines
621 B
JavaScript
Raw Normal View History

2021-11-09 17:36:38 +08:00
// 显示流量限制说明
Vue.component("traffic-limit-view", {
props: ["v-traffic-limit"],
2021-10-29 14:02:01 +08:00
data: function () {
return {
2021-11-09 17:36:38 +08:00
config: this.vTrafficLimit
2021-10-29 14:02:01 +08:00
}
},
template: `<div>
<div v-if="config.isOn">
2021-11-09 17:36:38 +08:00
<span v-if="config.dailySize != null && config.dailySize.count > 0">日流量限制{{config.dailySize.count}}{{config.dailySize.unit.toUpperCase()}}<br/></span>
<span v-if="config.monthlySize != null && config.monthlySize.count > 0">月流量限制{{config.monthlySize.count}}{{config.monthlySize.unit.toUpperCase()}}<br/></span>
2021-10-29 14:02:01 +08:00
</div>
<span v-else class="disabled">没有限制</span>
</div>`
})