更新记录
1.0(2024-10-12)
下载此版本
初始化
平台兼容性
uni-app
Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
√ |
√ |
√ |
√ |
√ |
√ |
- |
- |
- |
微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
其他
引入配置
// nvue
import rocker from '@/components/harin-supper-rocker-nvue/index.nvue';
//vue
import rocker from '@/components/harin-supper-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>
参数说明
innerRadius内圈元大小
outerRadius外圈元大小
moveRocker(omega : number, speed : number) 移动中触发 返回角速度、线速度
stopMoveRocker 停止移动事件