Fork me on GitHub
  2021年3月11日
摘要: 说明:el-switch的change事件只能拿到开关改变后的值,所以这里用input事件,并使用value绑定值,不使用v-model绑定 模板代码: 1 <el-table-column fixed="right" label="开关" width="100px"> 2 <template sl 阅读全文
posted @ 2021-03-11 17:58 寂寞傻中冷 阅读(2525) 评论(0) 推荐(0) 编辑
  2020年7月22日
摘要: 一、单独引入Element-ui 的 Message组件 main.js里面: 1 import { Button, Message} from "element-ui" 2 3 Vue.use(Button) 4 Vue.use(Message) 跑起来后没有调用直接出来了一个默认弹框 原因:Me 阅读全文
posted @ 2020-07-22 15:12 寂寞傻中冷 阅读(5875) 评论(0) 推荐(0) 编辑
  2020年6月29日
摘要: 一、实现效果 1、当 input 输入框不符合要求且在 input 失焦时显示提示词,符合要求隐藏提示词 2、实现 input 组件基本功能 二、组件实现代码 1、HTML <template> <div class="labelInput"> <span class="title">{{title 阅读全文
posted @ 2020-06-29 16:29 寂寞傻中冷 阅读(1301) 评论(0) 推荐(0) 编辑
  2020年5月28日
摘要: 一、获取第一张图片 获取ueditor内容,并获取第一张图片url let editHtml = window.myEditor.getContent() let cover = this.getFirstImg(editHtml) getFirstImg (html) { var a = html 阅读全文
posted @ 2020-05-28 11:56 寂寞傻中冷 阅读(491) 评论(0) 推荐(0) 编辑
  2020年4月27日
摘要: 一、需求: 1、h5页面点击一个保存按钮,下载对应的图片 ↑ 保存图片的按钮 ↑ 2、下载的这张图片是用 html2canvas 转换过来的 ↑ 这是要保存的目标HTML页面 ↑ 二、实现 1、目标HTML页面默认状态是隐藏的,在点击保存按钮之后才将目标页面显示出来(不能真的显示出来,z-index 阅读全文
posted @ 2020-04-27 09:42 寂寞傻中冷 阅读(9023) 评论(0) 推荐(0) 编辑