项目作者: ykforerlang

项目描述 :
An arrow of arbitrary size, arbitrary direction, and arbitrary angle
高级语言: JavaScript
项目地址: git://github.com/ykforerlang/rc-arrow.git
创建时间: 2018-03-02T08:39:57Z
项目社区:https://github.com/ykforerlang/rc-arrow

开源协议:

下载


rc-arrow

中文文档

An arrow of arbitrary size, arbitrary direction, and arbitrary angle

Example screenshot

simple simulate select 发散箭头
simple simulate select 发散箭头

Install

npm install rc-arrow --save

  1. import Arrow from 'rc-arrow'
  2. class Hw extends Component {
  3. render() {
  4. return (
  5. <Arrow size="20px" color="red"></Arrow>
  6. )
  7. }
  8. }

Example

online example

Example code

props

name type default description
degree number 90 the angle of the arrow
offsetDegree number 0 the direction of the arrow,

The default direction is on the right |
| color| string| -| the color of the arrow |
| size| string|10px| the size of the arrow |