会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
笔记
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
···
18
下一页
2024年8月7日
element-plus 全局修改默认主题色
摘要: 总样式文件中加入 /* color */ :root { --el-color-primary: #00c5cd !important; }
阅读全文
posted @ 2024-08-07 09:32 Li_pk
阅读(159)
评论(0)
推荐(0)
2024年7月29日
vue3 移动端使用 Vue-ECharts
摘要: 1. 效果: 2. 安装: npm add echarts vue-echarts 3. 示例: <template> <div ref="chartRef" class="w-[400px] h-[300px]"> <v-chart :option="chartOptions" :autoresi
阅读全文
posted @ 2024-07-29 11:32 Li_pk
阅读(46)
评论(0)
推荐(0)
2024年7月23日
使用MediaRecorder API 简单实现录音功能
摘要: 1. 代码: <script setup> import { ref } from 'vue' const isRecording = ref(false) const mediaRecorder = ref(null) const audioChunks = ref([]) const toggl
阅读全文
posted @ 2024-07-23 10:24 Li_pk
阅读(47)
评论(0)
推荐(0)
2024年7月9日
react native 使用 react-native-image-picker 实现选择或拍照上传图片
摘要: 1. 安装依赖 npm install react-native-image-picker 或 yarn add react-native-image-picker react-native-image-picker Github地址 2. Android/ios额外配置 在使用前需要进行一些配置,
阅读全文
posted @ 2024-07-09 09:41 Li_pk
阅读(1127)
评论(0)
推荐(0)
2024年6月18日
react native 使用 react-native-htmlview 展示用户协议
摘要: 1. 安装 react-native-htmlview react-native-htmlview 仓库地址 安装: npm install react-native-htmlview --save 2. 将隐私协议word转html格式 使用在线转换工具,如: word2cleanhtml 工具在
阅读全文
posted @ 2024-06-18 14:47 Li_pk
阅读(120)
评论(0)
推荐(0)
2024年6月5日
Google浏览器打开网页会覆盖原来的页面
摘要: 1. 打开主页 https://www.google.com/ 2. 选择右下角设置 -> 搜索设置 3. 找到在新窗口打开搜索结果即可
阅读全文
posted @ 2024-06-05 11:12 Li_pk
阅读(2484)
评论(0)
推荐(0)
2024年5月30日
自定义 v-permission 控制按钮权限
摘要: 1. 定义 v-permission 指令 创建一个文件来定义自定义指令,例如 directives/permission.js。 // directives/permission.js import { useUserStore } from '../store/userStore'; // 假设
阅读全文
posted @ 2024-05-30 17:52 Li_pk
阅读(815)
评论(0)
推荐(0)
2024年5月27日
defineEmits定义的方法在父组件中执行时传递额外参数
摘要: 子组件中定义emit触发事件,当函数在父组件中使用时想要传递一个单独的在父组件中使用的参数(如使用for循环时)可以使用如下写法: // 子组件 const emit = defineEmits(["checkChange"]); watch( () => state.checkList, (new
阅读全文
posted @ 2024-05-27 14:14 Li_pk
阅读(297)
评论(0)
推荐(0)
2024年5月17日
react native cli 打包配置版本号和版本代码
摘要: Android 在 android/app/build.gradle 文件中设置版本号和版本代码: 1. 打开 android/app/build.gradle 文件。 2. 找到 defaultConfig 部分,并修改以下内容: defaultConfig { applicationId "co
阅读全文
posted @ 2024-05-17 16:37 Li_pk
阅读(169)
评论(0)
推荐(0)
2024年5月16日
Vue使用AES加密
摘要: 1. 安装crypto-js库: npm install crypto-js # 或 yarn add crypto-js 2. 封装encryption.js // utils/encryption.js import CryptoJS from 'crypto-js'; // AES加密 exp
阅读全文
posted @ 2024-05-16 10:17 Li_pk
阅读(521)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
18
下一页
公告