NODEJS学习开源

gain nature of technology, enjoy fun of programming

menu
  • Home
  • Assembly
  • android
  • API/TOOL
  • c++
  • frontend
  • git
  • java
  • linux dev
  • mac dev
  • mini-program
  • network security
  • nginx
  • python
  • taro/react
  • The Chinese Renaissance
  • The Internationale
  • tutorial
  • win10 dev
  • Web Assembly
  • Recommended Books
  • github Home
  • 首页
  • Assembly
  • android
  • API/TOOL
  • c++
  • frontend
  • git
  • java
  • linux dev
  • mac dev
  • mini-program
  • network security
  • nginx
  • python
  • taro/react
  • The Chinese Renaissance
  • The Internationale
  • tutorial
  • win10 dev
  • Web Assembly
  • Recommended Books
  • github主页

Vue.js 3: props type validation with custom type

  • 作者: sanye
  • 时间: 2022-06-24
  • 分类: Vue
  • 评论
export default defineComponent({
  props: {
    person: {
      type: Object as PropType<Person>,
      required: true
    }
  }
})

ref

  • typescript - Vue.js 3: props type validation with custom type - Stack Overflow

unionapp vue3 vite cli 项目配置px转rpx

  • 作者: sanye
  • 时间: 2022-06-22
  • 分类: Vue
  • 评论

unionapp vue3 vite cli 项目配置px转rpx

- 阅读剩余部分 -

【Vue3】Could not find a declaration file for module ‘lodash/cloneDeep‘

  • 作者: sanye
  • 时间: 2022-06-17
  • 分类: Vue
  • 评论

ref

  • 【Vue3】Could not find a declaration file for module ‘lodash/cloneDeep‘_Lyrelion的博客-CSDN博客
  • Fix - Could not find declaration file for module 'lodash' | bobbyhadz

Vue 3 - global axios instance

  • 作者: sanye
  • 时间: 2022-06-15
  • 分类: Vue
  • 评论
const axiosInstance = axios.create({
  withCredentials: true,
})

const app = createApp()
                                        👇
app.config.globalProperties.$axios = { ...axiosInstance }

ref

  • vue.js - Vue 3 - global axios instance - Stack Overflow

( VUE Computed ) Property 'XXX' does not exist on type 'CreateComponentPublicInstance'

  • 作者: sanye
  • 时间: 2022-06-14
  • 分类: TypeScript,Vue
  • 评论

computed property classes should declare a type, like this

computed: {
  classes ():any {
    return {
      "navbar--on-scroll": this.onScroll,
      "navbar--active": this.navbarActive
    }
  }
}

ref

  • typescript - ( VUE Computed ) Property 'XXX' does not exist on type 'CreateComponentPublicInstance' - Stack Overflow

Vue3+TS this Property 'xxx' does not exist on type '

  • 作者: sanye
  • 时间: 2022-06-14
  • 分类: TypeScript,Vue
  • 评论

在 script 中增加

import { defineComponent } from 'vue'
  1. 将 export default { ... } 的形式改成 export default defineComponent({ ... }) 的形式即可

Array.concat() is missing overload for non-Array arguments

  • 作者: sanye
  • 时间: 2022-06-13
  • 分类: TypeScript
  • 评论

Bogus report, adding a type declaration resolves the issue.

([] as string[]).concat('foo')

ref

  • Array.concat() is missing overload for non-Array arguments · Issue #36769 · microsoft/TypeScript

ESLint: 'PUBLIC' is defined but never used.(no-unused-vars) TS

  • 作者: sanye
  • 时间: 2022-06-10
  • 分类: TypeScript
  • 评论

You should turn off the eslint core rule and turn on the typescript-eslint rule

rules: {
  "no-unused-vars": "off",
  "@typescript-eslint/no-unused-vars": "error"
}
  1. 1
  2. 2
  3. 3
  4. 4
  5. ...
  6. 38
  7. 后一页 »

标签

前言
数据
代码
文件
系统
函数
mov
指令
内容
start
程序
命令
地址
功能
add
类型
内存
assume
版本
单元

分类

  • 默认知识库
  • 数学知识库
    • 常数
    • 数学公式/推导
    • 数论
    • 统计学
      • 机器学习
        • Prolog
        • 算法理论
      • 深度学习
      • 增强现实
      • 数据分析
    • 线性代数
  • 计算机知识库
    • 网络
      • 网络SOCKET编程
      • 网络安全
        • nginx
    • 【汇编语言】
    • 架构设计
      • UML图
      • 架构心经
    • 范式编程
      • 函数式
        • Erlang
      • 面向对象
        • Java
        • C++
      • coding技巧
    • 存储中间件
      • MySQL
      • mongodb
    • 虚拟化技术
      • Docker
    • 操作系统/运维
      • RHCA笔记
        • RHCE
          • Ansible小书
          • 常用命令
      • windows
      • linux
    • 编译技术
      • 编译原理
    • 客户端
      • ios
      • 大前端
        • TypeScript
        • nodejs
        • angular
          • ng8
        • Vue
        • 浏览器API
        • ECMAScript
        • 小程序
        • React/RN
        • CSS2/3/4
        • Electron
    • 版本管理
      • git
    • 开发工具
  • 建筑知识库
© 2022 NODEJS学习开源.

京ICP备15053742号-3

©2016- 2022 NODEJS学习开源 版权所有。

知识共享许可协议
本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可。