Git Product home page Git Product logo

dt-element's Introduction

基于element-ui,有以下修改:
  • 1.直接修改了基础颜色配置,不用每个系统再单独引入。
  • 2.input/select/cascader在不可输入状态下,统一增加title属性。
  • 3.input输入数字时,不需要鼠标滚轮滚动修改数字的效果。
  • 4.image组件增加了previewType属性,取值为image/text,当为text类型时,可以配置previewText,实现点击文字查看图片效果。
  • 5.el-table默认增加border属性,方便用户拖拽每一列。
如何需要与element-ui同时按需引入:
  • 在babel.config.js中增加配置: plugins: [ [ "component", { "libraryName": "element-ui", "styleLibraryName": "theme-chalk" } ], [ "component", { "libraryName": "dt-element-ui", "styleLibraryName": "theme-chalk" }, 'dt' ] ]
    增加之后,其余使用与element-ui一样,注意同一个组件只选择dt-element-ui或者element-ui其中之一来引入。

A Component Library for PUMC based on element-ui.

Links

Install

npm install dt-element-ui -S

Quick Start

import Vue from 'vue'
import Element from 'dt-element-ui'

Vue.use(Element)

// or
import {
  Select,
  Button
  // ...
} from 'dt-element-ui'

Vue.component(Select.name, Select)
Vue.component(Button.name, Button)

For more information, please refer to Quick Start in our documentation.

Browser Support

Modern browsers and Internet Explorer 10+.

Contribution

Please make sure to read the contributing guide (中文 | English | Español | Français) before making a pull request.

Let's fund issues in this repository

Special Thanks

English documentation is brought to you by SwiftGG Translation Team:

Spanish documentation is made possible by these community developers:

French documentation is made possible by these community developers:

develop

1.Use npm run dist, get lib file. 2.If you want change css,edit it in packages/theme-chalk file, then use npm run build, get css file.The css file won't work util you npm run dist again.

dt-element's People

Contributors

baiyaaaaa avatar carmencitaqiu avatar coderdiaz avatar csvwolf avatar dreamacro avatar elfman avatar furybean avatar gonzalo2310 avatar hi-linlin avatar iamkun avatar island205 avatar jikkai avatar kingwl avatar leopoldthecoder avatar liril-net avatar liupl avatar liyanlong avatar luckycao avatar maranran avatar masterzhang avatar njleonzhang avatar panjiachen avatar pengchongfu avatar qingwei-li avatar raganof avatar reverland avatar simonaliachen avatar wacky6 avatar waynecz avatar ziyoung 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.