mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Highlight): add version tip (#12438)
This commit is contained in:
parent
ca95a7c366
commit
f72903b576
@ -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
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
### 介绍
|
||||
|
||||
高亮指定文本内容。
|
||||
高亮指定文本内容。请升级 `vant` 到 >= 4.8.0 版本来使用该组件。
|
||||
|
||||
### 引入
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user