diff --git a/src/views/components/ConditionTags.vue b/src/views/components/ConditionTags.vue
index 5a9b0b72..2b03be46 100644
--- a/src/views/components/ConditionTags.vue
+++ b/src/views/components/ConditionTags.vue
@@ -33,33 +33,34 @@ limitations under the License. -->
@change="addLabels"
:placeholder="t('addTags')"
/>
-
-
-
-
-
-
-
- {{ item }}
-
-
-
-
-
-
+
+
+
+
+
+
+ {{ item }}
+
+
+
([]);
const tagArr = ref([]);
const tagList = ref([]);
const tagKeys = ref([]);
+const visible = ref(false);
const tipsMap = {
LOG: "logTagsTip",
TRACE: "traceTagsTip",
ALARM: "alarmTagsTip",
};
-const dropdownTag = ref>(null);
fetchTagKeys();
@@ -167,7 +168,6 @@ async function fetchTagValues() {
}
function selectTag(item: string) {
- dropdownTag.value.handleClose();
if (tags.value.includes("=")) {
const key = tags.value.split("=")[0];
tags.value = key + "=" + item;
@@ -194,11 +194,6 @@ function searchTags() {
tagList.value = tagArr.value.filter((d: string) => d.includes(search));
}
-function showClick() {
- if (dropdownTag.value) {
- dropdownTag.value.handleOpen();
- }
-}
watch(
() => appStore.durationTime,
() => {
@@ -243,6 +238,12 @@ watch(
.tag-item {
display: inline-block;
min-width: 210px;
+ cursor: pointer;
+ margin-top: 10px;
+
+ &:hover {
+ color: #409eff;
+ }
}
.tags-tip {
@@ -269,4 +270,10 @@ watch(
.icon-help {
cursor: pointer;
}
+
+.content {
+ width: 300px;
+ max-height: 400px;
+ overflow: auto;
+}