更新记录

1.0(2024-10-11)

初始化项目 本项目是根据sun@163.com 摇杆插件的二次开发优化 虽然sun@163.com 写明说支持nvue,经本人测试无法在nvue上使用。 因此对其修改后发出该版本。


平台兼容性

Vue2 Vue3
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
HBuilderX 4.0 app-vue app-nvue × × × × × ×
钉钉小程序 快手小程序 飞书小程序 京东小程序
× × × ×
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
×
// nvue
import rocker from '@/components/harin-rocker-nvue/index.nvue';
//vue
import rocker from '@/components/harin-rocker/index.vue';

const innerRadius = ref(115);
const outerRadius = ref(230);
const rockerRef = ref(null);
<rocker ref="rockerRef" style="position: relative;" :innerRadius='innerRadius' :outerRadius="outerRadius"
                @moveRocker="moveRocker" @stopMoveRocker="stopMoveRocker">
</rocker>

Att

innerRadius内圈元大小
outerRadius外圈元大小
moveRocker(omega : number, speed : number) 移动中触发  返回角速度、线速度 
stopMoveRocker 停止移动事件

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

暂无用户评论。

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问