Skip to content
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 @@ -132,6 +132,7 @@ export const CompanyNoticeForm: React.FC<{
]}
disabled={disabled}
className="company-notice-date-picker"
getPopupContainer={() => document.body}
/>
</Form.Item>
</Form>
Expand Down
6 changes: 5 additions & 1 deletion packages/dms-kit/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,8 @@ nav:

## 1.0.9

- 路由数据变更
- 路由数据变更

## 1.0.10

- [BasicRangePicker] 修复用户无法自定义 `getPopupContainer` 属性的问题
4 changes: 2 additions & 2 deletions packages/dms-kit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@actiontech/dms-kit",
"version": "1.0.9",
"version": "1.0.10",
"description": "DMS Kit - React UI Components Library",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -58,4 +58,4 @@
"dumi": "^2.3.8",
"babel-plugin-import": "^1.13.8"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const BasicRangePicker: React.FC<BasicRangePickerProps> = (props) => {
suffixIcon,
prefix,
hideSuperIcon = true,
getPopupContainer,
...otherParams
} = props;

Expand All @@ -27,9 +28,7 @@ const BasicRangePicker: React.FC<BasicRangePickerProps> = (props) => {
//todo allowClear={{clearIcon: <IconClose />}} need antd 5.8.0
clearIcon={<CloseOutlined fill="currentColor" />}
separator={<RightOutlined width={14} height={14} fill="currentColor" />}
getPopupContainer={(trigger) => {
return trigger;
}}
getPopupContainer={getPopupContainer ?? ((trigger) => trigger)}
nextIcon={
<span className="next-icon">
<RightOutlined width={14} height={14} />
Expand Down
Loading