@ray-js/smart-ui 1.2.5 → 1.2.6
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/dist/@types/cell/index.d.ts +1 -1
- package/dist/@types/collapse-item/index.d.ts +0 -2
- package/dist/@types/grid-item/index.d.ts +12 -7
- package/dist/@types/radio/index.d.ts +14 -1
- package/dist/@types/radio-group/index.d.ts +1 -1
- package/dist/@types/toast/toast.d.ts +0 -2
- package/package.json +4 -3
|
@@ -72,12 +72,17 @@ export interface SmartGridItemSlot {
|
|
|
72
72
|
*/
|
|
73
73
|
children?: React.ReactNode;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
* GridItem Slot
|
|
76
|
+
*/
|
|
77
|
+
slot?: {
|
|
78
|
+
/**
|
|
79
|
+
* 自定义图标,如果设置了 useSlot 或者 icon 属性则不生效
|
|
80
|
+
*/
|
|
81
|
+
icon?: React.ReactNode;
|
|
82
|
+
/**
|
|
83
|
+
* 自定义文字,如果设置了 useSlot 或者 text 属性则不生效
|
|
84
|
+
*/
|
|
85
|
+
text?: React.ReactNode;
|
|
86
|
+
};
|
|
82
87
|
}
|
|
83
88
|
export type SmartGridItem = SmartComponent<SmartGridItemProps, SmartGridItemEvents, SmartGridItemExternalClassName, SmartGridItemSlot>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
3
4
|
export interface SmartRadioProps {
|
|
4
5
|
/**
|
|
@@ -66,4 +67,16 @@ export interface SmartRadioExternalClassName extends SmartBaseExternalClassName
|
|
|
66
67
|
*/
|
|
67
68
|
labelClass?: string;
|
|
68
69
|
}
|
|
69
|
-
export
|
|
70
|
+
export interface SmartRadioSlot {
|
|
71
|
+
children?: React.ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* Cell Slot
|
|
74
|
+
*/
|
|
75
|
+
slot?: {
|
|
76
|
+
/**
|
|
77
|
+
* 自定义 icon 显示内容
|
|
78
|
+
*/
|
|
79
|
+
icon?: React.ReactNode;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export type SmartRadio = SmartComponent<SmartRadioProps, SmartRadioEvents, SmartRadioExternalClassName, SmartRadioSlot>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/smart-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"author": "MiniApp Team",
|
|
5
5
|
"description": "轻量、可靠的智能小程序 UI 组件库",
|
|
6
6
|
"scripts": {
|
|
@@ -45,8 +45,9 @@
|
|
|
45
45
|
"@commitlint/cli": "^7.2.1",
|
|
46
46
|
"@commitlint/config-conventional": "^9.0.1",
|
|
47
47
|
"@ray-js/cli": "^1.5.6",
|
|
48
|
-
"@ray-js/code-sandbox": "
|
|
49
|
-
"@ray-js/
|
|
48
|
+
"@ray-js/code-sandbox": "0.0.3-beta-3",
|
|
49
|
+
"@ray-js/panel-sdk": "^1.13.0-storage.8",
|
|
50
|
+
"@ray-js/ray": "^1.5.34",
|
|
50
51
|
"@tuya-miniapp/icons": "^1.0.0",
|
|
51
52
|
"@types/fs-extra": "^9.0.13",
|
|
52
53
|
"@types/lodash-es": "^4.17.12",
|