diff --git a/src/components/article/HotNews.tsx b/src/components/article/HotNews.tsx index b78064d..72eed5e 100644 --- a/src/components/article/HotNews.tsx +++ b/src/components/article/HotNews.tsx @@ -39,21 +39,21 @@ function HotNews({news, mode, onValueChange}: HotNewsProps) {
{mode == 'auto' ? t("modal.hot_news.edit_auto") : t("modal.hot_news.edit_manual")} - { - onValueChange({news, mode: checked ? 'auto' : 'manual'}) + { + onValueChange({news, mode: checked ? 'manual' : 'auto'}) }}/>
-
+ {mode != 'auto' &&
{news.map((item, index) =>
handleValueChange(e.target.value, index)}/> + onChange={e => handleValueChange(e.target.value, index)}/>
)} -
+
} ) } diff --git a/src/components/article/group.tsx b/src/components/article/group.tsx index 5a2ae29..edfb24c 100644 --- a/src/components/article/group.tsx +++ b/src/components/article/group.tsx @@ -56,20 +56,20 @@ export default function ArticleGroup({groups, editable, onChange, errorMessage, } return
-
+
{t('news.edit_digital_text')} {i18n.language == 'zh-CN' && (出现数字人形象)}
-
+
{/* value={groups || groups[0][0].content}*/} -
+
{editable ?
0 ? groups[0][0].content : ''} - autoSize={{minRows: 20, maxRows: 21}} + autoSize={{maxRows: hotNews.mode == 'auto'?20:13}} variant={"borderless"} onChange={e => { handleDigitalPersonContentChange(e.target.value) diff --git a/src/i18n/translations/zh-CN.json b/src/i18n/translations/zh-CN.json index 4059e25..1abec2e 100644 --- a/src/i18n/translations/zh-CN.json +++ b/src/i18n/translations/zh-CN.json @@ -55,10 +55,10 @@ "modal": { "hot_news": { "edit_auto": "智能填充", - "edit_manual": "手动编辑", - "empty_notice_message": "手动编辑的“新闻热点”尚未填写完毕,
请填写全部热点,或开启智能填充", + "edit_manual": "自定义", + "empty_notice_message": "自定义的“新闻热点”尚未填写完毕,
请填写全部热点,或开启智能填充", "empty_notice_title": "操作提示", - "title": "新闻热点" + "title": "视频下方热点(跑马灯)" }, "push_article": { "action_all": "全部生成",