Skip to content

Commit

Permalink
fix: tootips指令手动设置allowHTML为false --bug=131272889
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 20218
  • Loading branch information
luofann committed Oct 11, 2024
1 parent 11b3afd commit 5276d4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions frontend/pc/src/components/renderview/tags/TagText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
<p class="text-block" v-for="(item, index) in value" :key="index">
<label v-if="item.label" class="label">
{{ item.label }}
<i v-if="item.desc || desc" v-bk-tooltips="{ content: item.desc || desc, allowHtml: false }" class="bk-itsm-icon icon-itsm-icon-help"></i>
<i v-if="item.desc || desc" v-bk-tooltips="{ content: item.desc || desc, allowHTML: false }" class="bk-itsm-icon icon-itsm-icon-help"></i>
</label>
<span class="value">{{ item.value }}</span>
</p>
</div>
<p v-else>
<label v-if="label" class="label">
{{ label }}
<i v-if="desc" v-bk-tooltips="{ content: desc, allowHtml: false }" class="bk-itsm-icon icon-itsm-icon-help"></i>
<i v-if="desc" v-bk-tooltips="{ content: desc, allowHTML: false }" class="bk-itsm-icon icon-itsm-icon-help"></i>
</label>
<span class="value">{{ value }}</span>
</p>
Expand Down
8 changes: 0 additions & 8 deletions frontend/pc/src/views/ticket/details/currentSteps/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,6 @@
// 组织架构
organizationList: [],
updateDate: +new Date(),
tooltipConfig: {
allowHtml: true,
trigger: 'click',
theme: 'light',
content: '#tooltipHtml',
placement: 'top',
extCls: 'bk-processor-wrapper',
},
// 手动触发器下拉框状态
isDropdownShow: false,
basicInDomHeight: 54, // 基本信息初始高度
Expand Down

0 comments on commit 5276d4f

Please sign in to comment.