1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b9b65"],{"33b1":function(e,a,t){"use strict";t.r(a);var r=function(){var e=this,a=e._self._c;return a("a-card",{attrs:{bordered:!1}},[a("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[a("a-col",{attrs:{md:24,sm:24}},[a("a-form-item",{attrs:{label:"Note",labelCol:{span:7},wrapperCol:{span:15}}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["note",{rules:[{required:!0,message:"Please input your note!"}]}],expression:"['note',{rules: [{ required: true, message: 'Please input your note!' }]}]"}]})],1)],1),a("a-col",{attrs:{md:24,sm:24}},[a("a-form-item",{attrs:{label:"Gender",labelCol:{span:7},wrapperCol:{span:15}}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["gender",{rules:[{required:!0,message:"Please select your gender!"}]}],expression:"['gender',{rules: [{ required: true, message: 'Please select your gender!' }]}]"}],attrs:{placeholder:"Select a option and change input text above"},on:{change:this.handleSelectChange}},[a("a-select-option",{attrs:{value:"male"}},[e._v("male")]),a("a-select-option",{attrs:{value:"female"}},[e._v("female")])],1)],1)],1),a("a-col",{attrs:{md:24,sm:24}},[a("a-form-item",{attrs:{label:"Gender",labelCol:{span:7},wrapperCol:{span:15}}},[a("a-cascader",{attrs:{options:e.areaOptions,showSearch:{filter:e.filter},placeholder:"Please select"},on:{change:e.onChange}})],1)],1),a("a-form-item",{attrs:{wrapperCol:{span:12,offset:5}}},[a("a-col",{attrs:{md:24,sm:24}},[a("a-form-item",{attrs:{wrapperCol:{span:12,offset:5}}},[a("a-button",{attrs:{type:"primary",htmlType:"submit"}},[e._v("Submit")])],1)],1)],1)],1)],1)},o=[],n=t("0fea"),s={props:["sex","name"],data:function(){return{formLayout:"horizontal",form:this.$form.createForm(this),areaOptions:[]}},methods:{handleSubmit:function(e){e.preventDefault(),this.form.validateFields((function(e,a){}))},handleSelectChange:function(e){this.form.setFieldsValue({note:"Hi, ".concat("male"===e?"man":"lady","!")})},onChange:function(e,a){},filter:function(e,a){return a.some((function(a){return a.label.toLowerCase().indexOf(e.toLowerCase())>-1}))}},created:function(){var e=this;Object(n["c"])("/api/area").then((function(a){e.areaOptions=a}))},watch:{$route:{immediate:!0,handler:function(){this.$route.query.sex}}}},l=s,i=t("2877"),u=Object(i["a"])(l,r,o,!1,null,null,null);a["default"]=u.exports}}]);
|