@ray-js/smart-ui 1.0.2 → 1.0.3

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,6 +72,18 @@ export interface SmartDialogProps extends SmartOpenTypeProps {
72
72
  * @default ''
73
73
  */
74
74
  customStyle?: string;
75
+ /**
76
+ * 根节点样式类
77
+ */
78
+ customClass?: string;
79
+ /**
80
+ * 取消按钮样式类
81
+ */
82
+ cancelButtonClass?: string;
83
+ /**
84
+ * 确认按钮样式类
85
+ */
86
+ confirmButtonClass?: string;
75
87
  /**
76
88
  * 是否展示确认按钮
77
89
  *
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /// <reference types="miniprogram-api-typings" />
2
3
  import { SmartComponent, SmartEventHandler } from '../base';
3
4
  export interface SmartDropdownItemOption {
@@ -44,7 +45,7 @@ export interface SmartDropdownItemProps {
44
45
  /**
45
46
  * 自定义弹出层样式
46
47
  */
47
- popupStyle?: string;
48
+ popupStyle?: React.CSSProperties;
48
49
  /**
49
50
  * 是否开启下拉菜单打开或者关闭前校验
50
51
  * @default false
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
2
3
  export interface SmartGridItemProps {
3
4
  /**
@@ -66,5 +67,17 @@ export interface SmartGridItemSlot {
66
67
  * @default false
67
68
  */
68
69
  useSlot?: boolean;
70
+ /**
71
+ * 自定义宫格的所有内容,需要设置 useSlot 属性
72
+ */
73
+ children?: React.ReactNode;
74
+ /**
75
+ * 自定义图标,如果设置了 useSlot 或者 icon 属性则不生效
76
+ */
77
+ icon?: React.ReactNode;
78
+ /**
79
+ * 自定义文字,如果设置了 useSlot 或者 text 属性则不生效
80
+ */
81
+ text?: React.ReactNode;
69
82
  }
70
83
  export type SmartGridItem = SmartComponent<SmartGridItemProps, SmartGridItemEvents, SmartGridItemExternalClassName, SmartGridItemSlot>;
@@ -11,11 +11,11 @@ export interface SmartTabbarItemProps {
11
11
  */
12
12
  icon?: string;
13
13
  /**
14
- * 图标类名前缀,同 `Icon` 组件的 `class-prefix` 属性
14
+ * 图标类名前缀,同 `Icon` 组件的 `classPrefix` 属性
15
15
  *
16
16
  * @default 'smart-icon'
17
17
  */
18
- 'icon-prefix'?: string;
18
+ iconPrefix?: string;
19
19
  /**
20
20
  * 是否显示小红点
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "author": "MiniApp Team",
5
5
  "description": "轻量、可靠的智能小程序 UI 组件库",
6
6
  "scripts": {
@@ -38,7 +38,7 @@
38
38
  "@ray-js/components-ty-slider": "^0.2.44",
39
39
  "@ray-js/components-ty-progress-bar": "^0.1.1",
40
40
  "@ray-js/components-ty-progress-circle": "^0.1.6",
41
- "@tuya-miniapp/smart-ui": "^1.0.1"
41
+ "@tuya-miniapp/smart-ui": "^1.0.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@changesets/cli": "^2.27.1",