Search found 6 matches

by kkopite
2024年 Apr 11日 17:48
Forum: 小程序开发
Topic: 如何正确使用物料 LampModuleSchedule
Replies: 3
Views: 667

Re: 如何正确使用物料 LampModuleSchedule

麻烦更新到最新版本 v0.2.16 升级后能正常显示了,但点击添加 报了如下错误 077911e3aa2d6b3ab0ac46a56f5aeee.png package.json { "name": "public-sdm-template", "version": "1.0.1", "description": "Panel SDM Template", "main": "index.js", "private"...
by kkopite
2024年 Apr 11日 15:13
Forum: 小程序开发
Topic: 如何正确使用物料 LampModuleSchedule
Replies: 3
Views: 667

如何正确使用物料 LampModuleSchedule

按照 该文档 所描述的方法,安装相关依赖并导入: > 项目是直接 在 tuya-mini-app 的ide 新建的 sdm模板 yarn add @ray-js/lamp-module-schedule home/inex.tsx import React from 'react'; import { View } from '@ray-js/ray'; import LampModuleSchedule from '@ray-js/lamp-module-schedule'; // 根据需求自行调整 const actionList = [ { label: '开启', // 开启 dpLi...
by kkopite
2024年 Apr 11日 14:28
Forum: 小程序开发
Topic: 多语言管理失效?
Replies: 5
Views: 570

Re: 多语言管理失效?

智能小程序开发者 2024年 Apr 9日 18:04

看你的截图,是直接在多语言管理中添加的,没有按照文档的说明绑定面板多语言

没有,是直接在 ide 上上传 多语言的(截图只是为了 展示出对应面板显示英文翻译和 多语言管理不一致)

by kkopite
2024年 Apr 9日 17:40
Forum: 小程序开发
Topic: 多语言管理失效?
Replies: 5
Views: 570

Re: 多语言管理失效?

adf4f4bbf24ddd0ce8b19acbcddea9e.png
智能小程序开发者 2024年 Apr 9日 17:30

https://developer.tuya.com/cn/miniapp/d ... i18n/panel 请参考这个文档处理面板多语言,在开发者平台上查看对应字段

在小程序开发平台的 多语言面板里,也是配置 POWER 文案

by kkopite
2024年 Apr 9日 17:24
Forum: 小程序开发
Topic: 多语言管理失效?
Replies: 5
Views: 570

Re: 多语言管理失效?

微信图片_20240409172310.png
微信图片_20240409172259.png

如图显示的是 Switch 文案

by kkopite
2024年 Apr 9日 17:21
Forum: 小程序开发
Topic: 多语言管理失效?
Replies: 5
Views: 570

多语言管理失效?

Tuya MiniApp Tools 版本信息: (没看到有“关于”在哪里) App 应用版本信息:智能生活 5.11.0 @ray-js/ray, @ray-js/panel-sdk的版本 "@ray-js/panel-sdk": " 1.10.0", "@ray-js/ray": " 1.4.45", 移动设备信息: 手机型号及系统 相关代码: <Text className={styles['bottom-text']}>{Strings.getLang('power')}</Text> export de...