yxuse 3.0.48 → 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
@@ -20548,11 +20548,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
20548
20548
  "class": `flex justify-center items-center cursor-pointer gap-10 ${(_b = (_a = cell.config) == null ? void 0 : _a.className) != null ? _b : ""}`
20549
20549
  }, [(_c = cell.operate) == null ? void 0 : _c.filter((op) => !op.show || op.show(scope.row)).map((op) => {
20550
20550
  var _a2;
20551
- 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);
20552
20552
  return createVNode("span", {
20553
20553
  "onClick": withModifiers(() => {
20554
20554
  (op == null ? void 0 : op.onClick) && (op == null ? void 0 : op.onClick(scope.row));
20555
- emit("operate-handle", op.key, scope.row);
20555
+ emit("operate-handle", op.key, scope.row, scope.$index);
20556
20556
  }, ["stop"]),
20557
20557
  "class": `table-handle whitespace-nowrap ${(_a2 = op == null ? void 0 : op.className) != null ? _a2 : ""}`
20558
20558
  }, [op.label]);
Binary file