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 (
|
return (
|
||||||
<Select
|
<Select
|
||||||
className="full-width"
|
className="full-width"
|
||||||
|
dropdownMatchSelectWidth={false}
|
||||||
{...others}
|
{...others}
|
||||||
options={fields.filter(filter).map((field) => ({
|
options={fields.filter(filter).map((field) => ({
|
||||||
label: compile(field.uiSchema?.title),
|
label: compile(field.uiSchema?.title),
|
||||||
|
@ -11,6 +11,7 @@ export const collection = {
|
|||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
'x-component': 'Select',
|
'x-component': 'Select',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
|
dropdownMatchSelectWidth: false,
|
||||||
placeholder: '{{t("Select collection")}}',
|
placeholder: '{{t("Select collection")}}',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -55,6 +55,7 @@ export default {
|
|||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
'x-component': 'Select',
|
'x-component': 'Select',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
|
dropdownMatchSelectWidth: false,
|
||||||
options: collectionModeOptions,
|
options: collectionModeOptions,
|
||||||
placeholder: `{{t("Trigger on", { ns: "${NAMESPACE}" })}}`,
|
placeholder: `{{t("Trigger on", { ns: "${NAMESPACE}" })}}`,
|
||||||
},
|
},
|
||||||
|
@ -90,7 +90,7 @@ export const BaseTypeSets = {
|
|||||||
function matchFieldType(field, type): boolean {
|
function matchFieldType(field, type): boolean {
|
||||||
const inputType = typeof type;
|
const inputType = typeof type;
|
||||||
if (inputType === 'string') {
|
if (inputType === 'string') {
|
||||||
return Boolean(BaseTypeSets[type]?.has(field.interface));
|
return BaseTypeSets[type]?.has(field.interface);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inputType === 'object' && type.type === 'reference') {
|
if (inputType === 'object' && type.type === 'reference') {
|
||||||
|
Loading…
Reference in New Issue
Block a user