0.1.2 • Published 7 months ago
dm-hello-world v0.1.2
hello-world
install
npm i dm-hello-world
Usage
// 在Vue项目main.js 导入自定义插件
import Vue from "vue";
import DmHelloWorld from "dm-hello-world";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import App from "./App.vue";
Vue.use(DmHelloWorld);
Vue.use(ElementUI);
Vue.config.productionTip = false;
new Vue({
render: (h) => h(App),
}).$mount("#app");
// Use in pages
<template>
<div id="app">
<CustomButton />
</div>
</template>
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint