Skip to content

Latest commit

 

History

History
81 lines (66 loc) · 2.92 KB

README.md

File metadata and controls

81 lines (66 loc) · 2.92 KB

dgiot-mqtt-dashboard

ommit-activity package Npm Version Node Version
Jsdeliver Month Downloads Install Size Type Support
Outdated Dep Vulnerablities License

微服务架构图_02.png

Installation

yarn add @dgiot/dgiot-mqtt-dashboard

Quick Start

  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')
<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>

Online examples

Edit gmullerb-react-reducer-provider