feat: 重构表单输入组件,添加文本输入类型,优化配置和样式
This commit is contained in:
@ -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', {
|
||||
|
Reference in New Issue
Block a user