-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 #3687 from illacloud/release/4.4.13
Release/4.4.13
- Loading branch information
Showing
16 changed files
with
172 additions
and
41 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
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
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
41 changes: 41 additions & 0 deletions
41
...s/InspectPanel/PanelSetters/DataGridSetter/ColumnSetter/Components/UpdateButton/index.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,41 @@ | ||
import { FC } from "react" | ||
import { useTranslation } from "react-i18next" | ||
import { RefreshIcon, Trigger } from "@illa-design/react" | ||
import { UpdateButtonProps } from "./interface" | ||
import { | ||
basicUpdateButtonContainerStyle, | ||
updateButtonContainerStyle, | ||
} from "./style" | ||
|
||
export const UpdateButton: FC<UpdateButtonProps> = (props) => { | ||
const { onClick } = props | ||
const { t } = useTranslation() | ||
|
||
return ( | ||
<Trigger | ||
content={t("editor.inspect.setter_tips.grid_list.update")} | ||
position="top-start" | ||
> | ||
<button css={updateButtonContainerStyle} onClick={onClick}> | ||
<RefreshIcon size="16px" /> | ||
{t("editor.inspect.setter_label.grid_list.update")} | ||
</button> | ||
</Trigger> | ||
) | ||
} | ||
|
||
export const BasicUpdateButton: FC<UpdateButtonProps> = (props) => { | ||
const { onClick } = props | ||
const { t } = useTranslation() | ||
|
||
return ( | ||
<Trigger | ||
content={t("editor.inspect.setter_tips.grid_list.update")} | ||
position="top-start" | ||
> | ||
<button css={basicUpdateButtonContainerStyle} onClick={onClick}> | ||
<RefreshIcon size="16px" /> | ||
</button> | ||
</Trigger> | ||
) | ||
} |
3 changes: 3 additions & 0 deletions
3
...nspectPanel/PanelSetters/DataGridSetter/ColumnSetter/Components/UpdateButton/interface.ts
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,3 @@ | ||
export interface UpdateButtonProps { | ||
onClick: () => void | ||
} |
25 changes: 25 additions & 0 deletions
25
...ts/InspectPanel/PanelSetters/DataGridSetter/ColumnSetter/Components/UpdateButton/style.ts
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,25 @@ | ||
import { css } from "@emotion/react" | ||
import { getColor } from "@illa-design/react" | ||
|
||
export const updateButtonContainerStyle = css` | ||
display: flex; | ||
padding: 5px 8px; | ||
gap: 8px; | ||
align-items: center; | ||
border: none; | ||
background-color: transparent; | ||
color: ${getColor("orange", "03")}; | ||
font-size: 14px; | ||
cursor: pointer; | ||
` | ||
|
||
export const basicUpdateButtonContainerStyle = css` | ||
padding: 4px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
cursor: pointer; | ||
background-color: transparent; | ||
border: none; | ||
color: ${getColor("grayBlue", "02")}; | ||
` |
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
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
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
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.