@ray-js/smart-ui 2.3.8 → 2.3.9-beta-2

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.
@@ -83,6 +83,7 @@ export interface SmartCalendarRangeProps {
83
83
  /**
84
84
  * `Calendar`的`type`为`range`时有效
85
85
  *
86
+ * @version 2.3.9
86
87
  * 日期区间最多可选天数,默认无限制
87
88
  */
88
89
  maxRange?: string | number;
@@ -90,7 +91,7 @@ export interface SmartCalendarRangeProps {
90
91
  * `Calendar`的`type`为`range`时有效
91
92
  *
92
93
  * 范围选择超过最多可选天数时的提示文案
93
- *
94
+ * @version 2.3.9
94
95
  * @default '选择天数不能超过 xx 天'
95
96
  */
96
97
  rangePrompt?: string | null;
@@ -98,7 +99,7 @@ export interface SmartCalendarRangeProps {
98
99
  * `Calendar`的`type`为`range`时有效
99
100
  *
100
101
  * 范围选择超过最多可选天数时,是否展示提示文案
101
- *
102
+ * @version 2.3.9
102
103
  * @default true
103
104
  */
104
105
  showRangePrompt?: boolean;
@@ -107,6 +108,7 @@ export interface SmartCalendarRangeProps {
107
108
  *
108
109
  * 是否允许日期范围的起止时间为同一天
109
110
  *
111
+ * @version 2.3.9
110
112
  * @default false
111
113
  */
112
114
  allowSameDay?: boolean;
@@ -245,6 +247,41 @@ export interface SmartCalendarProps extends SmartCalendarRangeProps, SmartCalend
245
247
  * 支持单元格自定义 class
246
248
  */
247
249
  dayClassMap?: Record<string, string>;
250
+ /**
251
+ * 时区偏差(分钟数)
252
+ * @default -480
253
+ */
254
+ utcOffset?: number;
255
+ /**
256
+ * `Calendar`的`type`为`range`时有效
257
+ *
258
+ * 日期区间最多可选天数,默认无限制
259
+ */
260
+ maxRange?: string | number;
261
+ /**
262
+ * `Calendar`的`type`为`range`时有效
263
+ *
264
+ * 范围选择超过最多可选天数时的提示文案
265
+ *
266
+ * @default 'Days selected over x days'
267
+ */
268
+ rangePrompt?: string | null;
269
+ /**
270
+ * `Calendar`的`type`为`range`时有效
271
+ *
272
+ * 范围选择超过最多可选天数时,是否展示提示文案
273
+ *
274
+ * @default true
275
+ */
276
+ showRangePrompt?: boolean;
277
+ /**
278
+ * `Calendar`的`type`为`range`时有效
279
+ *
280
+ * 是否允许日期范围的起止时间为同一天
281
+ *
282
+ * @default false
283
+ */
284
+ allowSameDay?: boolean;
248
285
  }
249
286
  export interface SmartCalendarEvents {
250
287
  /**
@@ -283,10 +320,5 @@ export interface SmartCalendarEvents {
283
320
  * 点击日历副标题时触发
284
321
  */
285
322
  onClickSubtitle?: (e: WechatMiniprogram.CustomEvent<WechatMiniprogram.TouchEvent>) => void;
286
- /**
287
- * 时区偏差(分钟数)
288
- * @default -480
289
- */
290
- utcOffset?: number;
291
323
  }
292
324
  export type SmartCalendar = SmartComponent<SmartCalendarProps, SmartCalendarEvents>;
@@ -138,7 +138,7 @@ export interface SmartPickerProps {
138
138
  /**
139
139
  * @description 组件选择值改变时是否需要动画过度效果
140
140
  * @version 2.2.0
141
- * @default true
141
+ * @default false (原为true 2.3.9版本调整为false)
142
142
  */
143
143
  changeAnimation?: boolean;
144
144
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "2.3.8",
3
+ "version": "2.3.9-beta-2",
4
4
  "description": "轻量、可靠的智能小程序 UI 组件库",
5
5
  "scripts": {
6
6
  "syncMiniappData": "node ./build/syncMiniappData.js",
@@ -35,8 +35,8 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@ray-js/components-ty-slider": "^0.3.2",
39
- "@tuya-miniapp/smart-ui": "^2.3.8",
38
+ "@ray-js/components-ty-slider": "^0.3.3",
39
+ "@tuya-miniapp/smart-ui": "^2.3.9",
40
40
  "lodash-es": "^4.17.21"
41
41
  },
42
42
  "devDependencies": {