Skip to content

Commit

Permalink
PullRequest: 239 优化代码并修复422bp到423版本的冲突
Browse files Browse the repository at this point in the history
Merge branch 'fix/dev-4.2.3-synchronization-422bp-to-423 of [email protected]:oceanbase/oceanbase-developer-center.git into dev-4.2.3

https://code.alipay.com/oceanbase/oceanbase-developer-center/pull_requests/239


Signed-off-by: 晓康 <[email protected]>


* fix: synchronization-422bp-to-423

* fix: optimized code
  • Loading branch information
UnknownAdventurer committed Nov 22, 2023
1 parent 483b9b9 commit 9459b9f
Show file tree
Hide file tree
Showing 11 changed files with 402 additions and 294 deletions.
4 changes: 2 additions & 2 deletions src/component/CommonTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const CommonTable: <RecordType extends object = any>(
(tableProps?.pagination as TablePaginationConfig)?.pageSize ??
Math.max(
Math.floor(
(tableRef.current.offsetHeight -
(tableRef.current?.offsetHeight -
TOOLBAR_HEIGHT -
TABLE_HEAD_HEIGHT -
INFO_BAR_HEIGHT -
Expand All @@ -200,7 +200,7 @@ const CommonTable: <RecordType extends object = any>(
1,
);
setPageSize(computedPageSize);
setWrapperHeight(tableRef.current.offsetHeight);
setWrapperHeight(tableRef.current?.offsetHeight);
}

function computeTableScrollHeight() {
Expand Down
1 change: 1 addition & 0 deletions src/d.ts/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export enum DatabaseSyncStatus {

export interface IDatabase {
id: number;
databaseId?: string;
name: string;
project: IProject;
lockDatabaseUserRequired: boolean;
Expand Down
6 changes: 6 additions & 0 deletions src/page/Project/Sensitive/SensitiveContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ interface ISensitiveContext {
sensitiveRuleIdMap: {
[key in any]: string;
};
setSensitiveRuleIdMap: (
sensitiveRuleIdMap: {
[key in any]: string;
},
) => void;
}

const SensitiveContext = React.createContext<Partial<ISensitiveContext>>({
Expand All @@ -58,6 +63,7 @@ const SensitiveContext = React.createContext<Partial<ISensitiveContext>>({
tables: [],
sensitiveRules: [],
sensitiveRuleIdMap: {},
setSensitiveRuleIdMap: (sensitiveRuleIdMap = {}) => {},
});

export default SensitiveContext;
Loading

0 comments on commit 9459b9f

Please sign in to comment.