update dist and lib
This commit is contained in:
		@@ -37,7 +37,9 @@
 | 
			
		||||
          :style="`width: ${widths[ci]}px;`"
 | 
			
		||||
          :align="aligns[ci]"
 | 
			
		||||
          v-html="ceil"
 | 
			
		||||
          @click="emitEvent(ri, ci, row, ceil)"
 | 
			
		||||
          @click="emitEvent('click', ri, ci, row, ceil)"
 | 
			
		||||
          @mouseenter="handleHover(true, ri, ci, row, ceil)"
 | 
			
		||||
          @mouseleave="handleHover(false)"
 | 
			
		||||
        />
 | 
			
		||||
 | 
			
		||||
      </div>
 | 
			
		||||
@@ -146,7 +148,14 @@ export default {
 | 
			
		||||
         * @default carousel = 'single'
 | 
			
		||||
         * @example carousel = 'single' | 'page'
 | 
			
		||||
         */
 | 
			
		||||
        carousel: 'single'
 | 
			
		||||
        carousel: 'single',
 | 
			
		||||
        /**
 | 
			
		||||
         * @description Pause scroll when mouse hovered
 | 
			
		||||
         * @type {Boolean}
 | 
			
		||||
         * @default hoverPause = true
 | 
			
		||||
         * @example hoverPause = true | false
 | 
			
		||||
         */
 | 
			
		||||
        hoverPause: true
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
      mergedConfig: null,
 | 
			
		||||
@@ -182,6 +191,18 @@ export default {
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    handleHover(enter, ri, ci, row, ceil){
 | 
			
		||||
      const { mergedConfig, emitEvent, stopAnimation, animation } = this
 | 
			
		||||
 | 
			
		||||
      if (enter) emitEvent('mouseover', ri, ci, row, ceil)
 | 
			
		||||
      if (!mergedConfig.hoverPause) return
 | 
			
		||||
 | 
			
		||||
      if (enter) {
 | 
			
		||||
        stopAnimation()
 | 
			
		||||
      } else {
 | 
			
		||||
        animation(true)
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    afterAutoResizeMixinInit () {
 | 
			
		||||
      const { calcData } = this
 | 
			
		||||
 | 
			
		||||
@@ -355,10 +376,10 @@ export default {
 | 
			
		||||
 | 
			
		||||
      clearTimeout(animationHandler)
 | 
			
		||||
    },
 | 
			
		||||
    emitEvent (ri, ci, row, ceil) {
 | 
			
		||||
    emitEvent (type, ri, ci, row, ceil) {
 | 
			
		||||
      const { ceils, rowIndex } = row
 | 
			
		||||
 | 
			
		||||
      this.$emit('click', {
 | 
			
		||||
      this.$emit(type, {
 | 
			
		||||
        row: ceils,
 | 
			
		||||
        ceil,
 | 
			
		||||
        rowIndex,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user