Skip to content

Commit

Permalink
整理组件源码和介绍文档源码
Browse files Browse the repository at this point in the history
  • Loading branch information
jingqiwei committed Jun 21, 2023
0 parents commit 6cbb319
Show file tree
Hide file tree
Showing 126 changed files with 22,744 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
coverage
*.local

docs/.vuepress/.cache
docs/.vuepress/.temp

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
24 changes: 24 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 只有编译后的 dist 目录、package.json、README.md是需要被发布的
# 忽略目录
.DS_Store
.vscode/
node_modules
packages/
public/
src/
docs/

# 忽略指定文件
.eslintrc.cjs
.gitignore
.npmignore
.npmrc
.prettierrc.json
components.d.ts
env.d.ts
index.html
pnpm-lock.yaml
stats.html
tsconfig.config.json
tsconfig.json
vite.config.ts
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Q UI

Q UI 是一套基于 `Vue3` + `TypeScript` 开发的 UI 组件库。

总结前端 UI 组件库和介绍文档搭建的经验,同时封装一些项目中常用的组件,提高编码效率。

## 特性

本组件库的实现尽量不采用第三方库,主要提供 **按钮、** 等简洁易用的组件。

本组件库主要用于个人学习交流使用,不可用于生产环境。[源代码](https://github.com/jqw755/q-ui)

## 安装使用

```bash
pnpm i @jqw755/q-ui
# or
npm install @jqw755/q-ui
# or
yarn add @jqw755/q-ui
```

Import and register component

**Global**

```ts
import { createApp } from "vue"
import App from "./App.vue"

import QUI from "@jqw755/q-ui"
import "@jqw755/q-ui/css"

const app = createApp(App)
app.use(QUI)
```

**Local**

```vue
<script setup lang="ts">
import { QButton } from "@jqw755/q-ui"
import "@jqw755/q-ui/css"
</script>
```

## Components

| Component name | Descriptions |
| -------------- | ------------ |
| QBreadcrumb | 面包屑 |
| QButton | 按钮 |
| QSelect | 下拉菜单 |

**Global**

[CSDN](https://blog.csdn.net/qq_21473443)
Binary file added dist/favicon.ico
Binary file not shown.
Loading

0 comments on commit 6cbb319

Please sign in to comment.