Skip to content

Commit

Permalink
Merge pull request #20 from actiontech/fix/DMS-540
Browse files Browse the repository at this point in the history
fix: order detail issues
  • Loading branch information
LZS911 authored Oct 23, 2023
2 parents 08d3f33 + 8f8df02 commit 8020b20
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ const ResultDescribe: React.FC<{
const [inputValue, setInputValue] = useState<string>(value);

const onInputBlur = (e: FocusEvent<HTMLInputElement>) => {
onSubmit(e.target.value);
if (e.target.value !== value) {
onSubmit(e.target.value);
}
setFalse();
};

Expand Down
3 changes: 3 additions & 0 deletions packages/sqle/src/page/Order/AuditDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ const AuditDetail: React.FC<OrderDetailAuditResultProps> = ({
<BasicSegmented
value={auditResultActiveKey}
onChange={(value) => {
if (value === OVERVIEW_TAB_KEY) {
updateAllSelectedFilterItem(false);
}
setAuditResultActiveKey(value as string);
}}
options={[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const ListLayoutSelector: React.FC<{
<div
className="download-record-item"
onClick={() => {
onChange(ListLayoutEnum.pagination);
if (value !== ListLayoutEnum.pagination) {
onChange(ListLayoutEnum.pagination);
}
setOpen(false);
}}
>
Expand All @@ -35,7 +37,9 @@ const ListLayoutSelector: React.FC<{
<div
className="download-record-item"
onClick={() => {
onChange(ListLayoutEnum.scroll);
if (value !== ListLayoutEnum.scroll) {
onChange(ListLayoutEnum.scroll);
}
setOpen(false);
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const OrderStepsStyleWrapper = styled('div')`
width: 360px;
min-width: 360px;
overflow-y: auto;
padding: 0 24px;
padding: 0 24px 65px;
transition: width 1s ease-in-out;
border-left: 1px solid
${({ theme }) => theme.sharedTheme.uiToken.colorBorderSecondary};
Expand Down

0 comments on commit 8020b20

Please sign in to comment.