From 0520cb8e1dd5983ab55ab439052b3027188355c9 Mon Sep 17 00:00:00 2001 From: callmeyan Date: Tue, 8 Apr 2025 23:00:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=EF=B8=8F=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=95=B0=E5=AD=97=E4=BA=BA=E9=9D=A2=E6=9D=BF=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E5=8F=8A=E5=B8=83=E5=B1=80=EF=BC=8C=E8=B0=83=E6=95=B4=E7=83=AD?= =?UTF-8?q?=E7=82=B9=E6=96=B0=E9=97=BB=E7=BC=96=E8=BE=91=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E9=80=BB=E8=BE=91=E5=8F=8A=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/article/HotNews.tsx | 10 +++++----- src/components/article/group.tsx | 8 ++++---- src/i18n/translations/zh-CN.json | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) 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": "全部生成",