照明色温圆环组件源码及介绍 ray-lamp-circle-picker

小程序开发相关产品技术讨论,包括面板、智能小程序、React Native、Ray跨端框架、Panel SDK、微信小程序、小程序开发工具(IDE)及其他开发技术相关等话题


Post Reply
muhai
Posts: 63

物料地址:https://developer.tuya.com/material/lib ... rclePicker

效果图

截屏2024-08-15 上午11.07.29.png

源码下载

ray-lamp-circle-picker.zip
(547.45 KiB) Downloaded 61 times

源码目录介绍

Code: Select all

├── README-zh_CN.md
├── README.md
├── commitlint.config.js
├── example # 组件自带的 demo 示例
│   ├── project.tuya.json
│   ├── ray.config.ts
│   └── src
├── package.json
├── project.tuya.json
├── src # 组件源码
│   ├── component
│   │   ├── index.config.js
│   │   ├── index.module.less
│   │   ├── index.tsx
│   │   ├── props.ts
│   │   └── rjs # canvas绘制逻辑部分,这里定义了圆环的背景色及拖动事件
│   │       ├── index.js
│   │       ├── index.json
│   │       ├── index.rjs
│   │       ├── index.tyml
│   │       └── index.tyss
│   ├── i18n
│   ├── index.config.js
│   ├── index.module.less
│   ├── index.tsx
│   ├── props.ts
│   ├── res
│   ├── typings
│   └── utils
├── tsconfig.json
└── yarn.lock

本地运行命令

Code: Select all

yarn watch # 组件实时编译
yarn start:tuya # 启动example编译

IDE导入example目录即可预览


Tags:
Post Reply