Skip to content

dgiot/dgiot-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dgiot-component

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-component

Quick Start

  import Vue from 'vue'
  import App from './App.vue'

  +import dgiotStore from '@dgiot/dgiot-component/src/store'
  +import dgiotBus from '@dgiot/dgiot-component/src/utils/bus'
  +import dgiotMixin from '@dgiot/dgiot-component/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-component />
  </div>
</template>

<script>
+import dgiotMqttDashboard from '@dgiot/dgiot-component/mqtt'
export default {
  name: 'App',
  components: {
    +dgiotMqttDashboard
  },
  mounted() {
    console.log(this.Store)
  },
}
</script>

Online examples

Edit gmullerb-react-reducer-provider