Git Product home page Git Product logo

moonui3's Introduction

介绍

Moon UI 是一款基于 Vue 3 和 TypeScript 的 UI 组件库。

这款组件库是我在学习Vue3时写的,全程亲手编写,尽量不采用第三方库。

此库仅限学习使用,不建议用于生产环境。

源代码放在了 Github ,历史提交信息非常规范,你可以按提交的顺序逐个查看;你也可以直接查看每个组件的源代码和示例。

✨ 特性

🌈 基于 Vue 3 开发的UI库。

🛡 使用 TypeScript 开发。

⚙ 代码简洁可读性好上手快。

🎨 高质量 Vue 组件。

安装

打开终端运行下列命令:

npm安装

npm install Moon-ui

yarn安装

yarn add Moon-ui

开始使用

请先安装本组件库,具体安装方法见上一节。

然后在你的代码中添加如下代码,引用组件。

import {Button, Tabs, Switch, Dialog} from "Moon-ui"

接下来就可以使用Moon-ui啦。

Vue 单文件组件

代码示例:

<template>
  <div>
    <Button>按钮</Button>
  </div>
</template>

<script>
 import {Button, Tabs, Switch, Dialog} from "Moon-ui"
 export default {
   components: {Button}
 }
</script>

运行步骤

  1. 运行 yarn
  2. 运行 yarn dev

moonui3's People

Contributors

amayw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.