diff --git a/src/components/seal-form/auto-complete.tsx b/src/components/seal-form/auto-complete.tsx index eccdbc09..d35287c8 100644 --- a/src/components/seal-form/auto-complete.tsx +++ b/src/components/seal-form/auto-complete.tsx @@ -13,6 +13,7 @@ const SealAutoComplete: React.FC< required, description, isInFormItems = true, + trim = true, onSelect, extra, style, @@ -41,7 +42,11 @@ const SealAutoComplete: React.FC< } }; - const handleChange = (value: string, option: any) => { + const handleChange = (val: string, option: any) => { + let value = val; + if (trim) { + value = value?.trim?.(); + } props.onChange?.(value, option); }; @@ -54,6 +59,7 @@ const SealAutoComplete: React.FC< if (!props.value) { setIsFocus(false); } + e.target.value = e.target.value?.trim?.(); props.onBlur?.(e); }; diff --git a/src/components/status-tag/index.less b/src/components/status-tag/index.less index 9f275d5d..4012dee1 100644 --- a/src/components/status-tag/index.less +++ b/src/components/status-tag/index.less @@ -45,3 +45,10 @@ color: var(--color-progress-green); } } + +.tooltip-scrollbar { + .simplebar-scrollbar::before { + width: var(--scrollbar-size); + background: var(--scrollbar-handle-light-bg); + } +} diff --git a/src/components/status-tag/index.tsx b/src/components/status-tag/index.tsx index b95b9c7c..8d8d7f65 100644 --- a/src/components/status-tag/index.tsx +++ b/src/components/status-tag/index.tsx @@ -118,7 +118,11 @@ const StatusTag: React.FC = ({ })} - +