随笔分类 -  三大框架之vue

vue框架的知识点
vue3+ts实现一个canvas画笔绘图功能,并导出相关的切片
摘要:1 <template> 2 <el-dialog :model-value="addDialog" width="648" @close="closeDialog" :lock-scroll="true" 3 :close-on-click-modal="false"> 4 <template # 阅读全文
posted @ 2024-12-07 17:32 风中追风w 阅读(507) 评论(0) 推荐(0)
通过vue-draggable-plus实现一个简单的菜单拖拽功能
摘要:<div class="my-content-list" v-draggable="[ nameList, { animation: 300, } ]" :onStart="onStart" :onUpdate="onUpdate"> <div class="my-content-list-item 阅读全文
posted @ 2024-08-29 15:49 风中追风w 阅读(932) 评论(0) 推荐(0)
在vue3中实现一个截图上传图片功能
摘要:<template> <div class="avatar-container"> <el-dialog :title="title" :model-value="dialogVisibleCorpper" width="800px" append-to-body @opened="openDial 阅读全文
posted @ 2024-08-29 15:35 风中追风w 阅读(488) 评论(0) 推荐(0)
对后台返回的树行数据进行处理并用el-tree去进行展示
摘要:1 <template> 2 <el-tree 3 :data="datas" 4 node-key="code" 5 :highlight-current="bmhighlight" 6 @node-click="handleNodeClickbm" 7 :props="defaultProps" 阅读全文
posted @ 2022-03-24 14:07 风中追风w 阅读(902) 评论(0) 推荐(0)
如何在vue配置axios并封装axios
摘要:1.npm i axios -s 2.main.js中 import axios from 'axios'; Vue.prototype.$axios = axios 3.在src中新建api文件夹 api文件夹中存放http.js ,api.js http.js中 import axios fro 阅读全文
posted @ 2022-03-21 14:01 风中追风w 阅读(388) 评论(0) 推荐(0)
关于vue中直接通过node.js webserve进行配置代理
摘要:config文件中的index.js文件 const path = require('path') module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', // proxyTabl 阅读全文
posted @ 2022-03-17 14:11 风中追风w 阅读(222) 评论(0) 推荐(0)
如果在vue中引入配置文件后并打包出来
摘要:1.在src目录下新建config.js文件 2.在main.js中引入 require("file-loader?name=[path][name].[ext]?[hash]!./config.js"); 3.在index.html中引入配置文件 <script src="src/config.j 阅读全文
posted @ 2022-03-17 14:06 风中追风w 阅读(245) 评论(0) 推荐(0)
elementUI配合vue-quil-editor实现文本框内容
摘要:根据客户的需求,我们可能不能够只使用简单的input框去实现富文本编辑,为了我们工作的方便,我们会去使用一些插件,我要介绍使用的就是配合vue使用的vue-quill-editor实现富文本编辑的功能, 下面会介绍它的相关方法,以及使用它时遇到的一些坑。 阅读全文
posted @ 2019-10-16 16:04 风中追风w 阅读(663) 评论(0) 推荐(0)