# cefc-ui-header

> CEFC-UI Component Header

Latest version **0.0.3** (published 2018-01-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install cefc-ui-header
pnpm add cefc-ui-header
yarn add cefc-ui-header
bun add cefc-ui-header
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-01-30 |
| First published | 2018-01-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | wscops, chenghuijun, simon_zhx, carltonxiang, kane |

## Links

- npm: https://www.npmjs.com/package/cefc-ui-header
- npm.io page: https://npm.io/package/cefc-ui-header

## Dependencies (3)

- [classnames](https://npm.io/package/classnames.md) ~2.2.5
- [cefc-ui-icon](https://npm.io/package/cefc-ui-icon.md) ~0.0.34
- [cefc-ui-style](https://npm.io/package/cefc-ui-style.md) ^0.0.17

## Recent versions

- 0.0.3 (latest) — 2018-01-30
- 0.0.2 — 2018-01-29
- 0.0.1 — 2018-01-08

## README

# Header

页头导航组件

## Example

```react
function handleBack() {
    history.back();
}
function handleClickHome() {
    // 推出子页面，回到主页
}
function handleClickRefresh() {
    // 刷新 Header 下面模块的数据
}

<Header>
	<Header.Title>证券交易</Header.Title>
  	<Header.Left><Icon type="header-back" /></Header.Left>
  	<Header.Right>
  		<Icon type="home" onClick={handleClickHome} />
      	<Icon type="refresh" onClick={handleClickRefresh} />
  	</Header.Right>
</Header>
```

## API

### Header

| 属性        | 说明                            | 类型            | 默认值           |
| --------- | ----------------------------- | ------------- | ------------- |
| prefixCls | 样式前缀，如：`cefc-header`，可用于自定义样式 | String        | `cefc-header` |
| children  | 标题、左右栏                        | React.Element | 无             |

### Header.Title

| 属性        | 说明                            | 类型            | 默认值           |
| --------- | ----------------------------- | ------------- | ------------- |
| prefixCls | 样式前缀，如：`cefc-header`，可用于自定义样式 | String        | `cefc-header` |
| children  | 标题栏自定义                        | React.Element | 无             |

### Header.Left

| 属性        | 说明                            | 类型            | 默认值           |
| --------- | ----------------------------- | ------------- | ------------- |
| prefixCls | 样式前缀，如：`cefc-header`，可用于自定义样式 | String        | `cefc-header` |
| children  | 左栏自定义                         | React.Element | 无             |
| onBack    | 返回上一页面回调，返回值为 `true` 则返回      | Function      | 空函数           |

### Header.Right

| 属性        | 说明                            | 类型            | 默认值           |
| --------- | ----------------------------- | ------------- | ------------- |
| prefixCls | 样式前缀，如：`cefc-header`，可用于自定义样式 | String        | `cefc-header` |
| children  | 右栏自定义                         | React.Element | 无             |

---
_Source: https://npm.io/package/cefc-ui-header · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
