webpackJsonp([14],{"H/pJ":function(e,t){},ZVky:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});a("Au9i");var s={mixins:[a("5g4Q").a],data:function(){return{isScroll:!1,searchConf1:{value:"",autofocus:!0},searchConf2:{value:"",cancelText:"取消",placeholder:"请输入搜索内容搜索"},searchConf3:{value:""},searchConf4:{value:"",result:[{title:"搜索结果",value:"1"},{title:"搜索结果",value:"2"},{title:"搜索结果",value:"3"},{title:"搜索结果",value:"4"}]}}},computed:{getResult:function(){for(var e=[],t=0;t<5;t++)e.push(this.searchConf3.value+"-"+(t+1));return e}},mounted:function(){window.addEventListener("scroll",this.handleScroll),this.$refs.search.style.scrollTop=100,console.log(this.$refs.search.scrollHeight)},methods:{handleScroll:function(){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;console.log(e),this.isScroll=e>0}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("transition",{attrs:{name:"slide"}},[a("div",{ref:"search",staticClass:"search"},[a("mt-header",{class:e.isScroll?"header2":"header1",attrs:{title:"Search",fixed:e.headerConf.fixed}},[a("div",{attrs:{slot:"left"},slot:"left"},[a("mt-button",{attrs:{icon:"back"},on:{click:e.back}},[e._v("返回")])],1)]),e._v(" "),a("div",{staticClass:"content"},[a("div",{staticClass:"row"},[a("div",{staticClass:"title"},[e._v("普通实例")]),e._v(" "),a("mt-search",{ref:"search1",attrs:{autofocus:e.searchConf1.autofocus},model:{value:e.searchConf1.value,callback:function(t){e.$set(e.searchConf1,"value",t)},expression:"searchConf1.value"}})],1),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"title"},[e._v("设置显示文字")]),e._v(" "),a("mt-search",{attrs:{"cancel-text":e.searchConf2.cancelText,placeholder:e.searchConf2.placeholder},model:{value:e.searchConf2.value,callback:function(t){e.$set(e.searchConf2,"value",t)},expression:"searchConf2.value"}})],1),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"title"},[e._v("带搜索结果")]),e._v(" "),a("mt-search",{class:e.searchConf3.value?"search-result":"",attrs:{result:e.getResult},on:{"update:result":function(t){e.getResult=t}},model:{value:e.searchConf3.value,callback:function(t){e.$set(e.searchConf3,"value",t)},expression:"searchConf3.value"}})],1),e._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"title"},[e._v("自定义搜索结果")]),e._v(" "),a("mt-search",{class:e.searchConf4.value?"search-result":"",model:{value:e.searchConf4.value,callback:function(t){e.$set(e.searchConf4,"value",t)},expression:"searchConf4.value"}},e._l(e.searchConf4.result,function(e){return a("mt-cell",{attrs:{title:e.title,value:e.value}})}),1)],1)])],1)])},staticRenderFns:[]};var c=a("VU/8")(s,l,!1,function(e){a("H/pJ")},"data-v-c88e3dd6",null);t.default=c.exports}});
//# sourceMappingURL=14.f492a64887f314bdfe88.js.map