mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-10 01:10:29 +08:00
实现缓存策略的部分功能
This commit is contained in:
7
web/public/js/components/common/size-capacity-view.js
Normal file
7
web/public/js/components/common/size-capacity-view.js
Normal file
@@ -0,0 +1,7 @@
|
||||
Vue.component("size-capacity-view", {
|
||||
props:["v-default-text", "v-value"],
|
||||
template: `<div>
|
||||
<span v-if="vValue != null && vValue.count > 0">{{vValue.count}}{{vValue.unit.toUpperCase()}}</span>
|
||||
<span v-else>{{vDefaultText}}</span>
|
||||
</div>`
|
||||
})
|
||||
Reference in New Issue
Block a user