# vue-notification-component **Repository Path**: E_M/vue-notification-component ## Basic Information - **Project Name**: vue-notification-component - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-23 - **Last Updated**: 2021-06-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # my-notification > A Vue.js project ## Build Setup ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # build for production and view the bundle analyzer report npm run build --report ``` 项目使用vue-cli 启动 首先 在入口文件 main.js中引用和注册为全局方法 ``` import Notification from './components/notification' Vue.use(Notification) ``` 然后 在页面里使用,比如HelloWord组件,使用方法如下 ``` this.$notify({ content: 'this is a notification' }) ``` For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).