@ray-js/smart-ui 2.10.0-beta-0 → 2.10.1-beta-0

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.
@@ -9,7 +9,7 @@ export interface SmartBatteryProps {
9
9
  /**
10
10
  * 大小
11
11
  *
12
- * @default 10
12
+ * @default 24
13
13
  */
14
14
  size?: number;
15
15
  /**
@@ -48,6 +48,27 @@ export interface SmartBatteryProps {
48
48
  * @default 'rgba(0, 0, 0, .5)'
49
49
  */
50
50
  backgroundColor?: string;
51
+ /**
52
+ * 是否处于充电状态
53
+ *
54
+ * @default false
55
+ * @version 2.10.0
56
+ */
57
+ inCharging?: boolean;
58
+ /**
59
+ * 是否显示电量文本
60
+ *
61
+ * @default false
62
+ * @version 2.10.0
63
+ */
64
+ showText?: boolean;
65
+ /**
66
+ * 充电颜色
67
+ *
68
+ * @default '#2fc755'
69
+ * @version 2.10.0
70
+ */
71
+ chargingColor?: string;
51
72
  /**
52
73
  * 电量颜色计算规则回调函数,返回计算后的颜色值即可
53
74
  *
@@ -26,12 +26,6 @@ export interface SmartPopoverProps {
26
26
  * @default 'tap'
27
27
  */
28
28
  trigger?: 'tap' | 'longpress';
29
- /**
30
- * 是否开启受控模式,开启后点击不会触发 `show-change` 事件,`show` 状态完全由外部控制
31
- *
32
- * @default false
33
- */
34
- isControl?: boolean;
35
29
  }
36
30
  export interface SmartPopoverSlot {
37
31
  slot?: {
@@ -9,7 +9,7 @@ export interface SmartBatteryProps {
9
9
  /**
10
10
  * 大小
11
11
  *
12
- * @default 10
12
+ * @default 24
13
13
  */
14
14
  size?: number;
15
15
  /**
@@ -48,6 +48,27 @@ export interface SmartBatteryProps {
48
48
  * @default 'rgba(0, 0, 0, .5)'
49
49
  */
50
50
  backgroundColor?: string;
51
+ /**
52
+ * 是否处于充电状态
53
+ *
54
+ * @default false
55
+ * @version 2.10.0
56
+ */
57
+ inCharging?: boolean;
58
+ /**
59
+ * 是否显示电量文本
60
+ *
61
+ * @default false
62
+ * @version 2.10.0
63
+ */
64
+ showText?: boolean;
65
+ /**
66
+ * 充电颜色
67
+ *
68
+ * @default '#2fc755'
69
+ * @version 2.10.0
70
+ */
71
+ chargingColor?: string;
51
72
  /**
52
73
  * 电量颜色计算规则回调函数,返回计算后的颜色值即可
53
74
  *
@@ -26,12 +26,6 @@ export interface SmartPopoverProps {
26
26
  * @default 'tap'
27
27
  */
28
28
  trigger?: 'tap' | 'longpress';
29
- /**
30
- * 是否开启受控模式,开启后点击不会触发 `show-change` 事件,`show` 状态完全由外部控制
31
- *
32
- * @default false
33
- */
34
- isControl?: boolean;
35
29
  }
36
30
  export interface SmartPopoverSlot {
37
31
  slot?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "2.10.0-beta-0",
3
+ "version": "2.10.1-beta-0",
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.8",
45
- "@tuya-miniapp/smart-ui": "2.10.0-beta-1",
45
+ "@tuya-miniapp/smart-ui": "2.10.1-beta-0",
46
46
  "lodash-es": "^4.17.21"
47
47
  },
48
48
  "devDependencies": {