0.2.14 • Published 2 years ago

erabbit-ui v0.2.14

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

小兔鲜组件库

小兔鲜UI组件库,基于Vue3开发,服务于电商平台小兔鲜儿。

Installation

基于:vue3 @vueuse/core axios vue-router less less-loader

yarn add erabbit-ui

Usage

<!-- index.html -->
<link rel="stylesheet" href="https://at.alicdn.com/t/font_2143783_iq6z4ey5vu.css">
import { createApp } from 'vue'
import App from './App.vue'

import ErabbitUI from 'erabbit-ui'
import 'erabbit-ui/packages/theme/index.less'

createApp(App).use(ErabbitUI).mount('#app')

Docs

面包屑

xtx-bread

xtx-bread-item

props

名称类型默认值
toString, Object

与router-link的to属性一致

按钮

xtx-button

名称类型可选值默认值
sizeStringlarge/middle/small/minimiddle
typeStringdefault/primary/plain/graydefault

轮播图

xtx-carousel

props

名称类型默认值
slidersArray[]
autoPlayBooleanfalse
durationNumber3000毫秒

:sliders="[{imgUrl:'图片地址'}]"

复选框

xtx-checkbox

props

名称类型默认值
v-modelBooleanfalse

地区选择

xtx-city

props

名称类型默认值
placeholderString''
fullLocatonString''

events

名称触发时机默认参
change选择完成{ fullLocaton, provinceCode, provinceName, cityCode, cityName, countyCode, countyName }

对话框

xtx-dialog

props

名称类型默认值
v-model:visibleBooleanfalse

图片预览组件

组件名称:xtx-image-view

props

名称类型默认值
imagesArray[]

[] 图片数组

无限加载组件

xtx-infinite-loading

props

名称类型默认值
loading 加载中Booleanfalse
finished 全部数据加载完成Booleanfalse

events

名称触发时机默认参
infinite进入可视区

更多组件

xtx-more

props

名称类型默认值
toString, Object

与router-link的to属性一致

数字选择

xtx-numbox

props

名称类型默认值
labelString''
v-modelNumber0
minNumber0
maxNumber10

分页组件

xtx-pagination

props

名称类型默认值
total 总条数Number100
pageSize 每页条数Number10
currentPage 当前第几页Number1

events

名称触发时机默认参
current-change改变分页页码点击的页码

骨架组件

xtx-skeleton

props

名称类型默认值
bg 背景Number#efefef
width 宽String100px
height 高String100px
animated 闪动画Booleanfalse

sku组件

props

名称类型默认值
goodsObject{ specs: [], skus: [] }
skuIdString''

events

名称回调参数
change完整的sku对象数据 (不完整时为空对象{})

{skuId,price,oldPrice,inventory,specsText}

步骤条

xtx-steps

props

名称类型默认值
active 当前到第几步Number1

xtx-steps-item

props

名称类型默认值
title 标题String''
desc 说明String''

tab栏

xtx-tabs

props

名称类型默认值
v-modelString,Number''

events

名称触发时机默认值
tab-click点击选项卡{ name, index }

{name:'选项卡名称',index:'选项卡索引'}

xtx-tabs-item

props

名称类型默认值
label 选项卡标题String''
name 选项卡名称String''

about

email: zhoushugang@itcast.cn github: https://github.com/zhousg

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

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.9

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.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago