Skip to content

Commit

Permalink
fix(): 给brickTree增加afterSearchBrick
Browse files Browse the repository at this point in the history
close
CD-3201
  • Loading branch information
julielai committed Oct 28, 2022
1 parent 6ae438d commit aa5621d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions bricks/presentational-bricks/src/brick-tree/BrickTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export interface BrickTreeProps {
| { checked: React.Key[]; halfChecked: React.Key[] }
): void;
suffixBrick?: { useBrick: UseBrickConf };
searchBrick?: { useBrick: UseBrickConf };
afterSearchBrick?: { useBrick: UseBrickConf };
showSpecificationTitleStyle?: boolean;
defaultExpandAll?: boolean;
deselectable?: boolean;
Expand All @@ -201,7 +201,7 @@ export function BrickTree(props: BrickTreeProps): React.ReactElement {
checkAllEnabled,
checkedFilterConfig: { field, value, operator } = {},
suffixBrick,
searchBrick,
afterSearchBrick,
showSpecificationTitleStyle,
defaultExpandAll,
deselectable,
Expand Down Expand Up @@ -370,9 +370,9 @@ export function BrickTree(props: BrickTreeProps): React.ReactElement {
style={{ marginBottom: 8 }}
data-testid="search-input"
/>
{!isEmpty(searchBrick?.useBrick) && (
{!isEmpty(afterSearchBrick?.useBrick) && (
<BrickAsComponent
useBrick={searchBrick?.useBrick}
useBrick={afterSearchBrick?.useBrick}
></BrickAsComponent>
)}
</div>
Expand Down
4 changes: 2 additions & 2 deletions bricks/presentational-bricks/src/brick-tree/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export class BrickTreeElement extends UpdatingElement {
@property({
attribute: false,
})
searchBrick: { useBrick: UseBrickConf };
afterSearchBrick: { useBrick: UseBrickConf };

/**
* @kind boolean
Expand Down Expand Up @@ -261,7 +261,7 @@ export class BrickTreeElement extends UpdatingElement {
onCheck={this._handleCheck}
checkedFilterConfig={this.checkedFilterConfig}
suffixBrick={this.suffixBrick}
searchBrick={this.searchBrick}
afterSearchBrick={this.afterSearchBrick}
showSpecificationTitleStyle={this.showSpecificationTitleStyle}
defaultExpandAll={this.defaultExpandAll}
deselectable={this.deselectable}
Expand Down
2 changes: 0 additions & 2 deletions bricks/presentational-bricks/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ import "./general-list";
// !Lazy: import "./modal-confirm";
import "./brick-quick-entries";
import "./collapsible-card-item";
// !Lazy: import "./single-field-edit";
// !Lazy: import "./brick-placeholder";
import "./general-carousel";
import "./agent-status";
import "./dynamic-content";
Expand Down

0 comments on commit aa5621d

Please sign in to comment.