feat:新增 form 组件

This commit is contained in:
JaguarJack
2024-04-23 13:12:02 +08:00
parent eeb6fd4f41
commit bc59731083
76 changed files with 2793 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
export default [
{
label: 'url',
component: 'Input',
name: 'props.api.url',
initialValue: '/current/query/article',
designKey: 'form-UrE8'
},
{
label: '请求方式',
component: 'Radio',
name: 'props.api.method',
props: {
mode: 'static',
autoSelectedFirst: true,
options: [
{
label: 'GET',
value: 'GET'
},
{
label: 'POST',
value: 'POST'
},
{
label: 'PUT',
value: 'PUT'
},
{
label: 'DELETE',
value: 'DELETE'
}
]
},
designKey: 'form-nOpD'
},
{
label: '请求参数',
component: 'JsonEdit',
name: 'props.api.params',
hidden: '{{ ["POST","PUT"].includes($values.props.api.method) }}',
initialValue: {},
props: {
mode: 'dialog'
}
},
{
label: '请求参数',
component: 'JsonEdit',
name: 'props.api.data',
hidden: '{{ ["GET","DELETE"].includes($values.props.api.method) }}',
initialValue: {},
props: {
mode: 'dialog'
}
},
{
label: '数据路径',
component: 'Input',
name: 'props.api.dataPath',
initialValue: 'data',
designKey: 'form-UrE8'
}
]