@ray-js/smart-ui 2.1.11-beta-2 → 2.1.11-beta-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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
|
2
2
|
import { SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
type timeType = 'date' | 'time' | 'year-month' | 'datetime';
|
|
3
4
|
export interface SmartDateTimePickerProps {
|
|
4
5
|
/**
|
|
5
6
|
* 当前选中值,当 type 为 time时,请使用 HH:mm 格式传值
|
|
@@ -10,7 +11,7 @@ export interface SmartDateTimePickerProps {
|
|
|
10
11
|
*
|
|
11
12
|
* @default 'datetime'
|
|
12
13
|
*/
|
|
13
|
-
type?:
|
|
14
|
+
type?: timeType;
|
|
14
15
|
/**
|
|
15
16
|
* 可选的最小时间,精确到分钟
|
|
16
17
|
*
|
|
@@ -108,6 +109,41 @@ export interface SmartDateTimePickerProps {
|
|
|
108
109
|
minute?: string;
|
|
109
110
|
second?: string;
|
|
110
111
|
};
|
|
112
|
+
/**
|
|
113
|
+
* @description 组件选择值改变时是否需要动画过度效果
|
|
114
|
+
* @version 2.2.0
|
|
115
|
+
* @default true
|
|
116
|
+
*/
|
|
117
|
+
changeAnimation?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* @description 字符串替换
|
|
120
|
+
* @version 2.2.0
|
|
121
|
+
*/
|
|
122
|
+
formatterMap: Record<timeType, string | Record<string, string>>;
|
|
123
|
+
/**
|
|
124
|
+
* @description 当设置 type: 'time' 时,此属性可开启12小时选择模式
|
|
125
|
+
* @version 2.2.0
|
|
126
|
+
* @default false
|
|
127
|
+
*/
|
|
128
|
+
is12HoursTime: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* @description 12小时选择模式时上午的文案
|
|
131
|
+
* @version 2.2.0
|
|
132
|
+
* @default 'AM'
|
|
133
|
+
*/
|
|
134
|
+
AMText?: string;
|
|
135
|
+
/**
|
|
136
|
+
* @description 12小时选择模式时下午的文案
|
|
137
|
+
* @version 2.2.0
|
|
138
|
+
* @default 'PM'
|
|
139
|
+
*/
|
|
140
|
+
PMText?: string;
|
|
141
|
+
/**
|
|
142
|
+
* @description 设置列的顺序,同`flex order`属性,只是从样式角度修改列的顺序,逻辑还是不变
|
|
143
|
+
* @version 2.2.0
|
|
144
|
+
* @default []
|
|
145
|
+
*/
|
|
146
|
+
columnsOrder: number[];
|
|
111
147
|
}
|
|
112
148
|
/**
|
|
113
149
|
* @deprecated
|
|
@@ -148,3 +184,4 @@ export interface SmartDateTimePickerExternalClassName {
|
|
|
148
184
|
columnClass?: string;
|
|
149
185
|
}
|
|
150
186
|
export type SmartDateTimePicker = SmartComponent<SmartDateTimePickerProps, SmartDateTimePickerEvents, SmartDateTimePickerExternalClassName>;
|
|
187
|
+
export {};
|
|
@@ -27,6 +27,17 @@ export interface SmartPickerMultipleColumn {
|
|
|
27
27
|
* 列数据的单位
|
|
28
28
|
*/
|
|
29
29
|
unit?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @description 组件选择值改变时是否需要动画过度效果
|
|
32
|
+
* @version 2.2.0
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
changeAnimation?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @description 设置列的顺序,同`flex order`属性,只是从样式角度修改列的顺序,逻辑还是不变
|
|
38
|
+
* @version 2.2.0
|
|
39
|
+
*/
|
|
40
|
+
order?: number;
|
|
30
41
|
[key: string]: unknown;
|
|
31
42
|
}
|
|
32
43
|
export interface SmartPickerProps {
|
|
@@ -114,6 +125,12 @@ export interface SmartPickerProps {
|
|
|
114
125
|
* @default ''
|
|
115
126
|
*/
|
|
116
127
|
activeStyle?: React.CSSProperties;
|
|
128
|
+
/**
|
|
129
|
+
* @description 组件选择值改变时是否需要动画过度效果
|
|
130
|
+
* @version 2.2.0
|
|
131
|
+
* @default true
|
|
132
|
+
*/
|
|
133
|
+
changeAnimation?: boolean;
|
|
117
134
|
}
|
|
118
135
|
export interface SmartPickerBaseEventDetail {
|
|
119
136
|
index: number | number[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/smart-ui",
|
|
3
|
-
"version": "2.1.11-beta-
|
|
3
|
+
"version": "2.1.11-beta-3",
|
|
4
4
|
"author": "睦海(李利民)",
|
|
5
5
|
"description": "轻量、可靠的智能小程序 UI 组件库",
|
|
6
6
|
"scripts": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ray-js/components-ty-slider": "^0.
|
|
39
|
-
"@tuya-miniapp/smart-ui": "2.1.
|
|
38
|
+
"@ray-js/components-ty-slider": "^0.3.1",
|
|
39
|
+
"@tuya-miniapp/smart-ui": "2.1.11-beta-2",
|
|
40
40
|
"lodash-es": "^4.17.21"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|