Vue
蜗牛君子
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
js构建表单使用window.print()分页批量打印
定义要打印的视图容器id='printDetailDiv'首先,添加要展示的标签和一个容器body,我这里body用来展示表格<label class="form-label custom-col">收货单位:</label> <label class="form-label custom-col" id="id_customer"></label> <label class="form-labe原创 2021-10-24 21:50:18 · 1583 阅读 · 0 评论 -
vue element-ui直接全屏展示大图
已添加elementUI,先引入组件: import ElImageViewer from 'element-ui/packages/image/src/image-viewer.vue'添加展示大图的控件元素: <el-image-viewer v-if="showViewer" :on-close="closeViewer" :url-list="picLis原创 2020-06-30 22:21:22 · 3582 阅读 · 0 评论 -
vue TypeScript中引用js文件异常
在ts文件中引用js文件异常:TS7016: Could not find a declaration file for module '@/utils/auth'. 'D:/xxxxweb/src/utils/auth.js' implicitly has an 'any' type.解决方法:修改tsconfig.json中"strict"的值为false,禁用严格模式....原创 2020-02-20 18:49:03 · 2359 阅读 · 0 评论 -
vue axios跨域异常 Access-Control-Allow-Origin wildcard '*' mode is include withCredentials attribute
vue在request时错误信息如下,做此记录:Access to XMLHttpRequest at 'http://192.168.0.103:8080/user/userLogin' from origin 'http://localhost:8081' has been blocked by CORS policy: Response to preflight request does...原创 2020-02-20 17:51:22 · 2549 阅读 · 0 评论 -
The engine "node" is incompatible with this module. Expected version "^8.12.0 || >=9.7.0". Got "8.11
vue createmyproject:error default-gateway@5.0.5: The engine "node" is incompatible with this module. Expected version "^8.12.0 || >=9.7.0". Got "8.11.4"error Found incompatible module.引擎与该模块不...原创 2020-02-17 17:11:14 · 6367 阅读 · 2 评论 -
vue中使用cube-ui的Index-List
需求中有个页面是带导航的List列表,想来这么常见的需求定会有轮子可用,找了一通发现滴滴的开源库cube-ui实现了此功能,但在集成使用的过程中也遇到了一些问题,在此记录。错误信息:These relative modules were not found:./cubeic.ttf in ./node_modules/css-loader??ref–11-oneOf-3-1!./nod...原创 2019-03-22 16:01:35 · 3381 阅读 · 0 评论 -
Vue:You may have an infinite update loop in a component render function.
背景:出现该错误信息的部分代码如下:<div v-for="(item, index) in dataSource" :key="index"><div class="steps-full"><van-steps :active="stepsFlag(item.status)" active-color="#3a89fa"> ...原创 2019-07-01 14:28:05 · 2476 阅读 · 0 评论
分享