All Projects → dewfall123 → vitepress-for-component

dewfall123 / vitepress-for-component

Licence: MIT License
📖 针对组件开发的VitePress。

Programming Languages

typescript
32286 projects
Vue
7211 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vitepress-for-component

vui-vc-next
Vue 3 with Vite Playground - Mobile web UI components - (vue3+vite2).
Stars: ✭ 15 (-89.44%)
Mutual labels:  vue-components, vue3, vitepress
codemirror-editor-vue3
CodeMirror component for Vue3
Stars: ✭ 22 (-84.51%)
Mutual labels:  vue-components, vue3, vitepress
vue-load-image
A Vue component for showing loader during image loading https://john015.github.io/vue-load-image/
Stars: ✭ 60 (-57.75%)
Mutual labels:  vue-components, vue3
chusho
A library of bare & accessible components and tools for Vue.js 3
Stars: ✭ 47 (-66.9%)
Mutual labels:  vue-components, vue3
vue-cirrus
Vue components for the Cirrus CSS framework.
Stars: ✭ 43 (-69.72%)
Mutual labels:  vue-components, vue3
Vue3 News
🔥 Find the latest breaking Vue3、Vue CLI 3+ & Vite News. (2021)
Stars: ✭ 2,416 (+1601.41%)
Mutual labels:  vue-components, vue3
vue-component-lib-starter
A bare-bones example of creating your own Vue component library.
Stars: ✭ 221 (+55.63%)
Mutual labels:  vue3, vitepress
Different-UI
✨ A Vue.js 3 UI Library — a Toy
Stars: ✭ 62 (-56.34%)
Mutual labels:  vue-components, vue3
smart-tagz
🏷Smart input tags for Vue
Stars: ✭ 28 (-80.28%)
Mutual labels:  vue-components, vue3
v-intl
Add i18n to your awesome Vue 3 app 🔉
Stars: ✭ 13 (-90.85%)
Mutual labels:  vue-components, vue3
fect
Minimalist UI components built on Vue-next
Stars: ✭ 352 (+147.89%)
Mutual labels:  vue-components, vue3
vuestic-ui
Free and Open Source UI Library for Vue 3 🤘
Stars: ✭ 1,501 (+957.04%)
Mutual labels:  vue-components, vue3
Nutui
京东风格的移动端 Vue2、Vue3 组件库 (A Vue.js UI Toolkit for Mobile Web)
Stars: ✭ 3,870 (+2625.35%)
Mutual labels:  vue-components, vue3
vue-virtualised
Blazing fast scrolling and updating for any amount of list and hierarchical data.
Stars: ✭ 18 (-87.32%)
Mutual labels:  vue-components, vue3
hoc-element-table
📦 A Vue 3.x Table Component built on Webpack 5
Stars: ✭ 26 (-81.69%)
Mutual labels:  vue-components, vue3
vue-word-highlighter
The word highlighter library for Vue 2 and Vue 3.
Stars: ✭ 112 (-21.13%)
Mutual labels:  vue-components, vue3
vue3-docs
vue中文社区,vue3 中文文档
Stars: ✭ 180 (+26.76%)
Mutual labels:  vue-components, vue3
vue2-timeago
🙌 A vue component used to format date with time ago statement. 💬
Stars: ✭ 76 (-46.48%)
Mutual labels:  vue-components, vue3
v-pip
🖼 Tiny vue wrapper for supporting native picture-in-picture mode.
Stars: ✭ 30 (-78.87%)
Mutual labels:  vue-components, vue3
vue3.0-elemenplus-admin-template
一个基于Vue3.0和Element-plus的后台管理模板,一个使用Koa2作为后台程序使用MongoDB作为缓存数据库和MariaDB作为数据的后台管理模板系统
Stars: ✭ 20 (-85.92%)
Mutual labels:  vue3

vitepress-for-component

npm npm

VFC Fork 自VitePress,针对组件开发场景做了一些功能增强和默认样式修改。

可以理解为是一个在 VitePress 的基础上向 dumi 靠拢的工具。

详细文档.

快速开始

yarn create vlib
  • 不使用脚手架

像 vitepress 一样使用即可。

示例站点

Features

1. 内置Demo组件

我们可以在.md文件中这样来引入demo

<demo src="./demo.vue"
  language="vue"
  title="Demo演示"
  desc="这是一个Demo渲染示例">
</demo>

渲染效果如下:


demo-example

2. 像 dumi 一样的组织文件

在组件编写的场景中,我们觉得 dumi 的文件结构更合适。

示例:

假设我们有这样一个组件库。

VitePress文件结构如下。

docs
├─ index.md
├─ loading
│  └─ index.md
├─ zh
│  ├─ index.md
│  └─ loading
│     └─ index.md
src
├── loading
│ ├── demo
│ │ └── demo.vue
│ └── loading.vue
└── ...

vitepress-for-componnet文件结构如下。

docs
├── index.en-US.md
├── index.zh-CN.md
src
├── loading
│ ├── demo
│ │ └── demo.vue
│ ├── index.en-US.md
│ ├── index.zh-CN.md
│ └── loading.vue
└── ...

我们觉得dumi的组织结构有如下好处:

  • demo.vue 和 loading.md 都放在 src 下面,源码和文档联系感更强。
  • 用后缀.zh-CN来区分 locale,更加有对比度。

3. 更合适的默认样式

如图:


example

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].