0.2.3 • Published 4 years ago

dream-vue-ui v0.2.3

Weekly downloads
18
License
-
Repository
-
Last release
4 years ago

快速上手

npm i dream-vue-ui

导入main.js

import Vue from 'vue';

import DreamUI from 'dream-vue-ui'

import 'dream-vue-ui/dist/dream-vue-ui.css'

import App from './App.vue';


Vue.use(DreamUI);


new Vue({

el: '#app',

render: h => h(App)

});

官方文档网站 :后期上线

dream-vue-ui 设计文档

  • dr-card 卡片

参数:

参数名称说明默认值可选值类型
header通过指定slot的name,插入特定的DOM————————string
show设置阴影显示true————boolean
borderColor自定义背景边框颜色#fffrgb,rgbastring
backgroundColor设置card背景颜色#fff————string
entiretyColor设置body部分字体颜色#303133————string

header参数:

参数名称说明默认值可选值类型
titleCenter标题是否居中false———boolean
titleColor标题文本样式#303133———string

代码:

// titleColor参数用于控制header的标题颜色,titleCenter参数用于控制header的展示位置
<dr-card  titleColor="#85c1e9" titleCenter="true"> 
    <div slot="header" >
       <dr-icon icon="shibai2"></dr-icon>
       标题
     </div>
    <div>
      主体内容
    </div>
  </dr-card>
  • dr-button 按钮

    参数:

    参数名称说明默认值可选值类型
    type按钮样式defaultdefault / primary /success / info /warning / dangerstring
    size按钮尺寸defaultmedium / small / ministring
    round是否启用圆形false————boolean
    icon按钮图标null————string

    代码:

    <dr-button type="primary" size="small">按钮</dr-button>
  • dr-icon icon图标

    参数:

    参数名称说明默认值可选值类型
    iconicon图标的名称————————string

    代码例子:

    <dr-icon icon="jiandu"></dr-icon>
  • dr-link 文字链接

    参数:

    参数名称说明默认值可选值类型
    type类型defaultprimary / success / warning / danger / infostring
    disabled是否禁用状态false————————boolean
    icon图标名称————————————string
    underline是否禁止下划线false————————boolean
    href原生 href 属性————————————string

    代码:

    <dr-link type="success" icon="jiandu">文字链接</dr-link>
  • dr-dialog提示框

    参数:

    参数名称说明默认值可选值类型
    title提示框头部标题"提示"——————string
    backgroundColor提示框背景颜色#fff——————string
    borderColor提示框边框颜色#dddfe6——————string
    enterAnimation入场动画bounceInDownbounce / fadeInDown / bounceInUpstring
    leaveAnimation出场动画bounceOutbounceOutDown / fadeOut / fadeOutUpstring
    titleIcon标题icon图标null——————string
    titleCenter标题是否居中falsefalse / trueboolean
    show.sync是否显示提示框falsefalse / trueboolean

    代码:

    <dr-dialog :show.sync="show" enterAnimation="fadeInDown" leaveAnimation="fadeOutUp" >
          文本
        </dr-dialog>

打赏

开发不容易

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago