摘要:
python3 python -m http.server 8080 python2 python -m SimpleHTTPServer 8080 阅读全文
摘要:
版本 "monaco-editor": "^0.30.1", "monaco-editor-webpack-plugin": "^6.0.0", 使用代码 <template> <div class="container1"> <div ref="codeContainer" style="heig 阅读全文
摘要:
原因:el-table组件会根据传入的 max-height 计算表格内容部分 和 fixed部分的最大高度,以此来生成滚动条和产生滚动效果,当传入的 max-height 为一个计算的高度时无法自动地完成计算 解决办法:手动地再对 表格内容部分 和 fixed部分 最大高度进行赋值 代码: // 阅读全文
摘要:
getDiffArr(oldData, newData) { //去重 let arr1 = new Set(oldData); //原数组 let arr2 = new Set(newData); //新数组 let List = []; //for of:循环数组的值 for (let k of 阅读全文
摘要:
// 上传文件调用 fileChange(fileData) { let raw = file.raw let fileParamList let reader = new FileReader() reader.readAsText(fileData); let _this = this read 阅读全文
摘要:
let tableId = 1; const data = [ [ { tableId:2, tableName:'我是祖先表AAAAAAAAAA', },{ tableId:3, tableName:'我是祖先表B', } ], [ { tableId:4, parentId:[2], table 阅读全文
摘要:
import axios from 'axios' import { Message } from 'element-ui' import { saveAs } from 'file-saver' import { getToken } from '@/utils/auth' const baseU 阅读全文
摘要:
<template> <div class="version-diff-content"> <div class="version-diff-top"> <div> <el-select v-model="versionDiffSelected.selectOne.version" placehol 阅读全文
摘要:
使用效果 使用方法 1. cnpm install vue-code-diff 2. <code-diff class="center" :renderNothingWhenEmpty="true" // 差异为空时不显示 :old-string="oldJsonData" // 对比旧数据 :ne 阅读全文
摘要:
console.log("下载文件内容", this.content) const blob = new Blob([this.content], {type: 'text/plain;charset=utf-8'}) let downloadElement = document.createEle 阅读全文