vue-ios-actionsheet
iOS7+ style actionsheet service for Vue 2
Vue port of angular-ios-actionsheet.
Install
npm install vue-ios-actionsheet
Dependences
Promise
Usage
vm
buttonGroup = buttonObject | buttonObject[]
buttonObject keys:
- text, string
- color, boolean
- bold, boolean
- disable, boolean
- label, boolean
- handle, function, a data object which contains selectedIndex, selectedGroupIndex and button will be passed in
an example of buttonObject
text: 'button' color: true bold: true disable: false label: false { // data.selectedIndex // data.selectedGroupIndex // data.button }
Example
;; Vue; el: '#container' methods: { this } ;
License
MIT