Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #19 from Ya2gLu/types-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ya2gLu authored Mar 29, 2024
2 parents f7f9ede + 28c1870 commit 8fe64ba
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions docs/packages/types/intro.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
### 介绍
类型相关
# 介绍

使用TypeScript语法进行组件类型定义,有效提升组件的类型安全.

## 🕸️ 组件目录

```js
📁 types/
└── 📁src/
└── 📄button.ts // 按钮
└── 📄config.ts // 应用配置
└── 📄global.ts // 全局
└── 📄menu.ts // 菜单
└── 📄router.ts // 路由
└── 📄service.ts // 请求
└── 📄setting.ts // 模块设置
└── 📄store.ts // 状态管理
└── 📄index.ts
```

## 🌈 快速使用

```ts
import { modulesType } from '@vben/types'
```


0 comments on commit 8fe64ba

Please sign in to comment.