MCPcopy
hub / github.com/youzan/vant-weapp / getChildData

Function getChildData

packages/tabs/index.ts:366–378  ·  view source on GitHub ↗
(index: number, child?: TrivialInstance)

Source from the content-addressed store, hash-verified

364 });
365 },
366 getChildData(index: number, child?: TrivialInstance) {
367 const currentChild = child || this.children[index];
368
369 if (!isDef(currentChild)) {
370 return;
371 }
372
373 return {
374 index: currentChild.index,
375 name: currentChild.getComputedName(),
376 title: currentChild.data.title,
377 };
378 },
379 },
380});

Callers

nothing calls this directly

Calls 1

isDefFunction · 0.90

Tested by

no test coverage detected