![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
vue
前端vue
这个作者很懒,什么都没留下…
展开
-
vue使用拖拽功能实现仓库存放货物的需求
vue使用拖拽功能实现仓库存放货物的需求。原创 2023-08-04 15:55:39 · 490 阅读 · 0 评论 -
vue上传文件纯前端实现进度条
vue上传文件纯前端实现进度条。附:el-progress整体封装。原创 2023-03-28 18:10:47 · 1217 阅读 · 1 评论 -
table无限嵌套table
table无限嵌套,需要达到:长度不确定,列数不固定,表头不一致。在模板中使用name属性值,来调用自己。原创 2022-12-23 14:50:59 · 751 阅读 · 0 评论 -
后端返回什么格式 前端显示的就是什么格式
1. word-break:break-all;只对英文起作用,以字母作为换行依据2. word-wrap:break-word; 只对英文起作用,以单词作为换行依据3. white-space:pre-wrap; 只对中文起作用,强制换行4. white-space:nowrap; 强制不换行,都起作用5. white-space:word-wrap: break-word;word-break: break-all;不加上面的样式的话,页面渲染就是这样。加完以后的样式就是下图:原创 2020-03-30 13:04:34 · 1005 阅读 · 0 评论 -
el-tree 懒加载的情况下 重新加载
el-tree 懒加载的情况下 重新加载。原创 2022-08-18 17:01:01 · 4034 阅读 · 0 评论 -
vue 读取本地excel文件
vue 读取本地excel文件原创 2022-06-30 16:41:19 · 2404 阅读 · 5 评论 -
前端常用知识----超链接
前端常用知识点总结,面试总结,常用工具总结等,不是很全,只是给自己列一个大的框架,长期更新!2022-9-5原创 2021-12-04 19:22:35 · 892 阅读 · 0 评论 -
改变css变量,进行全局换肤
改变css变量,进行全局换肤原创 2022-06-07 11:31:33 · 713 阅读 · 0 评论 -
vue实现登录验证码
vue实现登录验证码原创 2022-04-12 08:59:04 · 6259 阅读 · 0 评论 -
Vue RSA加密和解密
Vue RSA加密和解密原创 2022-04-08 16:52:22 · 4273 阅读 · 0 评论 -
2021最后一天,用《词云图》的方式定个小目标
2021,拜拜原创 2021-12-31 18:13:50 · 741 阅读 · 0 评论 -
vue 复制粘贴功能(进入页面获取剪切板中的内容)
1、v-clipboard插件2、不用插件,进入页面获取剪切板中的内容1、v-clipboard插件1.安装依赖npm install --save v-clipboard 2.在main.js中引入import Vue from 'vue'import Clipboard from 'v-clipboard' Vue.use(Clipboard) 3.使用<template> <button v-clipboard="value" v-c原创 2021-11-26 13:24:53 · 6213 阅读 · 1 评论 -
vue大屏展示 代码 从0 到1
1、基本骨架2、段落23、段落34、段落41、基本骨架<template> <div id="parentDiv"> <myHeader></myHeader> <div id="container" class="flex-a-center-j-between"> <div class="left"> <div class="leftTop"></div&g原创 2021-11-18 11:55:50 · 1568 阅读 · 2 评论 -
Vue让指定div容器全屏
export default { name: 'top', components: {}, props: { id: { type: String, default () { return '' } } }, data () { return { time: moment().format('YYYY-MM-DD HH:mm:ss'), a: 0, } }, watch:原创 2021-11-18 11:23:08 · 816 阅读 · 0 评论 -
vue常用方法总结
1、常用工具类2、本地存储工具类常用工具类 tool.js/** 验证手机号是否合格* true--说明合格*/export function isPhone(phoneStr){ let myreg = /^[1][3,4,5,7,8,9][0-9]{9}$/; if (!myreg.test(phoneStr)) { return false; } else { return true; }}/** 验证身份证号是否合原创 2021-07-08 16:03:47 · 1411 阅读 · 0 评论 -
G6 总结
我学习G6看的几篇文章:1、G6入门2、关于antV G6中的on事件、util.each事件及update方法等的使用总结3、tooltip 节点提示框1、拖拽、缩放——内置的交互行为在 G6 中使用内置 Behavior 的方式非常简单,只需要在图实例化时配置 modes。拖拽和缩放属于 G6 内置交互行为,修改代码如下:const graph = new G6.Graph({ // ... // 其他配置原创 2021-01-14 22:12:48 · 4864 阅读 · 4 评论 -
vue搜索关键字变色(忽略大小写)------ Vue Words Highlight 插件
可参考:https://github.com/M-FE/vue-words-highlight1、安装 npm install --save vue-words-highlight2、在main.js 中全局引用import { highlight } from 'vue-words-highlight';Vue.use(highlight, { name: 'highlight', className: 'red', style: 'color: red', c原创 2020-10-19 11:53:12 · 1322 阅读 · 2 评论 -
vue搜索关键字变色
<li v-for="item in listData" :key="item.treeId" class="font12"></li>api.assets.search(JSON.stringify(param)) .then(res => { if (res.code == '200') { this.listData = res.data.data //方法调用 this.chang原创 2020-10-13 22:00:43 · 2315 阅读 · 0 评论 -
vue select框赋值之后无法选值
来自于:https://blog.csdn.net/eleven_i/article/details/107641178。非常好用,感谢并分享!转载 2020-08-13 10:53:28 · 1538 阅读 · 0 评论 -
vue的可视化编程
https://github.com/fireyy/vue-page-designer(推荐)https://github.com/jaweii/Vue-Layouthttps://github.com/L-Chris/vue-designhttps://github.com/OXOYO/X-Page-Editor-Vuehttps://livelypeng.github.io/pl-drag-template/pl-drag-dist/index.html#/editor/indexhttps.原创 2020-06-09 16:14:29 · 1288 阅读 · 1 评论 -
window.addEventListener监听事件在vue组件中使用
最近在搞收银台页面调用终端机的项目,上面领导只是给了一个原生js的demo,让用vue写页面,搞了一天没怎么出成果,最后是监听事件的锅,别的不多说,直接上代码:写在created里面就好了,ok啦...原创 2020-01-03 11:21:43 · 7676 阅读 · 2 评论 -
element-ui 实现input框模糊搜索(实现select2的效果)
2020-3-6 疫情期间做的项目用到了这个功能,耗时长一点,记录下来<el-select v-model=“form.acctCode” filterable remote :remote-method=“querySearch” placeholder=“请输入关键词”&...原创 2020-03-06 22:07:28 · 4329 阅读 · 1 评论 -
vue 子组件接收props值做操作
props: { permission: { type: Array, default() { return [];  原创 2020-06-02 15:43:55 · 3542 阅读 · 0 评论 -
vue 实现 xml转换为json
1、NPM安装x2jsnpm i x2js2、在全局引入import x2js from ‘x2js’Vue.prototype.$x2js = new x2js( { attributePrefix:’’ //转换完的数据格式 (默认的是带 _ 的) })3、使用方法var result= “<data id=‘123’><test>succes原创 2020-05-25 21:01:06 · 2106 阅读 · 0 评论 -
vue 读取本地文件内容
将本地文件中内容显示在页面上<el-button type=“success” id=“fileImport” v-on:click=“clickLoad”>浏览</el-button><input type=“file” id=“files” ref=“refFile” style=“display: none” v-on:change=“fil...原创 2020-05-07 18:16:09 · 4545 阅读 · 0 评论