点击回首页
我的浏览记录 | | 帮助?
当前位置:
首页>> 行业软件>> 在线考试系统>> 源文件浏览
[免费版 Free] WebForm,下载次数:408 次 | 关键字: 考试 办公 高校 竞赛 企事业单位

源码截图

源码目录树

;
当前路径:public/static/control/p__courseManger__cheakTestPaper.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[15],{"14J3":function(e,t,n){"use strict";n("cIOH"),n("1GLa")},"2oIt":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};t.default=a},BMrR:function(e,t,n){"use strict";var a=n("qrJ5");t["a"]=a["a"]},CFYs:function(e,t,n){"use strict";var a=n("lSNA"),r=n.n(a),o=n("pVnL"),s=n.n(o),c=n("lwsE"),i=n.n(c),l=n("W8MJ"),u=n.n(l),p=n("PJYZ"),d=n.n(p),m=n("7W2i"),f=n.n(m),h=n("LQ03"),v=n.n(h),b=n("q1tI"),y=n("TSYQ"),g=n.n(y),x=n("6UMo"),E=n("V/uB"),k=n.n(E),O=n("NAnI"),w=n.n(O),C=n("J84W"),N=n.n(C),P=n("kbBi"),j=n.n(P),S=n("H84U"),M=n("CWQg"),D=n("uaoM"),L=n("Zss7"),I=n.n(L),F=2,A=.16,T=.05,V=.05,B=.15,K=5,W=4,U=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function H(e,t,n){var a;return a=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-F*t:Math.round(e.h)+F*t:n?Math.round(e.h)+F*t:Math.round(e.h)-F*t,a<0?a+=360:a>=360&&(a-=360),a}function R(e,t,n){return 0===e.h&&0===e.s?e.s:(a=n?e.s-A*t:t===W?e.s+A:e.s+T*t,a>1&&(a=1),n&&t===K&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2)));var a}function z(e,t,n){var a;return a=n?e.v+V*t:e.v-B*t,a>1&&(a=1),Number(a.toFixed(2))}function q(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],a=I()(e),r=K;r>0;r-=1){var o=a.toHsv(),s=I()({h:H(o,r,!0),s:R(o,r,!0),v:z(o,r,!0)}).toHexString();n.push(s)}n.push(a.toHexString());for(var c=1;c<=W;c+=1){var i=a.toHsv(),l=I()({h:H(i,c),s:R(i,c),v:z(i,c)}).toHexString();n.push(l)}return"dark"===t.theme?U.map((function(e){var a=e.index,r=e.opacity,o=I.a.mix(t.backgroundColor||"#141414",n[a],100*r).toHexString();return o})):n}var Q={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},J={},Y={};Object.keys(Q).forEach((function(e){J[e]=q(Q[e]),J[e].primary=J[e][5],Y[e]=q(Q[e],{theme:"dark",backgroundColor:"#141414"}),Y[e].primary=Y[e][5]}));J.red,J.volcano,J.gold,J.orange,J.yellow,J.lime,J.green,J.cyan,J.blue,J.geekblue,J.purple,J.magenta,J.grey;function Z(e){return!e||e<0?0:e>100?100:e}function _(e){var t=e.success,n=e.successPercent,a=n;return t&&"progress"in t&&(Object(D["a"])(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),a=t.progress),t&&"percent"in t&&(a=t.percent),a}var G=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},X=function(e){var t=[];return Object.keys(e).forEach((function(n){var a=parseFloat(n.replace(/%/g,""));isNaN(a)||t.push({key:a,value:e[n]})})),t=t.sort((function(e,t){return e.key-t.key})),t.map((function(e){var t=e.key,n=e.value;return"".concat(n," ").concat(t,"%")})).join(", ")},$=function(e){var t=e.from,n=void 0===t?Q.blue:t,a=e.to,r=void 0===a?Q.blue:a,o=e.direction,s=void 0===o?"to right":o,c=G(e,["from","to","direction"]);if(0!==Object.keys(c).length){var i=X(c);return{backgroundImage:"linear-gradient(".concat(s,", ").concat(i,")")}}return{backgroundImage:"linear-gradient(".concat(s,", ").concat(n,", ").concat(r,")")}},ee=function(e){var t=e.prefixCls,n=e.percent,a=e.strokeWidth,r=e.size,o=e.strokeColor,c=e.strokeLinecap,i=e.children,l=e.trailColor,u=e.success,p=o&&"string"!==typeof o?$(o):{background:o},d=l?{backgroundColor:l}:void 0,m=s()({width:"".concat(Z(n),"%"),height:a||("small"===r?6:8),borderRadius:"square"===c?0:""},p),f=_(e),h={width:"".concat(Z(f),"%"),height:a||("small"===r?6:8),borderRadius:"square"===c?0:"",backgroundColor:null===u||void 0===u?void 0:u.strokeColor},v=void 0!==f?b["createElement"]("div",{className:"".concat(t,"-success-bg"),style:h}):null;return b["createElement"](b["Fragment"],null,b["createElement"]("div",{className:"".concat(t,"-outer")},b["createElement"]("div",{className:"".concat(t,"-inner"),style:d},b["createElement"]("div",{className:"".concat(t,"-bg"),style:m}),v)),i)},te=ee,ne=n("ODXe"),ae=n("Ff2n"),re={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},oe=function(e){var t=e.map((function(){return Object(b["useRef"])()})),n=Object(b["useRef"])(null);return Object(b["useEffect"])((function(){var e=Date.now(),a=!1;Object.keys(t).forEach((function(r){var o=t[r].current;if(o){a=!0;var s=o.style;s.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(s.transitionDuration="0s, 0s")}})),a&&(n.current=Date.now())})),[t]},se=function(e){var t=e.className,n=e.percent,a=e.prefixCls,r=e.strokeColor,o=e.strokeLinecap,s=e.strokeWidth,c=e.style,i=e.trailColor,l=e.trailWidth,u=e.transition,p=Object(ae["a"])(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete p.gapPosition;var d=Array.isArray(n)?n:[n],m=Array.isArray(r)?r:[r],f=oe(d),h=Object(ne["a"])(f,1),v=h[0],y=s/2,x=100-s/2,E="M ".concat("round"===o?y:0,",").concat(y,"\n         L ").concat("round"===o?x:100,",").concat(y),k="0 0 100 ".concat(s),O=0;return b["createElement"]("svg",Object.assign({className:g()("".concat(a,"-line"),t),viewBox:k,preserveAspectRatio:"none",style:c},p),b["createElement"]("path",{className:"".concat(a,"-line-trail"),d:E,strokeLinecap:o,stroke:i,strokeWidth:l||s,fillOpacity:"0"}),d.map((function(e,t){var n={strokeDasharray:"".concat(e,"px, 100px"),strokeDashoffset:"-".concat(O,"px"),transition:u||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},r=m[t]||m[m.length-1];return O+=e,b["createElement"]("path",{key:t,className:"".concat(a,"-line-path"),d:E,strokeLinecap:o,stroke:r,strokeWidth:s,fillOpacity:"0",ref:v[t],style:n})})))};se.defaultProps=re,se.displayName="Line";var ce=0;function ie(e){return+e.replace("%","")}function le(e){return Array.isArray(e)?e:[e]}function ue(e,t,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0,s=50-a/2,c=0,i=-s,l=0,u=-2*s;switch(o){case"left":c=-s,i=0,l=2*s,u=0;break;case"right":c=s,i=0,l=-2*s,u=0;break;case"bottom":i=s,u=2*s;break;default:}var p="M 50,50 m ".concat(c,",").concat(i,"\n   a ").concat(s,",").concat(s," 0 1 1 ").concat(l,",").concat(-u,"\n   a ").concat(s,",").concat(s," 0 1 1 ").concat(-l,",").concat(u),d=2*Math.PI*s,m={stroke:n,strokeDasharray:"".concat(t/100*(d-r),"px ").concat(d,"px"),strokeDashoffset:"-".concat(r/2+e/100*(d-r),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:p,pathStyle:m}}var pe=function(e){var t=e.prefixCls,n=e.strokeWidth,a=e.trailWidth,r=e.gapDegree,o=e.gapPosition,s=e.trailColor,c=e.strokeLinecap,i=e.style,l=e.className,u=e.strokeColor,p=e.percent,d=Object(ae["a"])(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),m=b["useMemo"]((function(){return ce+=1,ce}),[]),f=ue(0,100,s,n,r,o),h=f.pathString,v=f.pathStyle,y=le(p),x=le(u),E=x.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),k=oe(y),O=Object(ne["a"])(k,1),w=O[0],C=function(){var e=0;return y.map((function(a,s){var i=x[s]||x[x.length-1],l="[object Object]"===Object.prototype.toString.call(i)?"url(#".concat(t,"-gradient-").concat(m,")"):"",u=ue(e,a,i,n,r,o);return e+=a,b["createElement"]("path",{key:s,className:"".concat(t,"-circle-path"),d:u.pathString,stroke:l,strokeLinecap:c,strokeWidth:n,opacity:0===a?0:1,fillOpacity:"0",style:u.pathStyle,ref:w[s]})}))};return b["createElement"]("svg",Object.assign({className:g()("".concat(t,"-circle"),l),viewBox:"0 0 100 100",style:i},d),E&&b["createElement"]("defs",null,b["createElement"]("linearGradient",{id:"".concat(t,"-gradient-").concat(m),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(E).sort((function(e,t){return ie(e)-ie(t)})).map((function(e,t){return b["createElement"]("stop",{key:t,offset:e,stopColor:E[e]})})))),b["createElement"]("path",{className:"".concat(t,"-circle-trail"),d:h,stroke:s,strokeLinecap:c,strokeWidth:a||n,fillOpacity:"0",style:v}),C().reverse())};pe.defaultProps=re,pe.displayName="Circle";var de=pe;function me(e){var t=e.percent,n=e.success,a=e.successPercent,r=Z(t),o=_({success:n,successPercent:a});return o?[Z(o),Z(r-Z(o))]:r}function fe(e){var t=e.success,n=e.strokeColor,a=e.successPercent,r=n||null,o=_({success:t,successPercent:a});return o?[Q.green,r]:r}var he=function(e){var t=e.prefixCls,n=e.width,a=e.strokeWidth,o=e.trailColor,s=e.strokeLinecap,c=e.gapPosition,i=e.gapDegree,l=e.type,u=e.children,p=n||120,d={width:p,height:p,fontSize:.15*p+6},m=a||6,f=c||"dashboard"===l&&"bottom"||"top",h=function(){return i||0===i?i:"dashboard"===l?75:void 0},v=fe(e),y="[object Object]"===Object.prototype.toString.call(v),x=g()("".concat(t,"-inner"),r()({},"".concat(t,"-circle-gradient"),y));return b["createElement"]("div",{className:x,style:d},b["createElement"](de,{percent:me(e),strokeWidth:m,trailWidth:m,strokeColor:v,strokeLinecap:s,trailColor:o,prefixCls:t,gapDegree:h(),gapPosition:f}),u)},ve=he,be=function(e){for(var t=e.size,n=e.steps,a=e.percent,o=void 0===a?0:a,s=e.strokeWidth,c=void 0===s?8:s,i=e.strokeColor,l=e.trailColor,u=e.prefixCls,p=e.children,d=Math.floor(n*(o/100)),m="small"===t?2:14,f=[],h=0;h<n;h+=1)f.push(b["createElement"]("div",{key:h,className:g()("".concat(u,"-steps-item"),r()({},"".concat(u,"-steps-item-active"),h<=d-1)),style:{backgroundColor:h<=d-1?i:l,width:m,height:c}}));return b["createElement"]("div",{className:"".concat(u,"-steps-outer")},f,p)},ye=be,ge=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},xe=(Object(M["a"])("line","circle","dashboard"),Object(M["a"])("normal","exception","active","success")),Ee=function(e){f()(n,e);var t=v()(n);function n(){var e;return i()(this,n),e=t.apply(this,arguments),e.renderProgress=function(t){var n,a,o=t.getPrefixCls,c=t.direction,i=d()(e),l=i.props,u=l.prefixCls,p=l.className,m=l.size,f=l.type,h=l.steps,v=l.showInfo,y=l.strokeColor,E=ge(l,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),k=o("progress",u),O=e.getProgressStatus(),w=e.renderProcessInfo(k,O);Object(D["a"])(!("successPercent"in l),"Progress","`successPercent` is deprecated. Please use `success.percent` instead."),"line"===f?a=h?b["createElement"](ye,s()({},e.props,{strokeColor:"string"===typeof y?y:void 0,prefixCls:k,steps:h}),w):b["createElement"](te,s()({},e.props,{prefixCls:k}),w):"circle"!==f&&"dashboard"!==f||(a=b["createElement"](ve,s()({},e.props,{prefixCls:k,progressStatus:O}),w));var C=g()(k,(n={},r()(n,"".concat(k,"-").concat(("dashboard"===f?"circle":h&&"steps")||f),!0),r()(n,"".concat(k,"-status-").concat(O),!0),r()(n,"".concat(k,"-show-info"),v),r()(n,"".concat(k,"-").concat(m),m),r()(n,"".concat(k,"-rtl"),"rtl"===c),n),p);return b["createElement"]("div",s()({},Object(x["default"])(E,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:C}),a)},e}return u()(n,[{key:"getPercentNumber",value:function(){var e=this.props.percent,t=void 0===e?0:e,n=_(this.props);return parseInt(void 0!==n?n.toString():t.toString(),10)}},{key:"getProgressStatus",value:function(){var e=this.props.status;return xe.indexOf(e)<0&&this.getPercentNumber()>=100?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var n,a=this.props,r=a.showInfo,o=a.format,s=a.type,c=a.percent,i=_(this.props);if(!r)return null;var l=o||function(e){return"".concat(e,"%")},u="line"===s;return o||"exception"!==t&&"success"!==t?n=l(Z(c),Z(i)):"exception"===t?n=u?b["createElement"](j.a,null):b["createElement"](k.a,null):"success"===t&&(n=u?b["createElement"](N.a,null):b["createElement"](w.a,null)),b["createElement"]("span",{className:"".concat(e,"-text"),title:"string"===typeof n?n:void 0},n)}},{key:"render",value:function(){return b["createElement"](S["a"],null,this.renderProgress)}}]),n}(b["Component"]);Ee.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};t["a"]=Ee},FH2Y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("ZMnZ"));function r(e){return e&&e.__esModule?e:{default:e}}var o=a;t.default=o,e.exports=o},IzEo:function(e,t,n){"use strict";n("cIOH"),n("lnY3"),n("Znn+"),n("14J3"),n("jCWc")},Kvyg:function(e,t,n){},MXD1:function(e,t,n){"use strict";n("cIOH"),n("Kvyg")},Mtkf:function(e,t,n){"use strict";var a=n("WmNS"),r=n.n(a),o=n("9og8"),s=n("9kvl");t["a"]={processAll:function(e){return Object(o["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(s["d"])("/exam/process/search",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processDetail:function(e){return Object(o["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(s["d"])("/exam/process/detail",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processMissing:function(e){return Object(o["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(s["d"])("/exam/process/missing",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processExport:function(e){return Object(o["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(s["d"])("/exam/process/export",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processDelete:function(e){return Object(o["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(s["d"])("/exam/process/delete",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processStatistics:function(e){return Object(o["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(s["d"])("/exam/process/statistics",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},deleteRecord:function(e){return Object(o["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(s["d"])("/exam/process/deleteRecord",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processPreview:function(e){return Object(o["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(s["d"])("/exam/process/preview",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processMarkPreview:function(e){return Object(o["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(s["d"])("/exam/process/markPreview",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processMark:function(e){return Object(o["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(s["d"])("/exam/process/mark",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()}}},QbM5:function(e,t,n){},ZMnZ:function(e,t,n){"use strict";var a=n("TqRt"),r=n("284h");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("q1tI")),s=a(n("2oIt")),c=a(n("KQxl")),i=function(e,t){return o.createElement(c.default,Object.assign({},e,{ref:t,icon:s.default}))};i.displayName="UpOutlined";var l=o.forwardRef(i);t.default=l},bP8k:function(e,t,n){"use strict";n("cIOH"),n("jhiw")},bx4M:function(e,t,n){"use strict";var a=n("lSNA"),r=n.n(a),o=n("pVnL"),s=n.n(o),c=n("q1tI"),i=n("TSYQ"),l=n.n(i),u=n("6UMo"),p=n("H84U"),d=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},m=function(e){return c["createElement"](p["a"],null,(function(t){var n=t.getPrefixCls,a=e.prefixCls,o=e.className,i=e.hoverable,u=void 0===i||i,p=d(e,["prefixCls","className","hoverable"]),m=n("card",a),f=l()("".concat(m,"-grid"),o,r()({},"".concat(m,"-grid-hoverable"),u));return c["createElement"]("div",s()({},p,{className:f}))}))},f=m,h=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},v=function(e){return c["createElement"](p["a"],null,(function(t){var n=t.getPrefixCls,a=e.prefixCls,r=e.className,o=e.avatar,i=e.title,u=e.description,p=h(e,["prefixCls","className","avatar","title","description"]),d=n("card",a),m=l()("".concat(d,"-meta"),r),f=o?c["createElement"]("div",{className:"".concat(d,"-meta-avatar")},o):null,v=i?c["createElement"]("div",{className:"".concat(d,"-meta-title")},i):null,b=u?c["createElement"]("div",{className:"".concat(d,"-meta-description")},u):null,y=v||b?c["createElement"]("div",{className:"".concat(d,"-meta-detail")},v,b):null;return c["createElement"]("div",s()({},p,{className:m}),f,y)}))},b=v,y=n("ZTPi"),g=n("BMrR"),x=n("kPKH"),E=n("3Nzz"),k=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function O(e){var t=e.map((function(t,n){return c["createElement"]("li",{style:{width:"".concat(100/e.length,"%")},key:"action-".concat(n)},c["createElement"]("span",null,t))}));return t}var w=function(e){var t,n,a,o=c["useContext"](p["b"]),i=o.getPrefixCls,d=o.direction,m=c["useContext"](E["b"]),h=function(t){e.onTabChange&&e.onTabChange(t)},v=function(){var t;return c["Children"].forEach(e.children,(function(e){e&&e.type&&e.type===f&&(t=!0)})),t},b=e.prefixCls,w=e.className,C=e.extra,N=e.headStyle,P=void 0===N?{}:N,j=e.bodyStyle,S=void 0===j?{}:j,M=e.title,D=e.loading,L=e.bordered,I=void 0===L||L,F=e.size,A=e.type,T=e.cover,V=e.actions,B=e.tabList,K=e.children,W=e.activeTabKey,U=e.defaultActiveTabKey,H=e.tabBarExtraContent,R=e.hoverable,z=e.tabProps,q=void 0===z?{}:z,Q=k(e,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),J=i("card",b),Y=0===S.padding||"0px"===S.padding?{padding:24}:void 0,Z=c["createElement"]("div",{className:"".concat(J,"-loading-block")}),_=c["createElement"]("div",{className:"".concat(J,"-loading-content"),style:Y},c["createElement"](g["a"],{gutter:8},c["createElement"](x["a"],{span:22},Z)),c["createElement"](g["a"],{gutter:8},c["createElement"](x["a"],{span:8},Z),c["createElement"](x["a"],{span:15},Z)),c["createElement"](g["a"],{gutter:8},c["createElement"](x["a"],{span:6},Z),c["createElement"](x["a"],{span:18},Z)),c["createElement"](g["a"],{gutter:8},c["createElement"](x["a"],{span:13},Z),c["createElement"](x["a"],{span:9},Z)),c["createElement"](g["a"],{gutter:8},c["createElement"](x["a"],{span:4},Z),c["createElement"](x["a"],{span:3},Z),c["createElement"](x["a"],{span:16},Z))),G=void 0!==W,X=s()(s()({},q),(t={},r()(t,G?"activeKey":"defaultActiveKey",G?W:U),r()(t,"tabBarExtraContent",H),t)),$=B&&B.length?c["createElement"](y["a"],s()({size:"large"},X,{className:"".concat(J,"-head-tabs"),onChange:h}),B.map((function(e){return c["createElement"](y["a"].TabPane,{tab:e.tab,disabled:e.disabled,key:e.key})}))):null;(M||C||$)&&(a=c["createElement"]("div",{className:"".concat(J,"-head"),style:P},c["createElement"]("div",{className:"".concat(J,"-head-wrapper")},M&&c["createElement"]("div",{className:"".concat(J,"-head-title")},M),C&&c["createElement"]("div",{className:"".concat(J,"-extra")},C)),$));var ee=T?c["createElement"]("div",{className:"".concat(J,"-cover")},T):null,te=c["createElement"]("div",{className:"".concat(J,"-body"),style:S},D?_:K),ne=V&&V.length?c["createElement"]("ul",{className:"".concat(J,"-actions")},O(V)):null,ae=Object(u["default"])(Q,["onTabChange"]),re=F||m,oe=l()(J,(n={},r()(n,"".concat(J,"-loading"),D),r()(n,"".concat(J,"-bordered"),I),r()(n,"".concat(J,"-hoverable"),R),r()(n,"".concat(J,"-contain-grid"),v()),r()(n,"".concat(J,"-contain-tabs"),B&&B.length),r()(n,"".concat(J,"-").concat(re),re),r()(n,"".concat(J,"-type-").concat(A),!!A),r()(n,"".concat(J,"-rtl"),"rtl"===d),n),w);return c["createElement"]("div",s()({},ae,{className:oe}),a,ee,te,ne)};w.Grid=f,w.Meta=b;t["a"]=w},dHDr:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return z}));n("14J3");var a=n("BMrR"),r=(n("DYRE"),n("zeV3")),o=(n("y8nQ"),n("Vl3Y")),s=(n("giR+"),n("fyUT")),c=(n("jCWc"),n("kPKH")),i=(n("IzEo"),n("bx4M")),l=(n("+L6B"),n("2/Rp")),u=(n("MXD1"),n("CFYs")),p=(n("bP8k"),n("gFTJ")),d=n("oBTY"),m=n("WmNS"),f=n.n(m),h=(n("miYZ"),n("tsqr")),v=n("jrin"),b=n("k1fw"),y=n("9og8"),g=n("fWQN"),x=n("mtLc"),E=n("yKVA"),k=n("879j"),O=(n("tU7J"),n("wFql")),w=n("q1tI"),C=n.n(w),N=n("Mtkf"),P=n("9kvl"),j=n("szSY"),S=function(e){var t=e.data,n=e.selectData,a=e.onClick;function r(){var e=[],r=0;for(var o in t)t.hasOwnProperty(o)&&function(){var s=t[o],c=[],i=1;c.push(C.a.createElement("h4",{key:o,style:{margin:"5px"}},j["b"][o]));var u=function(e){var t="".concat(o,"-").concat(e);s[e]=Object(b["a"])(Object(b["a"])({},s[e]),{},{sort:r});var u=n.includes(t);c.push(C.a.createElement(l["a"],{key:t,style:{margin:"2px 5px 5px"},type:u?"primary":"default",onClick:function(){return a(s[e].sort)}},i)),i++,r++};for(var p in s)u(p);e.push(C.a.createElement("div",{key:o},c))}();return e}return C.a.createElement(C.a.Fragment,null,r())},M=C.a.memo(S),D=O["a"].Title,L=function(e){var t=e.data;return C.a.createElement(C.a.Fragment,null,C.a.createElement(D,{level:4},t.name),C.a.createElement("h3",{style:{marginTop:20}},"\u8003\u751f\u7b54\u6848:",t.studentAnswer))},I=C.a.memo(L),F=O["a"].Title,A=function(e){var t=e.data;return C.a.createElement(C.a.Fragment,null,C.a.createElement(F,{level:4},t.name),C.a.createElement("h3",{style:{marginTop:20}},"\u8003\u751f\u7b54\u6848:",t.studentAnswer))},T=C.a.memo(A),V=O["a"].Title,B=function(e){var t=e.data;return C.a.createElement(C.a.Fragment,null,C.a.createElement(V,{level:4},t.name),C.a.createElement("h3",{style:{marginTop:20}},"\u8003\u751f\u7b54\u6848:",t.studentAnswer?C.a.createElement(l["a"],{onClick:function(){return window.open(Object(j["c"])(t.studentAnswer))},type:"link"},"\u4e0b\u8f7d"):"\u65e0"))},K=C.a.memo(B),W=function(e){var t=e.data;return C.a.createElement(C.a.Fragment,null,"fillIn"===t.key&&C.a.createElement(I,{data:t}),"composition"===t.key&&C.a.createElement(T,{data:t}),"answer"===t.key&&C.a.createElement(T,{data:t}),"handel"===t.key&&C.a.createElement(K,{data:t}))},U=C.a.memo(W),H=O["a"].Title,R={style:{margin:"20px 0"}},z=function(e){Object(E["a"])(n,e);var t=Object(k["a"])(n);function n(){var e;Object(g["a"])(this,n);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return e=t.call.apply(t,[this].concat(r)),e.refForm=C.a.createRef(),e.state={examData:void 0,currentExamIndex:0,QuestionButtonList:[]},e.submitData={},e.examList=[],e}return Object(x["a"])(n,[{key:"componentDidMount",value:function(){var e=Object(y["a"])(f.a.mark((function e(){var t,n,a,r,o,s,c,i,l,u,p,d,m,y,g,x;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=P["b"].location.query,e.next=3,N["a"].processMarkPreview(t);case 3:if(n=e.sent,a=[],0===n.errCode){for(c in r=n.data.results,o=[],s=this.submitData,r)if(r.hasOwnProperty(c))for(l in i=r[c],i)u="".concat(c,"-").concat(l),o.push(Object(b["a"])(Object(b["a"])({idx:u},i[l]),{},{key:c})),p=i[l],d=p.id,m=p.knowledge,y=p.studentAnswer,g=p.score,x={id:d,knowledge:m,answer:y,score:g},s[c]?s[c][l]=x:s[c]=Object(v["a"])({},l,x),(i[d].score||0===i[d].score)&&a.push(u);this.submitData=s,this.examList=o,this.setState({examData:n.data,QuestionButtonList:a})}else h["b"].error(n.errMsg),P["b"].goBack();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"handleNext",value:function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this.state,r=a.currentExamIndex,o=a.QuestionButtonList,s=e.id,c=e.knowledge,i=e.studentAnswer,l=e.idx,u=Object(d["a"])(o),p=null===(t=this.refForm.current)||void 0===t?void 0:t.getFieldValue("score"),m=this.submitData,f={id:s,knowledge:c,answer:i,score:p};p||0===p?(m[e.key]?m[e.key][s]=f:m[e.key]=Object(v["a"])({},s,f),this.examList[r]&&(this.examList[r].score=p),u.includes(l)||u.push(l),r+1>=this.examList.length?(this.setState({QuestionButtonList:u}),n&&this.examList.length>1&&h["b"].info("\u8bf7\u4fdd\u5b58\u8bd5\u5377")):this.setState({currentExamIndex:r+1,QuestionButtonList:u})):h["b"].warn("\u5206\u6570\u4e0d\u80fd\u4e3a\u7a7a")}},{key:"handleProcessMark",value:function(){var e=Object(y["a"])(f.a.mark((function e(){var t,n,a,r,o,s;return f.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=P["b"].location.query,n=this.state,a=n.QuestionButtonList,r=n.currentExamIndex,o=r<this.examList.length?this.examList[r]:this.examList[this.examList.length-1],this.handleNext(o,!1),!(a.length+1<this.examList.length)){e.next=8;break}h["b"].warn("\u8bc4\u5377\u672a\u5b8c\u6210"),e.next=12;break;case 8:return e.next=10,N["a"].processMark(Object(b["a"])(Object(b["a"])({},t),{},{result:this.submitData}));case 10:s=e.sent,0===s.errCode?(h["b"].success("\u8bc4\u5377\u6210\u529f"),P["b"].goBack()):h["b"].error(s.errMsg);case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"render",value:function(){var e,t,n=this,d=this.state,m=d.examData,f=d.currentExamIndex,h=d.QuestionButtonList,v=f<this.examList.length?this.examList[f]:this.examList[this.examList.length-1],b=f<this.examList.length?null===m||void 0===m?void 0:m.questionType[v.key].point:0;f<this.examList.length&&(null===v||void 0===v?void 0:v.score)||0===(null===v||void 0===v?void 0:v.score)?null===(e=this.refForm.current)||void 0===e||e.setFieldsValue({score:null===v||void 0===v?void 0:v.score}):null===(t=this.refForm.current)||void 0===t||t.resetFields();return C.a.createElement(i["a"],null,C.a.createElement(a["a"],null,C.a.createElement(c["a"],{span:6},m&&C.a.createElement(i["a"],{style:{height:"80vh",overflow:"auto"},bodyStyle:{height:"100%",display:"flex",flexDirection:"column"}},C.a.createElement("div",{style:{flex:1}},C.a.createElement("div",R,C.a.createElement(H,{level:4},"\u8bd5\u5377\u4fe1\u606f"),C.a.createElement(p["a"],{column:2},C.a.createElement(p["a"].Item,{label:"\u8003\u751f\u8d26\u53f7"},m.userId),C.a.createElement(p["a"].Item,{label:"\u8003\u751f\u59d3\u540d"},m.userName))),C.a.createElement("div",R,C.a.createElement(H,{level:4},"\u6279\u5377\u8fdb\u5ea6"),C.a.createElement(u["a"],{percent:(h.length/this.examList.length*100).toFixed(0)})),C.a.createElement("div",R,C.a.createElement(H,{level:4},"\u68c0\u67e5\u6279\u5377"),C.a.createElement("div",null,C.a.createElement(M,{data:m.results,selectData:h,onClick:function(e){return n.setState({currentExamIndex:e})}}))),C.a.createElement("div",R,C.a.createElement(H,{level:4},"\u9898\u76ee\u8be6\u60c5"),v&&"handel"===v.key?null:C.a.createElement("div",null,"\u6807\u51c6\u7b54\u6848\uff1a",v&&v.questionAnswer),C.a.createElement("div",null,"\u8bd5\u9898\u89e3\u6790\uff1a ",v&&v.analysis))),C.a.createElement("div",null,C.a.createElement(l["a"],{type:"primary",block:!0,onClick:function(){return n.handleProcessMark()}},"\u4fdd\u5b58\u8bd5\u5377"),C.a.createElement(l["a"],{block:!0,style:{margin:"20px 0"},onClick:function(){return P["b"].goBack()}},"\u5173\u95ed\u8bd5\u5377")))),C.a.createElement(c["a"],{span:18,style:{maxHeight:"80vh",display:"flex",flexDirection:"column"}},C.a.createElement(i["a"],null,C.a.createElement(H,{style:{textAlign:"center"},level:2},"\u8bd5\u5377")),C.a.createElement(i["a"],{style:{flex:1,overflow:"auto"}},v&&C.a.createElement(U,{data:v})),C.a.createElement(i["a"],{size:"small"},C.a.createElement(o["a"],{layout:"inline",ref:this.refForm},C.a.createElement(o["a"].Item,{label:"\u672c\u9898\u5f97\u5206",name:"score"},C.a.createElement(s["a"],{size:"middle",min:0,max:b})),C.a.createElement(o["a"].Item,null,"\uff08\u603b\u5206\uff1a",b,"\u5206\uff09",C.a.createElement(r["b"],{size:"large",style:{marginLeft:100}},C.a.createElement(l["a"],{onClick:function(){return f>0&&n.setState({currentExamIndex:f-1})}},"\u4e0a\u4e00\u9898"),C.a.createElement(l["a"],{type:"primary",htmlType:"submit",onClick:function(){return n.handleNext(v)}},"\u4e0b\u4e00\u9898"))))))))}}]),n}(w["PureComponent"])},fyUT:function(e,t,n){"use strict";var a=n("pVnL"),r=n.n(a),o=n("lSNA"),s=n.n(o),c=n("q1tI"),i=n.n(c),l=n("TSYQ"),u=n.n(l),p=n("rePB"),d=n("Ff2n"),m=n("VTBJ"),f=n("1OyB"),h=n("vuIU"),v=n("Ji7U"),b=n("LK+K"),y=n("4IlW");function g(){}function x(e){e.preventDefault()}var E=function(e){return e.replace(/[^\w.-]+/g,"")},k=200,O=600,w=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,C=function(e){return void 0!==e&&null!==e},N=function(e,t){return t===e||"number"===typeof t&&"number"===typeof e&&isNaN(t)&&isNaN(e)},P=function(e){Object(v["a"])(n,e);var t=Object(b["a"])(n);function n(e){var a;Object(f["a"])(this,n),a=t.call(this,e),a.onKeyDown=function(e){var t=a.props,n=t.onKeyDown,r=t.onPressEnter;if(e.keyCode===y["a"].UP){var o=a.getRatio(e);a.up(e,o,null),a.stop()}else if(e.keyCode===y["a"].DOWN){var s=a.getRatio(e);a.down(e,s,null),a.stop()}else e.keyCode===y["a"].ENTER&&r&&r(e);if(a.recordCursorPosition(),a.lastKeyCode=e.keyCode,n){for(var c=arguments.length,i=new Array(c>1?c-1:0),l=1;l<c;l++)i[l-1]=arguments[l];n.apply(void 0,[e].concat(i))}},a.onKeyUp=function(e){var t=a.props.onKeyUp;if(a.stop(),a.recordCursorPosition(),t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t.apply(void 0,[e].concat(r))}},a.onChange=function(e){var t=a.props.onChange;a.state.focused&&(a.inputting=!0),a.rawInput=a.props.parser(a.getValueFromEvent(e)),a.setState({inputValue:a.rawInput}),t(a.toNumber(a.rawInput))},a.onMouseUp=function(){var e=a.props.onMouseUp;a.recordCursorPosition(),e&&e.apply(void 0,arguments)},a.onFocus=function(){var e;a.setState({focused:!0}),(e=a.props).onFocus.apply(e,arguments)},a.onBlur=function(){var e=a.props.onBlur;a.inputting=!1,a.setState({focused:!1});var t=a.getCurrentValidValue(a.state.inputValue),n=a.setValue(t,g);if(e){var r=a.input.value,o=a.getInputDisplayValue({focus:!1,value:n});a.input.value=o,e.apply(void 0,arguments),a.input.value=r}},a.getRatio=function(e){var t=1;return e.metaKey||e.ctrlKey?t=.1:e.shiftKey&&(t=10),t},a.getFullNum=function(e){return isNaN(e)?e:/e/i.test(String(e))?Number(e).toFixed(18).replace(/\.?0+$/,""):e},a.getPrecision=function(e){if(C(a.props.precision))return a.props.precision;var t=String(e);if(t.indexOf("e-")>=0)return parseInt(t.slice(t.indexOf("e-")+2),10);var n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n},a.getInputDisplayValue=function(e){var t,n=e||a.state,r=n.focused,o=n.inputValue,s=n.value;t=r?o:a.toPrecisionAsStep(s),void 0!==t&&null!==t||(t="");var c=a.formatWrapper(t);return C(a.props.decimalSeparator)&&(c=c.toString().replace(".",a.props.decimalSeparator)),c},a.recordCursorPosition=function(){try{a.cursorStart=a.input.selectionStart,a.cursorEnd=a.input.selectionEnd,a.currentValue=a.input.value,a.cursorBefore=a.input.value.substring(0,a.cursorStart),a.cursorAfter=a.input.value.substring(a.cursorEnd)}catch(e){}},a.restoreByAfter=function(e){if(void 0===e)return!1;var t=a.input.value,n=t.lastIndexOf(e);if(-1===n)return!1;var r=a.cursorBefore.length;return a.lastKeyCode===y["a"].DELETE&&a.cursorBefore.charAt(r-1)===e[0]?(a.fixCaret(r,r),!0):n+e.length===t.length&&(a.fixCaret(n,n),!0)},a.partRestoreByAfter=function(e){return void 0!==e&&Array.prototype.some.call(e,(function(t,n){var r=e.substring(n);return a.restoreByAfter(r)}))},a.isNotCompleteNumber=function(e){return isNaN(e)||""===e||null===e||e&&e.toString().indexOf(".")===e.toString().length-1},a.stop=function(){a.autoStepTimer&&clearTimeout(a.autoStepTimer)},a.down=function(e,t,n){a.pressingUpOrDown=!0,a.step("down",e,t,n)},a.up=function(e,t,n){a.pressingUpOrDown=!0,a.step("up",e,t,n)},a.saveInput=function(e){a.input=e};var r=e.value;void 0===r&&(r=e.defaultValue),a.state={focused:e.autoFocus};var o=a.getValidValue(a.toNumber(r));return a.state=Object(m["a"])(Object(m["a"])({},a.state),{},{inputValue:a.toPrecisionAsStep(o),value:o}),a}return Object(h["a"])(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,a=t.onChange,r=t.max,o=t.min,s=this.state.focused;if(e){if(!N(e.value,n)||!N(e.max,r)||!N(e.min,o)){var c,i=s?n:this.getValidValue(n);c=this.pressingUpOrDown?i:this.inputting?this.rawInput:this.toPrecisionAsStep(i),this.setState({value:i,inputValue:c})}var l="value"in this.props?n:this.state.value;"max"in this.props&&e.max!==r&&"number"===typeof l&&l>r&&a&&a(r),"min"in this.props&&e.min!==o&&"number"===typeof l&&l<o&&a&&a(o)}try{if(void 0!==this.cursorStart&&this.state.focused)if(this.partRestoreByAfter(this.cursorAfter)||this.state.value===this.props.value){if(this.currentValue===this.input.value)switch(this.lastKeyCode){case y["a"].BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case y["a"].DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}else{var u=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===y["a"].BACKSPACE?u=this.cursorStart-1:this.lastKeyCode===y["a"].DELETE&&(u=this.cursorStart):u=this.input.value.length,this.fixCaret(u,u)}}catch(p){}this.lastKeyCode=null,this.pressingUpOrDown&&this.props.focusOnUpDown&&this.state.focused&&document.activeElement!==this.input&&this.focus()}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(e){var t=e;return t=""===t?"":this.isNotCompleteNumber(parseFloat(t))?this.state.value:this.getValidValue(t),this.toNumber(t)}},{key:"getValueFromEvent",value:function(e){var t=e.target.value.trim().replace(/\u3002/g,".");return C(this.props.decimalSeparator)&&(t=t.replace(this.props.decimalSeparator,".")),t}},{key:"getValidValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.min,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.max,a=parseFloat(e);return isNaN(a)?e:(a<t&&(a=t),a>n&&(a=n),a)}},{key:"setValue",value:function(e,t){var n=this.props.precision,a=this.isNotCompleteNumber(parseFloat(e))?null:parseFloat(e),r=this.state.value,o=void 0===r?null:r,s=this.state.inputValue,c=void 0===s?null:s,i="number"===typeof a?a.toFixed(n):"".concat(a),l=a!==o||i!=="".concat(c);return"value"in this.props?(c=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:c},t)):this.setState({value:a,inputValue:this.toPrecisionAsStep(e)},t),l&&this.props.onChange(a),a}},{key:"getMaxPrecision",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.props,a=n.precision,r=n.step;if(C(a))return a;var o=this.getPrecision(t),s=this.getPrecision(r),c=this.getPrecision(e);return e?Math.max(c,o+s):o+s}},{key:"getPrecisionFactor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getMaxPrecision(e,t);return Math.pow(10,n)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(e){return this.props.formatter?this.props.formatter(e):e}},{key:"toPrecisionAsStep",value:function(e){if(this.isNotCompleteNumber(e)||""===e)return e;var t=Math.abs(this.getMaxPrecision(e));return isNaN(t)?e.toString():Number(e).toFixed(t)}},{key:"toNumber",value:function(e){var t=this.props.precision,n=this.state.focused,a=e&&e.length>16&&n;return this.isNotCompleteNumber(e)||a?e:C(t)?Math.round(e*Math.pow(10,t))/Math.pow(10,t):Number(e)}},{key:"upStep",value:function(e,t){var n=this.props.step,a=this.getPrecisionFactor(e,t),r=Math.abs(this.getMaxPrecision(e,t)),o=((a*e+a*n*t)/a).toFixed(r);return this.toNumber(o)}},{key:"downStep",value:function(e,t){var n=this.props.step,a=this.getPrecisionFactor(e,t),r=Math.abs(this.getMaxPrecision(e,t)),o=((a*e-a*n*t)/a).toFixed(r);return this.toNumber(o)}},{key:"step",value:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0;this.stop(),t&&(t.persist(),t.preventDefault());var o=this.props;if(!o.disabled){var s=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(s)){var c=this["".concat(e,"Step")](s,a),i=c>o.max||c<o.min;c>o.max?c=o.max:c<o.min&&(c=o.min),this.setValue(c,null),o.onStep&&o.onStep(c,{offset:a,type:e}),this.setState({focused:!0},(function(){n.pressingUpOrDown=!1})),i||(this.autoStepTimer=setTimeout((function(){n[e](t,a,!0)}),r?k:O))}}}},{key:"fixCaret",value:function(e,t){if(void 0!==e&&void 0!==t&&this.input&&this.input.value)try{var n=this.input.selectionStart,a=this.input.selectionEnd;e===n&&t===a||this.input.setSelectionRange(e,t)}catch(r){}}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,a=t.disabled,r=t.readOnly,o=t.useTouch,s=t.autoComplete,c=t.upHandler,l=t.downHandler,m=t.className,f=t.max,h=t.min,v=t.style,b=t.title,y=t.onMouseEnter,E=t.onMouseLeave,k=t.onMouseOver,O=t.onMouseOut,w=t.required,C=t.onClick,N=t.tabIndex,P=t.type,j=t.placeholder,S=t.id,M=t.inputMode,D=t.pattern,L=t.step,I=t.maxLength,F=t.autoFocus,A=t.name,T=t.onPaste,V=t.onInput,B=Object(d["a"])(t,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),K=this.state,W=K.value,U=K.focused,H=u()(n,(e={},Object(p["a"])(e,m,!!m),Object(p["a"])(e,"".concat(n,"-disabled"),a),Object(p["a"])(e,"".concat(n,"-focused"),U),e)),R={};Object.keys(B).forEach((function(e){"data-"!==e.substr(0,5)&&"aria-"!==e.substr(0,5)&&"role"!==e||(R[e]=B[e])}));var z=!r&&!a,q=this.getInputDisplayValue(null),Q=(W||0===W)&&(isNaN(W)||Number(W)>=f),J=(W||0===W)&&(isNaN(W)||Number(W)<=h),Y=Q||a||r,Z=J||a||r,_=u()("".concat(n,"-handler"),"".concat(n,"-handler-up"),Object(p["a"])({},"".concat(n,"-handler-up-disabled"),Y)),G=u()("".concat(n,"-handler"),"".concat(n,"-handler-down"),Object(p["a"])({},"".concat(n,"-handler-down-disabled"),Z)),X=o?{onTouchStart:Y?g:this.up,onTouchEnd:this.stop}:{onMouseDown:Y?g:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},$=o?{onTouchStart:Z?g:this.down,onTouchEnd:this.stop}:{onMouseDown:Z?g:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return i.a.createElement("div",{className:H,style:v,title:b,onMouseEnter:y,onMouseLeave:E,onMouseOver:k,onMouseOut:O,onFocus:function(){return null},onBlur:function(){return null}},i.a.createElement("div",{className:"".concat(n,"-handler-wrap")},i.a.createElement("span",Object.assign({unselectable:"on"},X,{role:"button","aria-label":"Increase Value","aria-disabled":Y,className:_}),c||i.a.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-up-inner"),onClick:x})),i.a.createElement("span",Object.assign({unselectable:"on"},$,{role:"button","aria-label":"Decrease Value","aria-disabled":Z,className:G}),l||i.a.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-down-inner"),onClick:x}))),i.a.createElement("div",{className:"".concat(n,"-input-wrap")},i.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":h,"aria-valuemax":f,"aria-valuenow":W,required:w,type:P,placeholder:j,onPaste:T,onClick:C,onMouseUp:this.onMouseUp,className:"".concat(n,"-input"),tabIndex:N,autoComplete:s,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:z?this.onKeyDown:g,onKeyUp:z?this.onKeyUp:g,autoFocus:F,maxLength:I,readOnly:r,disabled:a,max:f,min:h,step:L,name:A,title:b,id:S,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(q),pattern:D,inputMode:M,onInput:V},R))))}}]),n}(i.a.Component);P.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:w,min:-w,step:1,style:{},onChange:g,onKeyDown:g,onPressEnter:g,onFocus:g,onBlur:g,parser:E,required:!1,autoComplete:"off"};var j=P,S=j,M=n("FH2Y"),D=n.n(M),L=n("HQEm"),I=n.n(L),F=n("H84U"),A=n("3Nzz"),T=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},V=c["forwardRef"]((function(e,t){var n,a=c["useContext"](F["b"]),o=a.getPrefixCls,i=a.direction,l=c["useContext"](A["b"]),p=e.className,d=e.size,m=e.prefixCls,f=e.readOnly,h=T(e,["className","size","prefixCls","readOnly"]),v=o("input-number",m),b=c["createElement"](D.a,{className:"".concat(v,"-handler-up-inner")}),y=c["createElement"](I.a,{className:"".concat(v,"-handler-down-inner")}),g=d||l,x=u()((n={},s()(n,"".concat(v,"-lg"),"large"===g),s()(n,"".concat(v,"-sm"),"small"===g),s()(n,"".concat(v,"-rtl"),"rtl"===i),s()(n,"".concat(v,"-readonly"),f),n),p);return c["createElement"](S,r()({ref:t,className:x,upHandler:b,downHandler:y,prefixCls:v,readOnly:f},h))}));V.defaultProps={step:1};t["a"]=V},gFTJ:function(e,t,n){"use strict";var a=n("lSNA"),r=n.n(a),o=n("J4zp"),s=n.n(o),c=n("cDf5"),i=n.n(c),l=n("q1tI"),u=n("TSYQ"),p=n.n(u),d=n("Zm9Q"),m=n("ACnJ"),f=n("uaoM"),h=n("H84U");function v(e){return void 0!==e&&null!==e}var b=function(e){var t,n=e.itemPrefixCls,a=e.component,o=e.span,s=e.className,c=e.style,i=e.bordered,u=e.label,d=e.content,m=e.colon,f=a;return i?l["createElement"](f,{className:p()((t={},r()(t,"".concat(n,"-item-label"),v(u)),r()(t,"".concat(n,"-item-content"),v(d)),t),s),style:c,colSpan:o},v(u)?u:d):l["createElement"](f,{className:p()("".concat(n,"-item"),s),style:c,colSpan:o},l["createElement"]("div",{className:"".concat(n,"-item-container")},u&&l["createElement"]("span",{className:p()("".concat(n,"-item-label"),r()({},"".concat(n,"-item-no-colon"),!m))},u),d&&l["createElement"]("span",{className:p()("".concat(n,"-item-content"))},d)))},y=b;function g(e,t,n){var a=t.colon,r=t.prefixCls,o=t.bordered,s=n.component,c=n.type,i=n.showLabel,u=n.showContent;return e.map((function(e,t){var n=e.props,p=n.label,d=n.children,m=n.prefixCls,f=void 0===m?r:m,h=n.className,v=n.style,b=n.span,g=void 0===b?1:b,x=e.key;return"string"===typeof s?l["createElement"](y,{key:"".concat(c,"-").concat(x||t),className:h,style:v,span:g,colon:a,component:s,itemPrefixCls:f,bordered:o,label:i?p:null,content:u?d:null}):[l["createElement"](y,{key:"label-".concat(x||t),className:h,style:v,span:1,colon:a,component:s[0],itemPrefixCls:f,bordered:o,label:p}),l["createElement"](y,{key:"content-".concat(x||t),className:h,style:v,span:2*g-1,component:s[1],itemPrefixCls:f,bordered:o,content:d})]}))}var x=function(e){var t=e.prefixCls,n=e.vertical,a=e.row,r=e.index,o=e.bordered;return n?l["createElement"](l["Fragment"],null,l["createElement"]("tr",{key:"label-".concat(r),className:"".concat(t,"-row")},g(a,e,{component:"th",type:"label",showLabel:!0})),l["createElement"]("tr",{key:"content-".concat(r),className:"".concat(t,"-row")},g(a,e,{component:"td",type:"content",showContent:!0}))):l["createElement"]("tr",{key:r,className:"".concat(t,"-row")},g(a,e,{component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0}))},E=x,k=function(e){var t=e.children;return t},O=k,w=n("0n0R"),C={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function N(e,t){if("number"===typeof e)return e;if("object"===i()(e))for(var n=0;n<m["b"].length;n++){var a=m["b"][n];if(t[a]&&void 0!==e[a])return e[a]||C[a]}return 3}function P(e,t,n){var a=e;return(void 0===t||t>n)&&(a=Object(w["a"])(e,{span:n}),Object(f["a"])(void 0===t,"Descriptions","Sum of column `span` in a line not match `column` of Descriptions.")),a}function j(e,t){var n=Object(d["a"])(e).filter((function(e){return e})),a=[],r=[],o=t;return n.forEach((function(e,s){var c,i=null===(c=e.props)||void 0===c?void 0:c.span,l=i||1;if(s===n.length-1)return r.push(P(e,i,o)),void a.push(r);l<o?(o-=l,r.push(e)):(r.push(P(e,l,o)),a.push(r),o=t,r=[])})),a}function S(e){var t,n=e.prefixCls,a=e.title,o=e.extra,c=e.column,u=void 0===c?C:c,d=e.colon,f=void 0===d||d,v=e.bordered,b=e.layout,y=e.children,g=e.className,x=e.style,k=e.size,O=l["useContext"](h["b"]),w=O.getPrefixCls,P=O.direction,S=w("descriptions",n),M=l["useState"]({}),D=s()(M,2),L=D[0],I=D[1],F=N(u,L);l["useEffect"]((function(){var e=m["a"].subscribe((function(e){"object"===i()(u)&&I(e)}));return function(){m["a"].unsubscribe(e)}}),[]);var A=j(y,F);return l["createElement"]("div",{className:p()(S,(t={},r()(t,"".concat(S,"-").concat(k),k&&"default"!==k),r()(t,"".concat(S,"-bordered"),!!v),r()(t,"".concat(S,"-rtl"),"rtl"===P),t),g),style:x},(a||o)&&l["createElement"]("div",{className:"".concat(S,"-header")},a&&l["createElement"]("div",{className:"".concat(S,"-title")},a),o&&l["createElement"]("div",{className:"".concat(S,"-extra")},o)),l["createElement"]("div",{className:"".concat(S,"-view")},l["createElement"]("table",null,l["createElement"]("tbody",null,A.map((function(e,t){return l["createElement"](E,{key:t,index:t,colon:f,prefixCls:S,vertical:"vertical"===b,bordered:v,row:e})}))))))}S.Item=O;t["a"]=S},"giR+":function(e,t,n){"use strict";n("cIOH"),n("QbM5")},jCWc:function(e,t,n){"use strict";n("cIOH"),n("1GLa")},jhiw:function(e,t,n){},kPKH:function(e,t,n){"use strict";var a=n("/kpp");t["a"]=a["a"]},lnY3:function(e,t,n){}}]);
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途)
地址:北京市海淀区大恒科技大厦五层 邮编:100080
Floor 5th,Daheng Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2022. 京ICP备09089570号 | 京公网安备11010702000869号