mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
chore(Barrage): inherit font family by default (#11895)
This commit is contained in:
parent
b5bb20e6c1
commit
8123222977
@ -140,9 +140,9 @@ import type { BarrageProps, BarrageItem, BarrageInstance } from 'vant';
|
||||
|
||||
The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/config-provider).
|
||||
|
||||
| Name | Default Value | Description |
|
||||
| --- | --- | --- |
|
||||
| --van-barrage-font-size | _16px_ | - |
|
||||
| --van-barrage-space | _10px_ | - |
|
||||
| --van-barrage-color | _var(--van-white)_ | - |
|
||||
| --van-barrage-font | _-apple-system-font, Helvetica Neue, Arial, sans-serif_ | - |
|
||||
| Name | Default Value | Description |
|
||||
| ----------------------- | ------------------ | ----------- |
|
||||
| --van-barrage-font-size | _16px_ | - |
|
||||
| --van-barrage-space | _10px_ | - |
|
||||
| --van-barrage-color | _var(--van-white)_ | - |
|
||||
| --van-barrage-font | _inherit_ | - |
|
||||
|
@ -145,9 +145,9 @@ import type { BarrageProps, BarrageItem, BarrageInstance } from 'vant';
|
||||
|
||||
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。
|
||||
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| --- | --- | --- |
|
||||
| --van-barrage-font-size | _16px_ | - |
|
||||
| --van-barrage-space | _10px_ | - |
|
||||
| --van-barrage-color | _var(--van-white)_ | - |
|
||||
| --van-barrage-font | _-apple-system-font, Helvetica Neue, Arial, sans-serif_ | - |
|
||||
| 名称 | 默认值 | 描述 |
|
||||
| ----------------------- | ------------------ | ---- |
|
||||
| --van-barrage-font-size | _16px_ | - |
|
||||
| --van-barrage-space | _10px_ | - |
|
||||
| --van-barrage-color | _var(--van-white)_ | - |
|
||||
| --van-barrage-font | _inherit_ | - |
|
||||
|
@ -1,7 +1,7 @@
|
||||
:root {
|
||||
--van-barrage-font-size: 16px;
|
||||
--van-barrage-space: 10px;
|
||||
--van-barrage-font: -apple-system-font, helvetica neue, arial, sans-serif;
|
||||
--van-barrage-font: inherit;
|
||||
--van-barrage-color: var(--van-white);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user