Code Monkey home page Code Monkey logo

aile-ui's Introduction

Features

AileUI 是一个基于 Vue 2Element UI 进行二次开发的UI库,包含以下常用组件:

每种组件均在原有 ElementUI 的基础上进行了功能增强,例如 FormTable 组件实现了配置化开发,可通过书写JSX语法传入 column 属性完成配置,而 SelectAutocomplete 组件则实现了无限滚动加载的功能,更多功能可点击上方列表阅读相应 README.md 文档

使用文档/Demo

点击访问:AileUI

Install

通过 npm 或者 yarn 安装项目

npm i aile-ui element-ui

# 或者
yarn add aile-ui element-ui

Quick Start

引用组件,根据需要可全局引入或者局部引入 注意:由于 AileUI 是基于 ElementUI 进行的二次开发,因此需全局引入 ElementUI 组件后方可正常使用

main.js 全局引入

import Vue from 'vue'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 方式1:引入全部组件包并设置参数,key的名称是组件类别
import AileUI from 'aile-ui'
Vue.use(AileUI, {
  autocomplete: {
    clearable: true,
    config: {
      trim: true
    }
  }
})

// 方式2:引入单独组件并设置参数
import AileAutocomplete from 'aile-ui/lib/autocomplete'
Vue.use(AileAutocomplete, {
  clearable: true,
  config: {
    trim: true
  }
});

Demo.vue 局部引入

import AileAutocomplete from 'aile-ui/lib/autocomplete'
export default {
    components: {
        AileAutocomplete
    }
}

aile-ui's People

Contributors

chuion 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.