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

源码截图

源码目录树

;
当前路径:public/static/control/vendors~p__account~p__achievementManger~p__achievementManger__achievement~p__achievementManger__know~989bc03a.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[0],{"5NDa":function(e,t,n){"use strict";n("cIOH"),n("OnYD"),n("+L6B")},LlR5:function(e,t,n){"use strict";n.d(t,"b",(function(){return A}));var r=n("lSNA"),a=n.n(r),o=n("lwsE"),i=n.n(o),u=n("W8MJ"),l=n.n(u),c=n("7W2i"),s=n.n(c),p=n("LQ03"),f=n.n(p),d=n("q1tI"),v=n("TSYQ"),h=n.n(v),m=n("kbBi"),b=n.n(m),x=n("CWQg"),y=n("mh/l"),g=n("0n0R"),w=Object(x["a"])("text","input");function A(e){return!!(e.prefix||e.suffix||e.allowClear)}var O=function(e){s()(n,e);var t=f()(n);function n(){var e;return i()(this,n),e=t.apply(this,arguments),e.containerRef=d["createRef"](),e.onInputMouseUp=function(t){var n;if(null===(n=e.containerRef.current)||void 0===n?void 0:n.contains(t.target)){var r=e.props.triggerFocus;r()}},e}return l()(n,[{key:"renderClearIcon",value:function(e){var t=this.props,n=t.allowClear,r=t.value,o=t.disabled,i=t.readOnly,u=t.handleReset;if(!n)return null;var l=!o&&!i&&r,c="".concat(e,"-clear-icon");return d["createElement"](b.a,{onClick:u,className:h()(a()({},"".concat(c,"-hidden"),!l),c),role:"button"})}},{key:"renderSuffix",value:function(e){var t=this.props,n=t.suffix,r=t.allowClear;return n||r?d["createElement"]("span",{className:"".concat(e,"-suffix")},this.renderClearIcon(e),n):null}},{key:"renderLabeledIcon",value:function(e,t){var n,r=this.props,o=r.focused,i=r.value,u=r.prefix,l=r.className,c=r.size,s=r.suffix,p=r.disabled,f=r.allowClear,v=r.direction,m=r.style,b=r.readOnly,x=r.bordered,w=this.renderSuffix(e);if(!A(this.props))return Object(g["a"])(t,{value:i});var O=u?d["createElement"]("span",{className:"".concat(e,"-prefix")},u):null,C=h()("".concat(e,"-affix-wrapper"),(n={},a()(n,"".concat(e,"-affix-wrapper-focused"),o),a()(n,"".concat(e,"-affix-wrapper-disabled"),p),a()(n,"".concat(e,"-affix-wrapper-sm"),"small"===c),a()(n,"".concat(e,"-affix-wrapper-lg"),"large"===c),a()(n,"".concat(e,"-affix-wrapper-input-with-clear-btn"),s&&f&&i),a()(n,"".concat(e,"-affix-wrapper-rtl"),"rtl"===v),a()(n,"".concat(e,"-affix-wrapper-readonly"),b),a()(n,"".concat(e,"-affix-wrapper-borderless"),!x),a()(n,"".concat(l),!f&&l),n));return d["createElement"]("span",{ref:this.containerRef,className:C,style:m,onMouseUp:this.onInputMouseUp},O,Object(g["a"])(t,{style:null,value:i,className:Object(y["c"])(e,x,c,p)}),w)}},{key:"renderInputWithLabel",value:function(e,t){var n,r,o=this.props,i=o.addonBefore,u=o.addonAfter,l=o.style,c=o.size,s=o.className,p=o.direction;if(!i&&!u)return t;var f="".concat(e,"-group"),v="".concat(f,"-addon"),m=i?d["createElement"]("span",{className:v},i):null,b=u?d["createElement"]("span",{className:v},u):null,x=h()("".concat(e,"-wrapper"),(n={},a()(n,f,i||u),a()(n,"".concat(f,"-rtl"),"rtl"===p),n)),y=h()("".concat(e,"-group-wrapper"),(r={},a()(r,"".concat(e,"-group-wrapper-sm"),"small"===c),a()(r,"".concat(e,"-group-wrapper-lg"),"large"===c),a()(r,"".concat(e,"-group-wrapper-rtl"),"rtl"===p),r),s);return d["createElement"]("span",{className:y,style:l},d["createElement"]("span",{className:x},m,Object(g["a"])(t,{style:null}),b))}},{key:"renderTextAreaWithClearIcon",value:function(e,t){var n,r=this.props,o=r.value,i=r.allowClear,u=r.className,l=r.style,c=r.direction,s=r.bordered;if(!i)return Object(g["a"])(t,{value:o});var p=h()("".concat(e,"-affix-wrapper"),"".concat(e,"-affix-wrapper-textarea-with-clear-btn"),(n={},a()(n,"".concat(e,"-affix-wrapper-rtl"),"rtl"===c),a()(n,"".concat(e,"-affix-wrapper-borderless"),!s),n),u);return d["createElement"]("span",{className:p,style:l},Object(g["a"])(t,{style:null,value:o}),this.renderClearIcon(e))}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.inputType,r=e.element;return n===w[0]?this.renderTextAreaWithClearIcon(t,r):this.renderInputWithLabel(t,this.renderLabeledIcon(t,r))}}]),n}(d["Component"]);t["a"]=O},OnYD:function(e,t,n){},Y1PL:function(e,t,n){"use strict";n.r(t),n.d(t,"ResizableTextArea",(function(){return E}));var r=n("1OyB"),a=n("vuIU"),o=n("Ji7U"),i=n("md7G"),u=n("foSv"),l=n("q1tI"),c=n("rePB"),s=n("t23M");function p(e,t){for(var n=Object.assign({},e),r=0;r<t.length;r+=1){var a=t[r];delete n[a]}return n}var f,d,v=p,h=n("TSYQ"),m=n.n(h),b="\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important\n",x=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],y={};function g(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&y[n])return y[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=x.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),l={sizingStyle:u,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(y[n]=l),l}function w(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;f||(f=document.createElement("textarea"),f.setAttribute("tab-index","-1"),f.setAttribute("aria-hidden","true"),document.body.appendChild(f)),e.getAttribute("wrap")?f.setAttribute("wrap",e.getAttribute("wrap")):f.removeAttribute("wrap");var a=g(e,t),o=a.paddingSize,i=a.borderSize,u=a.boxSizing,l=a.sizingStyle;f.setAttribute("style","".concat(l,";").concat(b)),f.value=e.value||e.placeholder||"";var c,s=Number.MIN_SAFE_INTEGER,p=Number.MAX_SAFE_INTEGER,d=f.scrollHeight;if("border-box"===u?d+=i:"content-box"===u&&(d-=o),null!==n||null!==r){f.value=" ";var v=f.scrollHeight-o;null!==n&&(s=v*n,"border-box"===u&&(s=s+o+i),d=Math.max(s,d)),null!==r&&(p=v*r,"border-box"===u&&(p=p+o+i),c=d>p?"":"hidden",d=Math.min(p,d))}return{height:d,minHeight:s,maxHeight:p,overflowY:c}}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){Object(c["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e){var t=S();return function(){var n,r=Object(u["a"])(e);if(t){var a=Object(u["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i["a"])(this,n)}}function S(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(function(e){e[e["NONE"]=0]="NONE",e[e["RESIZING"]=1]="RESIZING",e[e["RESIZED"]=2]="RESIZED"})(d||(d={}));var z=function(e){Object(o["a"])(n,e);var t=C(n);function n(e){var a;return Object(r["a"])(this,n),a=t.call(this,e),a.saveTextArea=function(e){a.textArea=e},a.handleResize=function(e){var t=a.state.resizeStatus,n=a.props,r=n.autoSize,o=n.onResize;t===d.NONE&&("function"===typeof o&&o(e),r&&a.resizeOnNextFrame())},a.resizeOnNextFrame=function(){cancelAnimationFrame(a.nextFrameActionId),a.nextFrameActionId=requestAnimationFrame(a.resizeTextarea)},a.resizeTextarea=function(){var e=a.props.autoSize;if(e&&a.textArea){var t=e.minRows,n=e.maxRows,r=w(a.textArea,!1,t,n);a.setState({textareaStyles:r,resizeStatus:d.RESIZING},(function(){cancelAnimationFrame(a.resizeFrameId),a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:d.RESIZED},(function(){a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:d.NONE}),a.fixFirefoxAutoScroll()}))}))}))}))}},a.renderTextArea=function(){var e=a.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,r=e.autoSize,o=e.onResize,i=e.className,u=e.disabled,p=a.state,f=p.textareaStyles,h=p.resizeStatus,b=v(a.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),x=m()(n,i,Object(c["a"])({},"".concat(n,"-disabled"),u));"value"in b&&(b.value=b.value||"");var y=O(O(O({},a.props.style),f),h===d.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return l["createElement"](s["a"],{onResize:a.handleResize,disabled:!(r||o)},l["createElement"]("textarea",Object.assign({},b,{className:x,style:y,ref:a.saveTextArea})))},a.state={textareaStyles:{},resizeStatus:d.NONE},a}return Object(a["a"])(n,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(l["Component"]),E=z;function I(e){var t=N();return function(){var n,r=Object(u["a"])(e);if(t){var a=Object(u["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(i["a"])(this,n)}}function N(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var R=function(e){Object(o["a"])(n,e);var t=I(n);function n(e){var a;Object(r["a"])(this,n),a=t.call(this,e),a.focus=function(){a.resizableTextArea.textArea.focus()},a.saveTextArea=function(e){a.resizableTextArea=e},a.handleChange=function(e){var t=a.props.onChange;a.setValue(e.target.value,(function(){a.resizableTextArea.resizeTextarea()})),t&&t(e)},a.handleKeyDown=function(e){var t=a.props,n=t.onPressEnter,r=t.onKeyDown;13===e.keyCode&&n&&n(e),r&&r(e)};var o="undefined"===typeof e.value||null===e.value?e.defaultValue:e.value;return a.state={value:o},a}return Object(a["a"])(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return l["createElement"](E,Object.assign({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(l["Component"]);t["default"]=R},"mh/l":function(e,t,n){"use strict";n.d(t,"b",(function(){return O})),n.d(t,"d",(function(){return C})),n.d(t,"c",(function(){return S}));var r=n("pVnL"),a=n.n(r),o=n("lwsE"),i=n.n(o),u=n("W8MJ"),l=n.n(u),c=n("7W2i"),s=n.n(c),p=n("LQ03"),f=n.n(p),d=n("lSNA"),v=n.n(d),h=n("q1tI"),m=n("TSYQ"),b=n.n(m),x=n("6UMo"),y=n("LlR5"),g=n("H84U"),w=n("3Nzz"),A=n("uaoM");function O(e){return"undefined"===typeof e||null===e?"":e}function C(e,t,n){if(n){var r=t;if("click"===t.type){r=Object.create(t),r.target=e,r.currentTarget=e;var a=e.value;return e.value="",n(r),void(e.value=a)}n(r)}}function S(e,t,n,r,a){var o;return b()(e,(o={},v()(o,"".concat(e,"-sm"),"small"===n),v()(o,"".concat(e,"-lg"),"large"===n),v()(o,"".concat(e,"-disabled"),r),v()(o,"".concat(e,"-rtl"),"rtl"===a),v()(o,"".concat(e,"-borderless"),!t),o))}var z=function(e){s()(n,e);var t=f()(n);function n(e){var r;i()(this,n),r=t.call(this,e),r.direction="ltr",r.focus=function(){r.input.focus()},r.saveClearableInput=function(e){r.clearableInput=e},r.saveInput=function(e){r.input=e},r.onFocus=function(e){var t=r.props.onFocus;r.setState({focused:!0},r.clearPasswordValueAttribute),t&&t(e)},r.onBlur=function(e){var t=r.props.onBlur;r.setState({focused:!1},r.clearPasswordValueAttribute),t&&t(e)},r.handleReset=function(e){r.setValue("",(function(){r.focus()})),C(r.input,e,r.props.onChange)},r.renderInput=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.props,u=i.className,l=i.addonBefore,c=i.addonAfter,s=i.size,p=i.disabled,f=Object(x["default"])(r.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return h["createElement"]("input",a()({autoComplete:o.autoComplete},f,{onChange:r.handleChange,onFocus:r.onFocus,onBlur:r.onBlur,onKeyDown:r.handleKeyDown,className:b()(S(e,n,s||t,p,r.direction),v()({},u,u&&!l&&!c)),ref:r.saveInput}))},r.clearPasswordValueAttribute=function(){r.removePasswordTimeout=setTimeout((function(){r.input&&"password"===r.input.getAttribute("type")&&r.input.hasAttribute("value")&&r.input.removeAttribute("value")}))},r.handleChange=function(e){r.setValue(e.target.value,r.clearPasswordValueAttribute),C(r.input,e,r.props.onChange)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,a=t.onKeyDown;13===e.keyCode&&n&&n(e),a&&a(e)},r.renderComponent=function(e){var t=e.getPrefixCls,n=e.direction,o=e.input,i=r.state,u=i.value,l=i.focused,c=r.props,s=c.prefixCls,p=c.bordered,f=void 0===p||p,d=t("input",s);return r.direction=n,h["createElement"](w["b"].Consumer,null,(function(e){return h["createElement"](y["a"],a()({size:e},r.props,{prefixCls:d,inputType:"input",value:O(u),element:r.renderInput(d,e,f,o),handleReset:r.handleReset,ref:r.saveClearableInput,direction:n,focused:l,triggerFocus:r.focus,bordered:f}))}))};var o="undefined"===typeof e.value?e.defaultValue:e.value;return r.state={value:o,focused:!1,prevValue:e.value},r}return l()(n,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(e){return Object(y["b"])(e)!==Object(y["b"])(this.props)&&Object(A["a"])(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(e,t){void 0===this.props.value?this.setState({value:e},t):null===t||void 0===t||t()}},{key:"render",value:function(){return h["createElement"](g["a"],null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevValue,r={prevValue:e.value};return void 0===e.value&&n===e.value||(r.value=e.value),r}}]),n}(h["Component"]);z.defaultProps={type:"text"},t["a"]=z},whJP:function(e,t,n){"use strict";var r=n("RIqP"),a=n.n(r),o=n("pVnL"),i=n.n(o),u=n("lSNA"),l=n.n(u),c=n("lwsE"),s=n.n(c),p=n("W8MJ"),f=n.n(p),d=n("7W2i"),v=n.n(d),h=n("LQ03"),m=n.n(h),b=n("q1tI"),x=n("Y1PL"),y=n("6UMo"),g=n("TSYQ"),w=n.n(g),A=n("LlR5"),O=n("H84U"),C=n("mh/l"),S=function(e){v()(n,e);var t=m()(n);function n(e){var r;s()(this,n),r=t.call(this,e),r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=null===e||void 0===e?void 0:e.resizableTextArea},r.saveClearableInput=function(e){r.clearableInput=e},r.handleChange=function(e){r.setValue(e.target.value),Object(C["d"])(r.resizableTextArea.textArea,e,r.props.onChange)},r.handleReset=function(e){r.setValue("",(function(){r.focus()})),Object(C["d"])(r.resizableTextArea.textArea,e,r.props.onChange)},r.renderTextArea=function(e,t){var n,a=r.props,o=a.showCount,u=a.className,c=a.style;return b["createElement"](x["default"],i()({},Object(y["default"])(r.props,["allowClear","bordered","showCount"]),{className:w()((n={},l()(n,"".concat(e,"-borderless"),!t),l()(n,u,u&&!o),n)),style:o?null:c,prefixCls:e,onChange:r.handleChange,ref:r.saveTextArea}))},r.renderComponent=function(e){var t,n=e.getPrefixCls,o=e.direction,u=Object(C["b"])(null===(t=r.state)||void 0===t?void 0:t.value),c=r.props,s=c.prefixCls,p=c.bordered,f=void 0===p||p,d=c.showCount,v=void 0!==d&&d,h=c.maxLength,m=c.className,x=c.style,y=n("input",s),g=Number(h)>0;u=g?u.slice(0,h):u;var O=b["createElement"](A["a"],i()({},r.props,{prefixCls:y,direction:o,inputType:"text",value:u,element:r.renderTextArea(y,f),handleReset:r.handleReset,ref:r.saveClearableInput,triggerFocus:r.focus,bordered:f}));if(v){var S=a()(u).length,z="".concat(S).concat(g?" / ".concat(h):"");O=b["createElement"]("div",{className:w()("".concat(y,"-textarea"),l()({},"".concat(y,"-textarea-rtl"),"rtl"===o),"".concat(y,"-textarea-show-count"),m),style:x,"data-count":z},O)}return O};var o="undefined"===typeof e.value?e.defaultValue:e.value;return r.state={value:o,prevValue:e.value},r}return f()(n,[{key:"setValue",value:function(e,t){void 0===this.props.value&&this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return b["createElement"](O["a"],null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevValue,r={prevValue:e.value};return void 0===e.value&&n===e.value||(r.value=e.value),r}}]),n}(b["Component"]);t["a"]=S}}]);
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途)
地址:北京市海淀区大恒科技大厦五层 邮编:100080
Floor 5th,Daheng Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2022. 京ICP备09089570号 | 京公网安备11010702000869号