715684d9becec239696cadbc37702d17.json
2.75 KB
{"ast":null,"code":"import * as React from 'react';\n\nfunction AddButton(_ref, ref) {\n var prefixCls = _ref.prefixCls,\n editable = _ref.editable,\n locale = _ref.locale,\n style = _ref.style;\n\n if (!editable || editable.showAdd === false) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(\"button\", {\n ref: ref,\n type: \"button\",\n className: \"\".concat(prefixCls, \"-nav-add\"),\n style: style,\n \"aria-label\": (locale === null || locale === void 0 ? void 0 : locale.addAriaLabel) || 'Add tab',\n onClick: function onClick(event) {\n editable.onEdit('add', {\n event: event\n });\n }\n }, editable.addIcon || '+');\n}\n\nexport default /*#__PURE__*/React.forwardRef(AddButton);","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/rc-tabs/es/TabNavList/AddButton.js"],"names":["React","AddButton","_ref","ref","prefixCls","editable","locale","style","showAdd","createElement","type","className","concat","addAriaLabel","onClick","event","onEdit","addIcon","forwardRef"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;;AAEA,SAASC,SAAT,CAAmBC,IAAnB,EAAyBC,GAAzB,EAA8B;AAC5B,MAAIC,SAAS,GAAGF,IAAI,CAACE,SAArB;AAAA,MACIC,QAAQ,GAAGH,IAAI,CAACG,QADpB;AAAA,MAEIC,MAAM,GAAGJ,IAAI,CAACI,MAFlB;AAAA,MAGIC,KAAK,GAAGL,IAAI,CAACK,KAHjB;;AAKA,MAAI,CAACF,QAAD,IAAaA,QAAQ,CAACG,OAAT,KAAqB,KAAtC,EAA6C;AAC3C,WAAO,IAAP;AACD;;AAED,SAAO,aAAaR,KAAK,CAACS,aAAN,CAAoB,QAApB,EAA8B;AAChDN,IAAAA,GAAG,EAAEA,GAD2C;AAEhDO,IAAAA,IAAI,EAAE,QAF0C;AAGhDC,IAAAA,SAAS,EAAE,GAAGC,MAAH,CAAUR,SAAV,EAAqB,UAArB,CAHqC;AAIhDG,IAAAA,KAAK,EAAEA,KAJyC;AAKhD,kBAAc,CAACD,MAAM,KAAK,IAAX,IAAmBA,MAAM,KAAK,KAAK,CAAnC,GAAuC,KAAK,CAA5C,GAAgDA,MAAM,CAACO,YAAxD,KAAyE,SALvC;AAMhDC,IAAAA,OAAO,EAAE,SAASA,OAAT,CAAiBC,KAAjB,EAAwB;AAC/BV,MAAAA,QAAQ,CAACW,MAAT,CAAgB,KAAhB,EAAuB;AACrBD,QAAAA,KAAK,EAAEA;AADc,OAAvB;AAGD;AAV+C,GAA9B,EAWjBV,QAAQ,CAACY,OAAT,IAAoB,GAXH,CAApB;AAYD;;AAED,eAAe,aAAajB,KAAK,CAACkB,UAAN,CAAiBjB,SAAjB,CAA5B","sourcesContent":["import * as React from 'react';\n\nfunction AddButton(_ref, ref) {\n var prefixCls = _ref.prefixCls,\n editable = _ref.editable,\n locale = _ref.locale,\n style = _ref.style;\n\n if (!editable || editable.showAdd === false) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(\"button\", {\n ref: ref,\n type: \"button\",\n className: \"\".concat(prefixCls, \"-nav-add\"),\n style: style,\n \"aria-label\": (locale === null || locale === void 0 ? void 0 : locale.addAriaLabel) || 'Add tab',\n onClick: function onClick(event) {\n editable.onEdit('add', {\n event: event\n });\n }\n }, editable.addIcon || '+');\n}\n\nexport default /*#__PURE__*/React.forwardRef(AddButton);"]},"metadata":{},"sourceType":"module"}