会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
少年。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
14
下一页
2022年2月22日
net5配合vue3图片上传
摘要: net5配合vue3图片上传 FileSave函数 /// <summary> /// 上传文件 /// </summary> /// <param name="files">文件流</param> /// <returns></returns> [HttpPost] public void Fil
阅读全文
posted @ 2022-02-22 09:24 少年。
阅读(106)
评论(0)
推荐(0)
2021年11月30日
vue3+vite+ts搭建
摘要: vue3+vite+ts搭建 vite初始化 使用 NPM: npm init @vitejs/app 使用 Yarn: yarn create @vitejs/app 选择模板 选择 vue-ts 或通过附加的命令行选项直接指定项目名和模板 # npm 6.x npm init @vitejs/a
阅读全文
posted @ 2021-11-30 14:47 少年。
阅读(2373)
评论(2)
推荐(1)
2021年11月29日
使用unplugin-vue-components
摘要: # 使用unplugin-vue-components 开发应用程序时,我们通常会使用许多第三方组件库。然而,这些组件库通常包含大量的代码,而我们只需要其中的一小部分。这就导致了应用程序的体积变得非常大,加载时间变长。为了解决这个问题,我们可以使用unplugin-vue-components插件来
阅读全文
posted @ 2021-11-29 17:47 少年。
阅读(1598)
评论(0)
推荐(0)
2021年11月24日
vite2 antd按需加载
摘要: vite2 antd按需加载 main.ts import { createApp } from 'vue' import { setupAntd } from './antd-ui' import App from './App.vue' const app = createApp(App) se
阅读全文
posted @ 2021-11-24 11:20 少年。
阅读(1213)
评论(0)
推荐(0)
vite动态加载图片
摘要: [参考CSDN](https://blog.csdn.net/weixin_44717047/article/details/119846671?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2~
阅读全文
posted @ 2021-11-24 11:01 少年。
阅读(966)
评论(0)
推荐(0)
wp2vite
摘要: # wp2vite 一个webpack转换vite2的工具 ### 安装 ``` npm install -g wp2vite or yarn global add wp2vite ``` ### 启动wp2vite 项目目录下启动wp2vite ```js // 执行wp2vite的命令行 wp2
阅读全文
posted @ 2021-11-24 09:56 少年。
阅读(835)
评论(0)
推荐(0)
2021年11月17日
vue3配置rem适配
摘要: vue3配置rem适配 postcss-pxtorem 是一款 postcss 插件,用于将单位转化为 rem amfe-flexible 用于设置 rem 基准值 npm i postcss-pxtorem@5.1.1 使用 amfe-flexible 动态设置 REM 基准值(html 标签的字
阅读全文
posted @ 2021-11-17 11:43 少年。
阅读(2161)
评论(1)
推荐(0)
2021年11月12日
vue3使用v-md-editor锚点
摘要: vue3使用v-md-editor锚点 预览模式展示了如何在预览模式下通过外部锚点来定位到文档标题位置。 官网示例 https://ckang1229.gitee.io/vue-markdown-editor/zh/senior/anchor.html xxx.vue <template> <a-b
阅读全文
posted @ 2021-11-12 15:40 少年。
阅读(3034)
评论(2)
推荐(0)
2021年11月1日
Vue3 + Ts 封装axios
摘要: 封装思路 index.ts 我们需要在src的根目录下创建一个axios文件夹,其中创建一个index.ts文件,这个文件主要用来封装axios的配置(实例化请求配置、请求拦截器、相应拦截器)及相应的方法(登录跳转、消息提示、错误处理等) base.ts 这个文件主要用于项目扩展的情况下 不同模块需
阅读全文
posted @ 2021-11-01 09:39 少年。
阅读(5865)
评论(2)
推荐(0)
2021年10月22日
vue3使用Moment
摘要: moment.js是一个JavaScript 日期处理类库。 由于用ant design日期组件取得的值是moment类型,而往数据库中保存需要的是字符串类型.这里就用到了moment日期转换 Moment.js官网:http://momentjs.cn/ 安装插件 ``` npm install
阅读全文
posted @ 2021-10-22 15:09 少年。
阅读(3354)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
14
下一页
公告