Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huruji/react-hlayer
the hlayer of react
https://github.com/huruji/react-hlayer
Last synced: 18 days ago
JSON representation
the hlayer of react
- Host: GitHub
- URL: https://github.com/huruji/react-hlayer
- Owner: huruji
- License: mit
- Created: 2017-05-22T07:47:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-11T11:25:14.000Z (over 7 years ago)
- Last Synced: 2024-11-11T09:44:12.170Z (about 1 month ago)
- Language: JavaScript
- Size: 51.8 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - react-hlayer
README
# react-hlayer
Hlayer的react版## 安装
```sh
npm install hlayer-react --save
```## 引入
```javascript
import Hlayer from 'react-hlayer';
import 'react-hlayer/hlayer.css';
```## 使用
使用方式为将Hlayer看做是一个组件,传递给Hlayer组件props即可,其中props中需要的两个属性为type和config,其中type为hlayer的类型,config为每个hlayer方法中的参数,如调用一个alert:
```js```
而每种type的具体config设置可以参考hlayer的[文档](https://github.com/huruji/Hlayer)