vue-device-detector
vue-device-detector is a simple vue plugin to inspect the device type.
- focus on mobile
- vue friendly
- strong typed
TODO:
- add dingding api
- add weixin api
Install
npm install vue-device-detector --save
Quick Start
Vue
Methods
- this.$device in Component context.
- Vue.$device in global.
API list
you can get the following properties under this.$device
eg. on iphoneX
console // trueconsole // trueconsole // false
License
Contributors
Thanks goes to these wonderful people (emoji key):
Vincent Guo 💻 📖 🚇 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!