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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 7 deletions

View File

@ -2,7 +2,7 @@
### Intro
Highlight the specified text content.
Highlight the specified text content. Please upgrade `vant` to >= v4.8.0 before using this component.
### Install

View File

@ -2,7 +2,7 @@
### 介绍
高亮指定文本内容。
高亮指定文本内容。请升级 `vant` 到 >= 4.8.0 版本来使用该组件。
### 引入

View File

@ -42,11 +42,15 @@ const t = useTranslate({
</template>
<style lang="less">
.van-highlight {
padding: 0 16px;
}
.demo-highlight {
background: var(--van-background-2);
.custom-class {
color: red;
.van-highlight {
padding: 0 16px;
}
.custom-class {
color: red;
}
}
</style>