1.5.0 • Published 6 years ago

xiaozhong-ui v1.5.0

Weekly downloads
52
License
MIT
Repository
-
Last release
6 years ago
  • 安装组件库

    npm install xiaozhong-ui -S
  • 导入组件库

    import xiaozhongUI from 'xiaozhong-ui'
  • 注册组件库

    Vue.use(xiaozhongUI)

组件

图标 zh-iconfont

先在导入线上项目地址 eg: <link rel="stylesheet" href="//at.alicdn.com/t/font_1233314_umigplitpko.css">

API

Icon 图标

如何使用

<zh-iconfont size="ios-checkmark" />

props

属性说明类型默认值
icon图标的名称String
size图标的大小Number18
color图标的颜色String#000

slider 轮播图

如何使用

实例

items: [
        {
          href: 'home',
          src:
            '****.png?width=750&height=320'
        },
        {
          href: 'home',
          src:
            '****.png?width=750&height=320'
        }
      ]
swiperOption: {
          direction: 'vertical',
          slidesPerView: 1,
          spaceBetween: 30,
          mousewheel: true,
          pagination: {
            el: '.swiper-pagination',
            clickable: true
          }
        }

更多实例: https://surmon-china.github.io/vue-awesome-swiper/

input 输入框

如何使用

<zh-input width="100%" alt="请输入密码" placeholder="密码" type="password" />

props

属性说明类型默认值
alt输入框的占位符String'请输入名称'
placeholder输入框的名称String'名称'
type输入框的类型String'text'
width输入框的宽度String/Number'100%'
color输入框内文字颜色String'100%'
focus-color输入框填写时文字颜色String'100%'

button 按钮

如何使用

` <zh-button type="primary" width="80px" height="auto" padding="8px 20px" fontSize="auto" fontColor="#fff"

>button</zh-button>`

props

属性说明类型默认值
type按钮的类型String'primary'
width按钮的宽度String'80px'
height按钮的高度String'auto'
padding按钮的内边距String'8px 20px'
fontSize按钮文字大小String'auto'
fontColor按钮填文字颜色String'#fff'
1.5.0

6 years ago

1.4.3

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago