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"
      ]
    }

    目录结构

  • 相关阅读:
    flask1 + jinja2 day88
    linux9
    linux8 redis集群槽+docker
    dsadfa
    redis
    aaa
    a
    题目
    java对含有中文的字符串进行Unicode编码
    Java转Double类型经纬度为度分秒格式
  • 原文地址:https://www.cnblogs.com/zhizou/p/13645234.html
Copyright © 2011-2022 走看看