mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-03 01:25:23 +00:00
update style
This commit is contained in:
parent
2a3f91be85
commit
bda30d28d0
@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License. -->
|
limitations under the License. -->
|
||||||
<template>
|
<template>
|
||||||
<div class="dashboard-tool flex-h">
|
<div class="dashboard-tool flex-h">
|
||||||
|
<div :class="isRelation ? 'flex-v' : 'flex-h'">
|
||||||
<div class="flex-h">
|
<div class="flex-h">
|
||||||
<div class="selectors-item" v-if="key !== 10">
|
<div class="selectors-item" v-if="key !== 10">
|
||||||
<span class="label">$Service</span>
|
<span class="label">$Service</span>
|
||||||
@ -58,6 +59,8 @@ limitations under the License. -->
|
|||||||
class="selectors"
|
class="selectors"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex-h" :class="isRelation ? 'relation' : ''">
|
||||||
<div class="selectors-item" v-if="key === 2 || key === 4 || key === 5">
|
<div class="selectors-item" v-if="key === 2 || key === 4 || key === 5">
|
||||||
<span class="label">$DestinationService</span>
|
<span class="label">$DestinationService</span>
|
||||||
<Selector
|
<Selector
|
||||||
@ -100,8 +103,9 @@ limitations under the License. -->
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="flex-h tools" v-loading="loading" v-if="!appStore.isMobile">
|
<div class="flex-h tools" v-loading="loading" v-if="!appStore.isMobile">
|
||||||
<div class="tool-icons flex-h" v-if="dashboardStore.editMode">
|
<div class="tool-icons" v-if="dashboardStore.editMode">
|
||||||
<el-dropdown content="Controls" placement="bottom" :persistent="false">
|
<el-dropdown content="Controls" placement="bottom" :persistent="false">
|
||||||
<i>
|
<i>
|
||||||
<Icon class="icon-btn" size="sm" iconName="control" />
|
<Icon class="icon-btn" size="sm" iconName="control" />
|
||||||
@ -198,6 +202,14 @@ const key = computed(() => {
|
|||||||
return (type && type.key) || 0;
|
return (type && type.key) || 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const isRelation = computed(() => {
|
||||||
|
return [
|
||||||
|
EntityType[7].value,
|
||||||
|
EntityType[6].value,
|
||||||
|
EntityType[5].value,
|
||||||
|
].includes(dashboardStore.entity);
|
||||||
|
});
|
||||||
|
|
||||||
setCurrentDashboard();
|
setCurrentDashboard();
|
||||||
appStore.setEventStack([initSelector]);
|
appStore.setEventStack([initSelector]);
|
||||||
initSelector();
|
initSelector();
|
||||||
@ -841,4 +853,8 @@ watch(
|
|||||||
.selectorPod {
|
.selectorPod {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.relation {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user