fix(plugin-workflow): fix input width in request node config (#1585)

This commit is contained in:
Junyi 2023-03-21 12:04:37 +07:00 committed by GitHub
parent 01294d3c83
commit c3b89c9abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
import { ArrayItems } from '@formily/antd';
import { css } from '@emotion/css';
import { cx, css } from '@emotion/css';
import { NAMESPACE } from '../locale';
import { useWorkflowVariableOptions } from '../variable';
@ -36,18 +36,11 @@ export default {
title: `{{t("URL", { ns: "${NAMESPACE}" })}}`,
'x-decorator': 'FormItem',
'x-decorator-props': {
className: css`
.ant-formily-item-control-content-component{
.ant-input-affix-wrapper,
.ant-input{
width: 100%;
}
}
`
},
'x-component': 'Input',
'x-component-props': {
placeholder: 'https://www.nocobase.com',
className: 'full-width'
},
},
headers: {
@ -153,10 +146,10 @@ export default {
minRows: 10,
},
placeholder: `{{t("Input request data", { ns: "${NAMESPACE}" })}}`,
className: css`
className: cx('full-width', css`
font-size: 90%;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
`
`)
},
description: `{{t("Only support standard JSON data", { ns: "${NAMESPACE}" })}}`,
},