随笔分类 -  vue

摘要:1. 获取数组的最小元素 const getSmallest = (arr) => arr.reduce((smallest, num) => Math.min(smallest, num)); const arr = [13, 7, 11, 3, 9, 15, 17]; console.log(g 阅读全文
posted @ 2022-12-28 10:39 假装学习 阅读(71) 评论(0) 推荐(0) 编辑
摘要:创建 文件 global index.ts main.ts文件引入 import global from "@/global"; app.use(global) index.ts 内容 import { App } from "vue";export default (app: App) => { 阅读全文
posted @ 2022-12-06 16:31 假装学习 阅读(939) 评论(0) 推荐(0) 编辑
摘要:vue nui app sunui-upimg 上传图片 压缩图片sizeType: ["compressed"], 只有小程序-app才有效果 chooseImage() { let _self = this; uni.chooseImage({ count: _self.upload_count 阅读全文
posted @ 2020-12-10 17:44 假装学习 阅读(657) 评论(0) 推荐(0) 编辑
摘要:You have not concluded your merge (MERGE_HEAD exists) 引发以上问题的因为是,合并A分支的时候,发现出现大量冲突并,拉错了分支,把所有的代码放弃更改后重新拉取时,git pull 出现的 解决办法:中止合并 git merge --abort再重新 阅读全文
posted @ 2020-11-16 18:46 假装学习 阅读(368) 评论(0) 推荐(0) 编辑
摘要:vue+unipp(h5) 获取省市区地址 baduMap.js 异步加载 export default { init: function () { const AK = "***"; const BMap_URL = 'https://api.map.baidu.com/api?v=2.0&ak= 阅读全文
posted @ 2020-11-05 09:44 假装学习 阅读(204) 评论(0) 推荐(0) 编辑
摘要:pdf->build,web(viewer)应该放在static pdf组件 <template> <view class="content u-padding-0"> <iframe width="100%" frameborder="0" scrolling="no" style="width: 阅读全文
posted @ 2020-10-12 13:58 假装学习 阅读(1813) 评论(0) 推荐(0) 编辑
摘要:Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property 阅读全文
posted @ 2020-09-15 15:56 假装学习 阅读(663) 评论(0) 推荐(0) 编辑
摘要:npm install --save-dev babel-polyfill main.js引入 import "babel-polyfill" vue.config.js module.exports = { configureWebpack: { entry: { app: ["babel-pol 阅读全文
posted @ 2020-08-24 18:40 假装学习 阅读(390) 评论(0) 推荐(0) 编辑
摘要:<el-upload ref="upload" :action="''" :on-change="changeResult" :http-request="requestUpload" :before-upload="beforeExcelUpload" :show-file-list="false 阅读全文
posted @ 2020-08-20 18:18 假装学习 阅读(2828) 评论(0) 推荐(0) 编辑
摘要:var obj = {}; this.selectData.forEach((item, index) => { var str = 'model_' + index + '_#profit_item_id'; var str2 = 'model_' + index + '_#agent_id'; 阅读全文
posted @ 2020-08-20 14:56 假装学习 阅读(2821) 评论(0) 推荐(0) 编辑
摘要:提示: 更新element版本问题,样式问题, 放在el-dialog内样式问题 等等 页面 <el-form-item label="地域限制:"> <el-cascader v-model="cascader" :options="cascaderOptions" :props="{ multi 阅读全文
posted @ 2020-07-29 16:29 假装学习 阅读(3718) 评论(0) 推荐(0) 编辑
摘要:详情页面 路由上带了参数并赋值展示成功, 这个由路由上带的参数修改时,页面没渲染,值已改变, 如果此时去做别的不是路由赋值的参数修改,前面做的修改就刷新出来渲染成功 原代码 this.crud.query.bankId =""; this.crud.query.batchNo =""; this.$ 阅读全文
posted @ 2020-07-23 14:11 假装学习 阅读(1050) 评论(0) 推荐(0) 编辑
摘要:<scroll-view class="VerticalNav nav" scroll-y scroll-with-animation :scroll-top="verticalNavTop" style > <view class="cu-item" :class="item.id == sele 阅读全文
posted @ 2020-07-20 14:18 假装学习 阅读(664) 评论(0) 推荐(0) 编辑
摘要:export const loadView = (view) => { return () => require(`@/views/${view}`) } 改为 export const loadView = (view) => { return (resolve) => require([`@/v 阅读全文
posted @ 2020-07-09 14:31 假装学习 阅读(1878) 评论(0) 推荐(0) 编辑
摘要:页面截图,快照vue使用 第一步 npm install html2canvas 第二步 在使用的页面引入 import html2canvas from 'html2canvas'; 页面 截图内容外框 id nodeBox <template> <div class="app-container 阅读全文
posted @ 2020-07-09 14:22 假装学习 阅读(524) 评论(0) 推荐(0) 编辑
摘要:uni app +vue 引用 百度地图API取位置,VUE用百度地图获取当前位置(城市) 1.在index.html 引入 百度js <script src="http://api.map.baidu.com/api?v=2.0&ak=你的密钥" type="text/javascript"></ 阅读全文
posted @ 2020-06-17 09:55 假装学习 阅读(8932) 评论(0) 推荐(0) 编辑
摘要:vuedraggable 拖拽 应用 不同列表之间的拖拽 npm install vuedraggablemain.js 文件 import VueDraggable from 'vuedraggable'; Vue.use(VueDraggable); <template> <div> <el-r 阅读全文
posted @ 2020-03-17 14:12 假装学习 阅读(2092) 评论(0) 推荐(0) 编辑
摘要:vant van-uploader 图片上传 <van-uploader accept="image/*" v-model="fileList" multiple :after-read="afterRead"></van-uploader> afterRead: function(file) { 阅读全文
posted @ 2020-03-12 10:09 假装学习 阅读(9744) 评论(1) 推荐(0) 编辑
摘要:1.vsCode 安装扩展 ESLint 2. 项目中 .eslintrc.js 配置 module.exports = { root: true, env: { node: true }, 'extends': [ 'plugin:vue/essential', 'eslint:recommend 阅读全文
posted @ 2020-03-02 17:19 假装学习 阅读(3490) 评论(0) 推荐(0) 编辑
摘要:在main.js文件引入 import Vue from 'vue'; import Element from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; Vue.use(Element, { size: 'small', 阅读全文
posted @ 2019-12-24 16:36 假装学习 阅读(6822) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示