随笔分类 - vue笔记
摘要:第一种方法 ::-webkit-scrollbar-track { background: rgba(0,0,0,.1); border-radius: 0; } ::-webkit-scrollbar { -webkit-appearance: none; width: 10px; height:
阅读全文
摘要:改变坐标文字: xAxis、yAxis下添加 axisLabel: { show: true, textStyle: { color: '#ffffff' } } 改变其他文字: title、legend、series下添加 textStyle: { color: '#ffffff' }
阅读全文
摘要:this.$refs.自定义.setCheckedKeys([])
阅读全文
摘要:<el-tree :data="depData" show-checkbox node-key="id" ref="treedep" default-expand-all @check-change = "change2" :check-strictly="true" :props="default
阅读全文
摘要:第一种:responseType: 'blob' ,这种方式用于文件在磁盘中 vue: download(index,row){ var ts = this; axios.post(this.paths.baseURL+'file/downloadFile', {path:row.zurl}, {r
阅读全文
摘要:在原来ul基础上加 :http-request="uploadFile"即可,其他函数都可以用,只是请求方式自定义。 把文件放入formDate中 <el-form-item> <el-upload class="upload-demo" ref="upload2" :auto-upload="fa
阅读全文
摘要:<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
阅读全文
摘要:多选 <el-table :data="tableData" border @selection-change="handleSelectionChange"> <el-table-column type="selection" width="40px" :selectable="handleDis
阅读全文
摘要:单个插槽(默认插槽) <template> <div class="father"> <h3>这里是父组件</h3> <son> <div class="tmpl"> <span>xxxxxxxx</span> </div> </son> </div> </template> <script> im
阅读全文
摘要:全局加入如下样式即可(app.vue): body .el-table th.gutter{ display: table-cell!important; }
阅读全文
摘要:1、父组件获取子组件的数据和方法 $refs 子组件: <template> <div class="header"> <h3>{{ zz }}</h3> </div></template><script>export default { name: 'cx', data () { return {
阅读全文

浙公网安备 33010602011771号