1.14.1 • Published 2 months ago

@nbicc/common-components v1.14.1

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

npm (scoped) npm Netlify Status

安装

组件库依赖 ant-design-vue, vue, @ant-design/icons-vuelodash-es. 请确保这些依赖已经安装.

::: tip 如果你使用 npm 版本 >= 8, npm 将自动安装这些依赖. :::

npm install @nbicc/common-components

使用

import { createApp } from "vue";
import Antd from "ant-design-vue";
import App from "./App";
import "ant-design-vue/dist/antd.css";

import CommonComponents from "@nbicc/common-components";
import "@nbicc/common-components/dist/style.css";

const app = createApp(App);

app.use(Antd).use(CommonComponents).mount("#app");

与 Ant Design Vue 一样, 需要引入样式文件. 一般来说会在 main.js 中引入.

链接

开发指南

组件库使用 Vite 构建, 文档使用 VitePress 构建.

必要的开发环境

  • nodejs >= 16
    • 16 以下的版本不支持自动安装对等依赖
    • vuejs/language-tools 存在已知的问题, 需要 16 以上的版本才能正常工作.

安装依赖

npm install

启动开发服务器

使用 vitepress 的文档服务器作为开发服务器, 会自动监听文件变化并重新编译. 文档位于 docs 目录下.

npm run docs:dev

修改代码...

随便改点什么...

运行单元测试 (Vitest)

不需要, 因为没有单元测试.

npm run test:unit

提交代码

提交前请阅读关于 Commit Message 的规范 Conventional Commits.

Commit Message 需要遵循 Angular Commit Message Guidelines.

提交前会运行 ESLintPrettier, 检查未通过时会中断提交.

推荐的 IDE 设置

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

1.14.1

2 months ago

2.8.0

3 months ago

2.7.4

3 months ago

2.7.3

4 months ago

2.7.2

4 months ago

2.7.1

4 months ago

2.7.0

5 months ago

1.14.0

5 months ago

1.14.0-beta.1

5 months ago

1.14.0-alpha.1

5 months ago

1.2.0

10 months ago

1.9.1-alpha.1

8 months ago

1.6.2

9 months ago

1.6.0

9 months ago

1.2.1

10 months ago

2.4.0

7 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.13.0-alpha.2

6 months ago

1.13.0-alpha.3

6 months ago

1.13.0-alpha.1

6 months ago

1.13.0-alpha.6

6 months ago

1.13.0-alpha.7

6 months ago

1.13.0-alpha.4

6 months ago

1.13.0-alpha.5

6 months ago

1.1.0-beta.1

10 months ago

1.7.0-beta.12

8 months ago

1.7.0-beta.10

8 months ago

1.7.0-beta.11

8 months ago

1.3.0-alpha.2

10 months ago

1.3.0-alpha.1

10 months ago

1.11.3

7 months ago

1.1.0

10 months ago

1.11.2

7 months ago

1.11.1

7 months ago

1.9.1

8 months ago

1.9.0

8 months ago

1.5.3

9 months ago

1.5.2

9 months ago

1.6.0-alpha.1

9 months ago

1.5.1

10 months ago

1.5.0

10 months ago

2.3.0

7 months ago

2.3.1

7 months ago

1.6.0-alpha.2

9 months ago

1.8.3-beta.2

8 months ago

1.8.3-beta.1

8 months ago

1.3.0-beta.1

10 months ago

1.3.0-beta.2

10 months ago

1.3.0-beta.3

10 months ago

1.3.0-beta.4

10 months ago

1.6.3-alpha.1

9 months ago

1.5.0-alpha.1

10 months ago

1.5.0-alpha.2

10 months ago

1.5.0-alpha.3

10 months ago

1.5.0-alpha.4

10 months ago

1.5.0-alpha.5

10 months ago

1.5.0-alpha.6

10 months ago

1.10.1

7 months ago

1.5.0-alpha.7

10 months ago

1.5.0-alpha.8

10 months ago

1.5.0-alpha.9

10 months ago

1.5.0-alpha.10

10 months ago

1.0.1

10 months ago

1.12.1

6 months ago

1.12.0

6 months ago

1.7.0-beta.3

9 months ago

1.7.0-beta.4

9 months ago

1.7.0-beta.1

9 months ago

1.7.0-beta.2

9 months ago

1.8.2

8 months ago

1.7.0-beta.7

8 months ago

1.7.0-beta.8

8 months ago

1.8.0

8 months ago

1.7.0-beta.5

8 months ago

1.7.0-beta.6

8 months ago

1.4.2

10 months ago

1.4.1

10 months ago

1.7.0-beta.9

8 months ago

1.7.0-alpha.1

9 months ago

1.4.0

10 months ago

1.7.0-alpha.2

9 months ago

2.2.1

8 months ago

2.2.0

8 months ago

1.5.1-beta.1

9 months ago

1.8.2-beta.2

8 months ago

2.6.0

5 months ago

1.8.2-beta.1

8 months ago

1.8.1-alpha.1

8 months ago

1.9.4

7 months ago

1.9.3

8 months ago

1.9.2

8 months ago

1.11.0

7 months ago

1.13.0

5 months ago

1.9.0-alpha.1

8 months ago

1.7.0

9 months ago

1.3.0

10 months ago

2.5.0

7 months ago

2.5.2

7 months ago

2.5.1

7 months ago

2.1.0

8 months ago

1.6.3-beta.1

9 months ago

1.6.3-beta.2

9 months ago

1.6.1-beta.1

9 months ago

1.0.0

11 months ago

1.0.0-alpha.1

11 months ago

1.0.0-beta.2

11 months ago

0.0.1-34

11 months ago

0.0.1-36

11 months ago

0.0.1-37

11 months ago

1.0.0-beta.1

11 months ago

0.0.1-41

11 months ago

0.0.1-40

11 months ago

0.0.1-42

11 months ago

0.0.1-33

11 months ago

0.0.1-32

11 months ago

0.0.1-31

11 months ago

0.0.1-30

11 months ago

0.0.1-29

11 months ago

0.0.1-28

11 months ago

0.0.1-27

11 months ago

0.0.1-26

11 months ago

0.0.1-25

11 months ago

0.0.1-24

11 months ago

0.0.1-23

11 months ago

0.0.1-22

11 months ago

0.0.1-21

11 months ago

0.0.1-20

11 months ago

0.0.1-19

11 months ago

0.0.1-18

11 months ago

0.0.1-17

11 months ago

0.0.1-16

11 months ago

0.0.1-15

11 months ago

0.0.1-13

12 months ago

0.0.1-12

12 months ago

0.0.1-11

12 months ago

0.0.1-9

12 months ago

0.0.1-8

12 months ago

0.0.1-7

12 months ago

0.0.1-5

12 months ago

0.0.1-4

12 months ago

0.0.1-3

1 year ago

0.0.1-2

1 year ago

0.0.1-1

1 year ago

0.0.1-0

1 year ago