- 博客(8)
- 收藏
- 关注
原创 qiankun 微应用动态路由
qiankun在非webpack模式的时候,可以通过手动加载和卸载去改变微应用的路径。如下:onMounted(() => {purehtml = loadMicroApp({name: ‘purehtml’,entry:'www.baidu.com’,container: ‘#plugin-container’},{ sandbox: { strictStyleIsolation: true } })})onUnmounted(() => {purehtml.unmount()
2022-06-23 11:11:02 472
原创 ant-design-vue3.x的form表单爬坑
ant-design-vue3.x的form表单爬坑嵌套的表单验证不再是用.连接,而是name用数组(如在1.x时候用的:prop=”form.${index}.name“,在3.x中就要用:name="[‘form’,index,name]")。不过官方文档未说明name可以是Array类型的。...
2021-11-30 16:07:38 915 2
原创 canvas视频截图
一、简短的视频截图?代码如下(示例): function captureVideo(videoEl) { let canvasEl; let dataUrl; try { const cps = window.getComputedStyle(videoEl); const width = +cps.getPropertyValue("width").replace(
2021-11-09 15:59:09 2339 4
原创 2021-11-04
import type报Parsing error: ‘=’ expectedeslint+vue3+ts+prettier在使用import type报Parsing error: ‘=’ expected时候只要把prettier升级到2.*即可
2021-11-04 17:47:55 234
原创 2020-10-23
vue-cli4,less版本高于2.7.3的,在@import"~ant-design-vue/dist/antd.less";会// https://github.com/ant-design/ant-motion/issues/44 .bezierEasingMixin(); ^错误,只需要在vue.config.js中配置:css:{loaderOptions:{less:{javascriptEnabled:tr...
2020-10-23 16:46:05 103
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人