dfish-widget 1.0.55 → 1.0.56

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.
package/lib/index.esm.js CHANGED
@@ -5515,6 +5515,11 @@ const props = __props;
5515
5515
  const itemStyle = (item) => {
5516
5516
  return {
5517
5517
  top: `${item[leafSymbol].showIndex * itemHeight}px`,
5518
+ }
5519
+ };
5520
+
5521
+ const leafStyle = (item) => {
5522
+ return {
5518
5523
  paddingLeft: `${item[leafSymbol].level * 16}px`
5519
5524
  }
5520
5525
  };
@@ -5775,7 +5780,8 @@ return (_ctx, _cache) => {
5775
5780
  (col.type=='leaf')
5776
5781
  ? (openBlock(), createElementBlock("div", {
5777
5782
  key: 0,
5778
- class: normalizeClass(['w-leaf w-leaf-v2', {'z-folder': isFolder(item)}])
5783
+ class: normalizeClass(['w-leaf w-leaf-v2', {'z-folder': isFolder(item)}]),
5784
+ style: normalizeStyle(leafStyle(item))
5779
5785
  }, [
5780
5786
  (isItemLoading(item))
5781
5787
  ? (openBlock(), createBlock(_component_w_img, {
@@ -5799,7 +5805,7 @@ return (_ctx, _cache) => {
5799
5805
  class: "w-leaf-text f-line-1",
5800
5806
  title: item[col.field]
5801
5807
  }, toDisplayString(item[col.field]), 9 /* TEXT, PROPS */, _hoisted_5$2)
5802
- ], 2 /* CLASS */))
5808
+ ], 6 /* CLASS, STYLE */))
5803
5809
  : renderSlot(_ctx.$slots, col.field, {
5804
5810
  key: 1,
5805
5811
  item: item,