上一页 1 2 3 4 5 6 7 ··· 18 下一页
摘要: 总样式文件中加入 /* color */ :root { --el-color-primary: #00c5cd !important; } 阅读全文
posted @ 2024-08-07 09:32 Li_pk 阅读(159) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 1. 打开主页 https://www.google.com/ 2. 选择右下角设置 -> 搜索设置 3. 找到在新窗口打开搜索结果即可 阅读全文
posted @ 2024-06-05 11:12 Li_pk 阅读(2484) 评论(0) 推荐(0)
摘要: 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)
摘要: 子组件中定义emit触发事件,当函数在父组件中使用时想要传递一个单独的在父组件中使用的参数(如使用for循环时)可以使用如下写法: // 子组件 const emit = defineEmits(["checkChange"]); watch( () => state.checkList, (new 阅读全文
posted @ 2024-05-27 14:14 Li_pk 阅读(297) 评论(0) 推荐(0)
摘要: 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)
摘要: 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 下一页