@v-c/slick 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ import initial_state_default from "./initial-state.js";
6
6
  import Track_default from "./Track.js";
7
7
  import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, nextTick, onBeforeUnmount, onMounted, onUpdated, reactive, shallowRef, watch } from "vue";
8
8
  import { clsx } from "@v-c/util";
9
- import { filterEmpty } from "@v-c/util/dist/props-util";
9
+ import { filterEmpty, getStylePxValue } from "@v-c/util/dist/props-util";
10
10
  import { toArray } from "@v-c/util/dist/Children/toArray";
11
11
  import { debounce } from "es-toolkit";
12
12
  var InnerSlider_default = /* @__PURE__ */ defineComponent((props, { slots, expose }) => {
@@ -569,7 +569,7 @@ var InnerSlider_default = /* @__PURE__ */ defineComponent((props, { slots, expos
569
569
  nextArrow = createVNode(NextArrow, arrowProps, null);
570
570
  }
571
571
  let verticalHeightStyle = null;
572
- if (mergedProps.value.vertical) verticalHeightStyle = { height: state.listHeight };
572
+ if (mergedProps.value.vertical) verticalHeightStyle = { height: getStylePxValue(state.listHeight) };
573
573
  let centerPaddingStyle = null;
574
574
  if (mergedProps.value.vertical === false) {
575
575
  if (mergedProps.value.centerMode === true) centerPaddingStyle = { padding: `0px ${mergedProps.value.centerPadding}` };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@v-c/slick",
3
3
  "type": "module",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"