-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path54.js
1 lines (1 loc) · 2.8 KB
/
54.js
1
webpackJsonp([54],{352:function(e,t,n){"use strict";function r(e){n(880)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(574),o=n(787),i=n(73),c=r,u=i(a.a,o.a,!1,c,"data-v-57c813ee",null);t.default=u.exports},574:function(e,t,n){"use strict";var r=n(613);t.a={name:"OnlineUnicode",data:function(){return{textarea1:"",textarea2:""}},methods:{encode:function(){this.textarea2=r.a.stringToUnicode(this.textarea1)},decode:function(){this.textarea2=r.a.unicodeToString(this.textarea1)},clear:function(){this.textarea1="",this.textarea2=""}}}},613:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(618),a=n.n(r),o=n(619),i=n.n(o),c=function(){function e(){a()(this,e)}return i()(e,null,[{key:"stringToUnicode",value:function(e){for(var t="",n=0;n<e.length;n++){t+="\\u"+e.charCodeAt(n).toString(16).padStart(4,"0")}return t}},{key:"unicodeToString",value:function(e){var t=/\\u([\d\w]{4})/gi;return e.replace(t,function(e,t){return String.fromCharCode(parseInt(t,16))})}}]),e}()},615:function(e,t,n){e.exports={default:n(622),__esModule:!0}},618:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},619:function(e,t,n){"use strict";t.__esModule=!0;var r=n(615),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,a.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},622:function(e,t,n){n(627);var r=n(22).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},627:function(e,t,n){var r=n(48);r(r.S+r.F*!n(10),"Object",{defineProperty:n(16).f})},683:function(e,t,n){t=e.exports=n(7)(void 0),t.push([e.i,"",""])},787:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[n("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入内容"},model:{value:e.textarea1,callback:function(t){e.textarea1=t},expression:"textarea1"}})],1),e._v(" "),n("div",{staticStyle:{margin:"10px",display:"flex","justify-content":"center","align-items":"center"}},[n("el-button",{attrs:{type:"primary"},on:{click:e.encode}},[e._v("unicode加密")]),e._v(" "),n("el-button",{attrs:{type:"success"},on:{click:e.decode}},[e._v("unicode解密")]),e._v(" "),n("el-button",{attrs:{type:"danger"},on:{click:e.clear}},[e._v("清除内容")])],1),e._v(" "),n("div",[n("el-input",{attrs:{type:"textarea",rows:5,placeholder:"结果......"},model:{value:e.textarea2,callback:function(t){e.textarea2=t},expression:"textarea2"}})],1)])},a=[],o={render:r,staticRenderFns:a};t.a=o},880:function(e,t,n){var r=n(683);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(74)("b0fd5ecc",r,!0,{})}});