@ray-js/smart-ui 2.9.3-beta-2 → 2.10.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
|
|
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
|
*
|
|
@@ -42,8 +42,9 @@ type SkeletonThemeVars = 'skeletonPadding' | 'skeletonRowHeight' | 'skeletonRowB
|
|
|
42
42
|
type CascaderThemeVars = 'cascaderHeaderHeight' | 'cascaderHeaderPadding' | 'cascaderTitleFontSize' | 'cascaderTitleLineHeight' | 'cascaderCloseIconSize' | 'cascaderCloseIconColor' | 'cascaderSelectedIconSize' | 'cascaderTabsHeight' | 'cascaderActiveColor' | 'cascaderActiveBackgroundColor' | 'cascaderOptionsHeight' | 'cascaderOptionDisabledColor' | 'cascaderTabColor' | 'cascaderUnselectedTabColor' | 'cascaderTabInactiveColor' | 'cascaderTextColor';
|
|
43
43
|
type CustomKeyboardThemeVars = 'customKeyboardBgColor' | 'customKeyboardTextColor' | 'customKeyboardBorderColor' | 'customKeyboardPlaceholderColor' | 'customKeyboardPopupBgColor' | 'customKeyboardPopupItemColor' | 'customKeyboardPopupConfirmColor' | 'customKeyboardPopupTextColor' | 'customKeyboardPopupHoverColor';
|
|
44
44
|
type PopoverThemeVars = 'popoverBackgroundColor' | 'popoverBoxShadow' | 'popoverPadding' | 'popoverBorderRadius' | 'popoverOverlayColor';
|
|
45
|
+
type BatteryThemeVars = 'batteryBodyBaseBackground' | 'batteryTextColor' | 'batterySlashBorderColor' | 'batteryBodyHighBackground' | 'batteryBodyMiddleBackground' | 'batteryBodyLowBackground' | 'batteryBodyChargingBackground' | 'batteryTextFontSize' | 'batteryTextFontWeight' | 'batteryTextPadding' | 'batteryTextPaddingVertical';
|
|
45
46
|
/**
|
|
46
47
|
* 主题变量
|
|
47
48
|
*/
|
|
48
|
-
export type ThemeVars = Record<CommonThemeVars | OverlayThemeVars | DialogThemeVars | IconThemeVars | ActionSheetThemeVars | BottomSheetThemeVars | ButtonThemeVars | CalendarThemeVars | CellThemeVars | CheckboxThemeVars | CircleThemeVars | CollapseThemeVars | CountDownThemeVars | FieldThemeVars | ImageThemeVars | LoadingThemeVars | NavBarThemeVars | NoticeBarThemeVars | NotifyThemeVars | PickerThemeVars | PopupThemeVars | ProgressThemeVars | RadioThemeVars | RateThemeVars | SwitchThemeVars | SearchThemeVars | SidebarThemeVars | SliderThemeVars | StepperThemeVars | TabbarThemeVars | TabThemeVars | TagThemeVars | ToastThemeVars | GridThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars | CascaderThemeVars | CustomKeyboardThemeVars | PopoverThemeVars, string>;
|
|
49
|
+
export type ThemeVars = Record<CommonThemeVars | OverlayThemeVars | DialogThemeVars | IconThemeVars | ActionSheetThemeVars | BottomSheetThemeVars | ButtonThemeVars | CalendarThemeVars | CellThemeVars | CheckboxThemeVars | CircleThemeVars | CollapseThemeVars | CountDownThemeVars | FieldThemeVars | ImageThemeVars | LoadingThemeVars | NavBarThemeVars | NoticeBarThemeVars | NotifyThemeVars | PickerThemeVars | PopupThemeVars | ProgressThemeVars | RadioThemeVars | RateThemeVars | SwitchThemeVars | SearchThemeVars | SidebarThemeVars | SliderThemeVars | StepperThemeVars | TabbarThemeVars | TabThemeVars | TagThemeVars | ToastThemeVars | GridThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars | CascaderThemeVars | CustomKeyboardThemeVars | PopoverThemeVars | BatteryThemeVars, string>;
|
|
49
50
|
export {};
|
|
@@ -9,7 +9,7 @@ export interface SmartBatteryProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* 大小
|
|
11
11
|
*
|
|
12
|
-
* @default
|
|
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
|
*
|
|
@@ -42,8 +42,9 @@ type SkeletonThemeVars = 'skeletonPadding' | 'skeletonRowHeight' | 'skeletonRowB
|
|
|
42
42
|
type CascaderThemeVars = 'cascaderHeaderHeight' | 'cascaderHeaderPadding' | 'cascaderTitleFontSize' | 'cascaderTitleLineHeight' | 'cascaderCloseIconSize' | 'cascaderCloseIconColor' | 'cascaderSelectedIconSize' | 'cascaderTabsHeight' | 'cascaderActiveColor' | 'cascaderActiveBackgroundColor' | 'cascaderOptionsHeight' | 'cascaderOptionDisabledColor' | 'cascaderTabColor' | 'cascaderUnselectedTabColor' | 'cascaderTabInactiveColor' | 'cascaderTextColor';
|
|
43
43
|
type CustomKeyboardThemeVars = 'customKeyboardBgColor' | 'customKeyboardTextColor' | 'customKeyboardBorderColor' | 'customKeyboardPlaceholderColor' | 'customKeyboardPopupBgColor' | 'customKeyboardPopupItemColor' | 'customKeyboardPopupConfirmColor' | 'customKeyboardPopupTextColor' | 'customKeyboardPopupHoverColor';
|
|
44
44
|
type PopoverThemeVars = 'popoverBackgroundColor' | 'popoverBoxShadow' | 'popoverPadding' | 'popoverBorderRadius' | 'popoverOverlayColor';
|
|
45
|
+
type BatteryThemeVars = 'batteryBodyBaseBackground' | 'batteryTextColor' | 'batterySlashBorderColor' | 'batteryBodyHighBackground' | 'batteryBodyMiddleBackground' | 'batteryBodyLowBackground' | 'batteryBodyChargingBackground' | 'batteryTextFontSize' | 'batteryTextFontWeight' | 'batteryTextPadding' | 'batteryTextPaddingVertical';
|
|
45
46
|
/**
|
|
46
47
|
* 主题变量
|
|
47
48
|
*/
|
|
48
|
-
export type ThemeVars = Record<CommonThemeVars | OverlayThemeVars | DialogThemeVars | IconThemeVars | ActionSheetThemeVars | BottomSheetThemeVars | ButtonThemeVars | CalendarThemeVars | CellThemeVars | CheckboxThemeVars | CircleThemeVars | CollapseThemeVars | CountDownThemeVars | FieldThemeVars | ImageThemeVars | LoadingThemeVars | NavBarThemeVars | NoticeBarThemeVars | NotifyThemeVars | PickerThemeVars | PopupThemeVars | ProgressThemeVars | RadioThemeVars | RateThemeVars | SwitchThemeVars | SearchThemeVars | SidebarThemeVars | SliderThemeVars | StepperThemeVars | TabbarThemeVars | TabThemeVars | TagThemeVars | ToastThemeVars | GridThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars | CascaderThemeVars | CustomKeyboardThemeVars | PopoverThemeVars, string>;
|
|
49
|
+
export type ThemeVars = Record<CommonThemeVars | OverlayThemeVars | DialogThemeVars | IconThemeVars | ActionSheetThemeVars | BottomSheetThemeVars | ButtonThemeVars | CalendarThemeVars | CellThemeVars | CheckboxThemeVars | CircleThemeVars | CollapseThemeVars | CountDownThemeVars | FieldThemeVars | ImageThemeVars | LoadingThemeVars | NavBarThemeVars | NoticeBarThemeVars | NotifyThemeVars | PickerThemeVars | PopupThemeVars | ProgressThemeVars | RadioThemeVars | RateThemeVars | SwitchThemeVars | SearchThemeVars | SidebarThemeVars | SliderThemeVars | StepperThemeVars | TabbarThemeVars | TabThemeVars | TagThemeVars | ToastThemeVars | GridThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars | CascaderThemeVars | CustomKeyboardThemeVars | PopoverThemeVars | BatteryThemeVars, string>;
|
|
49
50
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/smart-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.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.
|
|
45
|
+
"@tuya-miniapp/smart-ui": "^2.10.0",
|
|
46
46
|
"lodash-es": "^4.17.21"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -81,4 +81,4 @@
|
|
|
81
81
|
"email": "tuyafe@tuya.com"
|
|
82
82
|
}
|
|
83
83
|
]
|
|
84
|
-
}
|
|
84
|
+
}
|