- 博客(4)
- 收藏
- 关注
原创 VUE H5文本框获取焦点唤起键盘时,绝对定位的元素被键盘顶上去的问题解决方案
// 结构 <div class="foother" v-if="showBtn"> <button>提交</button> </div> data () { return { clientHeight: document.documentElement.clientHeight, showBtn: tru...
2021-03-26 14:48:22
903
1
原创 2021-01-26
vue刷新当前页面的好方法<template> <div id="app"> <router-view v-if="isRouterAlive" /> </div></template><script> export default { name: 'App', provide () { //父组件中通过provide来提供变量,在子组件中通过inject来注入变量。
2021-01-26 09:57:52
150
原创 解决vue移动端项目pdf显示问题
解决vue移动端项目pdf显示问题 import pdf from ‘vue-pdf-signature’import CMapReaderFactory from ‘vue-pdf-signature/src/CMapReaderFactory.js’components: {pdf},create () {this.getPdfs()methods: {getPdfs () {this.pdfAddress = pdf.createLoadingTask({u
2020-12-18 15:32:05
2369
1
原创 vue click事件只让触发一次
vue click事件只让触发一次1.类似 发布评论,只让提交一次 <button @click.once="subBtn"></button>疯狂点击提交按钮只想要一次,不会出现调用多次接口的情况按钮给个 disabled<button @click="subBtn" :disabled = flag></button> data () { return { flag = false } } flag
2020-12-02 10:16:05
5564
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅