摘要: Reflect对象经常和Proxy代理一起使用,原因有三点: Reflect提供的所有静态方法和Proxy第2个handle参数方法是一模一样的。 Proxy get/set()方法需要的返回值正是Reflect的get/set方法的返回值,可以天然配合使用,比直接对象赋值/获取值要更方便和准确。 阅读全文
posted @ 2024-02-21 23:47 Baipei 阅读(27) 评论(0) 推荐(0) 编辑
摘要: api的形参和实参要一一对应,要不然传值是空对象 阅读全文
posted @ 2023-12-17 22:51 Baipei 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 柱状图legend不出现 ①没有配置legend中的data属性 ②data的name属性与series的name属性不同 设置legend阴影 itemStyle: { opacity: 1, shadowColor: "rgba(255, 255, 255, 1)", shadowOffsetX 阅读全文
posted @ 2023-11-18 15:59 Baipei 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1、安装wangEditor npm install @wangeditor/editor --savenpm install @wangeditor/editor-for-vue@next --save 2、代码 <template> <el-dialog v-model="state.dialo 阅读全文
posted @ 2023-11-14 22:55 Baipei 阅读(738) 评论(0) 推荐(0) 编辑
摘要: 总结 在同一个模块下,使用bus在同级组件中进行传值,使用依赖注入在父组件和子子组件中进行传值在不同模块下,需要连接多个模块之间的数据,使用pinia进行传值 阅读全文
posted @ 2023-11-14 22:33 Baipei 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1、安装插件: npm i pinia-plugin-persistedstate 2、在store/index.js里 // store/index.js import {createPinia} from 'pinia' import piniaPluginPersistedstate from 阅读全文
posted @ 2023-11-12 02:53 Baipei 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 安装依赖 npm install sass-loader -Snpm install style-loader -Snpm install sass -S vite.config.js配置 export default defineConfig({ plugins: [vue()], // 这个是配 阅读全文
posted @ 2023-10-27 12:10 Baipei 阅读(14) 评论(0) 推荐(0) 编辑
摘要: vite.config.js里 import { resolve } from "path"; const pathResolve = (dir) => resolve(__dirname, dir); server: { port: 8080, //默认启动时的端口号 open: true, // 阅读全文
posted @ 2023-09-20 17:48 Baipei 阅读(653) 评论(0) 推荐(0) 编辑
摘要: hbuilderX直接安装/或者通过命令行``npm init``安装 ### 安装express ``npm install express --save`` 在app.js中引入express ```js // 引入express框架,并使用express const express = req 阅读全文
posted @ 2023-09-20 16:17 Baipei 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 1、npm i vite-plugin-svg-icons npm i fast-glob 2、在assets下创建svg目录 找想要的图标复制svg代码放到svg 在vite.config.js配置: import {createSvgIconsPlugin}from 'vite-plugin-s 阅读全文
posted @ 2023-09-20 15:51 Baipei 阅读(34) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示