6d77d89ce87eac15546c1a0e1d443c17.json 2.32 KB
{"ast":null,"code":"import devWarning from '../_util/devWarning';\nexport function validProgress(progress) {\n  if (!progress || progress < 0) {\n    return 0;\n  }\n\n  if (progress > 100) {\n    return 100;\n  }\n\n  return progress;\n}\nexport function getSuccessPercent(_ref) {\n  var success = _ref.success,\n      successPercent = _ref.successPercent;\n  var percent = successPercent;\n  /** @deprecated Use `percent` instead */\n\n  if (success && 'progress' in success) {\n    devWarning(false, 'Progress', '`success.progress` is deprecated. Please use `success.percent` instead.');\n    percent = success.progress;\n  }\n\n  if (success && 'percent' in success) {\n    percent = success.percent;\n  }\n\n  return percent;\n}","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/progress/utils.js"],"names":["devWarning","validProgress","progress","getSuccessPercent","_ref","success","successPercent","percent"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,qBAAvB;AACA,OAAO,SAASC,aAAT,CAAuBC,QAAvB,EAAiC;AACtC,MAAI,CAACA,QAAD,IAAaA,QAAQ,GAAG,CAA5B,EAA+B;AAC7B,WAAO,CAAP;AACD;;AAED,MAAIA,QAAQ,GAAG,GAAf,EAAoB;AAClB,WAAO,GAAP;AACD;;AAED,SAAOA,QAAP;AACD;AACD,OAAO,SAASC,iBAAT,CAA2BC,IAA3B,EAAiC;AACtC,MAAIC,OAAO,GAAGD,IAAI,CAACC,OAAnB;AAAA,MACIC,cAAc,GAAGF,IAAI,CAACE,cAD1B;AAEA,MAAIC,OAAO,GAAGD,cAAd;AACA;;AAEA,MAAID,OAAO,IAAI,cAAcA,OAA7B,EAAsC;AACpCL,IAAAA,UAAU,CAAC,KAAD,EAAQ,UAAR,EAAoB,yEAApB,CAAV;AACAO,IAAAA,OAAO,GAAGF,OAAO,CAACH,QAAlB;AACD;;AAED,MAAIG,OAAO,IAAI,aAAaA,OAA5B,EAAqC;AACnCE,IAAAA,OAAO,GAAGF,OAAO,CAACE,OAAlB;AACD;;AAED,SAAOA,OAAP;AACD","sourcesContent":["import devWarning from '../_util/devWarning';\nexport function validProgress(progress) {\n  if (!progress || progress < 0) {\n    return 0;\n  }\n\n  if (progress > 100) {\n    return 100;\n  }\n\n  return progress;\n}\nexport function getSuccessPercent(_ref) {\n  var success = _ref.success,\n      successPercent = _ref.successPercent;\n  var percent = successPercent;\n  /** @deprecated Use `percent` instead */\n\n  if (success && 'progress' in success) {\n    devWarning(false, 'Progress', '`success.progress` is deprecated. Please use `success.percent` instead.');\n    percent = success.progress;\n  }\n\n  if (success && 'percent' in success) {\n    percent = success.percent;\n  }\n\n  return percent;\n}"]},"metadata":{},"sourceType":"module"}