JavaScript 实现的箭头效果 rc-arrow
- 授权协议: GPL
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/ykforerlang/rc-arrow
- 软件文档: https://github.com/ykforerlang/rc-arrow/blob/master/README_Zh.md
- 官方下载: https://github.com/ykforerlang/rc-arrow
软件介绍
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 | 箭头边长 |