MCPcopy
hub / github.com/xaboy/form-create / _fn

Function _fn

packages/core/src/render/render.js:15–29  ·  view source on GitHub ↗
(vm)

Source from the content-addressed store, hash-verified

13 },
14 getTypeSlot(ctx) {
15 const _fn = (vm) => {
16 if (vm) {
17 let slot = undefined;
18 if (ctx.rule.field) {
19 slot = vm.slots['field-' + toLine(ctx.rule.field)] || vm.slots['field-' + ctx.rule.field];
20 }
21 if (!slot) {
22 slot = vm.slots['type-' + toLine(ctx.type)] || vm.slots['type-' + ctx.type];
23 }
24 if (slot) {
25 return slot;
26 }
27 return _fn(vm.setupState.parent);
28 }
29 }
30 return _fn(this.vm);
31 },
32 render() {

Callers 1

getTypeSlotFunction · 0.70

Calls 1

toLineFunction · 0.90

Tested by

no test coverage detected