fix: 简化部分代码,添加注释,添加是否需要高亮指令noHighlight
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user