mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-15 04:41:25 +08:00
节点列表节点IP超出4个后可以自动隐藏和显示
This commit is contained in:
@@ -48,4 +48,17 @@ Tea.context(function () {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 显示和隐藏IP
|
||||
*/
|
||||
this.mostIPVisible = 4
|
||||
|
||||
this.showMoreIP = function (nodeIndex, node) {
|
||||
if (typeof node.ipAddressesVisible != "boolean") {
|
||||
node.ipAddressesVisible = false
|
||||
}
|
||||
node.ipAddressesVisible = !node.ipAddressesVisible
|
||||
Vue.set(this.nodes, nodeIndex, node)
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user