https://github.com/innei/components-playground
用于分离测试组件的效果,或用于写组件 Demo,游乐场。
https://github.com/innei/components-playground
Last synced: 4 months ago
JSON representation
用于分离测试组件的效果,或用于写组件 Demo,游乐场。
- Host: GitHub
- URL: https://github.com/innei/components-playground
- Owner: Innei
- License: mit
- Created: 2022-01-27T06:07:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-08T08:29:03.000Z (over 2 years ago)
- Last Synced: 2025-02-13T04:22:15.225Z (over 1 year ago)
- Language: TypeScript
- Size: 183 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# 便携式多环境组件测试
用于分离测试组件的效果,或用于写组件 Demo。
当前支持的环境有 React 17,Vue 3。支持 TypeScript,Vue TSX,PostCSS,TailwindCSS 3。
## 如何使用
Fork 此项目。或者 Clone 到本地。使用 pnpm 安装 workspace 需要的依赖。
```
pnpm i
```
启动单个环境:
```
pnpm run dev:react
pnpm run dev:vue
```
在每个环境中的 pages 目录下可以编写新的组件测试。路由将自动生成。
注意:pages 下的页面组件必须存在默认导出。
## 大概就是这样的界面
React:

Vue:
