随笔分类 - vue3.0
摘要:// 1.设置v-throttle自定义指令 Vue.directive('throttle', { bind: (el, binding) => { let throttleTime = binding.value; // 防抖时间 if (!throttleTime) { // 用户若不设置防抖
阅读全文
摘要://添加.replace(/=+nextTick(()=>{ let urlType = '',base64code = '' if(type.toUpperCase() 'PDF'){
阅读全文
摘要:身份证验证: /^[1-9]\d{5}(19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dxX]$/ 这个正则表达式的含义是: - ^[1-9]\d{5} :匹配地区码,1-9开头的6位数字 - (19|20)\d{2} :匹配年份,19或
阅读全文
摘要:<el-image style="width: 300px; height: 150px" :src="url" :preview-src-list="srcList"> </el-image> this.url='data:image/png;base64,' + row.PAGE_IMG 其他格
阅读全文
摘要:<template> <div class="box" :style="styleVar"> </div> </template> <script> export default { props: { height: { type: Number, default: 54, }, }, comput
阅读全文
摘要:export default defineConfig(() => { // 这里只加入了element的有其他的也加在这里 const optimizeDepsElementPlusIncludes = ['element-plus/es']; // 预加载element样式 有其他组件也是如此设
阅读全文
摘要:{ "compilerOptions": { // ↓指定ECMAScript目标版本,esnext为最新版本 "target": "esnext", // ↓指定生成哪个模块系统代码,esnext为最新版本 "module": "esnext", // ↓决定如何处理模块。 "moduleReso
阅读全文
摘要:在CSS3中,我们可以使用transform属性的scale()方法来实现元素的缩放效果。缩放,指的是“缩小”和“放大”的意思。 transform: scaleX(x); / 沿x轴方向缩放/ transform: scaleY(y); / 沿y轴方向缩放/ transform: scale();
阅读全文
摘要:(28条消息) vue + css-vars-ponyfill 实现动态换肤_MrWangJB的博客-CSDN博客
阅读全文