fix: 简化部分代码,添加注释,添加是否需要高亮指令noHighlight

This commit is contained in:
刘洪洪
2023-12-14 16:20:33 +08:00
parent a3c8baea5c
commit d2cb42687e
8 changed files with 62 additions and 44 deletions

View File

@@ -48,6 +48,11 @@ export default {
showCloseIcon: false
}
},
provide () {
return {
myHighLight: !this.noHighlight
}
},
props: {
// 默认模式tag | text
defaultMode: String,
@@ -69,6 +74,10 @@ export default {
showHint: {
type: Boolean,
default: false
},
noHighlight: {
type: Boolean,
default: false
}
},
emits: ['search'],