webpackJsonp([8],{AJFR:function(e,l){},O4SB:function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});t("Au9i");var a={mixins:[t("5g4Q").a],data:function(){return{fieldInfo:{username:"",email:"",password:"",phone:"",website:"",number:"",birthday:"1993-04-14",introduction:"",captcha:"获取验证码",regVal:"",readonly:!0,disableClear:!0,attr:{id:1}},timer:null,btnStauts:!1}},beforeDestroy:function(){clearInterval(this.timer),this.timer=null},methods:{getReg:function(){var e=this;this.btnStauts=!0,this.fieldInfo.captcha=5,this.timer=setInterval(function(){e.fieldInfo.captcha>0?e.fieldInfo.captcha--:(e.fieldInfo.captcha="重新发送",clearInterval(e.timer),e.timer=null,e.btnStauts=!1)},1e3)}}},i={render:function(){var e=this,l=e.$createElement,t=e._self._c||l;return t("transition",{attrs:{name:"slide"}},[t("div",{staticClass:"field"},[t("mt-header",{staticClass:"header",attrs:{title:"Field",fixed:e.headerConf.fixed}},[t("div",{attrs:{slot:"left"},slot:"left"},[t("mt-button",{attrs:{icon:"back"},on:{click:e.back}},[e._v("返回")])],1)]),e._v(" "),t("div",{staticClass:"content"},[t("div",{staticClass:"row"},[t("div",{staticClass:"title"},[e._v("基础使用")]),e._v(" "),t("mt-field",{attrs:{label:"用户名",placeholder:"请输入用户名"},model:{value:e.fieldInfo.username,callback:function(l){e.$set(e.fieldInfo,"username",l)},expression:"fieldInfo.username"}}),e._v(" "),t("mt-field",{attrs:{label:"邮箱",placeholder:"请输入邮箱",type:"email"},model:{value:e.fieldInfo.email,callback:function(l){e.$set(e.fieldInfo,"email",l)},expression:"fieldInfo.email"}}),e._v(" "),t("mt-field",{attrs:{label:"密码",placeholder:"请输入密码",type:"password"},model:{value:e.fieldInfo.password,callback:function(l){e.$set(e.fieldInfo,"password",l)},expression:"fieldInfo.password"}}),e._v(" "),t("mt-field",{attrs:{label:"手机号",placeholder:"请输入手机号",type:"tel"},model:{value:e.fieldInfo.phone,callback:function(l){e.$set(e.fieldInfo,"phone",l)},expression:"fieldInfo.phone"}}),e._v(" "),t("mt-field",{attrs:{label:"网站",placeholder:"请输入网址",type:"url"},model:{value:e.fieldInfo.website,callback:function(l){e.$set(e.fieldInfo,"website",l)},expression:"fieldInfo.website"}}),e._v(" "),t("mt-field",{attrs:{label:"数字",placeholder:"请输入数字",type:"number"},model:{value:e.fieldInfo.number,callback:function(l){e.$set(e.fieldInfo,"number",l)},expression:"fieldInfo.number"}}),e._v(" "),t("mt-field",{attrs:{label:"生日",placeholder:"请输入生日",type:"date",readonly:e.fieldInfo.readonly,disableClear:e.fieldInfo.disableClear},model:{value:e.fieldInfo.birthday,callback:function(l){e.$set(e.fieldInfo,"birthday",l)},expression:"fieldInfo.birthday"}}),e._v(" "),t("mt-field",{staticClass:"textarea",attrs:{label:"自我介绍",placeholder:"自我介绍",type:"textarea",rows:"4"},model:{value:e.fieldInfo.introduction,callback:function(l){e.$set(e.fieldInfo,"introduction",l)},expression:"fieldInfo.introduction"}})],1),e._v(" "),t("div",{staticClass:"row"},[t("div",{staticClass:"title"},[e._v("设置校验状态")]),e._v(" "),t("mt-field",{attrs:{label:"邮箱",state:"success"},model:{value:e.fieldInfo.email,callback:function(l){e.$set(e.fieldInfo,"email",l)},expression:"fieldInfo.email"}}),e._v(" "),t("mt-field",{attrs:{label:"邮箱",state:"error"},model:{value:e.fieldInfo.email,callback:function(l){e.$set(e.fieldInfo,"email",l)},expression:"fieldInfo.email"}}),e._v(" "),t("mt-field",{attrs:{label:"邮箱",state:"warning"},model:{value:e.fieldInfo.email,callback:function(l){e.$set(e.fieldInfo,"email",l)},expression:"fieldInfo.email"}})],1),e._v(" "),t("div",{staticClass:"row"},[t("div",{staticClass:"title"},[e._v("自定义内容（例如添加验证码）")]),e._v(" "),t("mt-field",{attrs:{label:"验证码"},model:{value:e.fieldInfo.regVal,callback:function(l){e.$set(e.fieldInfo,"regVal",l)},expression:"fieldInfo.regVal"}},[t("mt-button",{attrs:{type:"primary",disabled:e.btnStauts},on:{click:e.getReg}},[e._v(e._s(e.fieldInfo.captcha))])],1)],1)])],1)])},staticRenderFns:[]};var n=t("VU/8")(a,i,!1,function(e){t("AJFR"),t("mj5Y")},"data-v-0b7cc44f",null);l.default=n.exports},mj5Y:function(e,l){}});
//# sourceMappingURL=8.77607422c0fee37a5c08.js.map