• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
xun
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页

2020年8月5日

分页状态不更新的问题
摘要: // 标签页切换 handleClick(tab, event) { console.log(this.activeName, 'activeName'); console.log(tab, event); this.page_index = 1 //当前页为1 this.page_count = 阅读全文
posted @ 2020-08-05 17:14 z_xun 阅读(324) 评论(0) 推荐(0)
 
 

2020年7月27日

小程序弹框之Dialog
摘要: <view class='mask' bindtap='closeTk' wx:if="{{showTk}}"></view> <view class="mask_model" wx:if="{{showTk}}"> <view class="mask_tit"> <image bindtap='c 阅读全文
posted @ 2020-07-27 10:05 z_xun 阅读(2218) 评论(0) 推荐(0)
 
 

2020年7月20日

main.js
摘要: import Vue from 'vue'; import App from './App.vue'; import router from './router'; import ElementUI from 'element-ui'; import VueI18n from 'vue-i18n'; 阅读全文
posted @ 2020-07-20 13:49 z_xun 阅读(402) 评论(0) 推荐(0)
 
 

2020年6月5日

伪元素清除浮动和动态设置calss 行内样式style
摘要: :class="[{ active: isActive }, 'sort']" .clearfix::after { content: '.'; clear: both; display: block; overflow: hidden; font-size: 0; height: 0; } .cl 阅读全文
posted @ 2020-06-05 15:36 z_xun 阅读(301) 评论(0) 推荐(0)
 
 

2020年6月4日

element中多选表格默认选中
摘要: 使用场景分析:进入页面表格数据渲染的时候,如果数据中paid是1的话,那么这一列表格就默认选中解决方法:后台数据返回后,使用element中的toggleRowSelection方法,这个方法用于多选表格,切换某一行的选中状态,如果使用了第二个参数,则是设置这一行选中与否(selected 为 tr 阅读全文
posted @ 2020-06-04 16:56 z_xun 阅读(1905) 评论(0) 推荐(0)
 
 

2020年5月20日

封装 loading.js 文件 全局loading
摘要: 先写一个 loading.js 文件: import { Loading } from 'element-ui'; let loadingCount = 0; let loading; const startLoading = () => { loading = Loading.service({ 阅读全文
posted @ 2020-05-20 11:45 z_xun 阅读(730) 评论(0) 推荐(0)
 
axios请求拦截器(修改Data上的参数 ==>把data上的参数转为FormData)
摘要: let instance = axios.create({ baseURL: 'http://msmtest.ishare-go.com', //请求基地址 // timeout: 3000,//请求超时时长 // url: '/url',//请求路径 // method: 'get,post,pu 阅读全文
posted @ 2020-05-20 09:35 z_xun 阅读(4018) 评论(0) 推荐(1)
 
 

2020年5月8日

Vue图片上传转为二进制同时携带附带参数
摘要: <el-upload class="upload-demo" :action="uploadUrl" :data="upLoadObj" name="file_upload" :show-file-list="false" :on-success="handleAvatarSuccess" > <i 阅读全文
posted @ 2020-05-08 19:04 z_xun 阅读(3232) 评论(0) 推荐(0)
 
 

2020年4月27日

动态计算scroll-view的高度(滚动条的高度)
摘要: //获取滚动条可滚动高度 wx.getSystemInfo({ success: (res) => { let screenHeight = wx.getSystemInfoSync().windowHeight //获取屏幕高度 // 通过query 获取其余盒子的高度 let query = w 阅读全文
posted @ 2020-04-27 15:49 z_xun 阅读(4669) 评论(0) 推荐(0)
 
小程序多图片上传
摘要: <!-- // 图片上传 --> <view class="upLoad_file_box" wx:if="{{offlineSelected}}"> <view class="file_item file_item_left" wx:for="{{imgPathArr}}" wx:key="ind 阅读全文
posted @ 2020-04-27 14:43 z_xun 阅读(284) 评论(0) 推荐(0)
 
 
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3