@ray-js/smart-ui 2.6.1 → 2.6.2-beta-1

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.
@@ -19,11 +19,11 @@ export interface SmartBatteryProps {
19
19
  */
20
20
  value?: number;
21
21
  /**
22
- * 进度条颜色,传入对象格式可以定义渐变色
22
+ * 电量的颜色
23
23
  *
24
- * @default '#1989fa'
24
+ * @version v2.6.2
25
25
  */
26
- color?: string | Record<string, string>;
26
+ color?: string;
27
27
  /**
28
28
  * 电量高的颜色
29
29
  *
@@ -106,5 +106,10 @@ export interface SmartButtonEvents {
106
106
  onClick?: SmartEventHandler<SmartTouchEvent>;
107
107
  }
108
108
  export interface SmartButtonExternalClassName extends SmartBaseExternalClassName, SmartBaseLoadingExternalClassName {
109
+ /**
110
+ * @description 按钮按下时的样式
111
+ * @version 2.6.2 补充类型
112
+ */
113
+ hoverClass?: string;
109
114
  }
110
115
  export type SmartButton = SmartComponent<SmartButtonProps, SmartButtonEvents, SmartButtonExternalClassName>;
@@ -19,11 +19,11 @@ export interface SmartBatteryProps {
19
19
  */
20
20
  value?: number;
21
21
  /**
22
- * 进度条颜色,传入对象格式可以定义渐变色
22
+ * 电量的颜色
23
23
  *
24
- * @default '#1989fa'
24
+ * @version v2.6.2
25
25
  */
26
- color?: string | Record<string, string>;
26
+ color?: string;
27
27
  /**
28
28
  * 电量高的颜色
29
29
  *
@@ -106,5 +106,10 @@ export interface SmartButtonEvents {
106
106
  onClick?: SmartEventHandler<SmartTouchEvent>;
107
107
  }
108
108
  export interface SmartButtonExternalClassName extends SmartBaseExternalClassName, SmartBaseLoadingExternalClassName {
109
+ /**
110
+ * @description 按钮按下时的样式
111
+ * @version 2.6.2 补充类型
112
+ */
113
+ hoverClass?: string;
109
114
  }
110
115
  export type SmartButton = SmartComponent<SmartButtonProps, SmartButtonEvents, SmartButtonExternalClassName>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "2.6.1",
3
+ "version": "2.6.2-beta-1",
4
4
  "description": "轻量、可靠的智能小程序 UI 组件库",
5
5
  "scripts": {
6
6
  "syncMiniappData": "node ./build/syncMiniappData.js",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@ray-js/components-ty-slider": "^0.3.4",
45
- "@tuya-miniapp/smart-ui": "^2.6.1",
45
+ "@tuya-miniapp/smart-ui": "2.6.2-beta-1",
46
46
  "lodash-es": "^4.17.21"
47
47
  },
48
48
  "devDependencies": {