摘要: 1、安装pnpm npm install pnpm -g 2、安装vite pnpm install vite -D 3、在需要的文件夹下建项目 npm create vite@latest 打开 4、main.ts引入element-plus npm install element-plus -- 阅读全文
posted @ 2024-04-18 09:52 sosolucky 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、安装vite-plugin-cesium: npm i -D vite-plugin-cesium 2、 安装cesium: npm i -S cesium 3、vite.config.js中配置如下: import cesium from 'vite-plugin-cesium' plugin 阅读全文
posted @ 2023-12-18 16:11 sosolucky 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 版本 "postcss-px2rem": "^0.3.0", 1、npm install postcss-px2rem 2、 阅读全文
posted @ 2023-12-06 14:54 sosolucky 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 版本 "mitt": "^3.0.1" 1、npm install mitt 2、项目下创建文件夹eventBus 建 myEventBus.js import mitt from 'mitt'export default mitt() 3、组件里监听 组件A import myEventBus f 阅读全文
posted @ 2023-12-06 11:21 sosolucky 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1、npm install pinia 2、在项目目录建store文件夹创index.js import { createPinia,defineStore } from "pinia";const pinia = createPinia()pinia.state.valueconst token 阅读全文
posted @ 2023-12-06 11:10 sosolucky 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1、去官网资源地址下载 https://github.com/ecomfe/echarts-for-weixin 下载解压git项目,查看目录,将文件夹ec-canvas,复制到小程序内pages同级目录 注意事项: 在ec-canvas文件夹内的echarts.js,不能超过500kb,否则警告, 阅读全文
posted @ 2023-11-02 15:00 sosolucky 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1、 2、在打开的项目下右键选择 在外部终端窗口中打开 然后 npm init 然后全部回车 3、安装vants npm i @vant/weapp -S --production npm i miniprogram-sm-crypto --production 4. 修改 app.json 将 a 阅读全文
posted @ 2023-03-23 16:59 sosolucky 阅读(31) 评论(0) 推荐(0) 编辑
摘要: npm i vant@latest-v2 -S main.js import Vant from 'vant'import 'vant/lib/index.css' Vue.use(Vant) 阅读全文
posted @ 2022-10-27 10:07 sosolucky 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1、template <el-input prefix-icon="el-icon-search" placeholder="输入关键词搜索" v-model="searchKeyword" style="width: 300px;border: #cccccc" clearable></el-in 阅读全文
posted @ 2022-10-20 11:47 sosolucky 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 1、安装 npm install element-plus --save npm install @element-plus/icons-vue (icon库) 2、main.js import ElementPlus from 'element-plus'import 'element-plus/ 阅读全文
posted @ 2022-08-21 16:49 sosolucky 阅读(160) 评论(0) 推荐(0) 编辑