Skip to content

Commit

Permalink
fix: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aojunhao123 committed Feb 26, 2025
1 parent cb69bfa commit 8c2ffe7
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .dumi/theme/slots/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const Header: React.FC = () => {
[direction],
);

const getDropdownStyle = useMemo<React.CSSProperties>(
const getPopupStyle = useMemo<React.CSSProperties>(
() => (direction === 'rtl' ? { direction: 'ltr', textAlign: 'right' } : {}),
[direction],
);
Expand Down Expand Up @@ -305,7 +305,7 @@ const Header: React.FC = () => {
className={styles.versionSelect}
defaultValue={pkg.version}
onChange={handleVersionChange}
dropdownStyle={getDropdownStyle}
popupStyle={getPopupStyle}
popupMatchSelectWidth={false}
getPopupContainer={(trigger) => trigger.parentNode}
options={versionOptions}
Expand Down
4 changes: 2 additions & 2 deletions components/cascader/demo/custom-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const options: Option[] = [
},
];

const dropdownRender = (menus: React.ReactNode) => (
const popupRender = (menus: React.ReactNode) => (
<div>
{menus}
<Divider style={{ margin: 0 }} />
Expand All @@ -51,7 +51,7 @@ const dropdownRender = (menus: React.ReactNode) => (
);

const App: React.FC = () => (
<Cascader options={options} dropdownRender={dropdownRender} placeholder="Please select" />
<Cascader options={options} popupRender={popupRender} placeholder="Please select" />
);

export default App;
2 changes: 1 addition & 1 deletion components/config-provider/demo/direction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ const Page: React.FC<{ placement: Placement }> = ({ placement }) => {
<TreeSelect
showSearch
style={{ width: '100%' }}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
popupStyle={{ maxHeight: 400, overflow: 'auto' }}
placeholder="Please select"
allowClear
treeDefaultExpandAll
Expand Down
2 changes: 1 addition & 1 deletion components/select/demo/custom-dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const App: React.FC = () => {
<Select
style={{ width: 300 }}
placeholder="custom dropdown render"
dropdownRender={(menu) => (
popupRender={(menu) => (
<>
{menu}
<Divider style={{ margin: '8px 0' }} />
Expand Down
2 changes: 1 addition & 1 deletion components/space/demo/compact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const App: React.FC = () => (
showSearch
style={{ width: '60%' }}
value="leaf1"
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
popupStyle={{ maxHeight: 400, overflow: 'auto' }}
placeholder="Please select"
allowClear
treeDefaultExpandAll
Expand Down
2 changes: 1 addition & 1 deletion components/tree-select/demo/async.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const App: React.FC = () => {
treeDataSimpleMode
style={{ width: '100%' }}
value={value}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
popupStyle={{ maxHeight: 400, overflow: 'auto' }}
placeholder="Please select"
onChange={onChange}
loadData={onLoadData}
Expand Down
2 changes: 1 addition & 1 deletion components/tree-select/demo/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const App: React.FC = () => {
showSearch
style={{ width: '100%' }}
value={value}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
popupStyle={{ maxHeight: 400, overflow: 'auto' }}
placeholder="Please select"
allowClear
treeDefaultExpandAll
Expand Down
2 changes: 1 addition & 1 deletion components/tree-select/demo/component-token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const App: React.FC = () => {
showSearch
style={{ width: '100%' }}
value={value}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
popupStyle={{ maxHeight: 400, overflow: 'auto' }}
placeholder="Please select"
allowClear
treeDefaultExpandAll
Expand Down
2 changes: 1 addition & 1 deletion components/tree-select/demo/multiple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const App: React.FC = () => {
showSearch
style={{ width: '100%' }}
value={value}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
popupStyle={{ maxHeight: 400, overflow: 'auto' }}
placeholder="Please select"
allowClear
multiple
Expand Down
2 changes: 1 addition & 1 deletion components/tree-select/demo/placement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const App: React.FC = () => {

<TreeSelect
showSearch
dropdownStyle={{ maxHeight: 400, overflow: 'auto', minWidth: 300 }}
popupStyle={{ maxHeight: 400, overflow: 'auto', minWidth: 300 }}
placeholder="Please select"
popupMatchSelectWidth={false}
placement={placement}
Expand Down
4 changes: 2 additions & 2 deletions components/tree-select/demo/suffix.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const App: React.FC = () => {
suffixIcon={icon}
style={{ width: '100%' }}
value={value}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
popupStyle={{ maxHeight: 400, overflow: 'auto' }}
placeholder="Please select"
allowClear
treeDefaultExpandAll
Expand All @@ -65,7 +65,7 @@ const App: React.FC = () => {
prefix="Prefix"
style={{ width: '100%' }}
value={value}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
popupStyle={{ maxHeight: 400, overflow: 'auto' }}
placeholder="Please select"
allowClear
treeDefaultExpandAll
Expand Down
2 changes: 1 addition & 1 deletion components/tree-select/demo/treeData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const App: React.FC = () => {
<TreeSelect
style={{ width: '100%' }}
value={value}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
popupStyle={{ maxHeight: 400, overflow: 'auto' }}
treeData={treeData}
placeholder="Please select"
treeDefaultExpandAll
Expand Down

0 comments on commit 8c2ffe7

Please sign in to comment.