- 博客(6)
- 收藏
- 关注
原创 使用vant组件完成时间选择
局部引入需要用到的vant组件import {DatetimePicker, Popup, Field} from 'vant';Vue.use(DatetimePicker);Vue.use(Popup);Vue.use(Field);<van-field v-model="employeeForm.PredictReturnTime" @click="end" readonly :style="{borderColor:this.guihuanShow==true||thi
2020-05-22 10:31:00
1994
原创 封装搜索功能,方便多组件使用
自定义一个搜索功能组件,这里用到了mint-ui组件库<template> <div class="search"> <mt-field class="search-input" :placeholder="placeholder" v-model="value"></mt-field> <mt-button class="search-button" type="primary" size="small" @click.nativa="se
2020-05-21 11:23:32
317
原创 vue
提交以后禁用按钮一段时间,防止重复提交// 全局 main.jsVue.directive('noMoreClick', { inserted(el, binding) { el.addEventListener('click', e => { el.classList.add('is-disabled'); el.disabled = true; setTimeout(() => { el.disabled = false.
2020-05-18 10:59:11
734
原创 Element UI 使用的一些问题
el-table-column 表格使用v-show不生效,在使用v-if时加入:key=Math.random()以防止列乱序仅为带有v-if的列加上:key可能依旧不能解决问题,可以尝试为所有列均加上:key <el-table-column align="right" width="80" :key=Math.random(...
2020-04-30 11:29:55
303
原创 Mint UI组件Loadmore上拉加载一些问题以及使用
页面初始化会请求两次接口添加属性:auto-fill=“false”兼容ios上拉加载失效1(滚动的父元素添加样式).view { position: absolute; top: 0; right: 0; left: 0; bottom: 0; overflow-y: auto; -webkit-overflow-scrolli...
2020-04-29 18:17:05
1469
1
原创 vue-awesome-swiper自定义左右箭头
<script>export default { name: 'page', data(){ return{ ...
2020-01-10 14:54:14
5636
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人