dgiot / dgiot-component

Home Page:https://www.npmjs.com/package/@dgiot/dgiot-component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

main.js

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

examples.vue

<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

About

https://www.npmjs.com/package/@dgiot/dgiot-component

License:Mozilla Public License 2.0


Languages

Language:JavaScript 83.3%Language:Vue 16.1%Language:CSS 0.4%Language:HTML 0.1%