-
Notifications
You must be signed in to change notification settings - Fork 12
/
CreateApp.ts
61 lines (60 loc) · 1.38 KB
/
CreateApp.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { FormConfig } from '@/types';
const CreateApp: FormConfig = {
title: '创建应用',
description: '创建应用',
rowData: [
[
{
name: 'title',
className: 'w-full',
properties: {
type: 'text',
label: '应用名称',
placeholder: '请输入应用名称'
},
defaultValue: '',
rules: {
required: '请输入应用名称',
minLength: { value: 2, message: '应用名称长度至少2位' },
maxLength: { value: 10, message: '应用名称长度最多10位' }
}
}
],
[
{
name: 'desc',
className: 'w-full',
properties: {
type: 'text',
label: '应用说明',
multiline: true,
rows: 5,
placeholder: '请输入应用说明'
},
defaultValue: '',
rules: {
maxLength: { value: 100, message: '应用说明长度最多100位' }
}
}
],
[
{
name: 'cancel',
component: 'CancelButton',
className: 'w-1/2 px-2',
properties: {
buttonText: '取消'
}
},
{
name: 'submit-btn',
component: 'SubmitButton',
className: 'w-1/2 px-2',
properties: {
buttonText: ['保存中...', '保存']
}
}
]
]
};
export default CreateApp;