Skip to content

Commit

Permalink
docs: empty page miss #152
Browse files Browse the repository at this point in the history
  • Loading branch information
3lang3 committed Nov 11, 2021
1 parent 84a04b0 commit e0f2bac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/react-vant/src/empty/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@ import { Empty } from 'react-vant';
| --- | --- | --- | --- |
| image | 图片类型,可选值为 `error` `network` `search`,支持传入图片 URL | _string\|ReactNode_ | `default` |
| description | 图片下方的描述文字 | _ReactNode_ | - |
| className | 定义图片或文字样式 | _string_ | - |

| className | 组件 class | _string_ | - |
| style | 组件样式 | _CSSProperties_ | - |

## 主题定制

### 样式变量

组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)

| 名称 | 默认值 | 描述 |
| ----------------------------------- | --------------------------- | ---- |
| 名称 | 默认值 | 描述 |
| ---------------------------------- | -------------------------- | ---- |
| --rv-empty-padding | _var(--rv-padding-xl) 0_ | - |
| --rv-empty-image-size | _160px_ | - |
| --rv-empty-image-size | _160px_ | - |
| --rv-empty-description-margin-top | _var(--rv-padding-md)_ | - |
| --rv-empty-description-padding | _0 60px_ | - |
| --rv-empty-description-padding | _0 60px_ | - |
| --rv-empty-description-color | _var(--rv-gray-6)_ | - |
| --rv-empty-description-font-size | _var(--rv-font-size-md)_ | - |
| --rv-empty-description-line-height | _var(--rv-line-height-md)_ | - |
| --rv-empty-bottom-margin-top | _24px_ | - |
| --rv-empty-bottom-margin-top | _24px_ | - |
1 change: 1 addition & 0 deletions packages/react-vant/vant.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ module.exports = {
{ path: 'collapse', title: 'Collapse 折叠面板' },
{ path: 'count-down', title: 'CountDown 倒计时' },
{ path: 'divider', title: 'Divider 分割线' },
{ path: 'empty', title: 'Empty 空状态' },
{ path: 'image-preview', title: 'ImagePreview 图片预览' },
{ path: 'lazyload', title: 'Lazyload 懒加载' },
{ path: 'list', title: 'List 列表' },
Expand Down

0 comments on commit e0f2bac

Please sign in to comment.