@caxa-form/core
Version:
vue动态表单,助你轻松搞定表单|form-create is a form generation component that can generate dynamic rendering, data collection, verification and submission functions through JSON. Supports 3 UI frameworks, and supports the generation of any Vue components. Built-in 20
30 lines (25 loc) • 624 B
JavaScript
import useCache from './cache';
import useRender from './render';
import extend from '@caxa-form/utils/lib/extend';
import {funcProxy} from '../frame/util';
export default function Render(handle) {
extend(this, {
$handle: handle,
fc: handle.fc,
vm: handle.vm,
$manager: handle.$manager,
vNode: new handle.fc.CreateNode(handle.vm),
});
funcProxy(this, {
options() {
return handle.options;
},
sort() {
return handle.sort;
}
})
this.initCache();
this.initRender();
}
useCache(Render);
useRender(Render)