- 博客(6)
- 资源 (4)
- 收藏
- 关注

原创 vue富文本编辑器
电脑端1,组件 <Qedito v-show="buttonType === 1" v-model="details" :value="details" @quillContent="changeEditor" />2.引入组件import Qedito from '@/components/common/quill' //电脑端import ...
2019-06-26 11:06:28
160

原创 vue 点击空白区域隐藏div
在vue的mounted中写,在vue中,jq的this并没有指向当前的data,需const _this = this 改变this指向const _this = this $(document).click(function(e) { console.log('e', e) if (_this.debug === 0) { // 如果当前是显示的,则将标...
2019-06-18 17:15:14
1609
1
原创 Js Vue全屏切换显示 指定div切换全屏显示
Js Vue全屏切换显示 指定div切换全屏显示效果我这里是用jq 写的,我这里写的是点击按钮切换展示。 <div @click="handleFullScreen" class="full-screen"> <img v-if="!fullScreen" src="${mvcPath}/dacp-res/images/full_screen.png"/> <img v-if
2021-05-25 11:05:59
594
原创 vue 手机,邮箱,网址,各种正则表达验证
export function isvalidUsername(str) {const valid_map = [‘admin’, ‘editor’]return valid_map.indexOf(str.trim()) >= 0}/* 合法uri*/export function validateURL(textval) {const urlregex = /^(?:http...
2019-06-26 11:19:57
2753
原创 vue 分页组件
<template> <div class="all-father"> <div v-if="showNotice" class="notice-page"> 共<span style="color: red;">{{ pages }}</span>页 / <span style="color: red;">{{ ...
2019-06-26 11:18:06
348
1
原创 vue 分页删除最后一条数据,返回上一级的分页
我分页封装的组件,具体代码可以查看我之前的博客,这里直接上代码在删除事件里面,删除成功加入这段代码 // 为了在删除最后一页的最后一条数据时能成功跳转回最后一页的上一页 const totalPage = Math.ceil((this.count - 1) / this.pageSize) // 总页数 this.currentPage = this.cur...
2019-06-26 11:15:29
6249
1
vscode 兼容eslint插件.txt
2019-06-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人