first commit
This commit is contained in:
9
frontend/node_modules/antd/es/select/useShowArrow.js
generated
vendored
Normal file
9
frontend/node_modules/antd/es/select/useShowArrow.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Since Select, TreeSelect, Cascader is same Select like component.
|
||||
* We just use same hook to handle this logic.
|
||||
*
|
||||
* If `suffixIcon` is not equal to `null`, always show it.
|
||||
*/
|
||||
export default function useShowArrow(suffixIcon, showArrow) {
|
||||
return showArrow !== undefined ? showArrow : suffixIcon !== null;
|
||||
}
|
||||
Reference in New Issue
Block a user