随笔分类 - vue笔记
摘要:vscode控制台执行: cmdlet set-ExecutionPolicy Remotesigned
阅读全文
摘要:<el-form-item label="验收时间" :label-width="formLabelWidths" prop="YS_TIME"> <el-date-picker v-model="ruleFormEnter.YS_TIME" type="datetime" placeholder=
阅读全文
摘要:安装依赖 npm install vue-particles --save-dev main.js import VueParticles from 'vue-particles' Vue.use(VueParticles) template <vue-particles color="#409EF
阅读全文
摘要:在使用webpack时 webpack 3.x 要使用 webpack-dev-server 2.x webpack 4.x 要使用 webpack-dev-server 3.x 查看webpack版本:webpack -v
阅读全文
摘要:el-table标签内加入: :span-method="objectSpanMethod" 定义初始化要合并列的对象: data(){ return{ tarr1:[], tarr2:[], tarr3:[], tarr4:[], tarr5:[], tarr6:[], tarr7:[], pos
阅读全文
摘要:index.html引入标签 <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.4&key=你申请的key"></script> or <script type="text/javascript"> windo
阅读全文
摘要:el-dialog标签内加入append-to-body即可。
阅读全文
摘要:表格内数据: :show-overflow-tooltip="true": <el-table-column :show-overflow-tooltip="true" type="index" label="序号" width="60px"></el-table-column> 表头部分省略号:
阅读全文
摘要:var option6 = { backgroundColor:'', color:["red","orange"], tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, grid: { left: '2%', right:
阅读全文
摘要:1、添加依赖 npm install --save @riophae/vue-treeselect 示例代码 <template> <div id="app"> <treeselect v-model="value" :multiple="true" :options="options" /> </
阅读全文
摘要:npm cache clean --force删除项目中的node_modules文件夹npm install
阅读全文
摘要:获取图片坐标: img标签中加入 @click='tapMap($event)' tapMap(e) { let x = e.layerX; let y = e.layerY; }, 和Graphics2D坐标不一致需要减去偏移量。 Graphics2D读取图片并画图: public void cr
阅读全文
摘要:echarts.on('click',function(params){ alert(params.name) })
阅读全文
摘要:在el-select标签里添加: filterable @change.native="selectBlur" @blur.native="selectBlur" selectBlur(e){ this.$set(this.addForm,"fname",e.target.value) }
阅读全文
摘要:折线线条颜色改变,在service里添加: itemStyle : { normal : { lineStyle:{ color:'#F56C6C' } } } 折线变曲线、在service里添加: smooth:true,
阅读全文
摘要:splitLine:{ show:false }, 在xAxis和yAxis标签里添加上述代码即可
阅读全文
摘要:itemStyle: { normal: { // 随机显示 color:function(d){return "#"+Math.floor(Math.random()*(256*256*256-1)).toString(16);} // 定制显示(按顺序) // color: function(p
阅读全文
摘要:安装: npm uninstall sass-loader npm uninstall node-sass -D npm install sass-loader@7.3.1 --save-dev npm install node-sass@4.14.1 --save-dev build/webpac
阅读全文
摘要:在series标签下添加:smooth: true true为曲线 flase为折线
阅读全文
摘要:接口 @PostMapping("/getVideo") public readVideo<byte[]> getVideo(@RequestBody Map<String,Object> map, HttpServletResponse response) throws Exception { t
阅读全文