types: some theme vars can be number type (#11037)

This commit is contained in:
neverland 2022-09-12 10:44:53 +08:00 committed by GitHub
parent 39a100f3a0
commit 65d9fbc5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
48 changed files with 66 additions and 66 deletions

View File

@ -4,15 +4,15 @@ export type ActionSheetThemeVars = {
actionSheetHeaderFontSize?: string;
actionSheetDescriptionColor?: string;
actionSheetDescriptionFontSize?: string;
actionSheetDescriptionLineHeight?: string;
actionSheetDescriptionLineHeight?: number | string;
actionSheetItemBackground?: string;
actionSheetItemFontSize?: string;
actionSheetItemLineHeight?: string;
actionSheetItemLineHeight?: number | string;
actionSheetItemTextColor?: string;
actionSheetItemDisabledTextColor?: string;
actionSheetSubnameColor?: string;
actionSheetSubnameFontSize?: string;
actionSheetSubnameLineHeight?: string;
actionSheetSubnameLineHeight?: number | string;
actionSheetCloseIconSize?: string;
actionSheetCloseIconColor?: string;
actionSheetCloseIconPadding?: string;

View File

@ -3,13 +3,13 @@ export type AddressListThemeVars = {
addressListDisabledTextColor?: string;
addressListDisabledTextPadding?: string;
addressListDisabledTextFontSize?: string;
addressListDisabledTextLineHeight?: string;
addressListAddButtonZIndex?: string;
addressListDisabledTextLineHeight?: number | string;
addressListAddButtonZIndex?: number | string;
addressListItemPadding?: string;
addressListItemTextColor?: string;
addressListItemDisabledTextColor?: string;
addressListItemFontSize?: string;
addressListItemLineHeight?: string;
addressListItemLineHeight?: number | string;
addressListRadioColor?: string;
addressListEditIconSize?: string;
};

View File

@ -24,7 +24,7 @@ export type ButtonThemeVars = {
buttonNormalFontSize?: string;
buttonLargeHeight?: string;
buttonDefaultHeight?: string;
buttonDefaultLineHeight?: string;
buttonDefaultLineHeight?: number | string;
buttonDefaultFontSize?: string;
buttonDefaultColor?: string;
buttonDefaultBackground?: string;
@ -45,7 +45,7 @@ export type ButtonThemeVars = {
buttonRadius?: string;
buttonRoundRadius?: string;
buttonPlainBackground?: string;
buttonDisabledOpacity?: string;
buttonDisabledOpacity?: number | string;
buttonIconSize?: string;
buttonLoadingIconSize?: string;
};

View File

@ -67,11 +67,11 @@ export type CalendarThemeVars = {
calendarRangeEdgeColor?: string;
calendarRangeEdgeBackground?: string;
calendarRangeMiddleColor?: string;
calendarRangeMiddleBackgroundOpacity?: string;
calendarRangeMiddleBackgroundOpacity?: number | string;
calendarSelectedDaySize?: string;
calendarSelectedDayColor?: string;
calendarInfoFontSize?: string;
calendarInfoLineHeight?: string;
calendarInfoLineHeight?: number | string;
calendarSelectedDayBackground?: string;
calendarDayDisabledColor?: string;
calendarConfirmButtonHeight?: string;

View File

@ -5,9 +5,9 @@ export type CardThemeVars = {
cardBackground?: string;
cardThumbSize?: string;
cardThumbRadius?: string;
cardTitleLineHeight?: string;
cardTitleLineHeight?: number | string;
cardDescColor?: string;
cardDescLineHeight?: string;
cardDescLineHeight?: number | string;
cardPriceColor?: string;
cardOriginPriceColor?: string;
cardNumColor?: string;

View File

@ -26,7 +26,7 @@ export type CascaderThemeVars = {
cascaderHeaderHeight?: string;
cascaderHeaderPadding?: string;
cascaderTitleFontSize?: string;
cascaderTitleLineHeight?: string;
cascaderTitleLineHeight?: number | string;
cascaderCloseIconSize?: string;
cascaderCloseIconColor?: string;
cascaderSelectedIconSize?: string;

View File

@ -3,7 +3,7 @@ export type CellGroupThemeVars = {
cellGroupTitleColor?: string;
cellGroupTitlePadding?: string;
cellGroupTitleFontSize?: string;
cellGroupTitleLineHeight?: string;
cellGroupTitleLineHeight?: number | string;
cellGroupInsetPadding?: string;
cellGroupInsetRadius?: string;
cellGroupInsetTitlePadding?: string;

View File

@ -1,6 +1,6 @@
export type CellThemeVars = {
cellFontSize?: string;
cellLineHeight?: string;
cellLineHeight?: number | string;
cellVerticalPadding?: string;
cellHorizontalPadding?: string;
cellTextColor?: string;
@ -10,7 +10,7 @@ export type CellThemeVars = {
cellRequiredColor?: string;
cellLabelColor?: string;
cellLabelFontSize?: string;
cellLabelLineHeight?: string;
cellLabelLineHeight?: number | string;
cellLabelMarginTop?: string;
cellValueColor?: string;
cellIconSize?: string;

View File

@ -5,5 +5,5 @@ export type CircleThemeVars = {
circleTextColor?: string;
circleTextFontWeight?: string;
circleTextFontSize?: string;
circleTextLineHeight?: string;
circleTextLineHeight?: number | string;
};

View File

@ -14,7 +14,7 @@ export type CollapseItemThemeVars = {
collapseItemDuration?: string;
collapseItemContentPadding?: string;
collapseItemContentFontSize?: string;
collapseItemContentLineHeight?: string;
collapseItemContentLineHeight?: number | string;
collapseItemContentTextColor?: string;
collapseItemContentBackground?: string;
collapseItemTitleDisabledColor?: string;

View File

@ -2,5 +2,5 @@ export type ContactCardThemeVars = {
contactCardPadding?: string;
contactCardAddIconSize?: string;
contactCardAddIconColor?: string;
contactCardTitleLineHeight?: string;
contactCardTitleLineHeight?: number | string;
};

View File

@ -1,6 +1,6 @@
export type ContactListThemeVars = {
contactListEditIconSize?: string;
contactListAddButtonZIndex?: string;
contactListAddButtonZIndex?: number | string;
contactListRadioColor?: string;
contactListItemPadding?: string;
};

View File

@ -18,5 +18,5 @@ export type CountDownCurrentTime = CurrentTime;
export type CountDownThemeVars = {
countDownTextColor?: string;
countDownFontSize?: string;
countDownLineHeight?: string;
countDownLineHeight?: number | string;
};

View File

@ -5,5 +5,5 @@ export type CouponListThemeVars = {
couponListCloseButtonHeight?: string;
couponListEmptyTipColor?: string;
couponListEmptyTipFontSize?: string;
couponListEmptyTipLineHeight?: string;
couponListEmptyTipLineHeight?: number | string;
};

View File

@ -41,12 +41,12 @@ export type DialogThemeVars = {
dialogRadius?: string;
dialogBackground?: string;
dialogHeaderFontWeight?: string;
dialogHeaderLineHeight?: string;
dialogHeaderLineHeight?: number | string;
dialogHeaderPaddingTop?: string;
dialogHeaderIsolatedPadding?: string;
dialogMessagePadding?: string;
dialogMessageFontSize?: string;
dialogMessageLineHeight?: string;
dialogMessageLineHeight?: number | string;
dialogMessageMaxHeight?: string;
dialogHasTitleMessageTextColor?: string;
dialogHasTitleMessagePaddingTop?: string;

View File

@ -2,7 +2,7 @@ export type DividerThemeVars = {
dividerMargin?: string;
dividerTextColor?: string;
dividerFontSize?: string;
dividerLineHeight?: string;
dividerLineHeight?: number | string;
dividerBorderColor?: string;
dividerContentPadding?: string;
dividerContentLeftWidth?: string;

View File

@ -31,5 +31,5 @@ export type DropdownItemInstance = ComponentPublicInstance<
>;
export type DropdownItemThemeVars = {
dropdownItemZIndex?: string;
dropdownItemZIndex?: number | string;
};

View File

@ -18,7 +18,7 @@ export type DropdownMenuThemeVars = {
dropdownMenuTitleActiveTextColor?: string;
dropdownMenuTitleDisabledTextColor?: string;
dropdownMenuTitlePadding?: string;
dropdownMenuTitleLineHeight?: string;
dropdownMenuTitleLineHeight?: number | string;
dropdownMenuOptionActiveColor?: string;
dropdownMenuContentMaxHeight?: string;
};

View File

@ -5,6 +5,6 @@ export type EmptyThemeVars = {
emptyDescriptionPadding?: string;
emptyDescriptionColor?: string;
emptyDescriptionFontSize?: string;
emptyDescriptionLineHeight?: string;
emptyDescriptionLineHeight?: number | string;
emptyBottomMarginTop?: string;
};

View File

@ -116,7 +116,7 @@ export type FieldThemeVars = {
fieldTextAreaMinHeight?: string;
fieldWordLimitColor?: string;
fieldWordLimitFontSize?: string;
fieldWordLimitLineHeight?: string;
fieldWordLimitLineHeight?: number | string;
fieldDisabledTextColor?: string;
fieldRequiredMarkColor?: string;
};

View File

@ -49,11 +49,11 @@ export type ImagePreviewInstance = ComponentPublicInstance<
export type ImagePreviewThemeVars = {
imagePreviewIndexTextColor?: string;
imagePreviewIndexFontSize?: string;
imagePreviewIndexLineHeight?: string;
imagePreviewIndexLineHeight?: number | string;
imagePreviewIndexTextShadow?: string;
imagePreviewOverlayBackground?: string;
imagePreviewCloseIconSize?: string;
imagePreviewCloseIconColor?: string;
imagePreviewCloseIconMargin?: string;
imagePreviewCloseIconZIndex?: string;
imagePreviewCloseIconZIndex?: number | string;
};

View File

@ -1,10 +1,10 @@
export type IndexAnchorThemeVars = {
indexAnchorZIndex?: string;
indexAnchorZIndex?: number | string;
indexAnchorPadding?: string;
indexAnchorTextColor?: string;
indexAnchorFontWeight?: string;
indexAnchorFontSize?: string;
indexAnchorLineHeight?: string;
indexAnchorLineHeight?: number | string;
indexAnchorBackground?: string;
indexAnchorStickyTextColor?: string;
indexAnchorStickyBackground?: string;

View File

@ -16,8 +16,8 @@ export type IndexBarInstance = ComponentPublicInstance<
>;
export type IndexBarThemeVars = {
indexBarSidebarZIndex?: string;
indexBarSidebarZIndex?: number | string;
indexBarIndexFontSize?: string;
indexBarIndexLineHeight?: string;
indexBarIndexLineHeight?: number | string;
indexBarIndexActiveColor?: string;
};

View File

@ -12,6 +12,6 @@ export type ListInstance = ComponentPublicInstance<ListProps, ListExpose>;
export type ListThemeVars = {
listTextColor?: string;
listTextFontSize?: string;
listTextLineHeight?: string;
listTextLineHeight?: number | string;
listLoadingIconSize?: string;
};

View File

@ -6,5 +6,5 @@ export type NavBarThemeVars = {
navBarTextColor?: string;
navBarTitleFontSize?: string;
navBarTitleTextColor?: string;
navBarZIndex?: string;
navBarZIndex?: number | string;
};

View File

@ -18,7 +18,7 @@ export type NoticeBarThemeVars = {
noticeBarWrapablePadding?: string;
noticeBarTextColor?: string;
noticeBarFontSize?: string;
noticeBarLineHeight?: string;
noticeBarLineHeight?: number | string;
noticeBarBackground?: string;
noticeBarIconSize?: string;
noticeBarIconMinWidth?: string;

View File

@ -24,7 +24,7 @@ export type NotifyThemeVars = {
notifyTextColor?: string;
notifyPadding?: string;
notifyFontSize?: string;
notifyLineHeight?: string;
notifyLineHeight?: number | string;
notifyPrimaryBackground?: string;
notifySuccessBackground?: string;
notifyDangerBackground?: string;

View File

@ -13,5 +13,5 @@ export type NumberKeyboardThemeVars = {
numberKeyboardCloseFontSize?: string;
numberKeyboardButtonTextColor?: string;
numberKeyboardButtonBackground?: string;
numberKeyboardZIndex?: string;
numberKeyboardZIndex?: number | string;
};

View File

@ -1,4 +1,4 @@
export type OverlayThemeVars = {
overlayZIndex?: string;
overlayZIndex?: number | string;
overlayBackground?: string;
};

View File

@ -7,5 +7,5 @@ export type PaginationThemeVars = {
paginationItemDisabledBackground?: string;
paginationBackground?: string;
paginationDescColor?: string;
paginationDisabledOpacity?: string;
paginationDisabledOpacity?: number | string;
};

View File

@ -59,7 +59,7 @@ export type PickerThemeVars = {
pickerBackground?: string;
pickerToolbarHeight?: string;
pickerTitleFontSize?: string;
pickerTitleLineHeight?: string;
pickerTitleLineHeight?: number | string;
pickerActionPadding?: string;
pickerActionFontSize?: string;
pickerConfirmActionColor?: string;
@ -67,7 +67,7 @@ export type PickerThemeVars = {
pickerOptionFontSize?: string;
pickerOptionPadding?: string;
pickerOptionTextColor?: string;
pickerOptionDisabledOpacity?: string;
pickerOptionDisabledOpacity?: number | string;
pickerLoadingIconColor?: string;
pickerLoadingMaskColor?: string;
pickerMaskColor?: string;

View File

@ -29,7 +29,7 @@ export type PopoverThemeVars = {
popoverActionWidth?: string;
popoverActionHeight?: string;
popoverActionFontSize?: string;
popoverActionLineHeight?: string;
popoverActionLineHeight?: number | string;
popoverActionIconSize?: string;
popoverLightTextColor?: string;
popoverLightBackground?: string;

View File

@ -22,5 +22,5 @@ export type PopupThemeVars = {
popupCloseIconSize?: string;
popupCloseIconColor?: string;
popupCloseIconMargin?: string;
popupCloseIconZIndex?: string;
popupCloseIconZIndex?: number | string;
};

View File

@ -18,6 +18,6 @@ export type ProgressThemeVars = {
progressPivotPadding?: string;
progressPivotTextColor?: string;
progressPivotFontSize?: string;
progressPivotLineHeight?: string;
progressPivotLineHeight?: number | string;
progressPivotBackground?: string;
};

View File

@ -2,10 +2,10 @@ export type ShareSheetThemeVars = {
shareSheetHeaderPadding?: string;
shareSheetTitleColor?: string;
shareSheetTitleFontSize?: string;
shareSheetTitleLineHeight?: string;
shareSheetTitleLineHeight?: number | string;
shareSheetDescriptionColor?: string;
shareSheetDescriptionFontSize?: string;
shareSheetDescriptionLineHeight?: string;
shareSheetDescriptionLineHeight?: number | string;
shareSheetIconSize?: string;
shareSheetOptionNameColor?: string;
shareSheetOptionNameFontSize?: string;

View File

@ -1,6 +1,6 @@
export type SidebarItemThemeVars = {
sidebarFontSize?: string;
sidebarLineHeight?: string;
sidebarLineHeight?: number | string;
sidebarTextColor?: string;
sidebarDisabledTextColor?: string;
sidebarPadding?: string;

View File

@ -1,7 +1,7 @@
export type SliderThemeVars = {
sliderActiveBackground?: string;
sliderInactiveBackground?: string;
sliderDisabledOpacity?: string;
sliderDisabledOpacity?: number | string;
sliderBarHeight?: string;
sliderButtonWidth?: string;
sliderButtonHeight?: string;

View File

@ -7,7 +7,7 @@ export type StepperThemeVars = {
stepperInputWidth?: string;
stepperInputHeight?: string;
stepperInputFontSize?: string;
stepperInputLineHeight?: string;
stepperInputLineHeight?: number | string;
stepperInputTextColor?: string;
stepperInputDisabledTextColor?: string;
stepperInputDisabledBackground?: string;

View File

@ -1,3 +1,3 @@
export type StickyThemeVars = {
stickyZIndex?: string;
stickyZIndex?: number | string;
};

View File

@ -1,6 +1,6 @@
export type SubmitBarThemeVars = {
submitBarHeight?: string;
submitBarZIndex?: string;
submitBarZIndex?: number | string;
submitBarBackground?: string;
submitBarButtonWidth?: string;
submitBarPriceColor?: string;
@ -12,7 +12,7 @@ export type SubmitBarThemeVars = {
submitBarTextFontSize?: string;
submitBarTipPadding?: string;
submitBarTipFontSize?: string;
submitBarTipLineHeight?: string;
submitBarTipLineHeight?: number | string;
submitBarTipColor?: string;
submitBarTipBackground?: string;
submitBarTipIconSize?: string;

View File

@ -35,8 +35,8 @@ export type SwipeInstance = ComponentPublicInstance<SwipeProps, SwipeExpose>;
export type SwipeThemeVars = {
swipeIndicatorSize?: string;
swipeIndicatorMargin?: string;
swipeIndicatorActiveOpacity?: string;
swipeIndicatorInactiveOpacity?: string;
swipeIndicatorActiveOpacity?: number | string;
swipeIndicatorInactiveOpacity?: number | string;
swipeIndicatorActiveBackground?: string;
swipeIndicatorInactiveBackground?: string;
};

View File

@ -8,5 +8,5 @@ export type SwitchThemeVars = {
switchBackground?: string;
switchOnBackground?: string;
switchDuration?: string;
switchDisabledOpacity?: string;
switchDisabledOpacity?: number | string;
};

View File

@ -3,7 +3,7 @@ export type TabbarItemThemeVars = {
tabbarItemTextColor?: string;
tabbarItemActiveColor?: string;
tabbarItemActiveBackground?: string;
tabbarItemLineHeight?: string;
tabbarItemLineHeight?: number | string;
tabbarItemIconSize?: string;
tabbarItemIconMarginBottom?: string;
};

View File

@ -1,5 +1,5 @@
export type TabbarThemeVars = {
tabbarHeight?: string;
tabbarZIndex?: string;
tabbarZIndex?: number | string;
tabbarBackground?: string;
};

View File

@ -32,9 +32,9 @@ export type TabsThemeVars = {
tabActiveTextColor?: string;
tabDisabledTextColor?: string;
tabFontSize?: string;
tabLineHeight?: string;
tabLineHeight?: number | string;
tabsDefaultColor?: string;
tabsLineHeight?: string;
tabsLineHeight?: number | string;
tabsCardHeight?: string;
tabsNavBackground?: string;
tabsBottomBarWidth?: string;

View File

@ -7,7 +7,7 @@ export type TagThemeVars = {
tagTextColor?: string;
tagFontSize?: string;
tagRadius?: string;
tagLineHeight?: string;
tagLineHeight?: number | string;
tagMediumPadding?: string;
tagLargePadding?: string;
tagLargeRadius?: string;

View File

@ -44,7 +44,7 @@ export type ToastThemeVars = {
toastFontSize?: string;
toastTextColor?: string;
toastLoadingIconColor?: string;
toastLineHeight?: string;
toastLineHeight?: number | string;
toastRadius?: string;
toastBackground?: string;
toastIconSize?: string;

View File

@ -68,8 +68,8 @@ export type UploaderThemeVars = {
uploaderMaskBackground?: string;
uploaderMaskIconSize?: string;
uploaderMaskMessageFontSize?: string;
uploaderMaskMessageLineHeight?: string;
uploaderMaskMessageLineHeight?: number | string;
uploaderLoadingIconSize?: string;
uploaderLoadingIconColor?: string;
uploaderDisabledOpacity?: string;
uploaderDisabledOpacity?: number | string;
};