diff --git a/packages/notice-bar/README.md b/packages/notice-bar/README.md index 5a61c3a8..aecb2ded 100644 --- a/packages/notice-bar/README.md +++ b/packages/notice-bar/README.md @@ -126,3 +126,19 @@ | 类名 | 说明 | | ------------ | ------------ | | custom-class | 根节点样式类 | + +### 样式变量 + +组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/config-provider)。 + +| 名称 | 默认值 | 描述 | +| --- | --- | --- | +| --notice-bar-height | _40px_ | - | +| --notice-bar-padding | _0 var(--van-padding-md)_ | - | +| --notice-bar-wrapable-padding | _var(--van-padding-xs) var(--van-padding-md)_ | - | +| --notice-bar-text-color | _var(--van-orange-dark)_ | - | +| --notice-bar-font-size | _var(--van-font-size-md)_ | - | +| --notice-bar-line-height | _24px_ | - | +| --notice-bar-background-color | _var(--van-orange-light)_ | - | +| --notice-bar-icon-size | _16px_ | - | +| --notice-bar-icon-min-width | _24px_ | - | diff --git a/packages/notice-bar/index.wxml b/packages/notice-bar/index.wxml index 9f6ee24f..21b0973c 100644 --- a/packages/notice-bar/index.wxml +++ b/packages/notice-bar/index.wxml @@ -9,7 +9,6 @@ > diff --git a/packages/notice-bar/test/__snapshots__/demo.spec.ts.snap b/packages/notice-bar/test/__snapshots__/demo.spec.ts.snap index ebe24efb..b82ab08e 100644 --- a/packages/notice-bar/test/__snapshots__/demo.spec.ts.snap +++ b/packages/notice-bar/test/__snapshots__/demo.spec.ts.snap @@ -22,7 +22,7 @@ exports[`should render demo and match snapshot 1`] = ` > @@ -225,7 +225,7 @@ exports[`should render demo and match snapshot 1`] = ` >