feat:更新
This commit is contained in:
1 parent
f5f36f75b5
commit
975bfc137a
7 files changed
+16
-5
No files matched your search
Binary file not shown.
@@ -26,6 +26,8 @@ export interface StudyGuideModalProps {
|
|||||||
verticalAlign?: 'center' | 'top' | 'bottom'
|
verticalAlign?: 'center' | 'top' | 'bottom'
|
||||||
/** 正文首行缩进,如 '2em'、'32px' 或 32 */
|
/** 正文首行缩进,如 '2em'、'32px' 或 32 */
|
||||||
firstLineIndent?: string | number
|
firstLineIndent?: string | number
|
||||||
|
/** 正文左侧内边距,如 '2em'、'32px' 或 32 */
|
||||||
|
contentPaddingLeft?: string | number
|
||||||
/** 引导语音地址(可选) */
|
/** 引导语音地址(可选) */
|
||||||
audioSrc?: string
|
audioSrc?: string
|
||||||
/** 弹窗出现时是否自动播放引导语音(默认 true) */
|
/** 弹窗出现时是否自动播放引导语音(默认 true) */
|
||||||
@@ -58,6 +60,7 @@ export const StudyGuideModal = ({
|
|||||||
ailgn = 'center',
|
ailgn = 'center',
|
||||||
verticalAlign = 'top',
|
verticalAlign = 'top',
|
||||||
firstLineIndent,
|
firstLineIndent,
|
||||||
|
contentPaddingLeft,
|
||||||
audioSrc,
|
audioSrc,
|
||||||
autoPlayAudio = true,
|
autoPlayAudio = true,
|
||||||
audioChannelId,
|
audioChannelId,
|
||||||
@@ -161,6 +164,12 @@ export const StudyGuideModal = ({
|
|||||||
: typeof firstLineIndent === 'number'
|
: typeof firstLineIndent === 'number'
|
||||||
? `${firstLineIndent}px`
|
? `${firstLineIndent}px`
|
||||||
: firstLineIndent,
|
: firstLineIndent,
|
||||||
|
paddingLeft:
|
||||||
|
contentPaddingLeft === undefined
|
||||||
|
? undefined
|
||||||
|
: typeof contentPaddingLeft === 'number'
|
||||||
|
? `${contentPaddingLeft}px`
|
||||||
|
: contentPaddingLeft,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ const PuzzleSystem = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="fixed inset-0 z-[100] flex items-center justify-center"
|
className="fixed inset-0 z-100 flex items-center justify-center"
|
||||||
style={{
|
style={{
|
||||||
background: 'rgba(0, 0, 0, 0.8)',
|
background: 'rgba(0, 0, 0, 0.8)',
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -328,7 +328,8 @@ const LuxunReflectionScene1 = () => {
|
|||||||
setShowGuideModal(false)
|
setShowGuideModal(false)
|
||||||
}}
|
}}
|
||||||
audioSrc={getPublicPath('audio/luxun/mp3_luxun_31.mp3')}
|
audioSrc={getPublicPath('audio/luxun/mp3_luxun_31.mp3')}
|
||||||
firstLineIndent="2em"
|
contentPaddingLeft="2em"
|
||||||
|
// firstLineIndent="2em"
|
||||||
>
|
>
|
||||||
{`同学你好,欢迎来到“跨越时空·体悟”学习模块!
|
{`同学你好,欢迎来到“跨越时空·体悟”学习模块!
|
||||||
请登陆“时空回溯・亲历时代”体验仓,下一站:1892年,绍兴三味书屋。
|
请登陆“时空回溯・亲历时代”体验仓,下一站:1892年,绍兴三味书屋。
|
||||||
|
|||||||
@@ -381,7 +381,7 @@ const LuxunReflectionScene3 = () => {
|
|||||||
{ value: 'B', label: 'B. 只为个人成名' },
|
{ value: 'B', label: 'B. 只为个人成名' },
|
||||||
]}
|
]}
|
||||||
correctAnswer="A"
|
correctAnswer="A"
|
||||||
errorMessage='不是哦,先生的创作从不是为了自己哦!请回忆先生"弃医从文"的初心。'
|
errorMessage="不是哦,先生的创作从不是为了自己哦!请回忆先生“弃医从文”的初心。"
|
||||||
onSubmit={handleQuiz3Submit}
|
onSubmit={handleQuiz3Submit}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ const ANTHEM_LYRICS = [
|
|||||||
|
|
||||||
const SMEDLEY_QUOTES = [
|
const SMEDLEY_QUOTES = [
|
||||||
{ value: '1', label: '建设一个强大的和自由的中国' },
|
{ value: '1', label: '建设一个强大的和自由的中国' },
|
||||||
{ value: '2', label: '为我的遗体唱一首歌,中国的国歌……"起来"' },
|
{ value: '2', label: '为我的遗体唱一首歌,中国的国歌……“起来”' },
|
||||||
{ value: '3', label: '我的心灵在这个世界上除了中国的任何地方都未能找到安宁' },
|
{ value: '3', label: '我的心灵在这个世界上除了中国的任何地方都未能找到安宁' },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -242,9 +242,10 @@ const NieerReflection = () => {
|
|||||||
|
|
||||||
<StudyGuideModal
|
<StudyGuideModal
|
||||||
visible={showGuideModal}
|
visible={showGuideModal}
|
||||||
firstLineIndent="2em"
|
|
||||||
onContinue={markReflectionGuideSeen}
|
onContinue={markReflectionGuideSeen}
|
||||||
audioSrc={getPublicPath('audio/nieer/mp3_nieer_28.mp3')}
|
audioSrc={getPublicPath('audio/nieer/mp3_nieer_28.mp3')}
|
||||||
|
contentPaddingLeft="2em"
|
||||||
|
// firstLineIndent="2em"
|
||||||
>
|
>
|
||||||
{`同学你好,欢迎来到“跨越时空·体悟”学习模块!
|
{`同学你好,欢迎来到“跨越时空·体悟”学习模块!
|
||||||
请登陆“时空回溯・亲历时代”体验仓,下一站:1936年,上海。
|
请登陆“时空回溯・亲历时代”体验仓,下一站:1936年,上海。
|
||||||
|
|||||||
Reference in new issue
Block a user