![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
uniapp
小熊代码加
键盘虐待者
展开
-
uniapp之pdf预览
1.引入 https://mozilla.github.io/pdf.js/getting_started/#download2.HTML <view class="enclosureList" @tap="preview(item.attachName,item.attachUrl)" v-for="(item,index) in info.attachList" :key="index">{{item.attachName}}</view> p原创 2021-12-22 16:21:06 · 684 阅读 · 1 评论 -
uniapp 单行文本溢出隐藏
实现:.text{ display: -webkit-box; /*弹性伸缩盒子模型显示*/ -webkit-box-orient: vertical; /*排列方式*/ -webkit-line-clamp: 1; /*显示文本行数(这里控制多少行隐藏)*/ overflow: hidden; /*溢出隐藏*/}原创 2021-12-17 15:18:32 · 1628 阅读 · 0 评论 -
uniapp之Web-view遮挡导航方案
方案一:pages.json定义原生导航{ "path": "pages/checkout/checkout", "style": { "app-plus": { "navigationBarTitleText": "个人中心", "titleNView": { "autoBackButton": false,原创 2021-11-29 11:03:07 · 2410 阅读 · 0 评论 -
uniapp 轮播示例
<template> <view class="content"> <view class='home'> <swiper indicator-dots circular autoplay interval=3000 > <swiper-item v-for="(item,index) in swipers" :key="index"> <image :src="item">原创 2021-11-25 09:52:54 · 714 阅读 · 0 评论 -
uniapp 密码显示隐藏
<template><view class="container"> <view class="pwd-view"> <input type="text" :password="showPassword" placeholder="请输入密码"/> <view :class="[!showPassword ? 'icon iconfont iconesey' : 'icon iconfont原创 2021-11-23 15:28:38 · 2286 阅读 · 0 评论 -
uniapp计算和清理缓存
1.计算缓存data(){ return { fileSizeString:'' }},//methodsformatSize() { let that = this; plus.cache.calculate(function(size) { let sizeCache = parseInt(size); if (sizeCache == 0) { that.fileSizeString = "0B"; } else if原创 2021-11-19 14:07:17 · 1073 阅读 · 0 评论