feat: form-create

This commit is contained in:
xingyu4j
2025-10-17 16:15:54 +08:00
parent 41baa56bf8
commit 7704aef4c8
13 changed files with 86 additions and 91 deletions

View File

@@ -13,7 +13,7 @@ import { selectRule } from '#/components/form-create/rules/data';
*
* @param option 规则配置
*/
export const useSelectRule = (option: SelectRuleOption) => {
export function useSelectRule(option: SelectRuleOption) {
const label = option.label;
const name = option.name;
const rules = cloneDeep(selectRule);
@@ -42,4 +42,4 @@ export const useSelectRule = (option: SelectRuleOption) => {
]);
},
};
};
}