Giter VIP home page Giter VIP logo

lgm-ui's Introduction

LGM-UI

Build Status npm GitHub

基于vue 2.x 开发的的UI组件库

logo.png

介绍

这是我为了巩固vue知识做的一个 UI 框架,希望对你有帮助.

本UI库含有以下14个组件:

  • icon 图标
  • button 按钮
  • input 输入框
  • select 选择框 (暂未实现)
  • switch 开关 (暂未实现)
  • radio 单选框 (暂未实现)
  • checkbox 多选框 (暂未实现)
  • pager 分页 (暂未实现)
  • layout 布局
  • grid 网格布局
  • toast 提示弹框
  • popover 气泡卡片
  • tabs 标签页
  • collapse 折叠面板

本UI库支持 IE10 及以上浏览器

文档

LgmUI Documentation

安装

$ yarn add lgm-ui

// or

$ npm install lgm-ui --save

引入项目

在main.js文件下添加如下配置:

import LgmUI from 'lgm-ui'
import 'lgm-ui/dist/index.css'

Vue.use(LgmUI)

new Vue({
  render: h => h(App)
}).$mount('#app');

使用方法

<lgm-button>默认<lgm-button>
<lgm-button type="success">成功<lgm-button>
<lgm-button type="danger" icon="i-loading" circle><lgm-button>

通过以上方式我们可以很容易地使用 LGM-UI 写出一个 Hello world 页面。 在线演示

注意

添加 CSS 样式:

本UI库所有组件的盒模型均使用border-box,使用本UI库请务必在 css 中开启border-box.

*, *::after, *::before{
    box-sizing: border-box;
}

LICENSE

MIT

lgm-ui's People

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.