摘要:
<template> <el-table ref="singleTable" :data="tableData" tooltip-effect="dark" style="width: 100%" @select="rowSelect" > <el-table-column type="select 阅读全文
摘要:
//父组件使用 <right-menu :visible.sync="visible" :list="list"></right-menu> .sync修饰符 在vue中说到数据绑定的时候第一时间想到的就是v-model,但是因为每个组件只能绑定一个v-model,如果其他props也要实现双向绑定 阅读全文
摘要:
**方法一** //获取文件流,将文件流转为文件通过<a></a>导出,中间可以做处理 let url = baseUrl + '接口地址' + token axios.get(url,{responseType: 'blob',timeout:600000}).then(async res => 阅读全文
摘要:
vue2写法 mixins.js import {reactive} from "vue"; export const mixins = () => { data(){ return{ test: "混入测试", } }, methods:{ divClick () { console.log("d 阅读全文
摘要:
<template> <el-table ref="singleTable" :data="tableData" tooltip-effect="dark" style="width: 100%" @select-all="selectAll" @select="rowSelect" @select 阅读全文
摘要:
<div class="content"></div> <el-button @click="copy">复制</el-button> copy() { let pList = document.querySelectorAll(".content") let valueList = [] if ( 阅读全文
摘要:
//字符串形式比较 let num = "return 19726.94 == 4561.33+15165.61" //获取字符串中的数字 extractNumber(str) { // 匹配整数、小数、正负号 const regex = /-?\d+(\.\d+)?/g; // 匹配结果 cons 阅读全文
摘要:
<template> <div> <div>{{content}}</div> <el-button size="small" icon="icon iconfont ps-fuzhi" type="primary" @click="testCopy()"> 复制 </el-button> </di 阅读全文
摘要:
//安装依赖 npm i markdown-it-vue //引入markdown-ite-vue import MarkdownItVue from "markdown-it-vue"; import "markdown-it-vue/dist/markdown-it-vue.css"; //注册 阅读全文
摘要:
1.建立platter类函数,命名为CustomPalette.js export default class CustomPalette { constructor(create, elementFactory, palette) { this.create = create; this.elem 阅读全文