Skip to content

Commit 89dfbcd

Browse files
author
AruSeito
authored
Merge pull request #654 from illacloud/develop
Develop
2 parents 515a857 + 4dd5695 commit 89dfbcd

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

packages/input-tag/src/input-tag.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ export const InputTag = forwardRef<HTMLDivElement, InputTagProps>(
154154
await tryAddInputValueToTag()
155155
}}
156156
/>
157-
{suffix ? <span css={applySuffixCls(size)}>{suffix}</span> : null}
158157
</span>
158+
{suffix ? <span css={applySuffixCls(size)}>{suffix}</span> : null}
159159
{allowClear && !disabled && currentValue?.length ? (
160160
<span
161161
css={pointerStyle}

packages/modal/src/interface.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { HTMLAttributes, MouseEvent, ReactNode } from "react"
22
import { ButtonProps } from "@illa-design/button"
33
import { BoxProps } from "@illa-design/theme"
4+
import { SerializedStyles } from "@emotion/react"
45

56
export type ModalAlignType = "left" | "center" | "right" | ""
67
export type ModalType = "info" | "error" | "success" | "warning"
@@ -16,6 +17,7 @@ export interface ModalProps
1617
mask?: boolean
1718
okLoading?: boolean
1819
title?: ReactNode | string
20+
maskStyle?: SerializedStyles
1921
maskClosable?: boolean
2022
hideCancel?: boolean
2123
closable?: boolean

packages/modal/src/modal.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const Modal = forwardRef<HTMLDivElement, ModalProps>((props, ref) => {
4343
withoutLine = true,
4444
okLoading,
4545
maskClosable = true,
46+
maskStyle,
4647
hideCancel,
4748
closable,
4849
closeElement,
@@ -121,7 +122,7 @@ export const Modal = forwardRef<HTMLDivElement, ModalProps>((props, ref) => {
121122
<>
122123
{mask ? (
123124
<motion.div
124-
css={applyModalMask}
125+
css={[applyModalMask, maskStyle]}
125126
variants={maskAnimation}
126127
animate="animate"
127128
exit="exit"

0 commit comments

Comments
 (0)