mand-mobile/docs/static/js/ZhCNDocsComponentsFeedbackD...

1 line
272 KiB
JavaScript
Raw Normal View History

2024-03-12 17:47:00 +08:00
webpackJsonp([18],{"+BBB":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o("LLIv"),A=function(e){return e&&e.__esModule?e:{default:e}}(i),a=o("JXzq"),n=o("zmBX");t.default={name:"mfe-blog-theme-default-doc-container",data:function(){return{info:a.info,body:a.body,toc:a.toc,demos:n.demos}},components:{MbDocer:A.default}}},"+eRn":function(e,t,o){var i,A,a;(function(){(function(n,s){A=[t,o("o9V8"),o("Svgr"),o("dgYx"),o("U6ik"),o("YqFQ")],i=s,a="function"==typeof i?i.apply(t,A):i,!(void 0!==a&&(e.exports=a))})(this,function(e,t,o,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var A=function(e){return e&&e.__esModule?e:{default:e}}(t),a=(0,i.getDpr)(),n=["getColumnValue","getColumnValues","getColumnIndex","getColumnIndexs","getColumnIndexByDefault","setColumnValues","refresh","inheritPickerApi"];e.default={name:"md-picker-column",props:{data:{type:Array,default:function(){return[]}},cols:{type:Number,default:1},defaultValue:{type:Array,default:function(){return[]}},defaultIndex:{type:Array,default:function(){return[]}},invalidIndex:{type:Array,default:function(){return[]}},lineHeight:{type:Number,default:45},keepIndex:{type:Boolean,default:!1}},data:function(){return{columnValues:[],scrollers:[],scrollDirect:1,scrollPosition:0,activedIndexs:[],isInitialed:!1,isScrollInitialed:!1,isScrolling:!1,isMouseDown:!1}},computed:{hooks:function(){var e=this.$el.querySelectorAll(".md-picker-column-hook");return e?Array.isArray(e)?e:Array.prototype.slice.call(e):[]},style:function(){return{maskerHeight:(2*this.lineHeight+10)*a,indicatorHeight:this.lineHeight*a}}},watch:{data:{handler:function(e){this.columnValues=(0,i.extend)([],e)},deep:!0}},created:function(){this.columnValues=(0,i.extend)([],this.data)},methods:{$_initColumnsScroller:function(){for(var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,o=t,i=this.hooks.length,A;o<i;o++)A=this.hooks[o],A&&this.$_initSingleColumnScroller(A,o);t||(this.$_initColumnIndex(),!this.isInitialed&&(this.isInitialed=!0,setTimeout(function(){e.$emit("initialed")},0))),this.isScrollInitialed=!0},$_initSingleColumnScroller:function(e,t){var i=this,a=this.$el.querySelectorAll(".column-list"),n=a[t];if(void 0!==t&&a&&e&&n){var s=e.getBoundingClientRect(),l=new A.default(function(e,t){(0,o.render)(n,e,t)},{scrollingX:!1,snapping:!0,snappingVelocity:1,animationDuration:350,scrollingComplete:function(){i.$_onColumnScrollEnd(t)}});l.setPosition(s.left+e.clientLeft,s.top+e.clientTop),l.setDimensions(e.clientWidth,e.clientHeight,n.offsetWidth,n.offsetHeight+this.style.maskerHeight),l.setSnapSize(0,this.style.indicatorHeight),this.$set(this.scrollers,t,l),this.$_resetScrollingPosition(t)}},$_initColumnIndex:function(){var e=this,t=this.columnValues,o=this.scrollers,A=this.defaultValue,a=this.defaultIndex;this.$_getColumnIndexByDefault(t,a,A,function(t,A){var a=o[t];return a?void(e.$_isColumnIndexInvalid(t,A)?e.$_scrollToValidIndex(a,t,A):(e.$_scrollToIndex(a,t,A),e.$set(e.activedIndexs,t,A))):((0,i.warn)("initialColumnIndex: scroller of column "+t+" is undefined"),1)})},$_getColumnIndexByDefault:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],A=3<arguments.length&&void 0!==arguments[3]?arguments[3]:i.noop;e&&(0,i.traverse)(e,function(e,i,a){var n=a[0],s=a[1],l=t[n],r=o[n];if(void 0===l&&void 0===r&&(l=0),void 0!==l&&s===l||void 0!==r&&(e.text===r||e.label===r||e.value===r))return A(n,s),2})},$_getColumnIndexByOffset:function(e){return Math.round(e/this.style.indicatorHeight)},$_getColumnOffsetByIndex:function(e){return e*this.style.indicatorHeight},$_isColumnIndexActive:function(e,t){var o=this.activedIndexs[e];return o===t},$_isColumnIndexInvalid:function(e,t){var o=this.invalidIndex[e];return(0,i.inArray)(o,t)},$_hasValidIndex:function(e){var t=!0,o=!1,A=void 0;try{for(var a=this.data[e].keys()[Symbol.iterator](),n,s;!(t=(n=a.next()).done);t=!0)if(s=n.value,!this.$_isColumnIndexInvalid(e,s))return!0}catch(e){o=!0,A=e}finally{try{!t&&a.return&&a.retu