https://github.com/future-team/gfs-head
head&footer for future-team components examples
https://github.com/future-team/gfs-head
Last synced: 20 days ago
JSON representation
head&footer for future-team components examples
- Host: GitHub
- URL: https://github.com/future-team/gfs-head
- Owner: future-team
- License: mit
- Created: 2017-02-13T09:03:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T08:48:57.000Z (over 9 years ago)
- Last Synced: 2025-10-19T18:43:36.877Z (9 months ago)
- Language: JavaScript
- Size: 65.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gfs-head
future-team 框架demo共用头尾。
## 引入
```js
import {Head,Footer} from '../../src/index.js'
```
## 使用
* 首先保证html中存在head,footer两部分以供插入。如下
```html
这里是内容
```
* 头部支持配置,传入一个title数组即可。如下:
```js
let titles = [
{title: '博客', href: 'http://uedfamily.com/'},
{title: '文档', href: 'http://xxx.com'},
{title: '关于我们', href: 'http://uedfamily.com/about/'},
{title: '更多组件', href: 'http://uedfamily.com/framework/'}
];
ReactDom.render(
,
document.getElementById('head')
);
```
* 底部信息支持传参和children两种形式,两者都存在的情况下,children形式优先。
```js
ReactDom.render(
sddsdssdsd
,
document.getElementById('footer')
);
```
## version
```
* 0.0.5 修复必要的css
* 0.0.2 删除不必要的reactDom
* 0.0.1 初始版本
```