![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
typescript
Cheryl71
这个作者很懒,什么都没留下…
展开
-
Property ‘blur‘ does not exist on type ‘Vue | Element | Vue[] | Element[]‘.
<div v-on:keyup.enter="search"> <template v-slot:activator="{ on }"> <v-text-field solo hide-details label="请输入关键词" append-icon="search" v-model="text" class="input-search" au原创 2021-06-10 17:15:04 · 764 阅读 · 0 评论 -
执行 `npm run serve`时,报错: `Error: Cannot find module ‘fork-ts -checker -webpack-plugin-v5‘`
解决方案:原package.json文件里的"devDependencies""devDependencies": { "@vue/cli-plugin-typescript": "~4.5.0",},第一次修改:将package.json文件里的"devDependencies"中的"@vue/cli-plugin-typescript"从 “~4.5.0"修改为 "~4.4.0",此时执行 npm run serve不报错,"devDependencies": { "@原创 2021-05-18 14:48:12 · 804 阅读 · 3 评论 -
如何在vscode中创建vue快捷键
mac通过Code->Preferences->User Snippets->vue.json 编辑win通过File->Preferences->User Snippets->vue.json 编辑官方示例如下,// Example:// "Print to console": {// "prefix": "log",// "body": [// "console.log('$1');",// "$2"// ],// "desc..原创 2021-04-19 17:18:07 · 338 阅读 · 0 评论 -
vue3+ts中使用echarts5.0
安装npm install echarts --save在要使用的页面引入import * as echarts from "echarts";容器配置<el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12"> <el-card shadow="always" class="box-card"> <div class="chart-body"> <div .原创 2021-04-13 15:34:40 · 928 阅读 · 0 评论 -
Argument of type ‘HTMLElement | null‘ is not assignable to parameter of type ‘HTMLElement‘. Type ‘
在vue3.0+typescript+echarts5.0项目中,初始化图表,public myChart = echarts.init(document.getElementById("main"));控制台出现以下报错Argument of type 'HTMLElement | null' is not assignable to parameter of type 'HTMLElement'. Type 'null' is not assignable to type 'HTMLElem原创 2021-04-12 16:57:00 · 5234 阅读 · 3 评论