会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
0722tian
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
44
下一页
2024年6月14日
v-scale-screen超级好用的大屏自适应组件
摘要: 1、安装依赖 npm install v-scale-screen 或 yarn add v-scale-screen 2、vue 引入 vue2中使用插件导入,vue3以组件导入 vue2 中引入 // main.js import Vue from 'vue' import VScaleScre
阅读全文
posted @ 2024-06-14 09:28 罗砂
阅读(2474)
评论(0)
推荐(0)
2024年5月21日
uni.chooseImage多个上传
摘要: uni.chooseImage({ count: 9, // 从相册选择 sourceType: ['album'], success: (res) => { this.fileList = res.tempFiles //res.tempFilePaths是返回的图片数组file 循环调用获取图片
阅读全文
posted @ 2024-05-21 15:18 罗砂
阅读(351)
评论(0)
推荐(0)
2024年5月10日
uniapp 周选择范围时间
摘要:
css 使用 点击查看下载css库 css自定义的样式: /* 亮高 */ .box-blue { background-color: #409EFF; color: white; border-radius: 10rpx; } /* 中间连接 背景颜色 */ .bg-light-blue { wi
阅读全文
posted @ 2024-05-10 14:41 罗砂
阅读(94)
评论(0)
推荐(0)
2024年1月3日
v-for 为什么要加 key,key的作用是什么
摘要: v-for 为什么要加 key: 1. vue中列表循环需加:key="唯一标识" 唯一标识尽量是item里面id等,因为vue组件高度复用增加Key可以标识组件的唯一性,为了更好地区别各个组件 key的作用主要是为了高效的更新虚拟DOM 2.标签名一样,key一样这时候就会就地复用,如果标签名不一
阅读全文
posted @ 2024-01-03 14:09 罗砂
阅读(1966)
评论(0)
推荐(0)
2023年6月8日
使用 QR code实现微信扫码支付 实测有效
摘要: 直接给代码自己理解 html部分: <el-button type="primary" @click="recibo(scope.row)">确认收货</el-button> <div> <el-dialog title="付款码" :visible.sync="moneyShow" width="
阅读全文
posted @ 2023-06-08 17:49 罗砂
阅读(118)
评论(0)
推荐(0)
2023年4月27日
解析后端接口的文件流
摘要: 下面使用的是若依框架中的axios请求 api:通用 import request from '@/utils/request' export function guideCome(data){ return request( { url: '/sys/client/export', method:
阅读全文
posted @ 2023-04-27 19:36 罗砂
阅读(43)
评论(0)
推荐(0)
2023年4月22日
步骤条的接口渲染
摘要: 难点: 这些固定的文字渲染 首先创建一个数组数组里装的是需要的四个文字 <el-steps :active="stepsData.identifying" align-center> <el-step v-for="(item, index) in stepsData.convertRecords"
阅读全文
posted @ 2023-04-22 10:29 罗砂
阅读(18)
评论(0)
推荐(0)
2023年3月30日
nuxt.js 生命周期
摘要: 目录结构 pages :存放页面 类似于src/views components :存放组件 类似于src/components static :存放静态页 类似于src/assets store :vuex状态树 类似于src/store nuxt.config.js :全局配置文件 类似于vue
阅读全文
posted @ 2023-03-30 13:07 罗砂
阅读(161)
评论(0)
推荐(0)
2023年3月20日
vue2、等dom更新完之后再执行,获取dom元素 ref
摘要: $nextTick 作用 :等Dom更新完以后再执行 // 等Dom更新完以后再执行 this.$nextTick(() => { var obj = new WxLogin({ id: "weixin", appid: "wx40d53ce23ac9781f",//appid固定写死 scope:
阅读全文
posted @ 2023-03-20 10:48 罗砂
阅读(104)
评论(0)
推荐(0)
2023年3月10日
时间戳转换为当前时间
摘要: var item = new Date(1659424247000).toLocaleString();
阅读全文
posted @ 2023-03-10 10:54 罗砂
阅读(21)
评论(0)
推荐(0)
1
2
3
4
5
···
44
下一页
公告