diff --git a/packages/vant/src/barrage/README.md b/packages/vant/src/barrage/README.md index 75276b444..3570f1973 100644 --- a/packages/vant/src/barrage/README.md +++ b/packages/vant/src/barrage/README.md @@ -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_ | - | diff --git a/packages/vant/src/barrage/README.zh-CN.md b/packages/vant/src/barrage/README.zh-CN.md index 0f9ee84d8..ebbff94a8 100644 --- a/packages/vant/src/barrage/README.zh-CN.md +++ b/packages/vant/src/barrage/README.zh-CN.md @@ -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_ | - | diff --git a/packages/vant/src/barrage/index.less b/packages/vant/src/barrage/index.less index 14eceb1be..5084bebca 100644 --- a/packages/vant/src/barrage/index.less +++ b/packages/vant/src/barrage/index.less @@ -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); }