feat: placeholder的不同状态显示
This commit is contained in:
parent
a62e65acfe
commit
d82ac30b93
|
|
@ -659,7 +659,11 @@ export function InputBox({
|
||||||
!effectiveIsFocused && "h-[80px] py-0 leading-20",
|
!effectiveIsFocused && "h-[80px] py-0 leading-20",
|
||||||
)}
|
)}
|
||||||
disabled={isInputDisabled}
|
disabled={isInputDisabled}
|
||||||
placeholder={t.inputBox.placeholder}
|
placeholder={
|
||||||
|
showWelcomeStyle
|
||||||
|
? t.inputBox.welcomePlaceholder
|
||||||
|
: t.inputBox.chatPlaceholder
|
||||||
|
}
|
||||||
autoFocus={autoFocus}
|
autoFocus={autoFocus}
|
||||||
defaultValue={initialValue}
|
defaultValue={initialValue}
|
||||||
onFocus={() => setIsFocused(true)}
|
onFocus={() => setIsFocused(true)}
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,9 @@ export const enUS: Translations = {
|
||||||
// Input Box
|
// Input Box
|
||||||
inputBox: {
|
inputBox: {
|
||||||
placeholder: "How can I assist you today?",
|
placeholder: "How can I assist you today?",
|
||||||
|
welcomePlaceholder:
|
||||||
|
"Start chatting directly, or describe your task and pick a skill for professional execution.",
|
||||||
|
chatPlaceholder: "Type “@” to reference files.",
|
||||||
createSkillPrompt:
|
createSkillPrompt:
|
||||||
"We're going to build a new skill step by step with `skill-creator`. To start, what do you want this skill to do?",
|
"We're going to build a new skill step by step with `skill-creator`. To start, what do you want this skill to do?",
|
||||||
sendMessagePrice:
|
sendMessagePrice:
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,8 @@ export interface Translations {
|
||||||
inputBox: {
|
inputBox: {
|
||||||
sendMessagePrice: string;
|
sendMessagePrice: string;
|
||||||
placeholder: string;
|
placeholder: string;
|
||||||
|
welcomePlaceholder: string;
|
||||||
|
chatPlaceholder: string;
|
||||||
createSkillPrompt: string;
|
createSkillPrompt: string;
|
||||||
addAttachments: string;
|
addAttachments: string;
|
||||||
history: string;
|
history: string;
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,9 @@ export const zhCN: Translations = {
|
||||||
|
|
||||||
// Input Box
|
// Input Box
|
||||||
inputBox: {
|
inputBox: {
|
||||||
placeholder: "可直接对话; 或输入需求并选择skill,完成专业任务;“@”可引用文件",
|
placeholder: "可直接对话; 或输入需求并选择skill,完成专业任务;",
|
||||||
|
welcomePlaceholder: "可直接对话; 或输入需求并选择skill,完成专业任务;",
|
||||||
|
chatPlaceholder: "“@”可引用文件。",
|
||||||
createSkillPrompt:
|
createSkillPrompt:
|
||||||
"我们一起用 skill-creator 技能来创建一个技能吧。先问问我希望这个技能能做什么。",
|
"我们一起用 skill-creator 技能来创建一个技能吧。先问问我希望这个技能能做什么。",
|
||||||
sendMessagePrice:
|
sendMessagePrice:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue