Search found 36 matches

by muhai
2024年 May 15日 14:43
Forum: 小程序开发
Topic: ray有没有类似rn面板TYSdk.native.jumpToSettingPage()这个跳转到手机设置的api
Replies: 1
Views: 7

Re: ray有没有类似rn面板TYSdk.native.jumpToSettingPage()这个跳转到手机设置的api

ty.xxx能力是有的,目前还没有对外暴露到ray api,需要的话我们安排封装一下

by muhai
2024年 May 15日 14:40
Forum: 小程序开发
Topic: 小程序开发类似全局控件tabBar的建议
Replies: 1
Views: 9

Re: 小程序开发类似全局控件tabBar的建议

https://developer.tuya.com/material/lib ... yRayTabbar

看看这个组件能否满足要求,fix定位需要自己处理了,可以用flex或者absolute定位

by muhai
2024年 May 15日 10:48
Forum: 小程序开发
Topic: 在scroll-view中使用@ray-js/components-ty-lamp出现bug
Replies: 2
Views: 12

Re: 在scroll-view中使用@ray-js/components-ty-lamp出现bug

是不是条件渲染?条件渲染是会出现这种情况,可以用display none和block切换实现条件渲染

by muhai
2024年 May 8日 16:34
Forum: 小程序开发
Topic: 物料 LampVerticalPercentSlider 设置样式无效
Replies: 1
Views: 30

Re: 物料 LampVerticalPercentSlider 设置样式无效

yarn add --registry=https://registry.npmjs.org/ @ray-js/lamp-vertical-percent-slider@ 0.0.4 <PercentSlider barColor="red" trackColor="blue" max={1000} onTouchStart={onTouchStart} onTouchEnd={onTouchEnd} trackStyle={{ borderRadius: '4px', }} barStyle={{ borderRadius: '4px', }} />
by muhai
2024年 Apr 24日 11:06
Forum: 小程序开发
Topic: ray的share 微信分享网页格式中图片不显示
Replies: 12
Views: 702

Re: ray的share 微信分享网页格式中图片不显示

被分享的网站,head里看看有没有这些,微信分享出来的缩略图会用og:image的缩略图地址 <meta property="og:type" content="website" /> <meta property="og:title" content="页面标题"> <meta property="og:description" content="页面描述"> <meta property="og:image" content="缩略图地址&q...
by muhai
2024年 Apr 24日 10:43
Forum: 小程序开发
Topic: ray的share 微信分享网页格式中图片不显示
Replies: 12
Views: 702

Re: ray的share 微信分享网页格式中图片不显示

截屏2024-04-24 上午10.42.54.png

我试了一下有预览图,你分享的网站地址可以提供一下吗,可能是分享的网站seo设置问题

by muhai
2024年 Apr 24日 10:01
Forum: 小程序开发
Topic: ray的share 微信分享网页格式中图片不显示
Replies: 12
Views: 702

Re: ray的share 微信分享网页格式中图片不显示

开发者平台上需要配置静态资源白名单
开发设置-> 多区静态资源,添加:https://public-biz.oss-cn-hangzhou.aliyuncs.com/

by muhai
2024年 Apr 3日 14:55
Forum: 小程序开发
Topic: 物料广场组件TyStepper支持手动编辑状态下的问题
Replies: 8
Views: 608

Re: 物料广场组件TyStepper支持手动编辑状态下的问题

soundpool 2024年 Apr 3日 11:19
xuanyi 2024年 Apr 2日 09:55

参考这个帖子看下: https://www.tuyaos.com/viewtopic.php?p= ... pper#p6780

明白。我要表达的是,在处于空字符时,其回调值也是0,但其UI显示上则为空,也就是空白,具体见附件压缩包(操作视频)。

yarn add --registry=https://registry.npmjs.org/ @ray-js/components-ty-stepper@0.0.10
试试这个版本,修复内容:当输入框内容清空时,不再触发回调0