Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
miniprogram-float-button
Advanced tools
Readme
a fly out button(motion button)
npm install --save miniprogram-float-button
<float-button
bind:toggle='toggle'
floatButtonChildData='{{floatButtonChildData}}'
right="{{120}}"
bottom="{{120}}"
mainImg="{{mainImg}}"
></float-button>
function hello() {
// eslint-disable-next-line no-console
console.log('say hello')
}
Page({
data: {
floatButtonChildData: [{
src: './images/frown.png',
content: '不开心',
onClick: hello
},
{
src: './images/message.png',
content: '我的信息',
// eslint-disable-next-line no-console
onClick: () => console.log('1')
},
{
src: './images/user.png',
content: '关于我',
// eslint-disable-next-line no-console
onClick: () => console.log('2')
}
],
mainImg: './images/plus.png',
isOpen: false,
},
toggle(e) {
// eslint-disable-next-line no-console
console.log(e.detail)
},
})
"usingComponents": {
"float-button": "/path/component"
}
选项 | 描述 | 类型 | 默认值 |
---|---|---|---|
bind:toggle | 点击modal取消按钮 | event | event |
mainImg | 主按钮的图片 | image | 无 |
floatButtonChildData | 子按钮数据(请按钮demo上的数据格式填写) | Array | 无 |
right | 距离窗口右边的距离(单位:rpx) | Number | 100 |
bottom | 距离窗口底部的距离(单位:rpx) | Number | 100 |
方法名 | 参数 | 描述 |
---|---|---|
open | 无 | 打开button |
close | 无 | 关闭button |
FAQs
a fly out button(motion button)
The npm package miniprogram-float-button receives a total of 4 weekly downloads. As such, miniprogram-float-button popularity was classified as not popular.
We found that miniprogram-float-button 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.