Search found 82 matches

by Muzzzhi
2024年 May 27日 10:00
Forum: 小程序开发
Topic: getDeviceInfo 编译报错
Replies: 4
Views: 867

Re: getDeviceInfo 编译报错

图片挂了,再传一下?本身getDeviceInfo是返回一个void,需要在 success回调中获取设备信息数据。 /** * 获取设备的设备信息 */ export function getDeviceInfo(params: { /** * deviceId 设备id * 支持跨面板获取其他的设备信息,当前面板可以传当前设备的 id 来进行获取 */ deviceId: string /** dps */ dps?: Record<string, {}> complete?: () => void success?: (params: { /** 设备所处房间名 */ roomName?...
by Muzzzhi
2024年 Apr 7日 19:31
Forum: 小程序开发
Topic: Issue when using Tuya Slider Component
Replies: 6
Views: 1414

Re: Issue when using Tuya Slider Component

I have attached the package-lock.json. Oh, look at the lock file because of the sub-dependency problem of @ray-js/panel-sdk, you can first use ' npm install --legacy-peer-deps ' or' yarn 'to install the dependency, we will update @ray-js/panel-sdk. We upgraded @ray-js/panel-sdk, using version 1.10....
by Muzzzhi
2024年 Apr 7日 11:13
Forum: 小程序开发
Topic: Issue when using Tuya Slider Component
Replies: 6
Views: 1414

Re: Issue when using Tuya Slider Component

Mywatt Dev 2024年 Apr 5日 23:53

I have attached the package-lock.json.

Oh, look at the lock file because of the sub-dependency problem of @ray-js/panel-sdk, you can first use 'npm install --legacy-peer-deps' or' yarn 'to install the dependency, we will update @ray-js/panel-sdk.

by Muzzzhi
2024年 Apr 4日 20:09
Forum: 小程序开发
Topic: Issue when using Tuya Slider Component
Replies: 6
Views: 1414

Re: Issue when using Tuya Slider Component

I have installed the recommended version and I still see the error same error. WhatsApp Image 2024-04-04 at 11.35.25.jpeg I tried using your dependency but found no problem. :!: It seems that a lock is being placed on an incompatible version. Try deleting the lock file and re-installing the yarn de...
by Muzzzhi
2024年 Apr 3日 16:18
Forum: 小程序开发
Topic: Issue when using Tuya Slider Component
Replies: 6
Views: 1414

Re: Issue when using Tuya Slider Component

import React from 'react'; import Slider from '@ray-js/components-ty-slider'; export default function Home() { return ( <Slider style={{ marginTop: 20 }} step={25} isShowTicks maxTrackHeight="8px" maxTrackRadius="8px" minTrackHeight="8px" minTrackColor="linear-gra...
by Muzzzhi
2024年 Apr 3日 16:17
Forum: MiniApp Development
Topic: Issue when using Tuya Slider Component
Replies: 1
Views: 2545

Re: Issue when using Tuya Slider Component

import React from 'react'; import Slider from '@ray-js/components-ty-slider'; export default function Home() { return ( <Slider style={{ marginTop: 20 }} step={25} isShowTicks maxTrackHeight="8px" maxTrackRadius="8px" minTrackHeight="8px" minTrackColor="linear-gra...
by Muzzzhi
2024年 Mar 29日 11:24
Forum: 小程序开发
Topic: usePageEvent 在微信小程序使用异常
Replies: 1
Views: 1943

Re: usePageEvent 在微信小程序使用异常

t.png

测试1.4.51版本可用

by Muzzzhi
2023年 Aug 30日 18:11
Forum: 小程序开发
Topic: 【求助】关于小程序面板上传图片视频到p2p设备的面板实现
Replies: 2
Views: 1253

Re: 【求助】关于小程序面板上传图片视频到p2p设备的面板实现

需求:设备是p2p设备,需要做个面板传照片和视频到这个设备 之前是接触rn,rn那边实现是 import { NativeModules } from 'react-native'; const { TYRCTImageEncryptUploadManager } = NativeModules; 然后都是用这个包的api,比如initP2PSDK,p2p_batchUploadToDeviceWithTitle, p2p_cancelUpload等等去操作 对比在小程序中是如何实现这个功能 @ray-js/ray@1.3.15 版本以上已经加进去P2PKit了,文档在这里 https://...