feat: 移除不必要的 actions 导入,优化 form.ts 文件结构
Some checks failed
/ test (push) Failing after 22s
/ surge (push) Successful in 39s

This commit is contained in:
严浩
2024-12-04 18:24:54 +08:00
parent b65b6bf48e
commit f516aac5d2

View File

@ -1,8 +1,8 @@
import type { FormKitTypeDefinition } from '@formkit/core'; import type { FormKitTypeDefinition } from '@formkit/core';
import { actions, submitInput, forms, disablesChildren, createSection } from '@formkit/inputs'; import { createSection, disablesChildren, forms } from '@formkit/inputs';
import { messages } from '../sections/messages';
import PButton from 'primevue/button'; import PButton from 'primevue/button';
import { markRaw } from 'vue'; import { markRaw } from 'vue';
import { messages } from '../sections/messages';
const formInput = createSection('form', () => ({ const formInput = createSection('form', () => ({
$el: 'form', $el: 'form',
@ -37,7 +37,6 @@ export const form: FormKitTypeDefinition = {
schema: formInput( schema: formInput(
'$slots.default', '$slots.default',
messages(), messages(),
actions(submitInput()),
button(), // button(), //
), ),
props: [ props: [