mkd-palette-button
v0.1.3
Published
An palette-button component for vue.js
Downloads
2
Readme
Overview
palette-button is a set of buttons that can expand and collapse
Usage
see example
Option
- content: the text content of the main button
- offset: the offset arc of the fan-shaped area
- direction: the direction of the fan-shaped area, belongs to one of the ['lt', 't', 'rt', 'r', 'rb', 'b', 'lb', 'l']
- radius: the radius of the fan-shaped area
- mainButtonStyle: set the style of the main button
Method
- toggle: toggle between expand and collapse
- expand: expand all sub buttons
- collapse: collapse all sub buttons
Event
- expand: begin expand sub buttons
- expanded: all sub buttons has been expanded
- collapse: begin collapse sub buttons