@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.
@@ -72,7 +72,7 @@ export interface SmartCellProps {
72
72
  *
73
73
  * @default false
74
74
  */
75
- uselabelSlot?: boolean;
75
+ useLabelSlot?: boolean;
76
76
  /**
77
77
  * 标题样式
78
78
  */
@@ -48,8 +48,6 @@ export interface SmartCollapseItemProps {
48
48
  disabled?: boolean;
49
49
  /**
50
50
  * 标题栏大小
51
- *
52
- * @since `v1.10.3`
53
51
  */
54
52
  size?: 'large';
55
53
  }
@@ -72,12 +72,17 @@ export interface SmartGridItemSlot {
72
72
  */
73
73
  children?: React.ReactNode;
74
74
  /**
75
- * 自定义图标,如果设置了 useSlot 或者 icon 属性则不生效
76
- */
77
- icon?: React.ReactNode;
78
- /**
79
- * 自定义文字,如果设置了 useSlot 或者 text 属性则不生效
80
- */
81
- text?: React.ReactNode;
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 type SmartRadio = SmartComponent<SmartRadioProps, SmartRadioEvents, SmartRadioExternalClassName>;
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>;
@@ -30,6 +30,6 @@ export interface SmartRadioGroupEvents {
30
30
  /**
31
31
  * 当绑定值变化时触发的事件
32
32
  */
33
- 'bind:change'?: SmartEventHandler<string>;
33
+ onChange?: SmartEventHandler<string>;
34
34
  }
35
35
  export type SmartRadioGroup = SmartComponent<SmartRadioGroupProps, SmartRadioGroupEvents>;
@@ -105,8 +105,6 @@ export declare interface SmartToast {
105
105
  type Toast = SmartToast;
106
106
  /**
107
107
  * @deprecated
108
- *
109
- * 将在`v1.22`移除
110
108
  */
111
109
  declare const Toast: Toast;
112
110
  export default Toast;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "1.2.5",
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": "^0.0.2",
49
- "@ray-js/ray": "^1.5.6",
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",