1.0.5 • Published 3 years ago
th-vue-notification v1.0.5
消息通知
- 项目引用
npm i element-ui -S npm i th-vue-notification -S
import ThVueNotification from 'th-vue-notification'
import 'th-vue-notification/lib/th-vue-notification.css'
Vue.use(ThVueNotification)
一、指令说明
# 安装依赖
npm run pre
# 启动DEMO开发模式
npm run dev
# 打包组件
npm run build
# 发布(npm adduser && npm login)
npm run deploy
二、使用方法
通过jquery异步加载页面的方式载入index.html
页面
<head>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<div id="top-header"></div>
<script>
$(document).ready(function(){
$("#top-header").load("index.html");
})
</script>
</body>