feat:更新
This commit is contained in:
1 parent
f5f36f75b5
commit
975bfc137a
7 files changed
+16
-5
No files matched your search
@@ -26,6 +26,8 @@ export interface StudyGuideModalProps {
|
||||
verticalAlign?: 'center' | 'top' | 'bottom'
|
||||
/** 正文首行缩进,如 '2em'、'32px' 或 32 */
|
||||
firstLineIndent?: string | number
|
||||
/** 正文左侧内边距,如 '2em'、'32px' 或 32 */
|
||||
contentPaddingLeft?: string | number
|
||||
/** 引导语音地址(可选) */
|
||||
audioSrc?: string
|
||||
/** 弹窗出现时是否自动播放引导语音(默认 true) */
|
||||
@@ -58,6 +60,7 @@ export const StudyGuideModal = ({
|
||||
ailgn = 'center',
|
||||
verticalAlign = 'top',
|
||||
firstLineIndent,
|
||||
contentPaddingLeft,
|
||||
audioSrc,
|
||||
autoPlayAudio = true,
|
||||
audioChannelId,
|
||||
@@ -161,6 +164,12 @@ export const StudyGuideModal = ({
|
||||
: typeof firstLineIndent === 'number'
|
||||
? `${firstLineIndent}px`
|
||||
: firstLineIndent,
|
||||
paddingLeft:
|
||||
contentPaddingLeft === undefined
|
||||
? undefined
|
||||
: typeof contentPaddingLeft === 'number'
|
||||
? `${contentPaddingLeft}px`
|
||||
: contentPaddingLeft,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
|
||||
@@ -229,7 +229,7 @@ const PuzzleSystem = ({
|
||||
|
||||
return (
|
||||
<div
|
||||
className="fixed inset-0 z-[100] flex items-center justify-center"
|
||||
className="fixed inset-0 z-100 flex items-center justify-center"
|
||||
style={{
|
||||
background: 'rgba(0, 0, 0, 0.8)',
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user