docs(Highlight): add version tip (#12438)

This commit is contained in:
neverland
2023-11-12 09:45:04 +08:00
committed by GitHub
parent ca95a7c366
commit f72903b576
3 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
### Intro ### Intro
Highlight the specified text content. Highlight the specified text content. Please upgrade `vant` to >= v4.8.0 before using this component.
### Install ### Install
+1 -1
View File
@@ -2,7 +2,7 @@
### 介绍 ### 介绍
高亮指定文本内容。 高亮指定文本内容。请升级 `vant` 到 >= 4.8.0 版本来使用该组件。
### 引入 ### 引入
@@ -42,6 +42,9 @@ const t = useTranslate({
</template> </template>
<style lang="less"> <style lang="less">
.demo-highlight {
background: var(--van-background-2);
.van-highlight { .van-highlight {
padding: 0 16px; padding: 0 16px;
} }
@@ -49,4 +52,5 @@ const t = useTranslate({
.custom-class { .custom-class {
color: red; color: red;
} }
}
</style> </style>