mand-mobile/docs/static/js/DocsComponentsBasicTabBar.9...

1 line
122 KiB
JavaScript
Raw Normal View History

2018-04-24 23:10:59 +08:00
webpackJsonp([11],{"+3D+":function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=t("ykIP"),o=t.n(s);for(var n in s)"default"!==n&&function(e){t.d(a,e,function(){return s[e]})}(n);var l=t("/Lhw"),d=t("VU/8"),p=d(o.a,l.a,!1,null,null,null);a["default"]=p.exports},"+QlO":function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=t("25/t"),o=t.n(s);for(var n in s)"default"!==n&&function(e){t.d(a,e,function(){return s[e]})}(n);var l=t("xCDC"),d=t("VU/8"),p=d(o.a,l.a,!1,function(){t("n+en")},"data-v-69ce29fa",null);a["default"]=p.exports},"+fyZ":function(e,a,t){var s=t("QDUv");"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);t("rjj0")("84a5b008",s,!0,{})},"/Lhw":function(e,a){"use strict";a.a={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"md-example-child md-example-child-tab-bar md-example-child-tab-bar-1"},[t("md-tab-bar",{attrs:{titles:e.titles,"show-ink-bar":!1}})],1)},staticRenderFns:[]}},"25/t":function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=t("oCGI"),o=function(e){return e&&e.__esModule?e:{default:e}}(s),n=t("gy5R"),l=t("Y3Zr");a.default={components:{"qr-code":o.default},data:function(){return{info:n.info,body:n.body,toc:n.toc,demos:l.demos,demoBoxShowStat:[],activeDemoBoxZoonPos:{},isTocStricky:!1,isQrcodeShow:!1}},computed:{bodyHead:function(){return this.body.split("<!-- DEMO -->")[0]},bodyTail:function(){return this.body.split("<!-- DEMO -->")[1]},demoBox:function(){return $(".doc-demo-box")},previewBox:function(){return $(".doc-demo-box-preview")},codeBox:function(){return $(".doc-demo-box-code")},curRouteIndex:function(){return this.$route.meta.index},prevRoute:function(){return this.findRoute(this.curRouteIndex-1,-1)},nextRoute:function(){return this.findRoute(this.curRouteIndex+1,1)}},mounted:function(){var e=this,a=document.body.scrollTop||document.documentElement.scrollTop;if($(window).bind("scroll",function(){var a=document.body.scrollTop||document.documentElement.scrollTop;e.strickyTocBar(a)}),this.strickyTocBar(a),location.hash){var t=location.hash.substr(1);location.hash="",location.hash=t}},methods:{findRoute:function(e){for(var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,t=window.$routes;0<=e&&e<=t.length-1&&(!t[e].meta.src&&!t[e].meta.markdown||t[e].redirect);)e+=a;return t[e]},toggleDemoBox:function(e){var a=$(".doc-demo-box-"+e),t=a.find(".doc-demo-box-toggle"),s=!this.demoBoxShowStat[e];s?t.addClass("active"):t.removeClass("active"),this.$set(this.demoBoxShowStat,e,s)},strickyTocBar:function(e){var a=this;window.requestAnimationFrame(function(){a.isTocStricky=!!(96<e)})},strickyToggleBar:function(e){var a=this;window.requestAnimationFrame(function(){a.toggleStrickyToggleBar(e)})},toggleStrickyToggleBar:function(e){e=e||document.body.scrollTop||document.documentElement.scrollTop,$.each($(".doc-demo-box-toggle"),function(a,t){var s=$(t).width(),o=$(t).height(),n=$(t).siblings(".doc-demo-box-code"),l=n.offset(),d=n.height(),p=$(window).height()-(l.top-e),i=$(window).height()-(l.top+d-e);$(t).hasClass("active")&&0<=p&&0>=i?!$(t).hasClass("is-stricky")&&($(t).css({maxWidth:s+"px",left:$(t).offset().left+"px"}),$(t).addClass("is-stricky")):($(t).css({maxWidth:s+"px",left:"0px"}),$(t).removeClass("is-stricky"))})}}}},"2G0X":function(e,a,t){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function o(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}Object.defineProperty(a,"__esModule",{value:!0});var n,l=t("Xz8Y"),d=s(l),p=t("DIBZ"),i=s(p);a.default={name:"tab-bar-demo",title:"scope-slot",data:function(){return{titles:[{title:"\u7B2C1",prefix:"\u6211"},{title:"\u7B2C2",prefix:"\u4F60"},{title:"\u7B2C3",prefix:"\u4ED6"}]}},components:(n={},o(n,i.default.name,i.default),o(n,d.default.name,d.default),n)}},"2qQ6":function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=t("4k0Q"),o=t.n(s);for(var n in s)"default"!==n&&function(e){t.d(a,e,functio