Comparing version 0.0.7 to 0.0.8
/* eslint-disable @typescript-eslint/restrict-plus-operands */ | ||
import { computed, defineComponent, ref, onMounted, h, renderSlot, renderList, onBeforeMount } from 'vue'; | ||
import { depx } from 'seemly'; | ||
import { depx, pxfy } from 'seemly'; | ||
import { nextFrame, c } from '../../shared'; | ||
@@ -170,5 +170,5 @@ import VResizeObserver from '../../resize-observer/src'; | ||
boxSizing: 'padding-box', | ||
height: `${props.itemSize * props.items.length}px`, | ||
paddingTop: `${props.paddingTop}px`, | ||
paddingBottom: `${props.paddingBottom}px` | ||
height: pxfy(props.itemSize * props.items.length), | ||
paddingTop: pxfy(props.paddingTop), | ||
paddingBottom: pxfy(props.paddingBottom) | ||
}; | ||
@@ -178,3 +178,3 @@ }), | ||
return { | ||
transform: `translate3d(0, ${startIndexRef.value * props.itemSize}px, 0)` | ||
transform: `translate3d(0, ${pxfy(startIndexRef.value * props.itemSize)}, 0)` | ||
}; | ||
@@ -181,0 +181,0 @@ }), |
@@ -175,5 +175,5 @@ "use strict"; | ||
boxSizing: 'padding-box', | ||
height: `${props.itemSize * props.items.length}px`, | ||
paddingTop: `${props.paddingTop}px`, | ||
paddingBottom: `${props.paddingBottom}px` | ||
height: seemly_1.pxfy(props.itemSize * props.items.length), | ||
paddingTop: seemly_1.pxfy(props.paddingTop), | ||
paddingBottom: seemly_1.pxfy(props.paddingBottom) | ||
}; | ||
@@ -183,3 +183,3 @@ }), | ||
return { | ||
transform: `translate3d(0, ${startIndexRef.value * props.itemSize}px, 0)` | ||
transform: `translate3d(0, ${seemly_1.pxfy(startIndexRef.value * props.itemSize)}, 0)` | ||
}; | ||
@@ -186,0 +186,0 @@ }), |
{ | ||
"name": "vueuc", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Util Components for Vue", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
172143