-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1906 from yaklang/luoluo/feature/plugin-execute-r…
…isk-by-runtimeId Luoluo/feature/plugin execute risk by runtime
- Loading branch information
Showing
12 changed files
with
600 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...r/src/main/src/components/TableTotalAndSelectNumber/TableTotalAndSelectNumber.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.table-total-select { | ||
display: flex; | ||
align-items: center; | ||
justify-content: flex-end; | ||
|
||
.table-total-select-item { | ||
display: flex; | ||
align-items: center; | ||
|
||
.table-total-select-text { | ||
color: var(--yakit-helper-text-color); | ||
font-size: 12px; | ||
margin-right: 4px; | ||
} | ||
|
||
.table-total-select-number { | ||
color: var(--yakit-primary-5); | ||
font-size: 12px; | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
app/renderer/src/main/src/components/TableTotalAndSelectNumber/TableTotalAndSelectNumber.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from "react" | ||
import styles from "./TableTotalAndSelectNumber.module.scss" | ||
import {Divider} from "antd" | ||
|
||
interface TableTotalAndSelectNumberProps { | ||
total: number | ||
selectNum?: number | ||
} | ||
export const TableTotalAndSelectNumber: React.FC<TableTotalAndSelectNumberProps> = React.memo((props) => { | ||
const {total, selectNum} = props | ||
return ( | ||
<div className={styles["table-total-select"]}> | ||
<div className={styles["table-total-select-item"]}> | ||
<span className={styles["table-total-select-text"]}>Total</span> | ||
<span className={styles["table-total-select-number"]}>{total}</span> | ||
</div> | ||
{selectNum !== undefined && ( | ||
<> | ||
<Divider type='vertical' /> | ||
<div className={styles["table-total-select-item"]}> | ||
<span className={styles["table-total-select-text"]}>Selected</span> | ||
<span className={styles["table-total-select-number"]}>{selectNum}</span> | ||
</div> | ||
</> | ||
)} | ||
</div> | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.