摘要: dragClass.ts class Drap{ static zIndex = 1; constructor(el,option={}){ this.el = el; this.x=0; this.y=0; this.option = option; this.init(); } init(){ 阅读全文
posted @ 2022-03-10 18:18 福超 阅读(159) 评论(0) 推荐(0) 编辑
摘要: <scroll-view :style="'height:' + scrollViewHeight + ';'" uni.getSystemInfo({ success: (resu) => { const query = uni.createSelectorQuery().in(this); qu 阅读全文
posted @ 2022-03-10 17:20 福超 阅读(763) 评论(0) 推荐(0) 编辑
摘要: import { ElLoading } from 'element-plus'; let loading = null; let loadingName = 'default'; let loadingStatus = false; const hideLoading = (name = 'def 阅读全文
posted @ 2022-01-13 15:00 福超 阅读(158) 评论(0) 推荐(0) 编辑
摘要: import axios, { AxiosInstance } from 'axios'; import { ElMessage, ElMessageBox } from 'element-plus'; import { MessageType } from 'element-plus/lib/el 阅读全文
posted @ 2022-01-13 14:57 福超 阅读(707) 评论(0) 推荐(0) 编辑
摘要: uniapp 表单检验 input 框输入是不会校验,尝试了各种方案,有的方案在切换登录方式时红色提示文本又没清理 废话不多,直接上代码 <template> <view class="login-phone"> <view class="login-phone-content"> <view cl 阅读全文
posted @ 2022-01-13 11:10 福超 阅读(6691) 评论(0) 推荐(1) 编辑
摘要: 先看效果: 直接上代码 let arr = [0,1,16] function setProcessStyle(arr = [1, 2, 3]) { // 待生产 // 已组模完成 // 隐蔽验收 // 已浇筑 // 已浇筑 let num1 = arr[0]; let num2 = num1 + 阅读全文
posted @ 2022-01-13 10:51 福超 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 这个面试官问的题目比较开放,首先是自我介绍(一定要注意礼仪哦,工作年限,技术栈,最近写的项目,注意重点) 1.首先问了在项目中的难点,遇到的坑 (看你的思维逻辑,自学能力,会不会利用资源去找解决方案) 2.通过你的简历问一些基础的问题 像vue3的 hooks、组合式Api ...... 以上的问题 阅读全文
posted @ 2021-12-23 16:22 福超 阅读(1427) 评论(0) 推荐(1) 编辑
摘要: 1.建一个 debounce.ts 文件 import { App, Component, DirectiveBinding, VNode } from 'vue'; import { ElMessage } from 'element-plus'; type voidFn = (...args: 阅读全文
posted @ 2021-12-21 17:20 福超 阅读(155) 评论(0) 推荐(0) 编辑
摘要: directives: { drag: { mounted: function (el) { el.onmousedown = function(e1) { let disx = e1.pageX - el.parentElement.offsetLeft; let disy = e1.pageY 阅读全文
posted @ 2021-07-31 16:47 福超 阅读(110) 评论(0) 推荐(0) 编辑
摘要: main.ts import mitt from 'mitt' const vueEvent = mitt() app.config.globalProperties.vueEvent = vueEvent import {getCurrentInstance} from 'vue' const v 阅读全文
posted @ 2021-07-19 14:25 福超 阅读(2754) 评论(0) 推荐(0) 编辑