缓存策略列表支持搜索

This commit is contained in:
GoEdgeLab
2021-06-07 08:43:57 +08:00
parent 1056bf88eb
commit 0ccef0a30b
3 changed files with 57 additions and 37 deletions

View File

@@ -9,7 +9,7 @@ Vue.component("keyword", {
let slot = this.$slots["default"][0]
let text = slot.text
if (word.length > 0) {
text = text.replace(new RegExp(word, "g"), "<span style=\"border: 1px #ccc dashed\">" + word + "</span>")
text = text.replace(new RegExp(word, "g"), "<span style=\"border: 1px #ccc dashed; color: #ef4d58\">" + word + "</span>")
}
return {