随笔分类 -  vue笔记

摘要:第一种方法 ::-webkit-scrollbar-track { background: rgba(0,0,0,.1); border-radius: 0; } ::-webkit-scrollbar { -webkit-appearance: none; width: 10px; height: 阅读全文
posted @ 2021-07-05 18:36 _Lawrence 阅读(886) 评论(0) 推荐(1)
摘要:改变坐标文字: xAxis、yAxis下添加 axisLabel: { show: true, textStyle: { color: '#ffffff' } } 改变其他文字: title、legend、series下添加 textStyle: { color: '#ffffff' } 阅读全文
posted @ 2021-05-14 11:29 _Lawrence 阅读(8353) 评论(0) 推荐(0)
摘要:this.$refs.自定义.setCheckedKeys([]) 阅读全文
posted @ 2021-01-05 11:50 _Lawrence 阅读(331) 评论(0) 推荐(0)
摘要:<el-tree :data="depData" show-checkbox node-key="id" ref="treedep" default-expand-all @check-change = "change2" :check-strictly="true" :props="default 阅读全文
posted @ 2021-01-04 17:11 _Lawrence 阅读(230) 评论(0) 推荐(0)
摘要:第一种:responseType: 'blob' ,这种方式用于文件在磁盘中 vue: download(index,row){ var ts = this; axios.post(this.paths.baseURL+'file/downloadFile', {path:row.zurl}, {r 阅读全文
posted @ 2020-07-17 16:54 _Lawrence 阅读(1033) 评论(0) 推荐(0)
摘要:在原来ul基础上加 :http-request="uploadFile"即可,其他函数都可以用,只是请求方式自定义。 把文件放入formDate中 <el-form-item> <el-upload class="upload-demo" ref="upload2" :auto-upload="fa 阅读全文
posted @ 2020-07-09 17:47 _Lawrence 阅读(4667) 评论(0) 推荐(0)
摘要:<template> <div class="homepage-count"> <br><br><br> <el-row> <el-col :span="6"> <div id="main1" ref="chart1"></div> </el-col> <el-col :span="6"> <div 阅读全文
posted @ 2020-06-04 09:07 _Lawrence 阅读(739) 评论(0) 推荐(0)
摘要:多选 <el-table :data="tableData" border @selection-change="handleSelectionChange"> <el-table-column type="selection" width="40px" :selectable="handleDis 阅读全文
posted @ 2020-06-04 09:04 _Lawrence 阅读(5609) 评论(1) 推荐(1)
摘要:单个插槽(默认插槽) <template> <div class="father"> <h3>这里是父组件</h3> <son> <div class="tmpl"> <span>xxxxxxxx</span> </div> </son> </div> </template> <script> im 阅读全文
posted @ 2020-05-06 11:17 _Lawrence 阅读(189) 评论(0) 推荐(0)
摘要:全局加入如下样式即可(app.vue): body .el-table th.gutter{ display: table-cell!important; } 阅读全文
posted @ 2020-04-13 16:32 _Lawrence 阅读(3095) 评论(0) 推荐(1)
摘要:1、父组件获取子组件的数据和方法 $refs 子组件: <template> <div class="header"> <h3>{{ zz }}</h3> </div></template><script>export default { name: 'cx', data () { return { 阅读全文
posted @ 2020-01-15 12:02 _Lawrence 阅读(1458) 评论(0) 推荐(0)