@ray-js/smart-ui 2.7.3-beta-2 → 2.7.3-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.
- package/es/@types/bottom-sheet/index.d.ts +3 -1
- package/es/@types/config-provider/theme-vars.d.ts +4 -3
- package/es/@types/index.d.ts +1 -0
- package/es/@types/nav-bar/index.d.ts +0 -5
- package/es/@types/steps/index.d.ts +83 -0
- package/es/@types/steps/index.js +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/steps/PropTypes.d.ts +2 -0
- package/es/steps/PropTypes.js +1 -0
- package/es/steps/Steps.d.ts +2 -0
- package/es/steps/Steps.js +4 -0
- package/es/steps/index.d.ts +5 -0
- package/es/steps/index.js +3 -0
- package/lib/@types/bottom-sheet/index.d.ts +3 -1
- package/lib/@types/config-provider/theme-vars.d.ts +4 -3
- package/lib/@types/index.d.ts +1 -0
- package/lib/@types/nav-bar/index.d.ts +0 -5
- package/lib/@types/steps/index.d.ts +83 -0
- package/lib/@types/steps/index.js +2 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +4 -2
- package/lib/steps/PropTypes.d.ts +2 -0
- package/lib/steps/PropTypes.js +2 -0
- package/lib/steps/Steps.d.ts +2 -0
- package/lib/steps/Steps.js +9 -0
- package/lib/steps/index.d.ts +5 -0
- package/lib/steps/index.js +9 -0
- package/package.json +3 -3
|
@@ -131,7 +131,9 @@ export interface SmartBottomSheetEvents extends SmartTransitionEvents {
|
|
|
131
131
|
* 拖拽结束时触发,返回当前面板位置
|
|
132
132
|
* @version 2.7.2
|
|
133
133
|
*/
|
|
134
|
-
onDragPosition?:
|
|
134
|
+
onDragPosition?: (e: {
|
|
135
|
+
detail: 'max' | 'mid' | 'min';
|
|
136
|
+
}) => void;
|
|
135
137
|
}
|
|
136
138
|
interface SmartBottomSheetSlot {
|
|
137
139
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type CommonThemeVars = 'M1' | 'M2' | 'M3' | 'M4' | 'M5' | 'B1' | 'B2' | 'B3' | 'B4' | 'B5' | 'B6' | 'B1N1' | 'B1N2' | 'B1N3' | 'B1N4' | 'B1N5' | 'B1N6' | 'B1N7' | 'B1N8' | 'B1N9' | 'B2N1' | 'B2N2' | 'B2N3' | 'B2N4' | 'B2N5' | 'B2N6' | 'B2N7' | 'B2N8' | 'B2N9' | 'B4N1' | 'B4N2' | 'B4N3' | 'B4N4' | 'B4N5' | 'B4N6' | 'B4N7' | 'B4N8' | 'B4N9' | 'B6N1' | 'B6N2' | 'B6N3' | 'B6N4' | 'B6N5' | 'B6N6' | 'B6N7' | 'B6N8' | 'B6N9' | 'borderImage' | 'black' | 'white' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'gray6' | 'gray7' | 'gray8' | 'red' | 'blue' | 'orange' | 'orangeDark' | 'orangeLight' | 'green' | 'gradientRed' | 'gradientOrange' | 'textColor' | 'activeColor' | 'activeOpacity' | 'disabledOpacity' | 'backgroundColor' | 'backgroundColorLight' | 'textLinkColor' | 'paddingBase' | 'paddingMb' | 'paddingXs' | 'paddingSm' | 'paddingMd' | 'paddingLg' | 'paddingXl' | 'fontSizeXs' | 'fontSizeSm' | 'fontSizeMd' | 'fontSizeLg' | 'fontTitleLg' | 'fontWeightBold' | 'fontWeightBolder' | 'lineHeightXs' | 'lineHeightSm' | 'lineHeightMd' | 'lineHeightLg' | 'baseFontFamily' | 'priceIntegerFontFamily' | 'animationDurationBase' | 'animationDurationFast' | 'borderColor' | 'borderWidthBase' | 'borderRadiusSm' | 'borderRadiusMd' | 'borderRadiusLg' | 'borderRadiusMax' | 'goodsActionBackgroundColor' | 'goodsActionHeight' | 'goodsActionIconWidth' | 'goodsActionIconHeight' | 'goodsActionIconColor' | 'goodsActionIconSize' | 'goodsActionIconFontSize' | 'goodsActionIconTextColor' | 'goodsActionButtonHeight' | 'goodsActionButtonLineHeight' | 'goodsActionButtonBorderRadius' | 'goodsActionButtonWarningColor' | 'goodsActionButtonDangerColor' | 'goodsActionButtonPlainColor' | 'infoSize' | 'infoColor' | 'infoPadding' | 'infoFontSize' | 'infoFontWeight' | 'infoBorderWidth' | 'infoBackgroundColor' | 'infoDotColor' | 'infoDotSize' | 'infoFontFamily' | 'stepTextColor' | 'stepProcessTextColor' | 'stepFontSize' | 'stepLineColor' | 'stepFinishLineColor' | 'stepFinishTextColor' | 'stepIconSize' | 'stepCircleSize' | 'stepCircleColor' | 'stepHorizontalTitleFontSize' | '
|
|
1
|
+
type CommonThemeVars = 'M1' | 'M2' | 'M3' | 'M4' | 'M5' | 'B1' | 'B2' | 'B3' | 'B4' | 'B5' | 'B6' | 'B1N1' | 'B1N2' | 'B1N3' | 'B1N4' | 'B1N5' | 'B1N6' | 'B1N7' | 'B1N8' | 'B1N9' | 'B2N1' | 'B2N2' | 'B2N3' | 'B2N4' | 'B2N5' | 'B2N6' | 'B2N7' | 'B2N8' | 'B2N9' | 'B4N1' | 'B4N2' | 'B4N3' | 'B4N4' | 'B4N5' | 'B4N6' | 'B4N7' | 'B4N8' | 'B4N9' | 'B6N1' | 'B6N2' | 'B6N3' | 'B6N4' | 'B6N5' | 'B6N6' | 'B6N7' | 'B6N8' | 'B6N9' | 'borderImage' | 'black' | 'white' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'gray6' | 'gray7' | 'gray8' | 'red' | 'blue' | 'orange' | 'orangeDark' | 'orangeLight' | 'green' | 'gradientRed' | 'gradientOrange' | 'textColor' | 'activeColor' | 'activeOpacity' | 'disabledOpacity' | 'backgroundColor' | 'backgroundColorLight' | 'textLinkColor' | 'paddingBase' | 'paddingMb' | 'paddingXs' | 'paddingSm' | 'paddingMd' | 'paddingLg' | 'paddingXl' | 'fontSizeXs' | 'fontSizeSm' | 'fontSizeMd' | 'fontSizeLg' | 'fontTitleLg' | 'fontWeightBold' | 'fontWeightBolder' | 'lineHeightXs' | 'lineHeightSm' | 'lineHeightMd' | 'lineHeightLg' | 'baseFontFamily' | 'priceIntegerFontFamily' | 'animationDurationBase' | 'animationDurationFast' | 'borderColor' | 'borderWidthBase' | 'borderRadiusSm' | 'borderRadiusMd' | 'borderRadiusLg' | 'borderRadiusMax' | 'goodsActionBackgroundColor' | 'goodsActionHeight' | 'goodsActionIconWidth' | 'goodsActionIconHeight' | 'goodsActionIconColor' | 'goodsActionIconSize' | 'goodsActionIconFontSize' | 'goodsActionIconTextColor' | 'goodsActionButtonHeight' | 'goodsActionButtonLineHeight' | 'goodsActionButtonBorderRadius' | 'goodsActionButtonWarningColor' | 'goodsActionButtonDangerColor' | 'goodsActionButtonPlainColor' | 'infoSize' | 'infoColor' | 'infoPadding' | 'infoFontSize' | 'infoFontWeight' | 'infoBorderWidth' | 'infoBackgroundColor' | 'infoDotColor' | 'infoDotSize' | 'infoFontFamily' | 'stepTextColor' | 'stepProcessTextColor' | 'stepFontSize' | 'stepLineColor' | 'stepFinishLineColor' | 'stepFinishTextColor' | 'stepIconSize' | 'stepCircleSize' | 'stepCircleColor' | 'stepHorizontalTitleFontSize' | 'hairlineTopWidth' | 'hairlineLeftWidth' | 'hairlineRightWidth' | 'hairlineBottomWidth' | 'hairlineSurroundWidth' | 'hairlineTopBottomWidth' | 'hairlineColor' | 'hairlineBorderImageColor';
|
|
2
2
|
type OverlayThemeVars = 'overlay' | 'overlayBackgroundColor';
|
|
3
3
|
type DialogThemeVars = 'dialogBg' | 'dialogWidth' | 'dialogSmallScreenWidth' | 'dialogFontSize' | 'dialogBorderRadius' | 'dialogBackgroundColor' | 'dialogHeaderFontColor' | 'dialogHeaderFontWeight' | 'dialogHeaderLineHeight' | 'dialogHeaderPaddingTop' | 'dialogHeaderPadding' | 'dialogHeaderIsolatedPadding' | 'dialogMessagePadding' | 'dialogMessageFontSize' | 'dialogMessageLineHeight' | 'dialogConfirmColor' | 'dialogCancelColor' | 'dialogConfirmFontWeight' | 'dialogCancelFontWeight' | 'dialogMessageMaxHeight' | 'dialogMessageTextColor' | 'dialogHasTitleMessageFontSize' | 'dialogHasTitleMessageTextColor' | 'dialogHasTitleMessagePaddingTop' | 'dialogHeaderIconSize' | 'dialogInputHeight' | 'dialogInputBackgroundColor' | 'dialogInputMargin' | 'dialogInputPadding' | 'dialogInputBorderRadius' | 'dialogInputFontSize' | 'dialogRoundButtonBorderRadius';
|
|
4
4
|
type IconThemeVars = 'iconColor';
|
|
@@ -14,7 +14,7 @@ type CountDownThemeVars = 'countDownTextColor' | 'countDownFontSize' | 'countDow
|
|
|
14
14
|
type FieldThemeVars = 'fieldLabelColor' | 'fieldInputTextColor' | 'fieldInputErrorTextColor' | 'fieldPlaceholderTextColor' | 'fieldIconSize' | 'fieldClearIconSize' | 'fieldClearIconColor' | 'fieldIconContainerColor' | 'fieldErrorMessageColor' | 'fieldErrorMessageTextFontSize' | 'fieldDisabledOpacity' | 'fieldInputTextFontSize' | 'fieldLabelFontSize' | 'fieldLabelLineHeight' | 'fieldSubLabelFontSize' | 'fieldSubLabelLineHeight' | 'fieldErrorMessageTextLineHeight' | 'fieldSubtitleTextColor' | 'fieldLeftIconMarginRight' | 'fieldLeftBodyPaddingRight' | 'fieldCardBorderRadius' | 'fieldCardBackground' | 'fieldCardWidth' | 'fieldCardHeight' | 'fieldCardPadding' | 'fieldTextareaBackground' | 'fieldTextareaBorderRadius' | 'fieldTextareaPadding' | 'fieldTextareaLimitPaddingBottom' | 'fieldTextareaMinHeight' | 'fieldWordLimitColor' | 'fieldWordLimitFontSize' | 'fieldWordLimitLineHeight' | 'fieldWordNumFullColor';
|
|
15
15
|
type ImageThemeVars = 'imagePlaceholderTextColor' | 'imagePlaceholderFontSize' | 'imagePlaceholderBackgroundColor' | 'imageLoadingIconSize' | 'imageLoadingIconColor' | 'imageErrorSize';
|
|
16
16
|
type LoadingThemeVars = 'loadingTextColor' | 'loadingTextFontSize' | 'loadingTextLineHeight' | 'loadingSpinnerColor' | 'loadingSpinnerSize' | 'loadingSpinnerAnimationDuration';
|
|
17
|
-
type NavBarThemeVars = 'navBarHomeMaxWidth' | 'navBarTitleMaxWidth' | 'navBarHeight' | 'navBarRoundBorderRadius' | 'navBarRoundMinHeight' | 'navBarBackgroundColor' | 'navBarArrowColor' | 'navBarIconColor' | 'navBarTextColor' | 'navBarTextFontSize' | 'navBarTitleFontSize' | 'navBarTitleFontWeight' | 'navBarTitleTextColor' | 'navBarRightTextColor' | 'navBarHomeFontSize' | 'navBarHomeFontWeight' | 'navBarHomeTextColor' | 'navBarTextFontWeight' | 'navBarSideWidth' | 'navBarTextPadding' | 'navBarIconPadding' | 'navBarTitleMargin' | 'navBarLeftTitlePadding'
|
|
17
|
+
type NavBarThemeVars = 'navBarHomeMaxWidth' | 'navBarTitleMaxWidth' | 'navBarHeight' | 'navBarRoundBorderRadius' | 'navBarRoundMinHeight' | 'navBarBackgroundColor' | 'navBarArrowColor' | 'navBarIconColor' | 'navBarTextColor' | 'navBarTextFontSize' | 'navBarTitleFontSize' | 'navBarTitleFontWeight' | 'navBarTitleTextColor' | 'navBarRightTextColor' | 'navBarHomeFontSize' | 'navBarHomeFontWeight' | 'navBarHomeTextColor' | 'navBarTextFontWeight' | 'navBarSideWidth' | 'navBarTextPadding' | 'navBarIconPadding' | 'navBarTitleMargin' | 'navBarLeftTitlePadding';
|
|
18
18
|
type NoticeBarThemeVars = 'noticeBarHeight' | 'noticeBarPadding' | 'noticeBarWrapablePadding' | 'noticeBarFontSize' | 'noticeBarTextColor' | 'noticeBarLineHeight' | 'noticeBarBackgroundColor' | 'noticeBarBackgroundWarningColor' | 'noticeBarBackgroundErrorColor' | 'noticeBarRightIconColor' | 'noticeBarInfoColor' | 'noticeBarWarningColor' | 'noticeBarErrorColor' | 'noticeBarIconSize' | 'noticeBarBtnColor' | 'noticeBarLeftIconMarginRight' | 'noticeBarRightIconMarginLeft';
|
|
19
19
|
type NotifyThemeVars = 'notifyPadding' | 'notifyFontSize' | 'notifyLineHeight' | 'notifyPrimaryBackgroundColor' | 'notifySuccessBackgroundColor' | 'notifyDangerBackgroundColor' | 'notifyWarningBackgroundColor';
|
|
20
20
|
type PickerThemeVars = 'pickerBackgroundColor' | 'pickerPadding' | 'pickerToolbarHeight' | 'pickerTitleFontSize' | 'pickerActionPadding' | 'pickerActionFontSize' | 'pickerConfirmActionColor' | 'pickerCancelActionColor' | 'pickerOptionFontSize' | 'pickerOptionUnitFontSize' | 'pickerOptionTextColor' | 'pickerOptionUnitTextColor' | 'pickerOptionUnitMidSize' | 'pickerLoadingIconColor' | 'pickerOptionSelectedFontWeightBold' | 'pickerLoadingMaskColor' | 'pickerOptionDisabledOpacity' | 'pickerOptionSelectedTextColor';
|
|
@@ -27,6 +27,7 @@ type SearchThemeVars = 'searchBackgroundColor' | 'searchBodyBackgroundColor' | '
|
|
|
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
29
|
type StepperThemeVars = 'stepperContainerBackgroundColor' | 'stepperBackgroundBorderRadius' | 'stepperPadding' | 'stepperActiveColor' | 'stepperBackgroundColor' | 'stepperButtonIconColor' | 'stepperButtonBorder' | 'stepperButtonDisabledColor' | 'stepperButtonDisabledIconColor' | 'stepperButtonRoundThemeColor' | 'stepperBtnWidth' | 'stepperBtnHeight' | 'stepperInputWidth' | 'stepperInputHeight' | 'stepperInputFontSize' | 'stepperInputLineHeight' | 'stepperInputTextColor' | 'stepperInputDisabledTextColor' | 'stepperBorderRadius' | 'stepperButtonIconFontSize';
|
|
30
|
+
type StepsThemeVars = 'stepsBackgroundColor';
|
|
30
31
|
type TabbarThemeVars = 'tabbarHeight' | 'tabbarBackgroundColor' | 'tabbarBorderColor' | 'tabbarItemFontSize' | 'tabbarItemDisabledOpacity' | 'tabbarItemTextColor' | 'tabbarItemActiveColor' | 'tabbarItemLineHeight' | 'tabbarItemIconSize' | 'tabbarItemMarginBottom' | 'tabbarItemInfoMarginTop';
|
|
31
32
|
type TabThemeVars = 'tabPanelBackgroundColor' | 'tabPanelTextColor' | 'tabTextColor' | 'tabActiveTextColor' | 'tabDisabledTextColor' | 'tabFontSize' | 'tabsCardBackgroundColor' | 'tabsBackgroundColor' | 'tabsDefaultColor' | 'tabsLineHeight' | 'tabsSubLineHeight' | 'tabsBottomBarHeight' | 'tabsBottomBarColor' | 'tabsCardTextColor' | 'tabsCardTextActiveColor' | 'tabsCardHeight' | 'tabsCardBorderRadius' | 'tabsCardActiveBorderRadius' | 'tabsCardActiveBackgroundColor' | 'tabsCardActiveTop' | 'tabsCardActiveLeft' | 'tabsCardPadding';
|
|
32
33
|
type TagThemeVars = 'tagPadding' | 'tagTextColor' | 'tagBorderRadius' | 'tagLineHeight' | 'tagMediumLineHeight' | 'tagLargeLineHeight' | 'tagFontSize' | 'tagMediumFontSize' | 'tagLargeFontSize' | 'tagRoundBorderRadius' | 'tagDangerColor' | 'tagPrimaryColor' | 'tagSuccessColor' | 'tagWarningColor' | 'tagDefaultColor' | 'tagPlainBackgroundColor';
|
|
@@ -45,5 +46,5 @@ type PopoverThemeVars = 'popoverBackgroundColor' | 'popoverBoxShadow' | 'popover
|
|
|
45
46
|
/**
|
|
46
47
|
* 主题变量
|
|
47
48
|
*/
|
|
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>;
|
|
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 | StepsThemeVars | TabbarThemeVars | TabThemeVars | TagThemeVars | ToastThemeVars | GridThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars | CascaderThemeVars | CustomKeyboardThemeVars | PopoverThemeVars, string>;
|
|
49
50
|
export {};
|
package/es/@types/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export { SmartSidebarItem, SmartSidebarItemEvents, SmartSidebarItemExternalClass
|
|
|
45
45
|
export { SmartSkeleton, SmartSkeletonProps } from './skeleton';
|
|
46
46
|
export { SmartSliderProps, SmartSliderChangeEvent, SmartSliderDragEventDetail, SmartSliderEvents, SmartSliderExternalClassName, SmartSlider, } from './slider';
|
|
47
47
|
export { SmartStepper, SmartStepperEvents, SmartStepperExternalClassName, SmartStepperProps, SmartStepperChangeEvent, SmartStepperOverLimitEvent, SmartStepperBlurEventDetail, SmartStepperFocusEventDetail, } from './stepper';
|
|
48
|
+
export { SmartSteps, SmartStepsEvents, SmartStepsExternalClassName, SmartStepsProps, SmartStepsOption, SmartStepsClickStepEvent, } from './steps';
|
|
48
49
|
export { SmartSticky, SmartStickyEvents, SmartStickyProps, SmartStickyScrollEventDetail, } from './sticky';
|
|
49
50
|
export { SmartSwipeCell, SmartSwipeCellEvents, SmartSwipeCellProps, SmartSwipeCellBaseEventDetail, SmartSwipeCellPosition, SmartSwipeCellClickEvent, SmartSwipeCellClickPosition, SmartSwipeCellCloseEventDetail, } from './swipe-cell';
|
|
50
51
|
export { SmartSwitch, SmartSwitchEvents, SmartSwitchExternalClassName, SmartSwitchProps, SmartSwitchChangeEvent, } from './switch';
|
|
@@ -120,11 +120,6 @@ export interface SmartNavBarProps {
|
|
|
120
120
|
* @version v2.7.0
|
|
121
121
|
*/
|
|
122
122
|
background?: string;
|
|
123
|
-
/**
|
|
124
|
-
* @description 侧边栏宽度
|
|
125
|
-
* @version v2.7.3
|
|
126
|
-
*/
|
|
127
|
-
sideWidth?: string | number | 'min' | 'max' | 'mid';
|
|
128
123
|
}
|
|
129
124
|
export interface SmartNavBarEvents {
|
|
130
125
|
/**
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/// <reference types="miniprogram-api-typings" />
|
|
2
|
+
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
/**
|
|
4
|
+
* 步骤配置项
|
|
5
|
+
*/
|
|
6
|
+
export interface SmartStepsOption {
|
|
7
|
+
/**
|
|
8
|
+
* 当前步骤名称
|
|
9
|
+
*/
|
|
10
|
+
text?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 当前步骤描述信息
|
|
13
|
+
*/
|
|
14
|
+
desc?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 当前步骤激活状态底部图标
|
|
17
|
+
*/
|
|
18
|
+
inactiveIcon?: string;
|
|
19
|
+
/**
|
|
20
|
+
* 当前步骤未激活状态底部图标
|
|
21
|
+
*/
|
|
22
|
+
activeIcon?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface SmartStepsProps {
|
|
25
|
+
/**
|
|
26
|
+
* 当前步骤
|
|
27
|
+
*
|
|
28
|
+
* @default 0
|
|
29
|
+
*/
|
|
30
|
+
active?: number;
|
|
31
|
+
/**
|
|
32
|
+
* 当前步骤配置
|
|
33
|
+
*/
|
|
34
|
+
steps?: SmartStepsOption[];
|
|
35
|
+
/**
|
|
36
|
+
* 显示方向
|
|
37
|
+
*/
|
|
38
|
+
direction?: 'horizontal' | 'vertical';
|
|
39
|
+
/**
|
|
40
|
+
* 激活状态颜色
|
|
41
|
+
*
|
|
42
|
+
* @default '#07c160'
|
|
43
|
+
*/
|
|
44
|
+
activeColor?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 未激活状态颜色
|
|
47
|
+
*
|
|
48
|
+
* @default '#969799'
|
|
49
|
+
*/
|
|
50
|
+
inactiveColor?: string;
|
|
51
|
+
/**
|
|
52
|
+
* 激活状态底部图标,可选值见 `Icon` 组件
|
|
53
|
+
*
|
|
54
|
+
* @default 'checked'
|
|
55
|
+
*/
|
|
56
|
+
activeIcon?: string;
|
|
57
|
+
/**
|
|
58
|
+
* 未激活状态底部图标,可选值见 `Icon` 组件
|
|
59
|
+
*/
|
|
60
|
+
inactiveIcon?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated
|
|
64
|
+
*/
|
|
65
|
+
export interface SmartStepsClickStepEvent extends WechatMiniprogram.BaseEvent {
|
|
66
|
+
/**
|
|
67
|
+
* 当前选中步骤索引
|
|
68
|
+
*/
|
|
69
|
+
detail: number;
|
|
70
|
+
}
|
|
71
|
+
export interface SmartStepsEvents {
|
|
72
|
+
/**
|
|
73
|
+
* 点击步骤时触发的事件
|
|
74
|
+
*/
|
|
75
|
+
onClickStep?: SmartEventHandler<number>;
|
|
76
|
+
}
|
|
77
|
+
export interface SmartStepsExternalClassName extends SmartBaseExternalClassName {
|
|
78
|
+
/**
|
|
79
|
+
* 描述信息样式类
|
|
80
|
+
*/
|
|
81
|
+
descClass?: string;
|
|
82
|
+
}
|
|
83
|
+
export type SmartSteps = SmartComponent<SmartStepsProps, SmartStepsEvents, SmartStepsExternalClassName>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export { SmartSidebarItem, SmartSidebarItemEvents, SmartSidebarItemExternalClass
|
|
|
44
44
|
export { SmartSkeleton, SmartSkeletonProps, Skeleton } from './skeleton';
|
|
45
45
|
export { Slider } from './slider';
|
|
46
46
|
export { SmartStepper, SmartStepperEvents, SmartStepperExternalClassName, SmartStepperProps, SmartStepperChangeEvent, SmartStepperOverLimitEvent, SmartStepperBlurEventDetail, SmartStepperFocusEventDetail, Stepper, } from './stepper';
|
|
47
|
+
export { SmartSteps, SmartStepsEvents, SmartStepsExternalClassName, SmartStepsProps, SmartStepsOption, SmartStepsClickStepEvent, Steps, } from './steps';
|
|
47
48
|
export { SmartSticky, SmartStickyEvents, SmartStickyProps, SmartStickyScrollEventDetail, Sticky, } from './sticky';
|
|
48
49
|
export { SmartSwipeCell, SmartSwipeCellEvents, SmartSwipeCellProps, SmartSwipeCellBaseEventDetail, SmartSwipeCellPosition, SmartSwipeCellClickEvent, SmartSwipeCellClickPosition, SmartSwipeCellCloseEventDetail, SwipeCell, } from './swipe-cell';
|
|
49
50
|
export { SmartSwitch, SmartSwitchEvents, SmartSwitchExternalClassName, SmartSwitchProps, SmartSwitchChangeEvent, Switch, } from './switch';
|
package/es/index.js
CHANGED
|
@@ -43,6 +43,7 @@ export { SidebarItem, } from './sidebar-item';
|
|
|
43
43
|
export { Skeleton } from './skeleton';
|
|
44
44
|
export { Slider } from './slider';
|
|
45
45
|
export { Stepper, } from './stepper';
|
|
46
|
+
export { Steps, } from './steps';
|
|
46
47
|
export { Sticky, } from './sticky';
|
|
47
48
|
export { SwipeCell, } from './swipe-cell';
|
|
48
49
|
export { Switch, } from './switch';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { SmartSteps, SmartStepsEvents, SmartStepsProps, SmartStepsExternalClassName, SmartStepsOption, SmartStepsClickStepEvent } from '../@types';
|
|
2
|
+
export { SmartSteps, SmartStepsEvents, SmartStepsExternalClassName, SmartStepsProps, SmartStepsOption, SmartStepsClickStepEvent, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SmartSteps } from './PropTypes';
|
|
3
|
+
declare const Steps: import("react").FC<SmartSteps>;
|
|
4
|
+
export { Steps };
|
|
5
|
+
export { SmartSteps, SmartStepsEvents, SmartStepsExternalClassName, SmartStepsProps, SmartStepsOption, SmartStepsClickStepEvent, } from './PropTypes';
|
|
@@ -131,7 +131,9 @@ export interface SmartBottomSheetEvents extends SmartTransitionEvents {
|
|
|
131
131
|
* 拖拽结束时触发,返回当前面板位置
|
|
132
132
|
* @version 2.7.2
|
|
133
133
|
*/
|
|
134
|
-
onDragPosition?:
|
|
134
|
+
onDragPosition?: (e: {
|
|
135
|
+
detail: 'max' | 'mid' | 'min';
|
|
136
|
+
}) => void;
|
|
135
137
|
}
|
|
136
138
|
interface SmartBottomSheetSlot {
|
|
137
139
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type CommonThemeVars = 'M1' | 'M2' | 'M3' | 'M4' | 'M5' | 'B1' | 'B2' | 'B3' | 'B4' | 'B5' | 'B6' | 'B1N1' | 'B1N2' | 'B1N3' | 'B1N4' | 'B1N5' | 'B1N6' | 'B1N7' | 'B1N8' | 'B1N9' | 'B2N1' | 'B2N2' | 'B2N3' | 'B2N4' | 'B2N5' | 'B2N6' | 'B2N7' | 'B2N8' | 'B2N9' | 'B4N1' | 'B4N2' | 'B4N3' | 'B4N4' | 'B4N5' | 'B4N6' | 'B4N7' | 'B4N8' | 'B4N9' | 'B6N1' | 'B6N2' | 'B6N3' | 'B6N4' | 'B6N5' | 'B6N6' | 'B6N7' | 'B6N8' | 'B6N9' | 'borderImage' | 'black' | 'white' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'gray6' | 'gray7' | 'gray8' | 'red' | 'blue' | 'orange' | 'orangeDark' | 'orangeLight' | 'green' | 'gradientRed' | 'gradientOrange' | 'textColor' | 'activeColor' | 'activeOpacity' | 'disabledOpacity' | 'backgroundColor' | 'backgroundColorLight' | 'textLinkColor' | 'paddingBase' | 'paddingMb' | 'paddingXs' | 'paddingSm' | 'paddingMd' | 'paddingLg' | 'paddingXl' | 'fontSizeXs' | 'fontSizeSm' | 'fontSizeMd' | 'fontSizeLg' | 'fontTitleLg' | 'fontWeightBold' | 'fontWeightBolder' | 'lineHeightXs' | 'lineHeightSm' | 'lineHeightMd' | 'lineHeightLg' | 'baseFontFamily' | 'priceIntegerFontFamily' | 'animationDurationBase' | 'animationDurationFast' | 'borderColor' | 'borderWidthBase' | 'borderRadiusSm' | 'borderRadiusMd' | 'borderRadiusLg' | 'borderRadiusMax' | 'goodsActionBackgroundColor' | 'goodsActionHeight' | 'goodsActionIconWidth' | 'goodsActionIconHeight' | 'goodsActionIconColor' | 'goodsActionIconSize' | 'goodsActionIconFontSize' | 'goodsActionIconTextColor' | 'goodsActionButtonHeight' | 'goodsActionButtonLineHeight' | 'goodsActionButtonBorderRadius' | 'goodsActionButtonWarningColor' | 'goodsActionButtonDangerColor' | 'goodsActionButtonPlainColor' | 'infoSize' | 'infoColor' | 'infoPadding' | 'infoFontSize' | 'infoFontWeight' | 'infoBorderWidth' | 'infoBackgroundColor' | 'infoDotColor' | 'infoDotSize' | 'infoFontFamily' | 'stepTextColor' | 'stepProcessTextColor' | 'stepFontSize' | 'stepLineColor' | 'stepFinishLineColor' | 'stepFinishTextColor' | 'stepIconSize' | 'stepCircleSize' | 'stepCircleColor' | 'stepHorizontalTitleFontSize' | '
|
|
1
|
+
type CommonThemeVars = 'M1' | 'M2' | 'M3' | 'M4' | 'M5' | 'B1' | 'B2' | 'B3' | 'B4' | 'B5' | 'B6' | 'B1N1' | 'B1N2' | 'B1N3' | 'B1N4' | 'B1N5' | 'B1N6' | 'B1N7' | 'B1N8' | 'B1N9' | 'B2N1' | 'B2N2' | 'B2N3' | 'B2N4' | 'B2N5' | 'B2N6' | 'B2N7' | 'B2N8' | 'B2N9' | 'B4N1' | 'B4N2' | 'B4N3' | 'B4N4' | 'B4N5' | 'B4N6' | 'B4N7' | 'B4N8' | 'B4N9' | 'B6N1' | 'B6N2' | 'B6N3' | 'B6N4' | 'B6N5' | 'B6N6' | 'B6N7' | 'B6N8' | 'B6N9' | 'borderImage' | 'black' | 'white' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'gray6' | 'gray7' | 'gray8' | 'red' | 'blue' | 'orange' | 'orangeDark' | 'orangeLight' | 'green' | 'gradientRed' | 'gradientOrange' | 'textColor' | 'activeColor' | 'activeOpacity' | 'disabledOpacity' | 'backgroundColor' | 'backgroundColorLight' | 'textLinkColor' | 'paddingBase' | 'paddingMb' | 'paddingXs' | 'paddingSm' | 'paddingMd' | 'paddingLg' | 'paddingXl' | 'fontSizeXs' | 'fontSizeSm' | 'fontSizeMd' | 'fontSizeLg' | 'fontTitleLg' | 'fontWeightBold' | 'fontWeightBolder' | 'lineHeightXs' | 'lineHeightSm' | 'lineHeightMd' | 'lineHeightLg' | 'baseFontFamily' | 'priceIntegerFontFamily' | 'animationDurationBase' | 'animationDurationFast' | 'borderColor' | 'borderWidthBase' | 'borderRadiusSm' | 'borderRadiusMd' | 'borderRadiusLg' | 'borderRadiusMax' | 'goodsActionBackgroundColor' | 'goodsActionHeight' | 'goodsActionIconWidth' | 'goodsActionIconHeight' | 'goodsActionIconColor' | 'goodsActionIconSize' | 'goodsActionIconFontSize' | 'goodsActionIconTextColor' | 'goodsActionButtonHeight' | 'goodsActionButtonLineHeight' | 'goodsActionButtonBorderRadius' | 'goodsActionButtonWarningColor' | 'goodsActionButtonDangerColor' | 'goodsActionButtonPlainColor' | 'infoSize' | 'infoColor' | 'infoPadding' | 'infoFontSize' | 'infoFontWeight' | 'infoBorderWidth' | 'infoBackgroundColor' | 'infoDotColor' | 'infoDotSize' | 'infoFontFamily' | 'stepTextColor' | 'stepProcessTextColor' | 'stepFontSize' | 'stepLineColor' | 'stepFinishLineColor' | 'stepFinishTextColor' | 'stepIconSize' | 'stepCircleSize' | 'stepCircleColor' | 'stepHorizontalTitleFontSize' | 'hairlineTopWidth' | 'hairlineLeftWidth' | 'hairlineRightWidth' | 'hairlineBottomWidth' | 'hairlineSurroundWidth' | 'hairlineTopBottomWidth' | 'hairlineColor' | 'hairlineBorderImageColor';
|
|
2
2
|
type OverlayThemeVars = 'overlay' | 'overlayBackgroundColor';
|
|
3
3
|
type DialogThemeVars = 'dialogBg' | 'dialogWidth' | 'dialogSmallScreenWidth' | 'dialogFontSize' | 'dialogBorderRadius' | 'dialogBackgroundColor' | 'dialogHeaderFontColor' | 'dialogHeaderFontWeight' | 'dialogHeaderLineHeight' | 'dialogHeaderPaddingTop' | 'dialogHeaderPadding' | 'dialogHeaderIsolatedPadding' | 'dialogMessagePadding' | 'dialogMessageFontSize' | 'dialogMessageLineHeight' | 'dialogConfirmColor' | 'dialogCancelColor' | 'dialogConfirmFontWeight' | 'dialogCancelFontWeight' | 'dialogMessageMaxHeight' | 'dialogMessageTextColor' | 'dialogHasTitleMessageFontSize' | 'dialogHasTitleMessageTextColor' | 'dialogHasTitleMessagePaddingTop' | 'dialogHeaderIconSize' | 'dialogInputHeight' | 'dialogInputBackgroundColor' | 'dialogInputMargin' | 'dialogInputPadding' | 'dialogInputBorderRadius' | 'dialogInputFontSize' | 'dialogRoundButtonBorderRadius';
|
|
4
4
|
type IconThemeVars = 'iconColor';
|
|
@@ -14,7 +14,7 @@ type CountDownThemeVars = 'countDownTextColor' | 'countDownFontSize' | 'countDow
|
|
|
14
14
|
type FieldThemeVars = 'fieldLabelColor' | 'fieldInputTextColor' | 'fieldInputErrorTextColor' | 'fieldPlaceholderTextColor' | 'fieldIconSize' | 'fieldClearIconSize' | 'fieldClearIconColor' | 'fieldIconContainerColor' | 'fieldErrorMessageColor' | 'fieldErrorMessageTextFontSize' | 'fieldDisabledOpacity' | 'fieldInputTextFontSize' | 'fieldLabelFontSize' | 'fieldLabelLineHeight' | 'fieldSubLabelFontSize' | 'fieldSubLabelLineHeight' | 'fieldErrorMessageTextLineHeight' | 'fieldSubtitleTextColor' | 'fieldLeftIconMarginRight' | 'fieldLeftBodyPaddingRight' | 'fieldCardBorderRadius' | 'fieldCardBackground' | 'fieldCardWidth' | 'fieldCardHeight' | 'fieldCardPadding' | 'fieldTextareaBackground' | 'fieldTextareaBorderRadius' | 'fieldTextareaPadding' | 'fieldTextareaLimitPaddingBottom' | 'fieldTextareaMinHeight' | 'fieldWordLimitColor' | 'fieldWordLimitFontSize' | 'fieldWordLimitLineHeight' | 'fieldWordNumFullColor';
|
|
15
15
|
type ImageThemeVars = 'imagePlaceholderTextColor' | 'imagePlaceholderFontSize' | 'imagePlaceholderBackgroundColor' | 'imageLoadingIconSize' | 'imageLoadingIconColor' | 'imageErrorSize';
|
|
16
16
|
type LoadingThemeVars = 'loadingTextColor' | 'loadingTextFontSize' | 'loadingTextLineHeight' | 'loadingSpinnerColor' | 'loadingSpinnerSize' | 'loadingSpinnerAnimationDuration';
|
|
17
|
-
type NavBarThemeVars = 'navBarHomeMaxWidth' | 'navBarTitleMaxWidth' | 'navBarHeight' | 'navBarRoundBorderRadius' | 'navBarRoundMinHeight' | 'navBarBackgroundColor' | 'navBarArrowColor' | 'navBarIconColor' | 'navBarTextColor' | 'navBarTextFontSize' | 'navBarTitleFontSize' | 'navBarTitleFontWeight' | 'navBarTitleTextColor' | 'navBarRightTextColor' | 'navBarHomeFontSize' | 'navBarHomeFontWeight' | 'navBarHomeTextColor' | 'navBarTextFontWeight' | 'navBarSideWidth' | 'navBarTextPadding' | 'navBarIconPadding' | 'navBarTitleMargin' | 'navBarLeftTitlePadding'
|
|
17
|
+
type NavBarThemeVars = 'navBarHomeMaxWidth' | 'navBarTitleMaxWidth' | 'navBarHeight' | 'navBarRoundBorderRadius' | 'navBarRoundMinHeight' | 'navBarBackgroundColor' | 'navBarArrowColor' | 'navBarIconColor' | 'navBarTextColor' | 'navBarTextFontSize' | 'navBarTitleFontSize' | 'navBarTitleFontWeight' | 'navBarTitleTextColor' | 'navBarRightTextColor' | 'navBarHomeFontSize' | 'navBarHomeFontWeight' | 'navBarHomeTextColor' | 'navBarTextFontWeight' | 'navBarSideWidth' | 'navBarTextPadding' | 'navBarIconPadding' | 'navBarTitleMargin' | 'navBarLeftTitlePadding';
|
|
18
18
|
type NoticeBarThemeVars = 'noticeBarHeight' | 'noticeBarPadding' | 'noticeBarWrapablePadding' | 'noticeBarFontSize' | 'noticeBarTextColor' | 'noticeBarLineHeight' | 'noticeBarBackgroundColor' | 'noticeBarBackgroundWarningColor' | 'noticeBarBackgroundErrorColor' | 'noticeBarRightIconColor' | 'noticeBarInfoColor' | 'noticeBarWarningColor' | 'noticeBarErrorColor' | 'noticeBarIconSize' | 'noticeBarBtnColor' | 'noticeBarLeftIconMarginRight' | 'noticeBarRightIconMarginLeft';
|
|
19
19
|
type NotifyThemeVars = 'notifyPadding' | 'notifyFontSize' | 'notifyLineHeight' | 'notifyPrimaryBackgroundColor' | 'notifySuccessBackgroundColor' | 'notifyDangerBackgroundColor' | 'notifyWarningBackgroundColor';
|
|
20
20
|
type PickerThemeVars = 'pickerBackgroundColor' | 'pickerPadding' | 'pickerToolbarHeight' | 'pickerTitleFontSize' | 'pickerActionPadding' | 'pickerActionFontSize' | 'pickerConfirmActionColor' | 'pickerCancelActionColor' | 'pickerOptionFontSize' | 'pickerOptionUnitFontSize' | 'pickerOptionTextColor' | 'pickerOptionUnitTextColor' | 'pickerOptionUnitMidSize' | 'pickerLoadingIconColor' | 'pickerOptionSelectedFontWeightBold' | 'pickerLoadingMaskColor' | 'pickerOptionDisabledOpacity' | 'pickerOptionSelectedTextColor';
|
|
@@ -27,6 +27,7 @@ type SearchThemeVars = 'searchBackgroundColor' | 'searchBodyBackgroundColor' | '
|
|
|
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
29
|
type StepperThemeVars = 'stepperContainerBackgroundColor' | 'stepperBackgroundBorderRadius' | 'stepperPadding' | 'stepperActiveColor' | 'stepperBackgroundColor' | 'stepperButtonIconColor' | 'stepperButtonBorder' | 'stepperButtonDisabledColor' | 'stepperButtonDisabledIconColor' | 'stepperButtonRoundThemeColor' | 'stepperBtnWidth' | 'stepperBtnHeight' | 'stepperInputWidth' | 'stepperInputHeight' | 'stepperInputFontSize' | 'stepperInputLineHeight' | 'stepperInputTextColor' | 'stepperInputDisabledTextColor' | 'stepperBorderRadius' | 'stepperButtonIconFontSize';
|
|
30
|
+
type StepsThemeVars = 'stepsBackgroundColor';
|
|
30
31
|
type TabbarThemeVars = 'tabbarHeight' | 'tabbarBackgroundColor' | 'tabbarBorderColor' | 'tabbarItemFontSize' | 'tabbarItemDisabledOpacity' | 'tabbarItemTextColor' | 'tabbarItemActiveColor' | 'tabbarItemLineHeight' | 'tabbarItemIconSize' | 'tabbarItemMarginBottom' | 'tabbarItemInfoMarginTop';
|
|
31
32
|
type TabThemeVars = 'tabPanelBackgroundColor' | 'tabPanelTextColor' | 'tabTextColor' | 'tabActiveTextColor' | 'tabDisabledTextColor' | 'tabFontSize' | 'tabsCardBackgroundColor' | 'tabsBackgroundColor' | 'tabsDefaultColor' | 'tabsLineHeight' | 'tabsSubLineHeight' | 'tabsBottomBarHeight' | 'tabsBottomBarColor' | 'tabsCardTextColor' | 'tabsCardTextActiveColor' | 'tabsCardHeight' | 'tabsCardBorderRadius' | 'tabsCardActiveBorderRadius' | 'tabsCardActiveBackgroundColor' | 'tabsCardActiveTop' | 'tabsCardActiveLeft' | 'tabsCardPadding';
|
|
32
33
|
type TagThemeVars = 'tagPadding' | 'tagTextColor' | 'tagBorderRadius' | 'tagLineHeight' | 'tagMediumLineHeight' | 'tagLargeLineHeight' | 'tagFontSize' | 'tagMediumFontSize' | 'tagLargeFontSize' | 'tagRoundBorderRadius' | 'tagDangerColor' | 'tagPrimaryColor' | 'tagSuccessColor' | 'tagWarningColor' | 'tagDefaultColor' | 'tagPlainBackgroundColor';
|
|
@@ -45,5 +46,5 @@ type PopoverThemeVars = 'popoverBackgroundColor' | 'popoverBoxShadow' | 'popover
|
|
|
45
46
|
/**
|
|
46
47
|
* 主题变量
|
|
47
48
|
*/
|
|
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>;
|
|
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 | StepsThemeVars | TabbarThemeVars | TabThemeVars | TagThemeVars | ToastThemeVars | GridThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars | CascaderThemeVars | CustomKeyboardThemeVars | PopoverThemeVars, string>;
|
|
49
50
|
export {};
|
package/lib/@types/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export { SmartSidebarItem, SmartSidebarItemEvents, SmartSidebarItemExternalClass
|
|
|
45
45
|
export { SmartSkeleton, SmartSkeletonProps } from './skeleton';
|
|
46
46
|
export { SmartSliderProps, SmartSliderChangeEvent, SmartSliderDragEventDetail, SmartSliderEvents, SmartSliderExternalClassName, SmartSlider, } from './slider';
|
|
47
47
|
export { SmartStepper, SmartStepperEvents, SmartStepperExternalClassName, SmartStepperProps, SmartStepperChangeEvent, SmartStepperOverLimitEvent, SmartStepperBlurEventDetail, SmartStepperFocusEventDetail, } from './stepper';
|
|
48
|
+
export { SmartSteps, SmartStepsEvents, SmartStepsExternalClassName, SmartStepsProps, SmartStepsOption, SmartStepsClickStepEvent, } from './steps';
|
|
48
49
|
export { SmartSticky, SmartStickyEvents, SmartStickyProps, SmartStickyScrollEventDetail, } from './sticky';
|
|
49
50
|
export { SmartSwipeCell, SmartSwipeCellEvents, SmartSwipeCellProps, SmartSwipeCellBaseEventDetail, SmartSwipeCellPosition, SmartSwipeCellClickEvent, SmartSwipeCellClickPosition, SmartSwipeCellCloseEventDetail, } from './swipe-cell';
|
|
50
51
|
export { SmartSwitch, SmartSwitchEvents, SmartSwitchExternalClassName, SmartSwitchProps, SmartSwitchChangeEvent, } from './switch';
|
|
@@ -120,11 +120,6 @@ export interface SmartNavBarProps {
|
|
|
120
120
|
* @version v2.7.0
|
|
121
121
|
*/
|
|
122
122
|
background?: string;
|
|
123
|
-
/**
|
|
124
|
-
* @description 侧边栏宽度
|
|
125
|
-
* @version v2.7.3
|
|
126
|
-
*/
|
|
127
|
-
sideWidth?: string | number | 'min' | 'max' | 'mid';
|
|
128
123
|
}
|
|
129
124
|
export interface SmartNavBarEvents {
|
|
130
125
|
/**
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/// <reference types="miniprogram-api-typings" />
|
|
2
|
+
import { SmartBaseExternalClassName, SmartComponent, SmartEventHandler } from '../base';
|
|
3
|
+
/**
|
|
4
|
+
* 步骤配置项
|
|
5
|
+
*/
|
|
6
|
+
export interface SmartStepsOption {
|
|
7
|
+
/**
|
|
8
|
+
* 当前步骤名称
|
|
9
|
+
*/
|
|
10
|
+
text?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 当前步骤描述信息
|
|
13
|
+
*/
|
|
14
|
+
desc?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 当前步骤激活状态底部图标
|
|
17
|
+
*/
|
|
18
|
+
inactiveIcon?: string;
|
|
19
|
+
/**
|
|
20
|
+
* 当前步骤未激活状态底部图标
|
|
21
|
+
*/
|
|
22
|
+
activeIcon?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface SmartStepsProps {
|
|
25
|
+
/**
|
|
26
|
+
* 当前步骤
|
|
27
|
+
*
|
|
28
|
+
* @default 0
|
|
29
|
+
*/
|
|
30
|
+
active?: number;
|
|
31
|
+
/**
|
|
32
|
+
* 当前步骤配置
|
|
33
|
+
*/
|
|
34
|
+
steps?: SmartStepsOption[];
|
|
35
|
+
/**
|
|
36
|
+
* 显示方向
|
|
37
|
+
*/
|
|
38
|
+
direction?: 'horizontal' | 'vertical';
|
|
39
|
+
/**
|
|
40
|
+
* 激活状态颜色
|
|
41
|
+
*
|
|
42
|
+
* @default '#07c160'
|
|
43
|
+
*/
|
|
44
|
+
activeColor?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 未激活状态颜色
|
|
47
|
+
*
|
|
48
|
+
* @default '#969799'
|
|
49
|
+
*/
|
|
50
|
+
inactiveColor?: string;
|
|
51
|
+
/**
|
|
52
|
+
* 激活状态底部图标,可选值见 `Icon` 组件
|
|
53
|
+
*
|
|
54
|
+
* @default 'checked'
|
|
55
|
+
*/
|
|
56
|
+
activeIcon?: string;
|
|
57
|
+
/**
|
|
58
|
+
* 未激活状态底部图标,可选值见 `Icon` 组件
|
|
59
|
+
*/
|
|
60
|
+
inactiveIcon?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated
|
|
64
|
+
*/
|
|
65
|
+
export interface SmartStepsClickStepEvent extends WechatMiniprogram.BaseEvent {
|
|
66
|
+
/**
|
|
67
|
+
* 当前选中步骤索引
|
|
68
|
+
*/
|
|
69
|
+
detail: number;
|
|
70
|
+
}
|
|
71
|
+
export interface SmartStepsEvents {
|
|
72
|
+
/**
|
|
73
|
+
* 点击步骤时触发的事件
|
|
74
|
+
*/
|
|
75
|
+
onClickStep?: SmartEventHandler<number>;
|
|
76
|
+
}
|
|
77
|
+
export interface SmartStepsExternalClassName extends SmartBaseExternalClassName {
|
|
78
|
+
/**
|
|
79
|
+
* 描述信息样式类
|
|
80
|
+
*/
|
|
81
|
+
descClass?: string;
|
|
82
|
+
}
|
|
83
|
+
export type SmartSteps = SmartComponent<SmartStepsProps, SmartStepsEvents, SmartStepsExternalClassName>;
|
package/lib/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export { SmartSidebarItem, SmartSidebarItemEvents, SmartSidebarItemExternalClass
|
|
|
44
44
|
export { SmartSkeleton, SmartSkeletonProps, Skeleton } from './skeleton';
|
|
45
45
|
export { Slider } from './slider';
|
|
46
46
|
export { SmartStepper, SmartStepperEvents, SmartStepperExternalClassName, SmartStepperProps, SmartStepperChangeEvent, SmartStepperOverLimitEvent, SmartStepperBlurEventDetail, SmartStepperFocusEventDetail, Stepper, } from './stepper';
|
|
47
|
+
export { SmartSteps, SmartStepsEvents, SmartStepsExternalClassName, SmartStepsProps, SmartStepsOption, SmartStepsClickStepEvent, Steps, } from './steps';
|
|
47
48
|
export { SmartSticky, SmartStickyEvents, SmartStickyProps, SmartStickyScrollEventDetail, Sticky, } from './sticky';
|
|
48
49
|
export { SmartSwipeCell, SmartSwipeCellEvents, SmartSwipeCellProps, SmartSwipeCellBaseEventDetail, SmartSwipeCellPosition, SmartSwipeCellClickEvent, SmartSwipeCellClickPosition, SmartSwipeCellCloseEventDetail, SwipeCell, } from './swipe-cell';
|
|
49
50
|
export { SmartSwitch, SmartSwitchEvents, SmartSwitchExternalClassName, SmartSwitchProps, SmartSwitchChangeEvent, Switch, } from './switch';
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.Popover = exports.CustomKeyboard = exports.Battery = exports.Cascader = exports.TreeSelect = exports.Transition = exports.ToastInstance = exports.Toast = exports.Tag = exports.Tabs = exports.TabbarItem = exports.Tabbar = exports.Tab = exports.Switch = void 0;
|
|
3
|
+
exports.Sticky = exports.Steps = exports.Stepper = exports.Slider = exports.Skeleton = exports.SidebarItem = exports.Sidebar = exports.Search = exports.Row = exports.Rate = exports.RadioGroup = exports.Radio = exports.Progress = exports.Popup = exports.Picker = exports.Overlay = exports.NotifyInstance = exports.Notify = exports.NoticeBar = exports.NavBar = exports.Loading = exports.IndexBar = exports.IndexAnchor = exports.Image = exports.Icon = exports.GridItem = exports.Grid = exports.Field = exports.Empty = exports.DropdownMenu = exports.DropdownItem = exports.Divider = exports.DialogInstance = exports.Dialog = exports.DatetimePicker = exports.DateTimePicker = exports.CountDown = exports.ConfigProvider = exports.CollapseItem = exports.Collapse = exports.Col = exports.Circle = exports.CheckboxGroup = exports.Checkbox = exports.CellGroup = exports.Cell = exports.Calendar = exports.BottomSheet = exports.Button = exports.ActionSheet = void 0;
|
|
4
|
+
exports.Popover = exports.CustomKeyboard = exports.Battery = exports.Cascader = exports.TreeSelect = exports.Transition = exports.ToastInstance = exports.Toast = exports.Tag = exports.Tabs = exports.TabbarItem = exports.Tabbar = exports.Tab = exports.Switch = exports.SwipeCell = void 0;
|
|
5
5
|
var action_sheet_1 = require("./action-sheet");
|
|
6
6
|
Object.defineProperty(exports, "ActionSheet", { enumerable: true, get: function () { return action_sheet_1.ActionSheet; } });
|
|
7
7
|
var button_1 = require("./button");
|
|
@@ -95,6 +95,8 @@ var slider_1 = require("./slider");
|
|
|
95
95
|
Object.defineProperty(exports, "Slider", { enumerable: true, get: function () { return slider_1.Slider; } });
|
|
96
96
|
var stepper_1 = require("./stepper");
|
|
97
97
|
Object.defineProperty(exports, "Stepper", { enumerable: true, get: function () { return stepper_1.Stepper; } });
|
|
98
|
+
var steps_1 = require("./steps");
|
|
99
|
+
Object.defineProperty(exports, "Steps", { enumerable: true, get: function () { return steps_1.Steps; } });
|
|
98
100
|
var sticky_1 = require("./sticky");
|
|
99
101
|
Object.defineProperty(exports, "Sticky", { enumerable: true, get: function () { return sticky_1.Sticky; } });
|
|
100
102
|
var swipe_cell_1 = require("./swipe-cell");
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { SmartSteps, SmartStepsEvents, SmartStepsProps, SmartStepsExternalClassName, SmartStepsOption, SmartStepsClickStepEvent } from '../@types';
|
|
2
|
+
export { SmartSteps, SmartStepsEvents, SmartStepsExternalClassName, SmartStepsProps, SmartStepsOption, SmartStepsClickStepEvent, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
var index_1 = __importDefault(require("@tuya-miniapp/smart-ui/dist/steps/index"));
|
|
8
|
+
var withReactProps_1 = require("../common/withReactProps");
|
|
9
|
+
exports.default = (0, withReactProps_1.withReactProps)(index_1.default);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SmartSteps } from './PropTypes';
|
|
3
|
+
declare const Steps: import("react").FC<SmartSteps>;
|
|
4
|
+
export { Steps };
|
|
5
|
+
export { SmartSteps, SmartStepsEvents, SmartStepsExternalClassName, SmartStepsProps, SmartStepsOption, SmartStepsClickStepEvent, } from './PropTypes';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Steps = void 0;
|
|
7
|
+
var Steps_1 = __importDefault(require("./Steps"));
|
|
8
|
+
var Steps = Steps_1.default;
|
|
9
|
+
exports.Steps = Steps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/smart-ui",
|
|
3
|
-
"version": "2.7.3-beta-
|
|
3
|
+
"version": "2.7.3-beta-3",
|
|
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.4",
|
|
45
|
-
"@tuya-miniapp/smart-ui": "2.7.
|
|
45
|
+
"@tuya-miniapp/smart-ui": "^2.7.2",
|
|
46
46
|
"lodash-es": "^4.17.21"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -81,4 +81,4 @@
|
|
|
81
81
|
"email": "tuyafe@tuya.com"
|
|
82
82
|
}
|
|
83
83
|
]
|
|
84
|
-
}
|
|
84
|
+
}
|