@ray-js/smart-ui 2.1.0 → 2.1.1-beta-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "2.1.0",
3
+ "version": "2.1.1-beta-2",
4
4
  "author": "睦海(李利民)",
5
5
  "description": "轻量、可靠的智能小程序 UI 组件库",
6
6
  "scripts": {
package/CHANGELOG.md DELETED
@@ -1,8 +0,0 @@
1
- # 更新日志
2
-
3
- `2024-05-20`
4
-
5
- **Features**
6
-
7
- - `1.0.0-beta.0` 版本发布,基于 `vant-weapp@1.11.5` & `vant-weapp-typings@v1.31.0` 实现。
8
-
package/README-zh_CN.md DELETED
@@ -1,56 +0,0 @@
1
- [English](./README.md) | 简体中文
2
-
3
- # @ray-js/smart-ui
4
-
5
- ## 介绍
6
-
7
- `@ray-js/smart-ui` 是一个基于 `Ray` 框架和 `@tuya-miniapp/smart-ui` 的 React 组件库,旨在提供符合智能小程序移动端设计规范的轻量、可靠的 UI 组件。通过结合 `Ray` 的规范适配中间层和内置的完善 TS 类型,我们提供了一整套适用于智能小程序的 React 组件,让开发者能够快速构建符合设计规范的移动端应用。
8
-
9
- ## 预览
10
-
11
- 扫描下方智能小程序二维码,体验组件库示例。
12
-
13
- <img src="https://images.tuyacn.com/content-platform/hestia/1716260412b7f2ae02271.png" width="200" height="200">
14
-
15
- ## 使用之前
16
-
17
- 使用 Smart UI 前,请确保你已经学习过智能小程序官方的 [Ray 开发概述](https://developer.tuya.com/cn/miniapp/develop/ray/guide/overview) 和 [Ray 组件介绍](https://developer.tuya.com/cn/miniapp/develop/ray/framework/component)。
18
-
19
- ## 安装
20
-
21
- ```bash
22
- # 通过 yarn 安装(推荐)
23
- yarn add @ray-js/smart-ui
24
-
25
- # 通过 npm 安装
26
- npm i @ray-js/smart-ui
27
- ```
28
-
29
- ## 使用组件
30
-
31
- 以按钮组件为例
32
-
33
- ```jsx
34
- import { Button } from '@ray-js/smart-ui';
35
-
36
- export default function Demo() {
37
- return <Button type="info">信息按钮</Button>;
38
- }
39
- ```
40
-
41
- ## 在开发者工具中预览
42
-
43
- ```bash
44
- # 安装项目依赖
45
- $ yarn
46
- ```
47
-
48
- 打开 [Tuya MiniApp Tools](https://developer.tuya.com/cn/miniapp/devtools/tools),把 `example` 目录添加进去就可以预览示例了。
49
-
50
- ## 基础库版本
51
-
52
- @ray-js/smart-ui 从智能小程序基础库 `2.19.0` 版本 `@ray-js/ray@^1.5.1` 及 IDE `0.6.5` 开始提供稳定的支持。
53
-
54
- ## 开源协议
55
-
56
- 本项目基于 [MIT](https://zh.wikipedia.org/wiki/MIT%E8%A8%B1%E5%8F%AF%E8%AD%89) 协议,请自由地享受和参与开源。