b
bg7zag 的博客
cqcqcq,这里是BG7ZAG,会coding的HAM,分享生活趣事、建站技术、前端开发、汽车相关、deepin系统、业余无线电等!73!
bg7zag · 注册于 2026-09-17 · 457 博文 · 0 帖子 · 0 回复
筛选: 分类「程序开发」 ✕ 清除
Win、Linux、Mac下配置flutter镜像
首先去flutter中国站获取镜像源:https://flutter.cn/community/china 下面是Flutter 社区的镜像源: ``` export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLU...
实现iframe中不添加sandbox=”allow-downloads”情况下下载文件
新版本的chrome会限制iframe下下载文件,除非在iframe中添加 `sandbox="allow-downloads"` 属性,否则都会报下面这个错误 ``` Download is disallowed. The frame initi...
vue的keep-alive坑点
keep-alive的子元素必须是`component`或者`<router-view/>` 否则会不生效,会出现奇奇怪怪的问题,尤其是有echarts的页面 https://blog.bg7zag.com/wp-content/uploads/...
解决js toFixed 四舍五入遇5不进位问题
https://blog.bg7zag.com/wp-content/uploads/2022/10/1666683067-1165e17b117f40c2204d4fc05b9c564f-1.jpeg ``` const a = 7.55; console.log(a.toFixed(1)) // 7.5 ``...
echarts条形图series的label超出容器范围不完全解决方案
当我们的数据过大,series的label过长时,会超出容器范围。如下所示: https://blog.bg7zag.com/wp-content/uploads/2022/11/1667532050-20221104111958-1.png echarts...
git删除远程仓库已经删除过的分支
删除远程仓库已经删除过的分支命令: ``` git remote prune origin ```
解决vitest +Vue Test Utils 组件中包含第三方组件时报 Failed to resolve component
``` [Vue warn]: Failed to resolve component: a-descripttions If this is a native custom element, make sure to exclude it from component resolution via compil...
解决iPhone中z-index无效问题
1. 首先在出现层级问题的元素上,z-index的大小通过translateZ来设置层级关系: ``` transform: translateZ(自身z-index的数值px) ``` > 原先的z-index最好继续保留,因...
Vue3 路由组件警告 component with `markRaw` or using `shallowRef` instead of `ref`.
使用**ant-design-vue**开发时,会报如下**警告** ``` Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhe...
Harmony API 9 点击关闭软键盘(ArkTS)
ArkTS,TextInput获取焦点会弹出输入法,失去焦点就会关闭软键盘,使用focusControl控制焦点即可关闭软件盘。 ``` build() { Column() { TextInput() Button('提交') .k...