Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 618 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 618 Bytes

此仓库不再维护,请使用 uni-app-types 替代

uni-base-components-types

@dcloudio/uni-helper-json 的 json 文件转换成 .d.ts,使得在使用 Volar 插件时 uni-app 的基础组件有代码提示

使用方法

  1. 安装依赖
npm i -D uni-base-components-types
  1. 配置 ts.config.json 文件 在 types 字段中添加 uni-base-components-types
{
  "compilerOptions": {
    "types": ["uni-base-components-types"],
  },
}
  1. 重启 vscode