zoukankan      html  css  js  c++  java
  • nuxt+ts+ant-design-vue

    使用ant-design-vue

    // plugins/antd-ui.ts
    import Vue from 'vue'
    import * as Antd from 'ant-design-vue';//一定要这样做,方便类型检查
    Vue.use(Antd)

    tsconfig.json文件

    {
      "compilerOptions": {
        "target": "ES2016",
        "module": "ESNext",
        "moduleResolution": "Node",
        "lib": [
          "ESNext",
          "ESNext.AsyncIterable",
          "DOM"
        ],
        "esModuleInterop": true,
        "allowJs": true,
        "skipLibCheck": true,
        "sourceMap": true,
        "strict": true,
        "jsx": "preserve",
        "noEmit": true,
        "experimentalDecorators": true,
        "baseUrl": ".",
        "paths": {
          "~/*": [
            "*",
            "/*"
          ],
          "@/*": [
            "*",
            "/*"
          ]
        },
        "types": [
          "@types/node",
          "@nuxt/types"
        ]
      },
      "lib": [
        "es5",
        "es6",
        "es7",
        "es2015.promise",
        "esnext",
        "dom",
        "dom.iterable",
        "scripthost"
      ],
      "include": [
        "shims-vue.d.ts",
        "plugins/**/*.ts",
        "pages/**/*.vue",
        "store/**/*.ts",
        "shims-tsx.d.ts"
      ],
      "exclude": [
        "node_modules",
        ".nuxt",
        "dist"
      ]
    }

    目录结构

  • 相关阅读:
    O(n^2)的排序方法
    99乘法表
    excel 转 csv
    批量关闭 excel
    tomcat 加入服务
    文件打包 zip
    字符串转换
    List数组种删除数据
    mybatis 批量上传
    sql server 查询表字段及类型
  • 原文地址:https://www.cnblogs.com/zhizou/p/13645234.html
Copyright © 2011-2022 走看看