1 Star 0 Fork 1

moon/vite-nice-ui

forked from 陶帅星/vite-nice-ui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Vite Nice UI组件库

基于 Vue3 + TS + Vite 开发,全面支持Vue3



快速使用

npm install  vite-nice-ui
cnpm install  vite-nice-ui --save

全局引入 (不推荐)

import { createApp } from 'vue'
import App from '@/App.vue'
import NiceUI from 'vite-nice-ui'
import 'vite-nice-ui/dist/style.css'

const app = createApp(App)
app.use(NiceUI)
app.mount('#app')

按需引用 (推荐)

import { NButton, NInput } from 'vite-nice-ui'

愉快开始

<n-button>默认按钮</n-buttonn> 
<n-button type="primary">主要按钮</n-button>

开发环境

  • 你需要 Node.js 14+,yarn 1.1+ 和 npm 6+及 vite 2+

  • 如果您在使用yarn安装依赖的过程中出现esline检查不通过,请执行:

    yarn config set ignore-engines true

vue项目启动

npm run dev

vue项目打包

npm run build

vitepress项目启动

npm run doc:dev

vitepress项目打包

npm run doc:build

自动发布 npm 包

npm run pub

自动部署 github pages

npm run deploy

组件开发规范

  • 通过在 packages 目录下创建组件目录结构,包含ts入口文件、组件源码文件。

  • 组件入口文件必须以 index.ts 命名。

  • 只需将组件导出,packages 目录下的index文件会自动引入所有组件并注册install方法,参考代码:

    export { default as NButton } from './NButton';

问题反馈

  • 如果您在使用中存在 bug 或者有更超前的思想及解决方案,不限于新的组件、新的模式、新的思想、新的方案,您可以在 Issue 提交问题,我们会定时进行维护并回复。
  • 或您可发送邮件至 taoshuaixing@gmail.com 来反馈或参与贡献。
MIT License Copyright (c) 2022 Ningstyle Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

🔥 ✨✨ 基于 Vue3 + TS + Vite 开发的一套适合Vue开发者使用的轻量级UI组件库,完美支持vue3,极简配置,开箱即用。 展开 收起
TypeScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/moon1996/vite-nice-ui.git
git@gitee.com:moon1996/vite-nice-ui.git
moon1996
vite-nice-ui
vite-nice-ui
main

搜索帮助

A270a887 8829481 3d7a4017 8829481