fix(plugin-workflow): select menu width (#1820)

This commit is contained in:
Junyi 2023-05-08 12:50:43 +07:00 committed by GitHub
parent 2c29daedb5
commit 7fcdc5d336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 1 deletions

View File

@ -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),

View File

@ -11,6 +11,7 @@ export const collection = {
'x-decorator': 'FormItem',
'x-component': 'Select',
'x-component-props': {
dropdownMatchSelectWidth: false,
placeholder: '{{t("Select collection")}}',
},
};

View File

@ -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}" })}}`,
},

View File

@ -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') {