1.1.0 • Published 3 years ago

@91boy/beautyui v1.1.0

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

#@91boy

How to Install?

npm i @91boy/beautyui --save

How to Use?

# main.js 全局安装
import beautyui from "@91boy/beautyui";
import "@91boy/beautyui/dist/css/beautyui.min.css";
Vue.use(beautyui);

How much Components?

# 组件列表
<boy91drag-button>  #悬浮按钮组件
<boy91-swiper>  #万能轮播组件,基于swiper5封装

boy91drag-button 用法

  • Props

参数名类型默认值说明必填
widthNumber40悬浮球宽度
heightNumber40悬浮球高度
distanceRightNumber0距离最右侧的临界值
distanceBottomNumber100距离底部的临界值
isScrollHiddenBolleanfalse页面滚动时是否隐藏悬浮球
isCanDraggableBolleanfalse是否可以拖拽
zIndexNumber50悬浮球的层级
heightNumber40悬浮球高度
  • Events

事件名说明
@handlepaly点击悬浮球时触发,拖拽时不触发此事件
  • Slots

名称说明
content自定义悬浮球显示的内容

用法示例

# 简单实例
<template>
    <boy91DragButton></boy91DragButton>
</template>

boy91-swiper 用法

  • Props

参数名类型默认值说明
containerClassString""swiper对象类名必填
optionsObject{}配置swiper必填参考

用法示例

# 简单实例
<template>
    <boy91Swiper containerClass="fdimg-swiper" :options="options">
      <div slot="wrapper" class="swiper-wrapper">
        <div class="swiper-slide" style="background:#f00">Slide 1</div>
        <div class="swiper-slide" style="background:#06c">Slide 2</div>
        <div class="swiper-slide" style="background:#0f0">Slide 3</div>
      </div>
    </boy91Swiper>
</template>

data() {
    return {
      options: {
        effect: "coverflow",
        slidesPerView: 3,
        centeredSlides: true
      }
    };
  }

  <style lang="less" scoped>
.fdimg-swiper {
  height: 300px;
}
</style>
1.0.2

3 years ago

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago