yxuse 3.0.47 → 3.0.49

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.es6.js CHANGED
@@ -20533,6 +20533,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
20533
20533
  if (cell == null ? void 0 : cell.render) return cell == null ? void 0 : cell.render(scope.row);
20534
20534
  if (children && (children == null ? void 0 : children.length) > 0) return renderColumn(children);
20535
20535
  return (cell == null ? void 0 : cell.slotName) && columnSlots(cell, scope);
20536
+ },
20537
+ header: (scope) => {
20538
+ var _a2;
20539
+ if (cell == null ? void 0 : cell.headerRender) return cell == null ? void 0 : cell.headerRender(scope.row);
20540
+ if (cell == null ? void 0 : cell.headerSlotName) return (_a2 = slots[cell == null ? void 0 : cell.headerSlotName]) == null ? void 0 : _a2.call(slots, scope);
20536
20541
  }
20537
20542
  });
20538
20543
  });
@@ -20543,11 +20548,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
20543
20548
  "class": `flex justify-center items-center cursor-pointer gap-10 ${(_b = (_a = cell.config) == null ? void 0 : _a.className) != null ? _b : ""}`
20544
20549
  }, [(_c = cell.operate) == null ? void 0 : _c.filter((op) => !op.show || op.show(scope.row)).map((op) => {
20545
20550
  var _a2;
20546
- if (op == null ? void 0 : op.render) return op.render(scope.row);
20551
+ if (op == null ? void 0 : op.render) return op.render(scope.row, scope.$index);
20547
20552
  return createVNode("span", {
20548
20553
  "onClick": withModifiers(() => {
20549
20554
  (op == null ? void 0 : op.onClick) && (op == null ? void 0 : op.onClick(scope.row));
20550
- emit("operate-handle", op.key, scope.row);
20555
+ emit("operate-handle", op.key, scope.row, scope.$index);
20551
20556
  }, ["stop"]),
20552
20557
  "class": `table-handle whitespace-nowrap ${(_a2 = op == null ? void 0 : op.className) != null ? _a2 : ""}`
20553
20558
  }, [op.label]);
Binary file