diff --git a/src/components/popover.vue b/src/components/popover.vue new file mode 100644 index 0000000..b3ad88a --- /dev/null +++ b/src/components/popover.vue @@ -0,0 +1,292 @@ + + + + + diff --git a/src/use.js b/src/use.js index 0ba70d4..6d4ecf1 100644 --- a/src/use.js +++ b/src/use.js @@ -5,11 +5,13 @@ import store from './store'; import config from './config'; import DotDotBox from './components/dot-dot-box.vue'; +import Popover from './components/popover.vue'; export default (app) => { app.use(router); app.use(store); app.component('DotDotBox', DotDotBox); + app.component('Popover', Popover); app.config.globalProperties.$hasSarasaTerm = !import.meta.env.VITE_DISABLE_SARASA_TERM_SC; app.config.globalProperties.$config = config; diff --git a/src/utils/zIndexManager.js b/src/utils/zIndexManager.js new file mode 100644 index 0000000..d10cc8a --- /dev/null +++ b/src/utils/zIndexManager.js @@ -0,0 +1,13 @@ +const BASE_Z_INDEX = 1000; +let zIndexCounter = BASE_Z_INDEX; + +export const getNextZIndex = () => { + zIndexCounter += 1; + return zIndexCounter; +}; + +export const getCurrentZIndex = () => zIndexCounter; + +export const resetZIndex = () => { + zIndexCounter = BASE_Z_INDEX; +}; diff --git a/src/views/components/server-detail/server-info-box.vue b/src/views/components/server-detail/server-info-box.vue index 3a16c8a..a8bda78 100644 --- a/src/views/components/server-detail/server-info-box.vue +++ b/src/views/components/server-detail/server-info-box.vue @@ -68,23 +68,26 @@
- - - {{ ttItem.label }} - - - {{ ttItem.value }} - - + + + +
diff --git a/src/views/components/server-detail/server-monitor.vue b/src/views/components/server-detail/server-monitor.vue index 3aa610d..1cacf47 100644 --- a/src/views/components/server-detail/server-monitor.vue +++ b/src/views/components/server-detail/server-monitor.vue @@ -67,38 +67,44 @@
-
- - - {{ cateItem.name }} - - - {{ cateItem.avg }}ms - - - -ms - -
+ + + +