![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ts
夜丶陌颜
快来看看我的博客吧!!!希望你有所收获
展开
-
canvas 实现静态流程图
canvas 画静态流程图,canvas 画 圆、棱形、三角形、线条、曲线、文本、图片原创 2022-07-13 17:36:08 · 1268 阅读 · 0 评论 -
vue + ts + element下拉加载更多指令
import { DirectiveOptions } from "vue";/** * 对 element-ui 的无限滚动在 el-table 上使用的封装 */import elInfiniteScroll from "element-ui/lib/infinite-scroll";const elScope = "ElInfiniteScroll"; // scope nameconst msgTitle = `[el-table-infinite-scroll]: `; // me原创 2021-09-22 12:00:53 · 296 阅读 · 0 评论 -
vue2.0 + ts 遇到this 指向的问题
运行环境“vue”: “^2.6.11”,“typescript”: “~3.8.3”,问题重现html <el-tree :data="treeOptions.data" node-key="id" @check="treeOptions.checkChange" />js问题1:export default class GoodsClassify extends Vue { private treeOptions = { data:原创 2021-09-03 17:38:59 · 1383 阅读 · 0 评论 -
vue + ts tslint.json配置
{ "defaultSeverity": "warning", "extends": [ "tslint:recommended" ], "linterOptions": { "exclude": [ "node_modules/**" ] }, "rules": { // 禁止自动检测末尾行必须使用逗号,always总是检测,never从不检测,ignore忽略检测 "trailing-comma": [true, {原创 2020-08-26 09:02:34 · 1065 阅读 · 0 评论 -
vue + ts 错误排除 Argument of type ‘XXX‘ is not assignable to parameter of type ‘Vue‘.
错误:大量出现这种错误,一般由于你重写了mixins中的方法,而你使用private 进行重写导致错误出现。解决方法: private(私有) 变成 public(公共)原创 2021-01-07 08:13:55 · 12336 阅读 · 1 评论 -
ts + axios封装
https.ts文件/** * @author 作者 * @time 2020-9-27 8:47 * @title http请求封装 * desc 前后端约定接口返回解构规范 * { * code: '1', * data:" 请求成功", * message: "" * } */import { Interceptor } from './interceptor';import { message, Modal } from 'ant-design原创 2020-10-23 16:09:53 · 3451 阅读 · 4 评论 -
ts 中新特性
1. 枚举使用关键词enum 来声明枚举, 枚举中默认以 ; 号结尾,值默认以 0 开始自增,// 情况1enum selected { optional // 可选 值为0 unOptional // 不可选 值为1}// 访问const class1 { isOptional : selected.optional // 0 访问是和对象访问一致}// 情况2enum selected { optional = 5 // 值为5,原创 2021-02-06 12:53:14 · 669 阅读 · 0 评论