![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue3
chonga_
22.4.27会坚持多久
展开
-
vue3+ts 使用echarts 画圆柱状图
效果图如下:代码如下<script lang="ts" setup> import { reactive, ref, toRefs, onMounted } from 'vue'; import * as echarts from 'echarts'; // 获取echarts的dom元素 let chartRef = ref(); // 定义收益柱状图数据 let profit = reactive({ title: { text: .原创 2022-04-25 15:09:13 · 2170 阅读 · 3 评论 -
Vue3项目自定义代码块
话不多说,上图试试看↓{ "demo":{ "prefix": "v3", "body": [ "<template>", "\t", "</template>", "", "<script lang='ts'>", "import {defineComponent }from 'vue'", "export default defineComponent({", "\tsetup(){", ..原创 2022-04-19 10:04:05 · 1312 阅读 · 0 评论 -
vue3 中获取router
先导入vue-router 里的useRouter import {useRouter} from 'vue-router'import {useRouter} from 'vue-router'setup(){ const router =useRouter() watch(()=>{ console.log(router) return router.currentRoute.value },(value)=>{ }) ..原创 2022-04-07 10:56:50 · 6801 阅读 · 0 评论