vue3+ts 项目解决的问题
Fx_cap
前端
展开
-
Pinia的基本使用
pinia的基本使用原创 2022-10-14 15:18:32 · 2683 阅读 · 0 评论 -
vue3+ts+IntersectionObserver实现图片懒加载
vue3+ts+IntersectionObserver实现图片懒加载原创 2022-10-11 15:38:08 · 325 阅读 · 0 评论 -
vue中使用 qrcodejs2 生成二维码
vue中使用 qrcodejs2 生成二维码原创 2022-10-08 14:40:06 · 921 阅读 · 0 评论 -
vue3+ts 使用 getCurrentInstance
页面中经常使用getCurrentInstance () 来获取 proxy ,不如封装一个方法搞定创建 useCurrentInstance.ts 文件import { ComponentInternalInstance, getCurrentInstance } from 'vue'export default function useCurrentInstance() { const { appContext } = getCurrentInstance() as Component.原创 2022-04-20 17:08:24 · 2605 阅读 · 1 评论 -
vue3+ts项目中全局引入使用echarts
npm install echarts --save默认就是5版本的。 在main.ts 中引入并挂载 vue 实例上 import * as ECharts from 'echarts'const app = createApp(App)app.config.globalProperties.$ECharts = EChartsapp.mount('#app') 在使用 echarts 页面内 <template> <div id="myCha.原创 2022-04-18 22:52:53 · 3158 阅读 · 0 评论 -
vue3+ts处理定时器、案例:获取当前时间
vue3+ts 获取当前时间原创 2022-04-16 22:54:02 · 6693 阅读 · 3 评论