![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
cl-touchable
Advanced tools
v0.0.5
PC
端,现在 PC
端和移动端有一致的体验onTap
事件改名为 onPress
:hover
伪类效果,因为手指离开屏幕并不等同于鼠标离开元素click
事件在移动端有明显的延迟本组件模拟了和PC端点按行为一致的视觉效果:
press
事件取代 click
事件:hover
效果npm install cl-touchable
或
yarn add cl-touchable
// 导入
import Touchable from 'cl-touchable';
//使用
<Touchable
onPress={}
className={}
activeClass={}
style={}
activeStyle={}
stopPropagation={true}
>
// Your child content here
</Touchable>
组件可嵌套自身使用,如:
<Touchable>
<Touchable></Touchable>
</Touchable>
如果不设置任何 activeClass
或 activeStyle
,组件的默认点按行为为降低 50%
透明度 opacity: 50%
// 导入
import ClTouchable from 'cl-touchable/lib/vue/index.vue';
// 注册
Vue.component(ClTouchable.name, ClTouchable);
// 使用
<cl-touchable
activeClass=""
activeStyle=""
:stopPropagation=""
@press=""
>
// slot Your content here
</cl-touchable>
stopPropagation
一般情况下无须设置,在自嵌套的组件中,默认值会避免点击穿透
现象
FAQs
Touchable component for mobile
The npm package cl-touchable receives a total of 2 weekly downloads. As such, cl-touchable popularity was classified as not popular.
We found that cl-touchable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.