Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

monster-uni

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monster-uni

自用组件库

  • 1.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

自用uniapp组件

微信小程序预览

avatar

手势滑块

touch-swipe Props

参数说明类型默认值可选值
index当前展示的面板索引,支持 sync 双向绑定Number0-
direction滑动方向Stringhorizontalhorizontal:水平方向(必须固定宽度)
vertical:垂直方向(必须固定高度)
width宽度(单位 rpx)String/Number100%-
height高度(单位 rpx)String/Number100%-
duration动画时长(单位 s)Number0.3-
swipeThreshold灵敏度(0-1 之间的数值,数值越小越灵敏)Number0.35-
disabled是否禁用Booleanfalse-
childrenLength子元素数量(使用 touch-swipe-item 作为子元素时不需要传递,不使用 touch-swipe-item 作为子元素盒子时必传)Number0-
disabledIndexs禁用的面板索引(使用 touch-swipe-item 作为子元素时直接在 touch-swipe-item 上定义某个标签禁用即可,不使用 touch-swipe-item 作为子元素盒子时可传)Array[]-

touch-swipe Event

事件名说明事件参数
change滑动切换触发最新的index

touch-swipe-item Props

参数说明类型默认值可选值
disabled是否禁用当前子元素(禁用后无法滑动到当前子元素)Booleanfalse---

示例

<touch-swipe width="600">
	<touch-swipe-item v-for="(src, i) in images" :key="i">
		<image :src="src" style="width: 100%" mode="widthFix" />
	</touch-swipe-item>
</touch-swipe>

Keywords

FAQs

Package last updated on 25 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc