@ray-js/smart-ui 2.3.6-beta-3 → 2.3.6
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,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="miniprogram-api-typings" />
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { SmartComponent, SmartEventHandler } from '../base';
|
|
3
4
|
type TimeType = 'date' | 'time' | 'year-month' | 'datetime';
|
|
5
|
+
type TimeUnitType = 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second';
|
|
4
6
|
export interface SmartDateTimePickerProps {
|
|
5
7
|
/**
|
|
6
8
|
* 当前选中值,当 type 为 time时,请使用 HH:mm 格式传值
|
|
@@ -119,7 +121,7 @@ export interface SmartDateTimePickerProps {
|
|
|
119
121
|
* @description 字符串替换
|
|
120
122
|
* @version 2.2.0
|
|
121
123
|
*/
|
|
122
|
-
formatterMap?: Partial<Record<
|
|
124
|
+
formatterMap?: Partial<Record<TimeUnitType, string | Record<string, string>>>;
|
|
123
125
|
/**
|
|
124
126
|
* @description 当设置 type: 'time' 时,此属性可开启12小时选择模式
|
|
125
127
|
* @version 2.2.0
|
|
@@ -144,6 +146,27 @@ export interface SmartDateTimePickerProps {
|
|
|
144
146
|
* @default []
|
|
145
147
|
*/
|
|
146
148
|
columnsOrder?: number[];
|
|
149
|
+
/**
|
|
150
|
+
* @description 组件动画以及选择回调延迟时间
|
|
151
|
+
* @version 2.3.6
|
|
152
|
+
* @default 800 (ms)
|
|
153
|
+
*/
|
|
154
|
+
animationTime?: number;
|
|
155
|
+
/**
|
|
156
|
+
* @description 选中项的样式
|
|
157
|
+
* @version 2.3.6
|
|
158
|
+
*/
|
|
159
|
+
activeStyle?: React.CSSProperties;
|
|
160
|
+
/**
|
|
161
|
+
* @description 设置任意列的样式
|
|
162
|
+
* @version 2.3.6
|
|
163
|
+
*/
|
|
164
|
+
columnStyles?: Partial<Record<TimeUnitType, React.CSSProperties>>;
|
|
165
|
+
/**
|
|
166
|
+
* @description 设置任意列的文字样式
|
|
167
|
+
* @version 2.3.6
|
|
168
|
+
*/
|
|
169
|
+
fontStyles?: Partial<Record<TimeUnitType, React.CSSProperties>>;
|
|
147
170
|
}
|
|
148
171
|
/**
|
|
149
172
|
* @deprecated
|
|
@@ -141,6 +141,12 @@ export interface SmartPickerProps {
|
|
|
141
141
|
* @default true
|
|
142
142
|
*/
|
|
143
143
|
changeAnimation?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* @description 组件动画以及选择回调延迟时间
|
|
146
|
+
* @version 2.3.6
|
|
147
|
+
* @default 800 (ms)
|
|
148
|
+
*/
|
|
149
|
+
animationTime?: number;
|
|
144
150
|
}
|
|
145
151
|
export interface SmartPickerBaseEventDetail {
|
|
146
152
|
index: number | number[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/smart-ui",
|
|
3
|
-
"version": "2.3.6
|
|
3
|
+
"version": "2.3.6",
|
|
4
4
|
"description": "轻量、可靠的智能小程序 UI 组件库",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"syncMiniappData": "node ./build/syncMiniappData.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@ray-js/components-ty-slider": "^0.3.2",
|
|
39
|
-
"@tuya-miniapp/smart-ui": "2.3.6
|
|
39
|
+
"@tuya-miniapp/smart-ui": "^2.3.6",
|
|
40
40
|
"lodash-es": "^4.17.21"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|