fix: models compare system message sync to all

This commit is contained in:
jialin
2024-09-30 11:45:42 +08:00
parent 3978ec683d
commit 5f77a0082c
18 changed files with 51 additions and 25 deletions
+2 -2
View File
@@ -75,7 +75,7 @@ const SealAutoComplete: React.FC<
<Wrapper
status={status}
extra={extra}
label={label || (placeholder as string)}
label={label}
isFocus={isFocus}
required={required}
description={description}
@@ -87,7 +87,7 @@ const SealAutoComplete: React.FC<
{...rest}
ref={inputRef}
placeholder={
isFocus ? (
isFocus || !label ? (
<span style={{ paddingLeft: '12px' }}>{placeholder}</span>
) : (
''
+1 -1
View File
@@ -62,7 +62,7 @@ const SealInputNumber: React.FC<InputNumberProps & SealFormItemProps> = (
return (
<Wrapper
status={status}
label={label || (placeholder as string)}
label={label}
isFocus={isFocus}
required={required}
description={description}
+1 -1
View File
@@ -68,7 +68,7 @@ const SealInputSearch: React.FC<SearchProps & SealFormItemProps> = (props) => {
return (
<Wrapper
status={status}
label={label || (placeholder as string)}
label={label}
isFocus={isFocus}
required={required}
description={description}
+1 -1
View File
@@ -57,7 +57,7 @@ const SealPassword: React.FC<InputProps & SealFormItemProps> = (props) => {
return (
<Wrapper
status={status}
label={label || (placeholder as string)}
label={label}
isFocus={isFocus}
required={required}
description={description}
+2 -2
View File
@@ -72,7 +72,7 @@ const SealInput: React.FC<InputProps & SealFormItemProps> = (props) => {
return (
<Wrapper
status={checkStatus || status}
label={label || (placeholder as string)}
label={label}
isFocus={isFocus}
required={required}
description={description}
@@ -83,7 +83,7 @@ const SealInput: React.FC<InputProps & SealFormItemProps> = (props) => {
>
<Input
{...rest}
placeholder={isFocus ? placeholder : ''}
placeholder={isFocus || !label ? placeholder : ''}
ref={inputRef}
autoComplete="off"
onInput={handleInput}
+1 -1
View File
@@ -60,7 +60,7 @@ const SealSelect: React.FC<SelectProps & SealFormItemProps> = (props) => {
return (
<Wrapper
status={status}
label={label || (placeholder as string)}
label={label}
isFocus={isFocus}
required={required}
description={description}
+1 -1
View File
@@ -79,7 +79,7 @@ const SealTextArea: React.FC<TextAreaProps & SealFormItemProps> = (props) => {
return (
<Wrapper
status={status}
label={label || (placeholder as string)}
label={label}
isFocus={isFocus}
required={required}
description={description}