npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dream-vue-ui

v0.2.3

Published

```npm npm i dream-vue-ui ```

Downloads

1

Readme

快速上手

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 | 自定义背景边框颜色 | #fff | rgb,rgba | string | | 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 | 按钮样式 | default | default / primary /success / info /warning / danger | string | | size | 按钮尺寸 | default | medium / small / mini | string | | round | 是否启用圆形 | false | ———— | boolean | | icon | 按钮图标 | null | ———— | string |

    代码:

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

    参数:

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

    代码例子:

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

    参数:

    | 参数名称 | 说明 | 默认值 | 可选值 | 类型 | | --------- | -------------- | ------- | ------------------------------------------- | ------- | | type | 类型 | default | primary / success / warning / danger / info | string | | 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 | 入场动画 | bounceInDown | bounce / fadeInDown / bounceInUp | string | | leaveAnimation | 出场动画 | bounceOut | bounceOutDown / fadeOut / fadeOutUp | string | | titleIcon | 标题icon图标 | null | —————— | string | | titleCenter | 标题是否居中 | false | false / true | boolean | | show.sync | 是否显示提示框 | false | false / true | boolean |

    代码:

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

打赏

开发不容易