摘要: 1.bind-html 父级页面如果使用bind-html进行绑定子级组件 例如: <div bind-html='vm.template1'> <div bind-html='vm.template2'> <div bind-html='vm.template3'> 如果需要根据某个属性判断是否展 阅读全文
posted @ 2024-01-19 14:49 飞尽堂前燕 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-06-12 11:11 飞尽堂前燕 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 懒加载写法 { path: "/", name: "index", component: () => import("../views/Home.vue"), } 创建Loading组件 并引入到顶层组件中 使用store控制loading组件是否展示 包装懒加载写法 const lazyLoad 阅读全文
posted @ 2023-04-26 16:20 飞尽堂前燕 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1.在使用input的onInput方法时,控制字符长度尽量使用input maxLength属性进行控制 不能使用以下方式 handleOnInput = () => { let filterText = (e.target.value || '').replace(/[^\u4e00-\u9fa 阅读全文
posted @ 2023-02-16 18:39 飞尽堂前燕 阅读(195) 评论(0) 推荐(0) 编辑
摘要: // 需要将angular.json中的 outputHashing 设置为none "outputHashing": "none", 详情见: https://github.com/angular/angular-cli/issues/10411 阅读全文
posted @ 2023-01-16 13:11 飞尽堂前燕 阅读(199) 评论(0) 推荐(0) 编辑
摘要: angular9如需是loadChildren生效 需要修改tsconfig.json 里面的module为esnext 如果module的值为commonJS则不会生效 { "compilerOptions":{ "module": "esnext" } } 具体链接 https://github 阅读全文
posted @ 2023-01-13 18:05 飞尽堂前燕 阅读(96) 评论(0) 推荐(0) 编辑
摘要: type 不能是image/png // image/jpeg 是可以的canvas.toDataURL('image/jpeg', 0.2) 阅读全文
posted @ 2022-11-28 10:25 飞尽堂前燕 阅读(695) 评论(0) 推荐(0) 编辑
摘要: 需要给对应的文字增加 font-family: PingFangSC-Medium, PingFang SC, -apple-system, Helvetica, sans-serif; 阅读全文
posted @ 2022-11-24 11:03 飞尽堂前燕 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 以下是我准备生成分享图片的dom,这边使用transform:translateY(100vh); 来隐藏分享dom <div style="width:100%;height:100;position:fixed;left:0;top:0;transform:translateY(100vh);m 阅读全文
posted @ 2022-11-22 14:16 飞尽堂前燕 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 打开设置,搜索 disableAutomaticNgcc 打打勾就可以了 阅读全文
posted @ 2022-11-11 14:54 飞尽堂前燕 阅读(83) 评论(0) 推荐(0) 编辑