随笔分类 - vue
摘要:<template> <div class="root"> <transition-group tag="div" class="container"> <div class="item" :class="'item' + i" v-for="(item, i) in items" :key="it
阅读全文
摘要:export default { name: 'page-index', data(){ return{ windowWidth: document.documentElement.clientWidth, //实时屏幕宽度 windowHeight: document.documentElemen
阅读全文
摘要:Element UI 有个图片预览功能,即给图片加上preview-src-list属性,就可设置预览图数组 <div class="demo-image__preview"> <el-image style="width: 100px; height: 100px" :src="url" :pre
阅读全文
摘要:当前格子输入后自动聚焦下一个小格子; 最后一个格子时,blur失去焦点,输入完毕; 父组件内绑定自定义getBackInfo事件传递输入值至父组件 具体实现 引入: import INPUTPASSWORD from "@/components/inputPassWord"注册组件:componen
阅读全文
摘要://主函数中的锁的使用 import * as tools from "@/utils"; const lockObj = new tools.LockHandler();//构造一把锁 export default defineComponent({ setup() { const search
阅读全文

浙公网安备 33010602011771号