0.1.2 • Published 3 years ago

vue-wj-ui v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

下载

npm i 

Button按钮系列

wj-button-dimple

说明:涟漪动画效果按钮

使用:

<wj-button-dimple>button</wj-button-dimple>

参数:

参数说明类型可选值默认值
size尺寸stringmedium / small / minimedium
type类型stringprimary / success / warning / danger
round是否圆角按钮booleanfalse
htmlType原生type属性stringbutton / submit / resetbutton
icon图标类名stringnull

wj-button-threeD

说明:3D涟漪动画按钮

使用:

<wj-button-threeD>button</wj-button-threeD>

参数:

参数说明类型可选值默认值
size尺寸stringmedium / small / minimedium
type类型stringprimary / success / warning / danger
round是否圆角按钮booleanfalse
htmlType原生type属性stringbutton / submit / resetbutton
icon图标类名stringnull

wj-button-glass

说明:毛玻璃主题按钮

使用:

<wj-button-glass>button</wj-button-glass>

参数:

参数说明类型可选值默认值
size尺寸stringmedium / small / minimedium
type类型stringprimary / success / warning / danger
round是否圆角按钮booleantrue
to跳转地址string
icon图标类名stringnull
color文字颜色string

Car卡片系列

wj-car

说明:默认卡片

使用:

<wj-car title="嘿" subhead="我是副标题">
	输入内容
</wj-car>

参数:

参数说明类型可选值默认值
title主标题内容string
subhead副标题内容string
widthcar卡片宽度string || number240
heightcar卡片高度string || number300

wj-car-turn

说明:翻转卡片

使用:

<wj-car-turn>
	<template v-slot:fornt>
            正面内容
    </template>
    <template v-slot:back>
            反面内容
    </template>
</wj-car-turn>

参数:

参数说明类型可选值默认值
boxStyle外层盒子样式,可设置大小等object
frontBgColor正面背景颜色string白色
backBgColor反转面背景颜色string彩色渐变

wj-car-effect

说明:聚焦卡片队列,car-effect-item为item元素

使用:

<wj-car-effect>
	<car-effect-item title="自定义标题" content="自定义内容"/>
    <car-effect-item>
        您可以再此输入自定义内容,也可以使用car提供的模板修改title和content
    </car-effect-item>
</wj-car-effect>

参数:

car-effect-item参数:

参数说明类型可选值默认值
title标题文字string
content内容文字string
widthcar卡片宽度string250
heightcar卡片高度string300

后期会根据需求全局less变量配置car背景色等,待完善.....

wj-car-dir

说明:方向旋转卡片

使用:

<wj-car-dir>
    <car-dir-item>
        在此输入您的内容
    </car-dir-item>
</wj-car-dir>

参数:

car-effect-item参数:

参数说明类型可选值默认值
round中间容器是否圆形Booleantrue
heightcar卡片高度string || number240
widthcar卡片宽度string || number180

wj-loading

说明:加载图标

使用:

<wj-loading></wj-loading>

参数:

参数说明类型可选值默认值
size尺寸string||number整数或小数,为loading画面放大缩小倍数1
colorloading图标颜色stringprimary / success / warning / danger
spaceloading图标间间距string||number
maskColor遮罩层颜色string十六进制 ||r gba || rgb

wj-liquidAside

说明:液态侧边栏,暂时只支持一级menu

使用:

<wj-liquidAside>logo插槽(选填)</wj-liquidAside>

参数:

参数说明类型可选值默认值
bgColoraside的背景颜色string
textColor文字颜色string#fff
menuData菜单item标签Array(对象数组)一个对象对应一个菜单item,格式:{title:标题,path:跳转页面,icon:字体图标类名,clickMethod:点击事件函数}

示例:

<template>	<wj-liquidAside :menuData="menuData">    	<div>            这里可以放Logo    	</div>    </wj-liquidAside></template><script>    data(){        return{            menuData: [                {                  title: "item",                  path: "/#",                  icon: "iconfont icon-index",                  clickMethod: (e) => {                    console.log(e);                  },                },                {                  title: "主页",                  path: "/#",                  icon: "iconfont icon-index",                  clickMethod: (e) => {                    console.log(e);                  },                },            ]        }    }</script>

wj-switch

说明:switch选择器

使用:

<template>	<wj-switch v-switchVal="flag"></wj-switch>	<button @click="showFlag">        查看绑定值变化    </button></template><script>	export default{        data(){            return{                flag:true            }        },        methods:{            showFlag(){                console.log(this.flag)            }        }    }</script>

参数:

参数说明类型可选值默认值
v-switchVal绑定的值,可动态监听,也是默认值Blooeantrue
typeswitch种类stringrow、across 、line、blockrow
colorswitch选择时的颜色stringgreen、blueblue

wj-menu-effect

说明:菜单导航栏

使用:

menu-effect-item为item元素

//注意:外层需要一个容器<div class="menu">	<wj-menu-effect>		<menu-effect-item>首页</menu-effect-item>	</wj-menu-effect></div>

参数:无。

wj-nav

说明:侧边导航栏

使用:

nav-item为item元素

<wj-nav>	<nav-item>1</nav-item>	<nav-item>1</nav-item>	<nav-item>1</nav-item></wj-nav>

参数:

参数说明类型可选值默认值
icon图标类名string
color字体颜色string

wj-dialog