Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: order detail issues #20

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading