|
1
|
1
|
import { DownOutlined, UpOutlined } from '@ant-design/icons';
|
|
2
|
2
|
import { useSetState } from 'ahooks';
|
|
3
|
|
-import { Dropdown, Input } from 'antd';
|
|
|
3
|
+import {Button, Dropdown, Input } from 'antd';
|
|
4
|
4
|
import type { InputProps } from 'antd/lib/input';
|
|
5
|
5
|
import cls from 'classnames';
|
|
6
|
6
|
import React, { useImperativeHandle } from 'react';
|
|
...
|
...
|
@@ -83,30 +83,31 @@ export const QxInputSelect = React.forwardRef<any, InputSelectProps>( |
|
83
|
83
|
}
|
|
84
|
84
|
}}
|
|
85
|
85
|
onOpenChange={onVisibleChange}
|
|
86
|
|
- disabled={disabled}
|
|
|
86
|
+ disabled={true}
|
|
87
|
87
|
>
|
|
88
|
88
|
<>
|
|
89
|
89
|
{
|
|
90
|
90
|
from === 'FORM'?
|
|
91
|
|
- <div
|
|
92
|
|
- className={'qx-input-select__div'}
|
|
|
91
|
+ <Button
|
|
|
92
|
+ disabled={disabled}
|
|
|
93
|
+ className={`qx-input-select__button`}
|
|
93
|
94
|
tabIndex={1}
|
|
94
|
95
|
onClick={() => setState({ visible: !state.visible })}
|
|
95
|
96
|
>
|
|
96
|
97
|
{props?.prefix}
|
|
97
|
98
|
{ !props?.value ?
|
|
98
|
|
- <span className={'qx-input-select__div-main qx-input-select__div-placeholder'}>{props?.placeholder}</span>:
|
|
99
|
|
- <span className={'qx-input-select__div-main'}>
|
|
|
99
|
+ <span className={'qx-input-select__button-main qx-input-select__button-placeholder'}>{props?.placeholder}</span>:
|
|
|
100
|
+ <span className={'qx-input-select__button-main'}>
|
|
100
|
101
|
<span>{props?.appName}</span>
|
|
101
|
102
|
<QxBaseIcon
|
|
102
|
103
|
type="qx-icon-left"
|
|
103
|
|
- className={'qx-input-select__div-svg'}
|
|
|
104
|
+ className={'qx-input-select__button-svg'}
|
|
104
|
105
|
/>
|
|
105
|
106
|
<span>{props?.value}</span>
|
|
106
|
107
|
</span>
|
|
107
|
108
|
}
|
|
108
|
109
|
{inputSuffix}
|
|
109
|
|
- </div>:
|
|
|
110
|
+ </Button>:
|
|
110
|
111
|
<Input
|
|
111
|
112
|
placeholder="请选择"
|
|
112
|
113
|
readOnly
|
...
|
...
|
|