fix(plugin-workflow): select menu width (#1820)
This commit is contained in:
parent
2c29daedb5
commit
7fcdc5d336
@ -14,6 +14,7 @@ export const FieldsSelect = observer((props: any) => {
|
||||
return (
|
||||
<Select
|
||||
className="full-width"
|
||||
dropdownMatchSelectWidth={false}
|
||||
{...others}
|
||||
options={fields.filter(filter).map((field) => ({
|
||||
label: compile(field.uiSchema?.title),
|
||||
|
@ -11,6 +11,7 @@ export const collection = {
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Select',
|
||||
'x-component-props': {
|
||||
dropdownMatchSelectWidth: false,
|
||||
placeholder: '{{t("Select collection")}}',
|
||||
},
|
||||
};
|
||||
|
@ -55,6 +55,7 @@ export default {
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Select',
|
||||
'x-component-props': {
|
||||
dropdownMatchSelectWidth: false,
|
||||
options: collectionModeOptions,
|
||||
placeholder: `{{t("Trigger on", { ns: "${NAMESPACE}" })}}`,
|
||||
},
|
||||
|
@ -90,7 +90,7 @@ export const BaseTypeSets = {
|
||||
function matchFieldType(field, type): boolean {
|
||||
const inputType = typeof type;
|
||||
if (inputType === 'string') {
|
||||
return Boolean(BaseTypeSets[type]?.has(field.interface));
|
||||
return BaseTypeSets[type]?.has(field.interface);
|
||||
}
|
||||
|
||||
if (inputType === 'object' && type.type === 'reference') {
|
||||
|
Loading…
Reference in New Issue
Block a user