feat: 重构表单输入组件,添加文本输入类型,优化配置和样式
Some checks failed
/ test (push) Failing after 31s
/ surge (push) Successful in 45s

This commit is contained in:
严浩
2024-11-24 17:47:02 +08:00
parent 798954d6f3
commit 2aa80123b8
11 changed files with 257 additions and 40 deletions

View File

@ -15,12 +15,13 @@ export function addAsteriskPlugin(node: FormKitNode) {
// }
console.debug(`legendOrLabel :>> `, legendOrLabel);
console.groupEnd()
if (!node.props.definition) return;
if (node.props.definition?.schemaMemoKey) {
if (node.props.definition.schemaMemoKey) {
node.props.definition.schemaMemoKey += `${node.props.options ? '_multi' : ''}_add_asterisk`;
};
const schemaFn = node.props.definition!.schema!;
const schemaFn = node.props.definition.schema!;
node.props.definition!.schema = (sectionsSchema = {}) => {
sectionsSchema[legendOrLabel] = {
children: ['$label', {