9901a13723baca97e9300a5c83ca8e25.json
2.36 KB
{"ast":null,"code":"import * as React from 'react';\nimport { Item } from '../Item';\nexport default function useChildren(list, startIndex, endIndex, setNodeRef, renderFunc, _ref) {\n var getKey = _ref.getKey;\n return list.slice(startIndex, endIndex + 1).map(function (item, index) {\n var eleIndex = startIndex + index;\n var node = renderFunc(item, eleIndex, {// style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},\n });\n var key = getKey(item);\n return /*#__PURE__*/React.createElement(Item, {\n key: key,\n setRef: function setRef(ele) {\n return setNodeRef(item, ele);\n }\n }, node);\n });\n}","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/rc-virtual-list/es/hooks/useChildren.js"],"names":["React","Item","useChildren","list","startIndex","endIndex","setNodeRef","renderFunc","_ref","getKey","slice","map","item","index","eleIndex","node","key","createElement","setRef","ele"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,IAAT,QAAqB,SAArB;AACA,eAAe,SAASC,WAAT,CAAqBC,IAArB,EAA2BC,UAA3B,EAAuCC,QAAvC,EAAiDC,UAAjD,EAA6DC,UAA7D,EAAyEC,IAAzE,EAA+E;AAC5F,MAAIC,MAAM,GAAGD,IAAI,CAACC,MAAlB;AACA,SAAON,IAAI,CAACO,KAAL,CAAWN,UAAX,EAAuBC,QAAQ,GAAG,CAAlC,EAAqCM,GAArC,CAAyC,UAAUC,IAAV,EAAgBC,KAAhB,EAAuB;AACrE,QAAIC,QAAQ,GAAGV,UAAU,GAAGS,KAA5B;AACA,QAAIE,IAAI,GAAGR,UAAU,CAACK,IAAD,EAAOE,QAAP,EAAiB,CAAC;AAAD,KAAjB,CAArB;AAEA,QAAIE,GAAG,GAAGP,MAAM,CAACG,IAAD,CAAhB;AACA,WAAO,aAAaZ,KAAK,CAACiB,aAAN,CAAoBhB,IAApB,EAA0B;AAC5Ce,MAAAA,GAAG,EAAEA,GADuC;AAE5CE,MAAAA,MAAM,EAAE,SAASA,MAAT,CAAgBC,GAAhB,EAAqB;AAC3B,eAAOb,UAAU,CAACM,IAAD,EAAOO,GAAP,CAAjB;AACD;AAJ2C,KAA1B,EAKjBJ,IALiB,CAApB;AAMD,GAXM,CAAP;AAYD","sourcesContent":["import * as React from 'react';\nimport { Item } from '../Item';\nexport default function useChildren(list, startIndex, endIndex, setNodeRef, renderFunc, _ref) {\n var getKey = _ref.getKey;\n return list.slice(startIndex, endIndex + 1).map(function (item, index) {\n var eleIndex = startIndex + index;\n var node = renderFunc(item, eleIndex, {// style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},\n });\n var key = getKey(item);\n return /*#__PURE__*/React.createElement(Item, {\n key: key,\n setRef: function setRef(ele) {\n return setNodeRef(item, ele);\n }\n }, node);\n });\n}"]},"metadata":{},"sourceType":"module"}