chore(Barrage): inherit font family by default (#11895)

This commit is contained in:
neverland 2023-05-21 22:31:04 +08:00 committed by GitHub
parent b5bb20e6c1
commit 8123222977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 13 deletions

View File

@ -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_ | - |

View File

@ -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_ | - |

View File

@ -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);
}