@form-create/ant-design-vue
Version:
Ant Design Vue 版本低代码表单 | FormCreate 是一个可以通过 JSON 生成具有动态渲染、数据收集、验证和提交功能的低代码表单生成组件。支持多个 UI 框架,适配移动端,并且支持生成任何 Vue 组件。内置 20 种常用表单组件和自定义组件,再复杂的表单都可以轻松搞定。
17 lines (14 loc) • 386 B
JavaScript
export default {
name: 'tree',
modelField: 'checkedKeys',
mergeProp(ctx) {
const props = ctx.prop.props;
if (!props.fieldNames)
props.fieldNames = {
key: 'id'
};
else if (!props.fieldNames.key) props.fieldNames.key = 'id';
props.checkedKeys = ctx.rule.value;
props.checkable = true;
},
}