-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path71.js
1 lines (1 loc) · 1.98 KB
/
71.js
1
webpackJsonp([71],{369:function(e,t,a){"use strict";function r(e){a(911)}Object.defineProperty(t,"__esModule",{value:!0});var s=a(591),i=a(818),l=a(73),n=r,c=l(s.a,i.a,!1,n,"data-v-aed10a46",null);t.default=c.exports},591:function(e,t,a){"use strict";t.a={name:"TextFix",data:function(){return{placeholder:"ABC_DEF\nABC_DEF",textarea:"",childMenu:1}},methods:{clear:function(){this.textarea=""},exec:function(){this.textarea?1==this.childMenu?this.textarea=this.textarea.toLowerCase():2==this.childMenu?this.textarea=this.textarea.toUpperCase():3==this.childMenu?this.textarea=this.textarea.replace(/\_(\w)/g,function(e,t){return t.toUpperCase()}):4==this.childMenu&&(this.textarea=this.textarea.replace(/([A-Z])/g,"_$1").toLowerCase()):(this.textarea=this.placeholder,this.exec())}}}},714:function(e,t,a){t=e.exports=a(7)(void 0),t.push([e.i,".btnClass[data-v-aed10a46]{margin:5px 15px}.el-checkbox-group[data-v-aed10a46]{display:inline-block}",""])},818:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-input",{staticClass:"textOne-Textarea",attrs:{type:"textarea",placeholder:e.placeholder},model:{value:e.textarea,callback:function(t){e.textarea=t},expression:"textarea"}}),e._v(" "),a("div",[a("el-radio-group",{model:{value:e.childMenu,callback:function(t){e.childMenu=t},expression:"childMenu"}},[a("el-radio",{attrs:{label:1}},[e._v("小写")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("大写")]),e._v(" "),a("el-radio",{attrs:{label:3}},[e._v("转驼峰")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("转下划线")])],1),e._v(" "),a("el-button",{staticClass:"btnClass",attrs:{size:"small",type:"primary"},on:{click:e.exec}},[e._v("执行")]),e._v(" "),a("el-button",{staticClass:"btnClass",attrs:{size:"small",type:"danger"},on:{click:e.clear}},[e._v("清空")])],1)],1)},s=[],i={render:r,staticRenderFns:s};t.a=i},911:function(e,t,a){var r=a(714);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a(74)("5dba47e5",r,!0,{})}});