c6c9e8eca56a74e6f068c43355acf9b5.json
2.61 KB
{"ast":null,"code":"import * as React from 'react';\nexport default function DropIndicator(_ref) {\n var dropPosition = _ref.dropPosition,\n dropLevelOffset = _ref.dropLevelOffset,\n indent = _ref.indent;\n var style = {\n pointerEvents: 'none',\n position: 'absolute',\n right: 0,\n backgroundColor: 'red',\n height: 2\n };\n\n switch (dropPosition) {\n case -1:\n style.top = 0;\n style.left = -dropLevelOffset * indent;\n break;\n\n case 1:\n style.bottom = 0;\n style.left = -dropLevelOffset * indent;\n break;\n\n case 0:\n style.bottom = 0;\n style.left = indent;\n break;\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n style: style\n });\n}","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/rc-tree/es/DropIndicator.js"],"names":["React","DropIndicator","_ref","dropPosition","dropLevelOffset","indent","style","pointerEvents","position","right","backgroundColor","height","top","left","bottom","createElement"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,eAAe,SAASC,aAAT,CAAuBC,IAAvB,EAA6B;AAC1C,MAAIC,YAAY,GAAGD,IAAI,CAACC,YAAxB;AAAA,MACIC,eAAe,GAAGF,IAAI,CAACE,eAD3B;AAAA,MAEIC,MAAM,GAAGH,IAAI,CAACG,MAFlB;AAGA,MAAIC,KAAK,GAAG;AACVC,IAAAA,aAAa,EAAE,MADL;AAEVC,IAAAA,QAAQ,EAAE,UAFA;AAGVC,IAAAA,KAAK,EAAE,CAHG;AAIVC,IAAAA,eAAe,EAAE,KAJP;AAKVC,IAAAA,MAAM,EAAE;AALE,GAAZ;;AAQA,UAAQR,YAAR;AACE,SAAK,CAAC,CAAN;AACEG,MAAAA,KAAK,CAACM,GAAN,GAAY,CAAZ;AACAN,MAAAA,KAAK,CAACO,IAAN,GAAa,CAACT,eAAD,GAAmBC,MAAhC;AACA;;AAEF,SAAK,CAAL;AACEC,MAAAA,KAAK,CAACQ,MAAN,GAAe,CAAf;AACAR,MAAAA,KAAK,CAACO,IAAN,GAAa,CAACT,eAAD,GAAmBC,MAAhC;AACA;;AAEF,SAAK,CAAL;AACEC,MAAAA,KAAK,CAACQ,MAAN,GAAe,CAAf;AACAR,MAAAA,KAAK,CAACO,IAAN,GAAaR,MAAb;AACA;AAdJ;;AAiBA,SAAO,aAAaL,KAAK,CAACe,aAAN,CAAoB,KAApB,EAA2B;AAC7CT,IAAAA,KAAK,EAAEA;AADsC,GAA3B,CAApB;AAGD","sourcesContent":["import * as React from 'react';\nexport default function DropIndicator(_ref) {\n var dropPosition = _ref.dropPosition,\n dropLevelOffset = _ref.dropLevelOffset,\n indent = _ref.indent;\n var style = {\n pointerEvents: 'none',\n position: 'absolute',\n right: 0,\n backgroundColor: 'red',\n height: 2\n };\n\n switch (dropPosition) {\n case -1:\n style.top = 0;\n style.left = -dropLevelOffset * indent;\n break;\n\n case 1:\n style.bottom = 0;\n style.left = -dropLevelOffset * indent;\n break;\n\n case 0:\n style.bottom = 0;\n style.left = indent;\n break;\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n style: style\n });\n}"]},"metadata":{},"sourceType":"module"}