rc-arrowJavaScript 实现的箭头效果
JavaScript 实现的任意大小,任意方向, 任意角度的箭头。
示例截图
| 简单箭头 | 模拟select | 发散箭头 | 
|---|---|---|
安装
npm install rc-arrow --save
import Arrow from 'rc-arrow'
class Hw extends Component {
    render() {
        return (
            <Arrow size="20px" color="red"/>
        )
    }
} 
示例
属性
| name | type | default | description | 
|---|---|---|---|
| degree | number | 90 | 箭头的张角, 角度制 | 
| offsetDegree | number | 0 | 箭头的方向,默认指向右边 | 
| color | string | - | 箭头的颜色 | 
| size | string | 10px | 箭头边长 | 
评论
