feat: 更新表单组件,简化代码结构并添加调试插件
Some checks failed
/ test (push) Failing after 26s
/ surge (push) Successful in 39s

This commit is contained in:
严浩
2024-11-25 10:33:01 +08:00
parent 07320f09b0
commit 7bb954e348
11 changed files with 152 additions and 185 deletions

View File

@ -0,0 +1,10 @@
export function debugPlugin(node: import('@formkit/core').FormKitNode) {
if (['button', 'submit', 'hidden', 'group', 'list', 'meta'].includes(node.props.type)) return;
node.on('created', () => {
console.group('[node created]', node.props.label || node.props.submitLabel);
console.debug(`node :>> `, node);
console.debug(`node.props.definition :>> `, node.props.definition);
console.groupEnd();
});
}