2023-02-16 19:11:16 +08:00
|
|
|
<p align="center">
|
2023-03-20 15:25:25 +08:00
|
|
|
<a href="https://opentiny.design/tiny-vue" target="_blank" rel="noopener noreferrer">
|
|
|
|
<img alt="OpenTiny Logo" src="logo.svg" height="100" style="max-width:100%;">
|
2023-02-16 19:11:16 +08:00
|
|
|
</a>
|
|
|
|
</p>
|
2022-07-12 15:58:02 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
<p align="center">An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.</p>
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
English | [简体中文](README.zh-CN.md)
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
🌈 Features:
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
- 📦 69 clean, easy-to-use and powerful components.
|
|
|
|
- 🖖 One code, Support both Vue.js 2 and Vue.js 3.
|
|
|
|
- 🖥️ One code, Support both PC and Mobile.
|
|
|
|
- 🌍 Support internationalization.
|
|
|
|
- 🎨 Support theme customization.
|
|
|
|
- 📊 Components support configuration development, can support low-code platform.
|
|
|
|
- 💡 Use a cross-end and cross-framework architecture, flexible and portable.
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
## 🛠️ Usage
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
### 1. Installation
|
|
|
|
|
|
|
|
Execute the following command to install the TinyVue component library for Vue.js 3.
|
2023-02-16 19:11:16 +08:00
|
|
|
|
|
|
|
```shell
|
2023-03-20 15:25:25 +08:00
|
|
|
npm i @opentiny/vue@3
|
2023-02-16 19:11:16 +08:00
|
|
|
```
|
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
Execute the following command to install the TinyVue component library for Vue.js 2.
|
2023-02-16 19:11:16 +08:00
|
|
|
|
|
|
|
```shell
|
|
|
|
npm i @opentiny/vue@2
|
|
|
|
```
|
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
### 2. Import component
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
Then you can use the TinyVue component(such as `<tiny-button>`) in the `App.vue` file.
|
2023-02-16 19:11:16 +08:00
|
|
|
|
|
|
|
```vue
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { Button as TinyButton } from '@opentiny/vue'
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<tiny-button>Tiny Vue</tiny-button>
|
|
|
|
</template>
|
|
|
|
```
|
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
## 🖥️ Development
|
2023-02-16 19:11:16 +08:00
|
|
|
|
|
|
|
```shell
|
|
|
|
git clone git@github.com:opentiny/tiny-vue.git
|
|
|
|
cd tiny-vue
|
2023-03-31 06:55:03 +08:00
|
|
|
pnpm i
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
# Vue.js 3
|
2023-03-31 06:55:03 +08:00
|
|
|
pnpm dev
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
# Vue.js 2
|
2023-03-31 06:55:03 +08:00
|
|
|
pnpm dev:vue2
|
2023-02-16 19:11:16 +08:00
|
|
|
```
|
|
|
|
|
2023-04-23 09:42:46 +08:00
|
|
|
Open your browser and visit: [http://127.0.0.1:7130/](http://127.0.0.1:7130/)
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
## 🤝 Contributing
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
Welcome to join our OpenTiny community!🎉
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
If you don't know how to start, please read our [contributing guide](CONTRIBUTING.md).
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
- Add the official assistant WeChat `opentiny-official` and join the technical exchange group.
|
|
|
|
- Add to the mailing list `opentiny@googlegroups.com`
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-05-14 12:25:02 +08:00
|
|
|
## ✨ Contributors
|
|
|
|
|
|
|
|
Contributors are community members who have 1 or more PR merged in OpenTiny.
|
|
|
|
|
|
|
|
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
|
|
|
|
|
|
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
<!-- markdownlint-disable -->
|
2023-05-14 12:29:59 +08:00
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2023-05-14 17:12:17 +08:00
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/kagol"><img src="https://avatars.githubusercontent.com/u/9566362?v=4?s=100" width="100px;" alt="Kagol"/><br /><sub><b>Kagol</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=kagol" title="Code">💻</a></td>
|
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/zzcr"><img src="https://avatars.githubusercontent.com/u/18521562?v=4?s=100" width="100px;" alt="ajaxzheng"/><br /><sub><b>ajaxzheng</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=zzcr" title="Code">💻</a></td>
|
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/TC-twwang"><img src="https://avatars.githubusercontent.com/u/42400776?v=4?s=100" width="100px;" alt="TC-twwang"/><br /><sub><b>TC-twwang</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=TC-twwang" title="Code">💻</a></td>
|
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/MNZhu"><img src="https://avatars.githubusercontent.com/u/17588953?v=4?s=100" width="100px;" alt="jacknan"/><br /><sub><b>jacknan</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=MNZhu" title="Code">💻</a></td>
|
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/awspi"><img src="https://avatars.githubusercontent.com/u/66438036?v=4?s=100" width="100px;" alt="Pithy"/><br /><sub><b>Pithy</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=awspi" title="Code">💻</a></td>
|
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/heygsc"><img src="https://avatars.githubusercontent.com/u/103993866?v=4?s=100" width="100px;" alt="heygsc"/><br /><sub><b>heygsc</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=heygsc" title="Code">💻</a></td>
|
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/wwttff"><img src="https://avatars.githubusercontent.com/u/32888622?v=4?s=100" width="100px;" alt="MangoWu"/><br /><sub><b>MangoWu</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=wwttff" title="Code">💻</a></td>
|
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/ErKeLost"><img src="https://avatars.githubusercontent.com/u/66500121?v=4?s=100" width="100px;" alt="ADNY"/><br /><sub><b>ADNY</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=ErKeLost" title="Code">💻</a></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/chenxi-20"><img src="https://avatars.githubusercontent.com/u/76168465?v=4?s=100" width="100px;" alt="chenxi-20"/><br /><sub><b>chenxi-20</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=chenxi-20" title="Code">💻</a></td>
|
2023-05-14 17:13:19 +08:00
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/rayhaoqin"><img src="https://avatars.githubusercontent.com/u/46983981?v=4?s=100" width="100px;" alt="Alaray"/><br /><sub><b>Alaray</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=rayhaoqin" title="Code">💻</a></td>
|
2023-05-14 17:14:30 +08:00
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/yuanningning"><img src="https://avatars.githubusercontent.com/u/104059491?v=4?s=100" width="100px;" alt="ing"/><br /><sub><b>ing</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=yuanningning" title="Code">💻</a></td>
|
2023-05-14 17:15:45 +08:00
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/shenjunjian"><img src="https://avatars.githubusercontent.com/u/6848520?v=4?s=100" width="100px;" alt="申君健"/><br /><sub><b>申君健</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=shenjunjian" title="Code">💻</a></td>
|
2023-05-14 17:16:37 +08:00
|
|
|
<td align="center" valign="top" width="12.5%"><a href="https://github.com/MomoPoppy"><img src="https://avatars.githubusercontent.com/u/125256456?v=4?s=100" width="100px;" alt="MomoPoppy"/><br /><sub><b>MomoPoppy</b></sub></a><br /><a href="https://github.com/opentiny/tiny-vue/commits?author=MomoPoppy" title="Code">💻</a></td>
|
2023-05-20 12:17:14 +08:00
|
|
|
</tr>
|
2023-05-14 12:29:59 +08:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-05-14 12:25:02 +08:00
|
|
|
|
|
|
|
<!-- markdownlint-restore -->
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
|
|
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
|
|
|
2023-03-20 15:25:25 +08:00
|
|
|
## License
|
2023-02-16 19:11:16 +08:00
|
|
|
|
2023-04-07 18:54:27 +08:00
|
|
|
[MIT](LICENSE)
|