@dgiot/dgiot-mqtt-dashboard
v1.2.8
Published
dgiot-mqtt-dashboard evenetBus
Downloads
146
Readme
dgiot-mqtt-dashboard
Installation
yarn add @dgiot/dgiot-mqtt-dashboard
Quick Start
main.js
import Vue from 'vue'
import App from './App.vue'
+import dgiotStore from '@dgiot/dgiot-mqtt-dashboard/src/store'
+import dgiotBus from '@dgiot/dgiot-mqtt-dashboard/src/utils/bus'
+import dgiotMixin from '@dgiot/dgiot-mqtt-dashboard/src/mixins/mqtt'
Vue.use(dgiotBus)
Vue.mixin(dgiotMixin)
Vue.config.productionTip = false
new Vue({
dgiotStore,
render: h => h(App),
}).$mount('#app')
examples.vue
<template>
<div id="app">
+<dgiot-mqtt-dashboard />
</div>
</template>
<script>
+import dgiotMqttDashboard from '@dgiot/dgiot-mqtt-dashboard/mqtt'
export default {
name: 'App',
components: {
+dgiotMqttDashboard
},
mounted() {
console.log(this.Store)
},
}
</script>