Commit fff2b3b5b4568cf842a3b7810f1713dce6041c30

Authored by 李婷
1 parent a4044e18

feat: 调整高度

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