-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
/
formkit.config.ts
61 lines (58 loc) · 1.9 KB
/
formkit.config.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 { generateClasses } from "@formkit/themes";
import theme from "./theme";
import { zh, en } from "@formkit/i18n";
import type { DefaultConfigOptions } from "@formkit/vue";
import { form } from "./inputs/form";
import { group } from "./inputs/group";
import { attachment } from "./inputs/attachment";
import { code } from "./inputs/code";
import { repeater } from "./inputs/repeater";
import { menuCheckbox } from "./inputs/menu-checkbox";
import { menuRadio } from "./inputs/menu-radio";
import { menuItemSelect } from "./inputs/menu-item-select";
import { postSelect } from "./inputs/post-select";
import { singlePageSelect } from "./inputs/singlePage-select";
import { tagSelect } from "./inputs/tag-select";
import { categorySelect } from "./inputs/category-select";
import { categoryCheckbox } from "./inputs/category-checkbox";
import { tagCheckbox } from "./inputs/tag-checkbox";
import { roleSelect } from "./inputs/role-select";
import { attachmentPolicySelect } from "./inputs/attachment-policy-select";
import { attachmentGroupSelect } from "./inputs/attachment-group-select";
import radioAlt from "./plugins/radio-alt";
import stopImplicitSubmission from "./plugins/stop-implicit-submission";
import passwordPreventAutocomplete from "./plugins/password-prevent-autocomplete";
import requiredAsterisk from "./plugins/required-asterisk";
const config: DefaultConfigOptions = {
config: {
classes: generateClasses(theme),
},
plugins: [
radioAlt,
stopImplicitSubmission,
passwordPreventAutocomplete,
requiredAsterisk,
],
inputs: {
form,
group,
attachment,
code,
repeater,
menuCheckbox,
menuRadio,
menuItemSelect,
postSelect,
categorySelect,
tagSelect,
singlePageSelect,
categoryCheckbox,
tagCheckbox,
roleSelect,
attachmentPolicySelect,
attachmentGroupSelect,
},
locales: { zh, en },
locale: "zh",
};
export default config;