![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Vue
MaoSource
简介
展开
-
Vant 4中的van-picker选择总是第一个的解决办法
他默认是渲染text,但是一般在我们使用中99%的数据渲染都不可能是text,这个时候就可以使用文档中的columns-field-names来自定义自定义 columns 结构中的字段,比如我们的数据里面现在是name为需要渲染的字段就可以这么写。但是这个时候就会发现一个问题,就是不管你怎么选择都是第一个选项,因为我也是个前端小白,找了蛮久都没找到解决办法,后来试了一下自定义value居然可以,所以就可以写成。为啥一开始不自定义value,因为我想获取的是选择的这个对象,不是这个对象里面的某个属性。原创 2023-08-26 11:04:41 · 1409 阅读 · 2 评论 -
Vue中使用Marked版本比较
Vue中使用Marked版本比较原创 2022-11-12 19:39:21 · 543 阅读 · 0 评论 -
element ui Cascader 级联选择器数据构建
Java构建Cascader 二级数据创建构建对象public class productCodeTree { private String value; private String label; private List<productCodeTree> children; public String getValue() { return value; } public void setValue(String原创 2022-02-24 15:56:23 · 511 阅读 · 0 评论 -
安装fibers失败
npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! fibers@3.1.1 install: `node build.js || nodejs build.js`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the fibers@3.1.1 install script.npm ERR! This is probably not a problem with npm. There is likel原创 2022-01-21 16:27:06 · 4508 阅读 · 0 评论 -
vue中使用mavonEditor
vue中使用mavonEditor原创 2021-12-01 15:54:32 · 2064 阅读 · 0 评论 -
axios同步请求
原创 2021-04-13 10:57:05 · 186 阅读 · 0 评论 -
使用docker部署前端
部署Cloud Webnpm install --registry=https://registry.npm.taobao.org安装好依赖后,修改根目录下.env.production文件内容:# just a flagENV = 'production'# base apiVUE_APP_BASE_API = '你的接口地址'将VUE_APP_BASE_API地址改为上面Ingress里配置的地址。然后双击npm窗口的build:prod,将项目打包:打包好后,项目根目录会多出个d原创 2021-03-27 15:01:40 · 308 阅读 · 0 评论 -
微服务docker化
创建文件夹,在文件夹下创建Dockerfile文件FROM openjdk:8u212-jreMAINTAINER Source 1134496928@qq.comCOPY PointManage-1.2.jar /manage/PointManage-1.2.jarENTRYPOINT ["java", "-Xmx256m", "-jar", "/manage/PointManage-1.2.jar"]上面脚本包含4条命令:FROM openjdk:8u212-jre表示由openjdk原创 2021-03-22 18:41:02 · 567 阅读 · 0 评论 -
FilePond文件上传插件
使用FilePond进行上传<template> <div id="app"> <file-pond name="test" ref="pond" <!-- 右下角版权--> credits="https://asource.top,Source" <!-- 提示--> label-idle="Drop files here..." 是否支持上传多文件原创 2020-12-10 21:04:21 · 1394 阅读 · 0 评论 -
vue的props属性,vue的插槽
需要在父组件中自定义子组件中的数据,只需要将父组件中的数据传给子组件即可,首先需要在父组件的props中声明一个传给子组件的属性props: { addTitle: { type: String, //指定类型 default: '添加' //默认值 } },然后子组件就可以直接通过props来拿props: ['addTitle'],拿到后就可以任意绑定到你想展示的数据上当然这个是是类组件给的,父组件可以通过在使用的子组件直接添加该属性然后给值原创 2020-12-09 20:49:58 · 206 阅读 · 0 评论 -
el-date-picker 初始化报错
在点击el-date-picker组件自带的x初始化后,提交数据报错Error in event handler for “click”: “TypeError: Cannot read property ‘0’ of null”Cannot read property ‘0’ of null因为我当前的类型是daterange是个数组,他默认初始化是为0所有会报类型错误,而且default-time并不会将其代替,所有 需要手动解决一下,在组件上先判断一下,当前是否为null ,如果是0就返原创 2020-11-13 10:24:12 · 2437 阅读 · 0 评论 -
vue-loader版本报错
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.打包运行时如有报错vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.说明vue-loader版原创 2020-09-18 18:30:57 · 3908 阅读 · 0 评论