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