CN-1479 fix: 搜索组件showHint提示文本修改

This commit is contained in:
刘洪洪
2023-12-13 17:05:16 +08:00
parent 3d1fbfa5fd
commit f5f857bcb4
14 changed files with 471 additions and 579 deletions

View File

@@ -6,7 +6,7 @@
<i class="cn-icon cn-icon-arrow-right"></i>
</span>
</div>
<div class="cn-entity__case">
<div class="cn-entity__case" ref="rowBlock">
<div class="cn-entity__icon"><i :class="iconClass"></i></div>
<div class="cn-entity__row">
<!--标签-->
@@ -327,6 +327,12 @@ export default {
/* 切换折叠状态 */
switchCollapse () {
this.isCollapse = !this.isCollapse
// 因为默认的背景白色会导致showhint的box-shadow被盖住所以展开详情时才渲染颜色
if (this.isCollapse) {
this.$refs.rowBlock.style.cssText = 'background-color: none'
} else {
this.$refs.rowBlock.style.cssText = 'background-color: #fff'
}
this.$emit('switchCollapse', this.isCollapse, this.index)
},
/* 设为折叠状态 */