今天给大家分享一款超优秀的Vue免费开源UI组件库HEYUI。

高质量 Vue.js UI组件库HeyUI

 

heyui 一套基于 vue2.x 构建的UI组件库,star高达2.2K+。提供 50 多种丰富的组件,支持全局方法及配置、自定义主题、国际化,主要服务于一些中后台产品。

 

特性

HeyUI提供的是一整套解决方案,所有的组件提供全局的可配置模式。

  • 真正的数据驱动
  • 全局的配置模式
  • 数据字典化

 

安装

$ npm i heyui -S

引入组件

// 在main.js中全局引入
import Vue from "vue"
import HeyUI from "heyui"
require("heyui/themes/index.less")
Vue.use(HeyUI)

// 按需引入组件
import Vue from 'vue';
import { install, Prototypes, Button, DropdownMenu } from 'heyui';
require('..//module.less');
Vue.use(install, { components: { Button, DropdownMenu }, prototypes: Prototypes });

 

使用组件

<template>
  <div class="heyui-wrap">
    <Button color="primary">主色系按钮</Button>
    <Button :text="true">文字按钮</Button>
    <Button :no-border="true">文字按钮2</Button>
    
    <p><h-switch v-model="check1" :small="true">测试</h-switch></p>
    <p><Rate v-model="3.5" show-text></Rate></p>
     
    <Slider v-model="{start: 0, end: 20}" multiple></Slider>
    
    <DatePicker v-model="2020-08-22" :format="YYYY-MM-DD"></DatePicker>
    ...
  </div>
</template>
<script>
export default {
  data: function () {
    return {};
  }
};
</script>

 


 


 


 

基于HeyUI构建的后台模板。

 

http://admin.heyui.top/

针对开发者,提供了vscode工具提示插件。

 

https://github.com/heyui/heyui-snippets
https://marketplace.visualstudio.com/items?itemName=vvpvvp.heyui-snippets

最后附上链接地址

# 文档地址
https://www.heyui.top/

# 仓库地址
https://github.com/heyui/heyui

so,就介绍到这里。希望能有所帮助,感兴趣的话可以去看下哈~

胜象大百科