Commit fff2b3b5b4568cf842a3b7810f1713dce6041c30

Authored by 李婷
1 parent a4044e18

feat: 调整高度

1 -import React, { useCallback, useRef } from 'react';  
2 import { BlockOutlined } from '@ant-design/icons'; 1 import { BlockOutlined } from '@ant-design/icons';
3 import { useSetState } from 'ahooks'; 2 import { useSetState } from 'ahooks';
4 import { Button } from 'antd'; 3 import { Button } from 'antd';
5 import cls from 'classnames'; 4 import cls from 'classnames';
  5 +import React, { useCallback, useRef } from 'react';
6 import { QxAppSelector } from '../qx-app-selector'; 6 import { QxAppSelector } from '../qx-app-selector';
7 import type { InputSelectProps } from '../qx-input-select'; 7 import type { InputSelectProps } from '../qx-input-select';
8 import { QxInputSelect } from '../qx-input-select'; 8 import { QxInputSelect } from '../qx-input-select';
@@ -66,6 +66,7 @@ export const QxFormSelect: React.FC<FormSelectProps> = (props) => { @@ -66,6 +66,7 @@ export const QxFormSelect: React.FC<FormSelectProps> = (props) => {
66 dropdownProps={{ 66 dropdownProps={{
67 showSearch: true, 67 showSearch: true,
68 loading, 68 loading,
  69 + listHeight: 160,
69 renderBottom: ( 70 renderBottom: (
70 <Button 71 <Button
71 className={`${prefix}__dropdown-bottom`} 72 className={`${prefix}__dropdown-bottom`}
1 @import '~@qx/ui/src/style/variable.less'; 1 @import '~@qx/ui/src/style/variable.less';
2 2
3 -@prefix: ~'qx-form-select';  
4 -  
5 -.@{prefix} { 3 +.qx-form-select {
6 width: 100%; 4 width: 100%;
7 5
8 &__dropdown-bottom { 6 &__dropdown-bottom {
@@ -12,7 +10,4 @@ @@ -12,7 +10,4 @@
12 background-color: #fff !important; 10 background-color: #fff !important;
13 border-top: 1px solid @N4 !important; 11 border-top: 1px solid @N4 !important;
14 } 12 }
15 - .qx-input-select-dropdown {  
16 - height: 200px;  
17 - }  
18 } 13 }