1 line
90 KiB
JavaScript
1 line
90 KiB
JavaScript
|
|
webpackJsonp([28],{"10j4":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("oCGI"),s=function(e){return e&&e.__esModule?e:{default:e}}(o),d=a("Q4DI"),n=a("jNy8");t.default={components:{"qr-code":s.default},data:function(){return{info:d.info,body:d.body,toc:d.toc,demos:n.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,t=document.body.scrollTop||document.documentElement.scrollTop;if($(window).bind("scroll",function(){var t=document.body.scrollTop||document.documentElement.scrollTop;e.strickyTocBar(t)}),this.strickyTocBar(t),location.hash){var a=location.hash.substr(1);location.hash="",location.hash=a}},methods:{findRoute:function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,a=window.$routes;0<=e&&e<=a.length-1&&(!a[e].meta.src&&!a[e].meta.markdown||a[e].redirect);)e+=t;return a[e]},toggleDemoBox:function(e){var t=$(".doc-demo-box-"+e),a=t.find(".doc-demo-box-toggle"),o=!this.demoBoxShowStat[e];o?a.addClass("active"):a.removeClass("active"),this.$set(this.demoBoxShowStat,e,o)},strickyTocBar:function(e){var t=this;window.requestAnimationFrame(function(){t.isTocStricky=!!(96<e)})},strickyToggleBar:function(e){var t=this;window.requestAnimationFrame(function(){t.toggleStrickyToggleBar(e)})},toggleStrickyToggleBar:function(e){e=e||document.body.scrollTop||document.documentElement.scrollTop,$.each($(".doc-demo-box-toggle"),function(t,a){var o=$(a).width(),s=$(a).height(),d=$(a).siblings(".doc-demo-box-code"),n=d.offset(),l=d.height(),c=$(window).height()-(n.top-e),i=$(window).height()-(n.top+l-e);$(a).hasClass("active")&&0<=c&&0>=i?!$(a).hasClass("is-stricky")&&($(a).css({maxWidth:o+"px",left:$(a).offset().left+"px"}),$(a).addClass("is-stricky")):($(a).css({maxWidth:o+"px",left:"0px"}),$(a).removeClass("is-stricky"))})}}}},"3IRH":function(e){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],!e.children&&(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"4I9A":function(e,t){"use strict";t.a={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"md-example-child md-example-child-agree md-example-child-3"},[a("md-agree",{attrs:{disabled:e.agreeConf.disabled,size:e.agreeConf.size},on:{change:function(t){e.onChange(e.agreeConf.name,e.agreeConf.checked,t)}},model:{value:e.agreeConf.checked,callback:function(t){e.$set(e.agreeConf,"checked",t)},expression:"agreeConf.checked"}},[e._v("\n \u672C\u4EBA\u627F\u8BFA\u6295\u4FDD\u4EBA\u5DF2\u5145\u5206\u4E86\u89E3\u672C\u4FDD\u9669\u4EA7\u54C1\uFF0C\u5E76\u4FDD\u8BC1\u6295\u4FDD\u4FE1\u606F\u7684\u771F\u5B9E\u6027\uFF0C\u7406\u89E3\u5E76\u540C\u610F\n ")])],1)},staticRenderFns:[]}},"5ZVV":function(e,t,a){"use strict";function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}Object.defineProperty(t,"__esModule",{value:!0});var s=a("Awdj"),d=function(e){return e&&e.__esModule?e:{default:e}}(s);t.default={name:"agree-demo",title:"\u9009\u4E2D\u4E0D\u53EF\u7528\u72B6\u6001",height:120,components:o({},d.default.name,d.default),data:function(){return{agreeConf:{checked:!0,name:"agree2",size:"lg",disabled:!0,introduction:"\u9009\u4E2D\u4E0D\u53EF\u7528\u72B6\u6001"}}},methods:{onChange:function(e,t){console.log("agree name = "+e+" is "+(t?"checked":"unchecked"))}}}},"7lNs":function(e,t){var a,o,s;(function(d,n){o=[t],
|