0.3.7 • Published 2 years ago

zzywx-ui v0.3.7

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

zzywx-ui 组件库

快速开始

1.安装组件库

    npm i zzywx-ui

2.应用组件库

    // 全部引用
    import 'zzywx-ui/dist/css/index.css'
    import MUI from 'zzywx-ui'
    Vue.use(MUI)

    // 按需引用
    import 'zzywx-ui/dist/demo.css';
    import {Demo} from 'zzywx-ui';
    Vue.use(Demo)

组件的使用

button组件的使用

Image text

     <z-btn>默认按钮</z-btn>
    <z-btn type="primary">主要按钮</z-btn>
    <z-btn type="success">成功按钮</z-btn>
    <z-btn type="info">信息按钮</z-btn>
    <z-btn type="warning">警告按钮</z-btn>
    <z-btn type="danger">危险按钮</z-btn>
    <br />
    <z-btn plain>朴素按钮</z-btn>
    <z-btn type="primary" plain>主要按钮</z-btn>
    <z-btn type="success" plain>成功按钮</z-btn>
    <z-btn type="info" plain>信息按钮</z-btn>
    <z-btn type="warning" plain>警告按钮</z-btn>
    <z-btn type="danger" plain>危险按钮</z-btn>
    <br />
    <z-btn round>圆角按钮</z-btn>
    <z-btn type="primary" round>主要按钮</z-btn>
    <z-btn type="success" round>成功按钮</z-btn>
    <z-btn type="info" round>信息按钮</z-btn>
    <z-btn type="warning" round>警告按钮</z-btn>
    <z-btn type="danger" round>危险按钮</z-btn>
参数说明类型可选值默认值
size尺寸stringmedium / small / mini
type类型stringprimary / success / warning / danger / info
plain是否朴素按钮booleanfalse
round是否圆角按钮booleanfalse

switch 开关

参数描述类型默认值必传
value是否激活 使用v-model进行双向绑定Boolean, String, Numberfalse
width宽度Number40
activeColor激活颜色String#409EFF
inactiveColor未激活颜色String#C0CCDA
      <z-switch
        v-model="show"
        :width="80"
        activeColor="#f00"
        inactiveColor="#00f"
      ></z-switch>

image-20220506205820771

export default {
  name: "App",
  components: {},
  data() {
    return {
      show:false
    };
  },
};

slider 滑块

 <z-slider v-model="num" :min="10" :max="200"></z-slider>

image-20220506205946004

参数描述类型默认值必传
value使用v-model进行双向绑定Number-
min最小值Number0
max最大值Number100
export default {
  name: 'App',
  data() {
    return {
      num: 0,
    };
  }
};
0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.0

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.0

2 years ago