@ray-js/smart-ui 2.9.1-beta-0 → 2.9.1

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.
@@ -237,6 +237,17 @@ export interface SmartCalendarProps extends SmartCalendarRangeProps, SmartCalend
237
237
  * @default 0
238
238
  */
239
239
  firstDayOfWeek?: number;
240
+ /**
241
+ * 设置周选择时的起始日,用于控制点击日期时选择的周范围
242
+ *
243
+ * `firstDayOfWeek` 用于控制日历显示的周起始日,而 `firstDayOfSelectWeek` 专门用于控制周选择的范围计算
244
+ *
245
+ * 范围为`[0, 6]`
246
+ *
247
+ * @version v2.9.1
248
+ * @default 1
249
+ */
250
+ firstDayOfSelectWeek?: number;
240
251
  /**
241
252
  * 是否为只读状态,只读状态下不能选择日期
242
253
  *
@@ -42,9 +42,8 @@ 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';
46
45
  /**
47
46
  * 主题变量
48
47
  */
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>;
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>;
50
49
  export {};
@@ -237,6 +237,17 @@ export interface SmartCalendarProps extends SmartCalendarRangeProps, SmartCalend
237
237
  * @default 0
238
238
  */
239
239
  firstDayOfWeek?: number;
240
+ /**
241
+ * 设置周选择时的起始日,用于控制点击日期时选择的周范围
242
+ *
243
+ * `firstDayOfWeek` 用于控制日历显示的周起始日,而 `firstDayOfSelectWeek` 专门用于控制周选择的范围计算
244
+ *
245
+ * 范围为`[0, 6]`
246
+ *
247
+ * @version v2.9.1
248
+ * @default 1
249
+ */
250
+ firstDayOfSelectWeek?: number;
240
251
  /**
241
252
  * 是否为只读状态,只读状态下不能选择日期
242
253
  *
@@ -42,9 +42,8 @@ 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';
46
45
  /**
47
46
  * 主题变量
48
47
  */
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>;
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>;
50
49
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/smart-ui",
3
- "version": "2.9.1-beta-0",
3
+ "version": "2.9.1",
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.9.1-beta-0",
45
+ "@tuya-miniapp/smart-ui": "^2.9.1",
46
46
  "lodash-es": "^4.17.21"
47
47
  },
48
48
  "devDependencies": {