mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 15:20:25 +08:00
18 lines
367 B
JavaScript
18 lines
367 B
JavaScript
|
|
Vue.component("ip-box", {
|
||
|
|
props: [],
|
||
|
|
methods: {
|
||
|
|
popup: function () {
|
||
|
|
let e = this.$refs.container
|
||
|
|
let text = e.innerText
|
||
|
|
if (text == null) {
|
||
|
|
text = e.textContent
|
||
|
|
}
|
||
|
|
|
||
|
|
teaweb.popup("/servers/ipbox?ip=" + text, {
|
||
|
|
width: "50em",
|
||
|
|
height: "30em"
|
||
|
|
})
|
||
|
|
}
|
||
|
|
},
|
||
|
|
template: `<span @click.prevent="popup()" ref="container"><slot></slot></span>`
|
||
|
|
})
|