摘要:
mounted() { this.$nextTick(_ => { const realHeight = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight const originalHei 阅读全文
摘要:
<template> <div class="content-container"> <el-dialog :title="title" :visible.sync="dialogVisible" width="540px" :append-to-body="true" :close-on-clic 阅读全文
摘要:
// 是否存在上传中 let isUploading = false function broadcast(componentName, eventName, params) { this.$children.forEach(child => { var name = child.$options. 阅读全文
摘要:
/deep/ .el-switch { &::before { content: '开'; display: none; color: #fff; z-index: 1; margin-right: -12px; transform: translateX(7px); font-size: 12px 阅读全文
摘要:
css设置 white-space:pre-line;可以保留textarea里面的格式,包括空格、回车、tab、换行。不需要改变标签为pre,因为pre会让所有文字在一行显示,除非手动按回车换行。 阅读全文
摘要:
ImgViewer.vue <template> <Dialog title="图片预览" :visible.sync="dialogVisible" :append-to-body="true" @closed="dialogImageUrl = ''"> <img v-if="dialogIma 阅读全文
摘要:
const originalPush = Router.prototype.push // eslint-disable-next-line Router.prototype.push = function push(location) { return originalPush.call(this 阅读全文
摘要:
设置Dialog的rendered参数 mounted() { this.$refs.dialog.rendered = true this.$nextTick(() => { // 获取Dialog内部内容 }) }, 阅读全文
摘要:
<el-input v-model="form.note" required maxlength="500" :rows="4" show-word-limit type="textarea" placeholder="请输入备注信息" @keydown.enter.native="handleTe 阅读全文
摘要:
import html2canvas from 'html2canvas' import PrintJS from 'print-js' // 打印类属性、方法定义 给需要打印的加上class.flow-print /* eslint-disable */ const Print = functio 阅读全文