Giter Site home page Giter Site logo

ifeel's Introduction

ifeel - 一个Vue UI组件

npm version GitHub version Build Status

介绍

在过去的半年中,我曾经使用过iview,element-ui,mint-ui等非常优秀的UI库。这些优秀的库可能满足大部分开发者的工作场景,但是一旦遇到这些库停止更新(例如:mint-ui)或者满足不了你的工作场景需求的时候你就不得不手动修改他们的源代码, 长时间的被动修改的过程中使我想系统的学习如何造一个「轮子」,那造一个轮子绝不仅限于代码写出来那么简单,它包括你可能要进行的单元测试、持续集成、以及发布npm包。从另一种角度来说,我在造轮子的过程中可能不仅在满足我工作的过程中处理组件能够得心应手,对于我个人的成长也有一定的帮助

开始使用

1.添加css样式

使用这个UI库之前我已经默认你当前的浏览器环境支持IE盒子模型,如果没有请你手动添加

  • example:

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

你还需要设置默认颜色等变量(后续改为SCSS变量)

```
    :root {
        --button-height: 32px;
        --font-size: 14px;
        --button-bg: white;
        --button-active-bg: #eee;
        --border-radius: 4px;
        --color: #333;
        --border-color: #666;
        --border-color-hover: #999;
    }
```
IE15以上浏览器都支持使用

2.安装ifeel

    npm i --save ifeel

3.局部引入ifeel

    import {Button, ButtonGroup, Icon} from 'ifeel'
    import 'ifeel/dist/index.css'
    
    export default {
        components: {
            'g-button': Button,
            'g-icon': Icon
        } 
    }

问答

变更记录

联系方式

贡献代码

黄飞龙(Wallen Huang)

ifeel's People

Contributors

jackwong992 avatar

Stargazers

 avatar

Watchers

James Cloos 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.