@ray-js/smart-ui 2.1.11-beta-8 → 2.2.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.
|
@@ -26,7 +26,7 @@ type SwitchThemeVars = 'switchWidth' | 'switchHeight' | 'switchNodeSize' | 'swit
|
|
|
26
26
|
type SearchThemeVars = 'searchBackgroundColor' | 'searchBodyBackgroundColor' | 'searchPadding' | 'searchInputHeight' | 'searchLabelPadding' | 'searchLabelColor' | 'searchLabelFontSize' | 'searchValueFontSize' | 'searchLeftIconColor' | 'searchActionPadding' | 'searchActionTextColor' | 'searchActionFontSize' | 'searchSubmitFontSize' | 'searchSubmitColor' | 'searchBtnHoverColor' | 'searchSubmitLineWidth' | 'searchSubmitLineHeight' | 'searchBtnHoverOpacity';
|
|
27
27
|
type SidebarThemeVars = 'sidebarWidth' | 'sidebarFontSize' | 'sidebarLineHeight' | 'sidebarTextColor' | 'sidebarDisabledTextColor' | 'sidebarPadding' | 'sidebarActiveColor' | 'sidebarBackgroundColor' | 'sidebarSelectedFontWeight' | 'sidebarSelectedTextColor' | 'sidebarSelectedBorderColor' | 'sidebarSelectedBackgroundColor';
|
|
28
28
|
type SliderThemeVars = 'sliderActiveBackgroundColor' | 'sliderInactiveBackgroundColor' | 'sliderDisabledOpacity' | 'sliderBarHeight' | 'sliderButtonWidth' | 'sliderButtonHeight' | 'sliderButtonBorderRadius' | 'sliderButtonBackgroundColor' | 'sliderButtonBoxShadow' | 'sliderThumbColor';
|
|
29
|
-
type StepperThemeVars = 'stepperContainerBackgroundColor' | 'stepperBackgroundBorderRadius' | 'stepperPadding' | 'stepperActiveColor' | 'stepperBackgroundColor' | 'stepperButtonIconColor' | 'stepperButtonDisabledColor' | 'stepperButtonDisabledIconColor' | 'stepperButtonRoundThemeColor' | 'stepperBtnWidth' | 'stepperBtnHeight' | 'stepperInputWidth' | 'stepperInputHeight' | 'stepperInputFontSize' | 'stepperInputLineHeight' | 'stepperInputTextColor' | 'stepperInputDisabledTextColor' | 'stepperBorderRadius';
|
|
29
|
+
type StepperThemeVars = 'stepperContainerBackgroundColor' | 'stepperBackgroundBorderRadius' | 'stepperPadding' | 'stepperActiveColor' | 'stepperBackgroundColor' | 'stepperButtonIconColor' | 'stepperButtonBorder' | 'stepperButtonDisabledColor' | 'stepperButtonDisabledIconColor' | 'stepperButtonRoundThemeColor' | 'stepperBtnWidth' | 'stepperBtnHeight' | 'stepperInputWidth' | 'stepperInputHeight' | 'stepperInputFontSize' | 'stepperInputLineHeight' | 'stepperInputTextColor' | 'stepperInputDisabledTextColor' | 'stepperBorderRadius' | 'stepperButtonIconFontSize';
|
|
30
30
|
type StepsThemeVars = 'stepsBackgroundColor';
|
|
31
31
|
type TabbarThemeVars = 'tabbarHeight' | 'tabbarBackgroundColor' | 'tabbarBorderColor' | 'tabbarItemFontSize' | 'tabbarItemTextColor' | 'tabbarItemActiveColor' | 'tabbarItemLineHeight' | 'tabbarItemIconSize' | 'tabbarItemMarginBottom';
|
|
32
32
|
type TabThemeVars = 'tabPanelBackgroundColor' | 'tabPanelTextColor' | 'tabTextColor' | 'tabActiveTextColor' | 'tabDisabledTextColor' | 'tabFontSize' | 'tabsCardBackgroundColor' | 'tabsBackgroundColor' | 'tabsDefaultColor' | 'tabsLineHeight' | 'tabsBottomBarHeight' | 'tabsBottomBarColor' | 'tabsCardTextColor' | 'tabsCardTextActiveColor' | 'tabsCardHeight' | 'tabsCardBorderRadius' | 'tabsCardActiveBorderRadius' | 'tabsCardActiveBackgroundColor' | 'tabsCardActiveTop' | 'tabsCardActiveLeft' | 'tabsCardPadding';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
|
2
2
|
import { SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
-
type
|
|
3
|
+
type TimeType = 'date' | 'time' | 'year-month' | 'datetime';
|
|
4
4
|
export interface SmartDateTimePickerProps {
|
|
5
5
|
/**
|
|
6
6
|
* 当前选中值,当 type 为 time时,请使用 HH:mm 格式传值
|
|
@@ -11,7 +11,7 @@ export interface SmartDateTimePickerProps {
|
|
|
11
11
|
*
|
|
12
12
|
* @default 'datetime'
|
|
13
13
|
*/
|
|
14
|
-
type?:
|
|
14
|
+
type?: TimeType;
|
|
15
15
|
/**
|
|
16
16
|
* 可选的最小时间,精确到分钟
|
|
17
17
|
*
|
|
@@ -125,19 +125,19 @@ export interface SmartDateTimePickerProps {
|
|
|
125
125
|
* @version 2.2.0
|
|
126
126
|
* @default false
|
|
127
127
|
*/
|
|
128
|
-
|
|
128
|
+
is12HourClock?: boolean;
|
|
129
129
|
/**
|
|
130
130
|
* @description 12小时选择模式时上午的文案
|
|
131
131
|
* @version 2.2.0
|
|
132
132
|
* @default 'AM'
|
|
133
133
|
*/
|
|
134
|
-
|
|
134
|
+
amText?: string;
|
|
135
135
|
/**
|
|
136
136
|
* @description 12小时选择模式时下午的文案
|
|
137
137
|
* @version 2.2.0
|
|
138
138
|
* @default 'PM'
|
|
139
139
|
*/
|
|
140
|
-
|
|
140
|
+
pmText?: string;
|
|
141
141
|
/**
|
|
142
142
|
* @description 设置列的顺序,同`flex order`属性,只是从样式角度修改列的顺序,逻辑还是不变
|
|
143
143
|
* @version 2.2.0
|
|
@@ -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 SmartTabbarProps {
|
|
4
5
|
/**
|
|
@@ -65,4 +66,23 @@ export interface SmartTabbarEvents {
|
|
|
65
66
|
*/
|
|
66
67
|
onChange?: SmartEventHandler<number | string>;
|
|
67
68
|
}
|
|
68
|
-
export
|
|
69
|
+
export interface SmartTabbarSlot {
|
|
70
|
+
/**
|
|
71
|
+
* NavBar Slot
|
|
72
|
+
*/
|
|
73
|
+
slot?: {
|
|
74
|
+
/**
|
|
75
|
+
* 默认插槽
|
|
76
|
+
*/
|
|
77
|
+
default?: React.ReactNode;
|
|
78
|
+
/**
|
|
79
|
+
* 自定义左侧区域内容
|
|
80
|
+
*/
|
|
81
|
+
left?: React.ReactNode;
|
|
82
|
+
/**
|
|
83
|
+
* 自定义右侧区域内容
|
|
84
|
+
*/
|
|
85
|
+
right?: React.ReactNode;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export type SmartTabbar = SmartComponent<SmartTabbarProps, SmartTabbarEvents, SmartBaseExternalClassName, SmartTabbarSlot>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/smart-ui",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"author": "睦海(李利民)",
|
|
3
|
+
"version": "2.2.0",
|
|
5
4
|
"description": "轻量、可靠的智能小程序 UI 组件库",
|
|
6
5
|
"scripts": {
|
|
7
6
|
"syncMiniappData": "node ./build/syncMiniappData.js",
|
|
@@ -36,7 +35,7 @@
|
|
|
36
35
|
},
|
|
37
36
|
"dependencies": {
|
|
38
37
|
"@ray-js/components-ty-slider": "^0.3.1",
|
|
39
|
-
"@tuya-miniapp/smart-ui": "2.
|
|
38
|
+
"@tuya-miniapp/smart-ui": "^2.2.0",
|
|
40
39
|
"lodash-es": "^4.17.21"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|