vue 全局组件【原】
2024-08-24 10:17:09
1.目录
2.内容 -Loading.vue
<template>
<div class="loading">
loading...
</div>
</template>
2.内容 -index.js
import MyLoading from './Loading.vue'
const Loading = {
install: function(Vue){
Vue.component('Loading',MyLoading)
}
}
export default Loading
3.引入-main.js
import Loading from '@componentUtils/loading/index.js'//全局组件
Vue.use(Loading);
4.使用
<Loading></Loading>
5.end
最新文章
- Web jquery表格组件 JQGrid 的使用 - 全部代码
- .net core 跨平台实践
- em 和 px相互转换
- oracle服务介绍
- Android 6.0 闪光灯的使用
- sass安装步骤
- Unity 类似FingerGestures 的相机跟随功能
- Adobe After Effects 2017-14.0安装教程
- SOFA 源码分析 — 链路数据透传
- scrollview嵌套下拉控件嵌套recyclerview(不动第三方原基础自定义)
- springboot热部署配置
- eclipse svn合并小结
- A1119. Pre- and Post-order Traversals
- Matlab远程调试 转
- Java第04次实验提纲(面向对象2-继承、多态、抽象类与接口)
- (转)预处器的对比——Sass、LESS和Stylus
- 在window的cmd窗口下运行linux命令
- GNU C中的零长度数组
- 《linux系统及其编程》实验课记录(五)
- elementui raido 单选框 循环渲染加:key
热门文章
- FCC JS基础算法题(0):Reverse a String(翻转字符串)
- dos脚本
- ipa 注入 dylib
- 关于windows下的makefile学习
- OneStopEnglish corpus: A new corpus for automatic readability assessment and text simplification-paper
- C++调用ffmpeg.exe提取视频帧
- MySQL数据库-pymysql模块操作数据库
- Linux进程调度与抢占
- grep 使用
- nginx实现按日期进行日志分割