摘要: //1.定义focus事,绑定属性 <el-input v-model="headerInput" @focus="onInputFocus" @blur="onInputBlur":style="thisStyle"> </el-input> thisStyle:'',//2.获得焦点事件 onI 阅读全文
posted @ 2020-06-22 18:21 haha-uu 阅读(17585) 评论(0) 推荐(1) 编辑
摘要: 用第三方组件或者UI框架会自带自身封装的事件,如keyup等,会覆盖原生的组件而无法起效果 .native 修饰符就是用来注册元素的原生事件而不是组件自定义事件的 如elementUI的:<el-input v-model="QueryText" placeholder="可输入如ab34" id= 阅读全文
posted @ 2020-06-22 17:48 haha-uu 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 在common.js中: // 全屏 export function requestFullScreen(element) { const docElm = element; if (docElm.requestFullscreen) { docElm.requestFullscreen(); } 阅读全文
posted @ 2020-06-22 17:33 haha-uu 阅读(462) 评论(0) 推荐(0) 编辑